Skip to main content

machine learning tutorial

machine learning tutorial
Data scientists often have to communicate results to other people. In my case, my supervisors might want to see some numbers or I have to write up the main insights of some work for a paper. This is pretty straightforward — I just copy and paste into an email or a Latex document. But what if I want to send someone an actual model that I have trained, so that they can either evaluate or use it? If the person in question is technical enough, then I can just save the model to disk and email that, along with some Jupyter notebooks.
But what if you want someone in marketing to try out a model, or you want to share it with friends who might find it interesting? In this case, you’ll need to make your code accessible to them in a way they are familiar with.
The three parts to this tutorial are:
Creating a simple model that can be deployed to the web, where users can input variables to get predictions.
Building the components needed by Flask microframework to create a web app.
Deploying the final web app using the Heroku platform.
The final product will look like this: http://bike-model.herokuapp.com/ — and if you know CSS (which I find much harder than machine learning, for some reason) then you could easily make it look a lot fancier!
There are a lot of tutorials for Flask online, but they can be a bit overwhelming and tend to focus on toy examples like a blog app or a to-do list, with many features we don’t need. In this guide, the focus is on exactly the things you need in order to get your model up and running on the web as quickly as possible.
The model we will deploy is is based on this Cambridge Spark tutorial, using the xgboost package. Our model will perform regression on the data from this tutorial, using three environmental variables (temperature, humidity, windspeed) to predict the number of bikes that will be rented out from a bike sharing scheme. However, you could deploy any model you like!
Software requirements
Make sure you have the following installed if you want to copy and paste code from this page:
Python 3.6+
python packages:
Flask
Pandas
Sklearn
Xgboost
Seaborn
Matplotlib
You will also need the following tools installed:
Git
The Heroku CLI

#isoftmantra

machine learning tutorial

Comments

Popular posts from this blog

data science tutorial

data science tutorial Data Science Data Science is the most challenging field of the 21st generation. Every type of IT industry is looking for candidates with knowledge of data science. We are providing the basic and some advanced concepts related to the operation that can be performed upon the data with the help of different technologies. In this tutorial, we will discuss the following topics: What is Data Science The need for Data Science Jobs in Data Science Types of Jobs in Data Science Prerequisites of Data Science Components of Data Science Tools of Data Science Work Flow of Data Science Life Cycle of Data Science BI (Business Intelligence) Vs. Data Science Applications of Data Science Data Science Vs. Big Data Conclusion What is Data Science? Data Science is the multi corrective field that uses scientific methods, processes, algorithms, and systems to extract the knowledge and insights from the ordered and shapeless data. It is the future of artificial intelligence. Data Scien...

artificial intelligence tutorial

artificial intelligence tutorial lgorithm. An algorithm is a formula representing the relationship between certain variables. ... Chatbots (or “bots”) ... Cluster. ... Cognitive science. ... Machine learning . ... Deep learning. ... Image recognition (or “computer vision”) ... Natural Language Processing (NLP) Artificial Intelligence (AI) continues to make its way into the world, influencing popular culture (think Steven Spielberg’s “A.I.”, or Disney’s “Big Hero 6”) and becoming a disruptor is a variety of industries. From customer service chatbots to extremely sophisticated autopilot driving machines, artificial intelligence is undoubtedly making an impact on everything around us. And marketers have the opportunity to make AI work for them. To understand how AI impacts our marketing world, we need to know the language of AI and have a basic understanding of how it works. Some important terms to become familiar with: Algorithm An algorithm is a formula representing the relationship b...