-
Notifications
You must be signed in to change notification settings - Fork 86
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
Adapt notebooks to mlpack 4 API #208
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
] | ||
}, | ||
{ | ||
"cell_type": "code", | ||
"execution_count": 22, | ||
"id": "97fdc354-57d0-4e28-91e8-1d707fc24226", | ||
"metadata": {}, | ||
"outputs": [], | ||
"outputs": [ |
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.
I guess, we got lucky before.
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.
Yeah. I suppose we could increase the penalty to work around the issue, but I don't think it's a big deal either way.
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.
The results are pretty much the same, so I don't think this is needed.
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.
Looks good to me, no comments from my side.
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.
Second approval provided automatically after 24 hours. 👍
I went through all of the C++ notebooks and made changes that reflect the latest changes in mlpack master (which will be mlpack 4). Basically these changes are:
<mlpack.hpp>
. (Adapt mlpack to require only one include; revamp docs to Markdown, not Doxygen mlpack#3265)I also made a few fixes where necessary, and sometimes I reduced the computational complexity of the models we were learning so we would stay within resource limits.
Now, every notebook runs successfully on Binder, with two exceptions:
cifar10_eval
notebook needs an 8GB binder instance to succeed. I had one of those once, when starting a notebook on Binder, but then I started getting 2GB instances. However, it should work.After merging this PR, https://datasets.mlpack.org/cifarNet2.xml will need to be moved to https://datasets.mlpack.org/cifarNet.xml.
There is one additional issue: datasets.mlpack.org is not available from OVH binder instances. I'm trying to work with the Binder Gitter chat and Github repository to get a resolution there.