In this coding tutorial I am going to show you how to do machine learning logistic regression using python and scikit-learn.
Logistic regression is a supervised learning classification algorithm used to predict whether an outcome occurs or not(binary classifier). For example is someone is pregnant or not, if a tumor is cancerous or not. The logistic recession model computes the weighted sum of input features but instead of outputting the result directly like in linear regression, it outputs the logistic result. Logistic regression uses the sigmoid function to predict the probability of x(independent variable) predicting y (dependent variable). The…
A live example of the code: https://dmarcisovska.github.io/ml5-bubble-popper/
Github code: https://github.com/dmarcisovska/ml5-bubble-popper
The ml5.js sound classifier is a pre-trained model and only recognizes these words: “the ten…
A live example of the code: https://dmarcisovska.github.io/ml5-feature-extractor-mood-background-changer/
In this code example I created a background mood changer using the ml5 feature extractor. The end user will train the pre-trained model to detect if he/she is smiling or frowning, and based on their facial expression, the background will change to either rain or sunshine.
The ml5 feature extractor is a pre-trained model that takes advantage of transfer learning. You are using the feature part of a pre-trained model that allows you to retrain or reuse the model for a new task. …
A live example of the code: https://dmarcisovska.github.io/ml5-posenet-cat/
Github code: https://github.com/dmarcisovska/ml5-posenet-cat
I had a lot of fun creating my last ml5.js app — which classifies a photo using mobileNet. For this project, I wanted to dive deeper into ml5.js. After exploring the ml5.js website, I thought it would be fun to use the poseNet pre-trained model to draw features on my face — poseNet is a machine learning model that allows for real-time human pose estimation by finding different points on your body and face.
The ml5.js poseNet cat app I created turns the viewers’ face into a cat. I used…
A live example of the code: https://dmarcisovska.github.io/ml5js-image-classifier/
For my first project I wanted to try something simple, so I decided to create a ml5.js image classifier. You can upload an image to it, and…