GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - SNUDerek/MLPy: an education-oriented machine learning library written in python + numpy

BranchesTags
Open more actions menu

Latest commit

 

History

35 Commits
35 Commits

Folders and files

NameName
Last commit message
Last commit date
datasets
datasets
 
 
mlpy
mlpy
 
 
tutorials
tutorials
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mlpy_test_MLP_on_IRIS.ipynb
mlpy_test_MLP_on_IRIS.ipynb
 
 
mlpy_test_basic_tools.ipynb
mlpy_test_basic_tools.ipynb
 
 
mlpy_test_linalg.ipynb
mlpy_test_linalg.ipynb
 
 
mlpy_test_linear_regression_sgd.ipynb
mlpy_test_linear_regression_sgd.ipynb
 
 
mlpy_test_logistic_regression.ipynb
mlpy_test_logistic_regression.ipynb
 
 
mlpy_test_multilinearperceptron.ipynb
mlpy_test_multilinearperceptron.ipynb
 
 
requirements.txt
requirements.txt
 
 
setup.py
setup.py
 
 

Repository files navigation

MLPy - a machine learning library in python + numpy

PURPOSE

this is a library of machine learning algorithms implemented in python + numpy. this is an ongoing (self-) educational project, and focuses on well-commented, understandable code over efficiency. (although efficiency is considered to a degree, e.g. vector operations over iterations with for-loops) all code is intended to be well-commented, and stresses explanation of algorithm.

while this is an educational project meant to be coded generally from scratch, other resources are referenced when designing the code for validation of procedure and confirmation of algorithms. references are listed below.

algorithms are class-based and use fit() for training and predict() for estimation, following sklearn standards.

ALGORITHMS & FUNCTIONS

basic functions

  • tools.accuracy_score : calculates accuracy score for categorical data
  • tools.batchGenerator : an iterator for minibatch gradient descent
  • tools.one_hot : turn an integer-indexed list/array into a 2-D matrix of one-hot vectors
  • tools.train_test_split : shuffles and splits data according to the train_size parameter

discrete algorithms

  • linalg.Vector : do basic vector operations (based on the Udacity Linear Algebra Refresher course)
  • linalg.Line : do basic line operations (based on the Udacity Linear Algebra Refresher course)
  • tools.fliess_kappa : calculate Fliess' Kappa inter-rater agreement score for N x k matrix of data

machine learning algorithms

  • neural.MultiLayerPerceptron : multivariate MLP with stochastic minibatch gradient descent
  • regression.ZeroRuleforRegression : baseline mean/median regression
  • regression.LinearRegression : multivariate, with (stochastic/minibatch) gradient descent and l2 regularization
  • regression.LogisticRegression : multivariate, with (stochastic/minibatch) gradient descent and l2 regularization

REFERENCES AND CITATIONS

LINEAR ALGEBRA WITH PYTHON

https://www.udacity.com/course/linear-algebra-refresher-course--ud953

DATASETS

http://college.cengage.com/mathematics/brase/understandable_statistics/7e/students/datasets/mlr/frames/frame.html

LINEAR REGRESSION AND GRADIENT DESCENT

https://www.cs.toronto.edu/~frossard/post/linear_regression/

http://ozzieliu.com/2016/02/09/gradient-descent-tutorial/

https://machinelearningmastery.com/implement-linear-regression-stochastic-gradient-descent-scratch-python/

STOCHASTIC GRADIENT DESCENT

https://www.pyimagesearch.com/2016/10/17/stochastic-gradient-descent-sgd-with-python/

REGULARIZATION (FOR LINEAR REGRESSION)

https://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-ridge-lasso-regression-python/

LOGISTIC REGRESSION

https://beckernick.github.io/logistic-regression-from-scratch/

http://aimotion.blogspot.kr/2011/11/machine-learning-with-python-logistic.html

REGULARIZATION (FOR LOGISTIC REGRESSION)

https://courses.cs.washington.edu/courses/cse599c1/13wi/slides/l2-regularization-online-perceptron.pdf

MULTI-LAYER PERCEPTRON

http://florianmuellerklein.github.io/nn/

https://rolisz.ro/2013/04/18/neural-networks-in-python/

https://www.analyticsvidhya.com/blog/2017/05/neural-network-from-scratch-in-python-and-r/

https://databoys.github.io/Feedforward/

http://peterroelants.github.io/posts/neural_network_implementation_part02/

https://www.youtube.com/watch?v=tIeHLnjs5U8

About

an education-oriented machine learning library written in python + numpy

Topics

educationalmachine-learning-algorithmsmachine-learning-librarynumpy-exercisesnumpy-tutorial

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.