Skip to main content

Python Machine Learning Notebooks (Tutorial style)

Python Machine Learning Notebooks (Tutorial style)

Dr. Tirthajyoti Sarkar, Sunnyvale, CA (You can connect with me on LinkedIn here)

Essential codes/demo IPython notebooks for jump-starting machine learning/data science.
You can start with this article that I wrote in Heartbeat magazine (on Medium platform):

"Some Essential Hacks and Tricks for Machine Learning with Python"

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
  • Polynomial regression with how to use scikit-learn pipeline feature (check the article I wrote on Towards Data Science)
  • Decision trees and Random Forest regression (showing how the Random Forest works as a robust/regularized meta-estimator rejecting overfitting)

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

  • How to use Sympy package to generate random datasets using symbolic mathematical expressions.

Comments

Popular posts from this blog

Introduction to Machine Learning in Python

Python tutorials for introduction to machine learning Introduction to Machine Learning in Python This repository provides instructional material for machine learning in python. The material is used for two classes taught at NYU Tandon by  Sundeep Rangan : EE-UY / CS-UY 4563: Introduction to Machine Learning (Undergraduate) EL-GY 6123: Introduction to Machine Learning (Graduate) Anyone is free to use and copy this material (at their own risk!). But, please cite the material if you use the material in your own class. Pre-requisites All the software can be run on any laptop (Windows, MAC or UNIX).  Instructions  are also provided to run the code in Google Cloud Platform on a virtual machine (VM). Both classes assume no python or ML experience. However, experience with some programming language (preferably object-oriented) is required. To follow all the mathematical details and to complete the homework exercises, the class assumes undergraduate probability, linear algebra

R tutorials for Data Science, NLP and Machine Learning

R Data Science Tutorials This repo contains a curated list of R tutorials and packages for Data Science, NLP and Machine Learning. This also serves as a reference guide for several common data analysis tasks. Curated list of Python tutorials for Data Science, NLP and Machine Learning . Comprehensive topic-wise list of Machine Learning and Deep Learning tutorials, codes, articles and other resources . Learning R Online Courses tryR on Codeschool Introduction to R for Data Science - Microsoft | edX Introduction to R on DataCamp Data Analysis with R Free resources for learning R R for Data Science - Hadley Wickham Advanced R - Hadley Wickham swirl: Learn R, in R Data Analysis and Visualization Using R MANY R PROGRAMMING TUTORIALS A Handbook of Statistical Analyses Using R , Find Other Chapters Cookbook for R Learning R in 7 simple steps More Resources Awesome-R Repository on GitHub R Reference Card: Cheatsheet R bloggers: blog aggregator R Resources

Machine Learning API tutorial

Fast Style Transfer in  TensorFlow Add styles from famous paintings to any photo in a fraction of a second!  You can even style videos!     It takes 100ms on a 2015 Titan X to style the MIT Stata Center (1024×680) like Udnie, by Francis Picabia. Our implementation is based off of a combination of Gatys'  A Neural Algorithm of Artistic Style , Johnson's  Perceptual Losses for Real-Time Style Transfer and Super-Resolution , and Ulyanov's  Instance Normalization . Running on FloydHub It is very easy to train, evaluate and serve fast style transfer on [Floydhub][ https://www.floydhub.com/ ]. Follow the instructions below: Visit  Floydhub  site to create an account if you do not have one. Clone this repository to your machine. Run  floyd init <project name>  inside the directory. Now you can: Train a new model Evaluate an existing model Serve a trained model at a public API. Video Stylization Here we transformed every frame in a video, then co