Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

True epoch stats #248

Merged
merged 58 commits into from
May 1, 2020
Merged

True epoch stats #248

merged 58 commits into from
May 1, 2020

Conversation

lucidtronix
Copy link
Collaborator

Addresses #216 thanks @ndiamant for guidance

Copy link
Contributor

@ndiamant ndiamant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Long overdo feature! Small changes requested for clarity

Comment on lines 188 to 194
sum_squared = stats[k]
base_key = k.replace('sum_squared', '')
n = stats[f'{base_key}n']
n_sum = stats[f'{base_key}sum']
mean = n_sum/(eps+n)
logging.info(f'Continuous value \n{base_key} Mean:{mean:0.2f} Standard Deviation:{(sum_squared/n)-(mean*mean):0.2f} '
f"Maximum:{stats[f'{base_key}max']:0.2f} Minimum{stats[f'{base_key}min']:0.2f}")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a little hard to follow. Maybe add some comments, or instead of iterating through stats, iterate through the continuous and categorical tmaps and create the keys from the tmap names.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

Copy link
Contributor

@ndiamant ndiamant left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Maybe we can use the self.stats_q.qsize() check to make inference multiprocessed in the future.

@lucidtronix lucidtronix merged commit 4c180dc into master May 1, 2020
@lucidtronix lucidtronix deleted the sf_stats_q branch May 1, 2020 19:04
mklarqvist pushed a commit that referenced this pull request Jun 2, 2020
lucidtronix added a commit that referenced this pull request Jan 13, 2023
lucidtronix added a commit that referenced this pull request Jan 13, 2023
lucidtronix added a commit that referenced this pull request Jan 13, 2023
lucidtronix added a commit that referenced this pull request Jan 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants