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

As I am exploring the ml5.js library, I wanted to introduce myself to the ml5.js sound classifier by creating a simple project. I created a JavaScript bubble popper a while ago, which creates a bubble upon pressing the spacebar, and deletes a bubble upon clicking it. I decided to modify the bubble popper project to use the ml5.js sound classifier because it would be a relatively easy way to play with the ml5.js sound classifier.

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/

Github code: https://github.com/dmarcisovska/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…


ml5.js image classifier
ml5.js image classifier

A live example of the code: https://dmarcisovska.github.io/ml5js-image-classifier/

Github code: https://github.com/dmarcisovska/ml5js-image-classifier

I was thinking of new JavaScript project ideas I could do and thought it would be really neat to try out TensorFlow.js. Every time I went to Google I/O, that is what got me most excited. So I headed over to TensowFlow.js and found out about ml5.js which has pre-trained models. I thought this would be a good way to ease into TensorFlow.js.

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…


For the last fews weeks I have been doing different JavaScript projects to help increase my JavaScript skill set. I felt that creating a javascript lottery number generator was a good next project because I could build on top of what I have already learned. For this project, I would need to append my numbers onto elements, and I learned how to do that when I created the tip calculator and I was also already familiar with math.random().

A live example of the code: https://dmarcisovska.github.io/javascript-lottery-number-generator/

Github code: https://github.com/dmarcisovska/javascript-lottery-number-generator

Brainstorming Process

Steps:

  1. Generate 6 random numbers from 1–45
  2. Check for duplicates
  3. Store these…

I am on a mission to practice as much JavaScript as I can by completing different projects. I decided on this project because it is relatively simple and straightforward. I am already familiar with making JavaScript calculations. To create the JavaScript tip calculator project I would just have to learn how to append those calculations onto an existing html element.

A live example of the code: https://dmarcisovska.github.io/javascript-tip-calculator/

Github code: https://github.com/dmarcisovska/javascript-tip-calculator

Brainstorming Process

Before diving right in I sat down and thought about the steps needed to implement the JavaScript tip calculator.

Steps

  • User enters in the dollar amount of bill
  • User selects…


The reason behind this javascript background changer project is I haven’t done a JavaScript project in a while and I wanted to start off with something relatively easy. I also thought it would be neat to learn how to change the background image using a dropdown element.

A live example of the code: https://dmarcisovska.github.io/javascript-background-changer/

Github code: https://github.com/dmarcisovska/javascript-background-changer

Brainstorming

Before starting any programming project I like to sit down and jot down the steps needed to complete it. For the JavaScript background changer I determined I would need the following steps:

  1. Create a hero
  2. Add background image to the hero
  3. Add a…

Denisa Marcisovska

Programming enthusiast. Avid learner. Website: denisa.dev

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store