Complete Example of Machine Learning

Python and Artificial Intelligence

Robert Shaneyfelt
ILLUMINATION

--

Photo by Arseny Togulev on Unsplash

“Machine learning is the science of getting computers to learn without being explicitly programmed.” — Sebastian Thurn

For further information on artificial intelligence, first AI story.

In this story, I will walk you through a complete coding example of a machine learning application. This application will be for an online music store that needs a reliable way to predict what kind of music its users are interested in.

The steps to follow in developing an artificial, intelligence application, using python, was mentioned in my first story. I mention them again.

  1. Import the data
  2. Clean the data — remove duplicate data. If the data is text-based. Convert the data to numerical, values.
  3. Split the data into training and test sets — Make sure our model produces the correct result.
  4. Create a model — Select an algorithm to analyze the data. Decision trace, Neural networks… Each algorithm has pros and cons. What makes python such a popular language in AI is some libraries already exist that implemented many of the algorithms. The library I will use is pcikit-learn.
  5. Train the model.
  6. Make predictions.-When you…

--

--

Robert Shaneyfelt
ILLUMINATION

I received my Bachelor of Electrical Engineering from Trine University. “To write about life first, you must live it.” - Ernest Hemingway