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

Improve IncrementalPredictor #523

Merged
merged 5 commits into from
Jan 6, 2020
Merged

Conversation

JovanVeljanoski
Copy link
Member

Small improvements in the vaex.ml.sklearn.IncrementalPredictor

  • An epoch is now on the level of the entire input DataFrame, not on a batch level.
  • Clean up of unused code.
  • Tests pass

@JovanVeljanoski JovanVeljanoski changed the title improv(ml) Correct order of how batches and epochs are treated in the… Improve IncrementalPredictor Dec 24, 2019
CHANGELOG.md Show resolved Hide resolved
for j, epoch in enumerate(range(self.num_epochs)):
progressbar((i2 * self.num_epochs + j) / (N_total * self.num_epochs))

# Loop over for each epoch
Copy link
Member

Choose a reason for hiding this comment

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

These kinds of comments do not add anything, it says the same as the code below, while after refactoring it is often forgotten, and then lies. Often, when a comment reflects 1 line of code, it should be a more clear line of code without comment, or the comment should explain what is to come in the next N lines.


# Loop over for each epoch
for epoch in range(self.num_epochs):
# Loop iterating over the DataFrame
Copy link
Member

Choose a reason for hiding this comment

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

same

@maartenbreddels maartenbreddels merged commit eeebe11 into master Jan 6, 2020
@maartenbreddels maartenbreddels deleted the improv_incremental_predictor branch January 6, 2020 12:13
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