r/datascience • • Dec 26 '18

Projects 🤖Python examples of popular machine learning algorithms with interactive Jupyter demos and math being explained

https://github.com/trekhleb/homemade-machine-learning
282 Upvotes

19 comments sorted by

3

u/triple_dee Dec 26 '18

thanks so much OP! I am still learning Python, and your code is easy for me to follow :)

1

u/trekhleb Dec 26 '18

Glad to hear that!

2

u/coffeecoffeecoffeee MS | Data Scientist Dec 26 '18

This is great! Thanks for posting! Is there any reason why you use your own method implementations, instead of off-the-shelf ones? I'd love to see a version of this with scikit-learn functions.

4

u/trekhleb Dec 26 '18

Yes, SciPy (or Keras or Tensorflow) versions are the next in line. The only reason I'm using custom implementation is to actually learn algorithms from the inside. Thus the code in the repo is for learning purpose rather than for production.

2

u/coffeecoffeecoffeee MS | Data Scientist Dec 26 '18

Makes sense. It’s also easy to read your code based on what I’ve skimmed.

1

u/trekhleb Dec 26 '18

Great! Nice to hear that!

103

u/Bishonen_88 Dec 26 '18

Thanks! I have a feeling that this will fit nicely in the list of cool articles I saved and never touched again.

15

u/tw0handt0uch Dec 26 '18

Is there a word in English to describe that feel when you find something extremely cool and useful and realize you’ll never have the bandwidth to leverage it in your life in a meaningful way?

6

u/coffeecoffeecoffeee MS | Data Scientist Dec 26 '18

Not sure, but there probably is in German.

1

u/[deleted] Dec 26 '18

Nein

2

u/[deleted] Dec 26 '18

No, but it’s definitely an idea that we’ve all felt. You should make a word for it.

2

u/cprenaissanceman Dec 27 '18

A thread from r/doesnottranslate gives the Japanese word “tsundoku” which is essentially buying books and never reading them; usually this means you amass a collection of unread books that form piles of books you “mean to get to” but never do. I always think of this when I upvote or save these kinds of posts, but I do appreciate the efforts of those who do post and create content.

More information from:

1

u/tw0handt0uch Dec 27 '18

Nice find! In all honestly I have already spend some time on OP’s links and find them quite useful as reference tools. I’d love to do a deep dive at some point.

2

u/wymco Dec 26 '18

LOL...I am just to do that now

3

u/needmorecharact Dec 26 '18

Welcome to data science!

11

u/strikingLoo Dec 26 '18

Awesome! This will look good in my eternal, ever encroaching list of bookmarks

2

u/Scrawlly Dec 26 '18

Looks good, I will definitely have a very good check on this.

1

u/toadkiller Dec 26 '18

This is fantastic. Thanks.