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

add progress bar to RBM fix #3889 #4228

Merged
merged 3 commits into from Apr 4, 2018

Conversation

sunalbert
Copy link
Contributor

add progress bar to RBM algorithm

@karlnapf
Copy link
Member

karlnapf commented Apr 3, 2018

looks good to me, lets wait for the CI.
thanks for the patch! :)

@@ -136,6 +137,9 @@ void CRBM::train(CDenseFeatures<float64_t>* features)
buffer = SGMatrix<float64_t>(m_num_hidden, m_batch_size);

int32_t counter = 0;

auto pb = progress(range(0, max_num_epochs));

for (int32_t i=0; i<max_num_epochs; i++)
Copy link
Contributor

Choose a reason for hiding this comment

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

You could have used the compact version here, instead of the pb.print_progress/complete methods :) namely:
for (auto i : progress(range(0, max_num_epochs)))

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, thanks. I will modify the code.

@karlnapf
Copy link
Member

karlnapf commented Apr 3, 2018

Ill merge once CI is green

@sunalbert
Copy link
Contributor Author

The CI fails again. How can I fix the error "The job exceeded the maximum time limit for jobs, and has been terminated"

@geektoni
Copy link
Contributor

geektoni commented Apr 3, 2018

Unfortunately, that error is not something you can fix from your side because it is caused by Travis itself. However, this PR should be mergeable since all the other builds are green.

@sunalbert
Copy link
Contributor Author

Ok, thank you

@karlnapf karlnapf merged commit 8f8347a into shogun-toolbox:develop Apr 4, 2018
@sunalbert sunalbert deleted the feature/add_pb_to_RBM branch April 4, 2018 14:06
ktiefe pushed a commit to ktiefe/shogun that referenced this pull request Jul 30, 2019
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.

None yet

3 participants