-
Notifications
You must be signed in to change notification settings - Fork 92
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
Fixed Python Notebook Examples #226
Conversation
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
View / edit / reply to this conversation on ReviewNB rcurtin commented on 2024-04-11T13:36:09Z It seems like |
@@ -1,175 +1,552 @@ | |||
{ |
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.
If you had any issues, I can put the CSV also on datasets.mlpack.org. Looks like maybe there was an SSL failure? But everything seems to load correctly for me.
Reply via ReviewNB
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 put it up on https://datasets.mlpack.org/breast-cancer-wisconsin.csv, which shouldn't have an SSL issue, want to update the link to there?
@@ -0,0 +1,506 @@ | |||
{ |
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.
Did you mean to add this notebook? It looks new, I guess an adaptation of the C++ version?
Reply via ReviewNB
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.
@rcurtin yes, I thought it would be a great addition since most of the notebook examples have a C++ and Python version.
View / edit / reply to this conversation on ReviewNB rcurtin commented on 2024-04-11T13:36:13Z I just saw Whiplash a few weeks ago (number 24 on the list), I didn't realize it was so old. I thought it was a great movie. MarkFischinger commented on 2024-04-11T15:03:55Z Haven't seen it yet, but I’ll definitely check it out on your recommendation when I have the chance ;) |
View / edit / reply to this conversation on ReviewNB rcurtin commented on 2024-04-11T13:36:14Z Nice catch! |
View / edit / reply to this conversation on ReviewNB rcurtin commented on 2024-04-11T13:36:16Z I wonder if it would be possible to use |
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.
Wow, this is absolutely great! Thank you for taking the time to go through all of these @MarkFischinger. I wish that we had an automated way to keep things up to date, but I think we don't have any CI job that tests the notebooks. All of my comments are pretty minor, really the main one is about the SSL verification---I think it shouldn't be needed, was there a certificate issue?
@rcurtin Yes, I encountered a slight issue with SSL verification while requesting lab.mlpack.org. The error I ran into was: My current approach is a workaround to this problem. However, I agree that the ideal solution would be to update the SSL certificate on the website. |
Haven't seen it yet, but I’ll definitely check it out on your recommendation when I have the chance ;) View entire conversation on ReviewNB |
@@ -1,225 +1,666 @@ | |||
{ |
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.
Line #2. !wget --no-check-certificate -O - https://lab.mlpack.org/data/cifar10-images.tar.gz | tar -xz
This one can also be changed to https://datasets.mlpack.org/cifar10-images.tar.gz (actually it was already located there too).
Reply via ReviewNB
@@ -1,146 +1,171 @@ | |||
{ |
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.
Line #3. df = pd.read_csv('https://lab.mlpack.org/data/covertype-small.csv.gz')
Here you can use https://datasets.mlpack.org/covertype-small.csv.gz
Reply via ReviewNB
View / edit / reply to this conversation on ReviewNB rcurtin commented on 2024-04-22T20:40:44Z This is also on datasets.mlpack.org: https://datasets.mlpack.org/MovieLens-small.zip |
I went through and added the datasets to |
@rcurtin I removed all SSL certificate exceptions, tested it, and everything seems to be working fine now :) |
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 great, thanks again! 👍
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. 👍
Thanks again @MarkFischinger! 👍 |
I'm excited to share some updates I've made to the Python notebook examples. While browsing through the existing examples because of #224, I noticed a few issues that had to be fixed.
Along with correcting typos, updating for the latest mlpack API changes as well as some other bug fixes, I've ensured all python notebooks are now fully functional by running and fixing each one :)
Once I have some more time, I plan to extend these fixes to the notebooks in other languages too.