New Repository Provides NumPy Implementation of ML Models

Synced
SyncedReview
Published in
3 min readJul 9, 2019

If you are a developer who has ever wished for a rich collection of machine learning algorithms implemented exclusively in NumPy, then you’ll love Numpy-ml — a new GitHub project that’s winning accolades from across the global machine learning community.

For those unfamiliar with NumPy (Numerical Python), it is one of the most popular libraries for the Python programming language. NumPy is the fundamental package for scientific computing with Python, serving as an efficient multi-dimensional container of generic data. Its set of advanced functions allows users to quickly build a model’s entire computational flow.

Spearheading the Numpy-ml project is David Bourgin, a ML research engineer who received his PhD in Cognitive Science at UC Berkeley. Although Bourgin says Numpy-ml was just “a fun thing for me to do in my spare time” the collection has obviously met a need. In the four days following Bourgin’s project announcement on Reddit his thread received 369 upvotes. The news was also retweeted by interested parties such as DeepMind Research scientist Aida Nematzadeh. The Numpy-ml GitHub has received over 4,600 stars since it was established in April.

The project provides codes for popular neural networks layers such as LSTM, Bidirectional LSTM module, regularizer Dropout, and Hidden Markov model Viterbi decoding. With a total of 62 .py files, the project covers about 30 popular and less-popular machine learning models, with an average of more than 500 lines of code per model. The layer.py file under the neural networks category contains close to 4,000 lines of code.

Bourgin explains “I’ve been slowly building a collection of pure-NumPy (and a little SciPy) implementations of various ML models + building blocks to use for quick reference. The project … might also be useful for others interested in bare-bones implementations of particular models / ideas.”

The algorithms are divided into 11 categories:

  • Gaussian mixture model
  • Hidden Markov model
  • Latent Dirichlet allocation (topic model)
  • Neural networks
  • Tree-based models
  • Linear models
  • n-Gram sequence models
  • Reinforcement learning models
  • Nonparameteric models
  • Preprocessing
  • Utilities

Bourgin is welcoming feedback on the project from the ML community. Details are available on his GitHub page.

Journalist: Fangyu Cai | Editor: Michael Sarazen

2018 Fortune Global 500 Public Company AI Adaptivity Report is out!
Purchase a Kindle-formatted report on Amazon.
Apply for Insight Partner Program to get a complimentary full PDF report.

Follow us on Twitter @Synced_Global for daily AI news!

We know you don’t want to miss any stories. Subscribe to our popular Synced Global AI Weekly to get weekly AI updates.

--

--

Synced
SyncedReview

AI Technology & Industry Review — syncedreview.com | Newsletter: http://bit.ly/2IYL6Y2 | Share My Research http://bit.ly/2TrUPMI | Twitter: @Synced_Global