Skip to content

rezapci/Machine-Learning

Repository files navigation

Name Description Date
Reza Hashemi Python Machine Learning. 🐶🐶🐩🐕‍🐨🐶🐻 🌲🌲🎄🌲🌳 On 8th of August 2019

Python Machine Learning Notebooks (Tutorial Model-S)

Essential codes/demo IPython notebooks for jump-starting machine learning/data science.


Reza Hashemi, Dearborn heights, Mi Please feel free to add me on LinkedIn here


Requirements

  • Python 3.5+
  • NumPy ($ pip install numpy)
  • Pandas ($ pip install pandas)
  • Scikit-learn ($ pip install scikit-learn)
  • SciPy ($ pip install scipy)
  • Statsmodels ($ pip install statsmodels)
  • MatplotLib ($ pip install matplotlib)
  • Seaborn ($ pip install seaborn)
  • Sympy ($ pip install sympy)

You can start with this article that I wrote in Heartbeat magazine (on Medium platform):

Essential tutorial-type notebooks on Pandas and Numpy

Jupyter notebooks covering a wide range of functions and operations on the topics of NumPy, Pandans, Seaborn, matplotlib etc.

Tutorial-type notebooks covering regression, classification, clustering, dimensionality reduction, and some basic neural network algorithms

Regression

  • Simple linear regression with t-statistic generation


Classification

  • Logistic regression/classification

  • Naive Bayes classification

Clustering

  • K-means clustering
  • Affinity propagation (showing its time complexity and the effect of damping factor)
  • Mean-shift technique (showing its time complexity and the effect of noise on cluster discovery)
  • DBSCAN (showing how it can generically detect areas of high density irrespective of cluster shapes, which the k-means fails to do)
  • Hierarchical clustering with Dendograms showing how to choose optimal number of clusters


Dimensionality reduction

  • Principal component analysis


Deep Learning/Neural Network


Random data generation using symbolic expressions


  • Serving a linear regression model through a simple HTTP server interface. User needs to request predictions by executing a Python script. Uses Flask and Gunicorn.

  • Serving a recurrent neural network (RNN) through a HTTP webpage, complete with a web form, where users can input parameters and click a button to generate text based on the pre-trained RNN model. Uses Flask, Jinja, Keras/TensorFlow, WTForms.