-
Notifications
You must be signed in to change notification settings - Fork 590
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
Conversation
… IncrementalPredictor + code cleanup.
packages/vaex-ml/vaex/ml/sklearn.py
Outdated
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 |
There was a problem hiding this comment.
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.
packages/vaex-ml/vaex/ml/sklearn.py
Outdated
|
||
# Loop over for each epoch | ||
for epoch in range(self.num_epochs): | ||
# Loop iterating over the DataFrame |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
Small improvements in the
vaex.ml.sklearn.IncrementalPredictor