Book Image

Mastering Python for Data Science

By : Samir Madhavan
Book Image

Mastering Python for Data Science

By: Samir Madhavan

Overview of this book

Table of Contents (19 chapters)
Mastering Python for Data Science
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
7
Estimating the Likelihood of Events
Index

Different types of machine learning


Machine learning is divided into mainly three types depending on the nature of the learning target or the feedback available to the learning system:

  1. Supervised learning: The computer is presented with a given set of inputs and their respective outputs. The goal of the program is to learn from the inputs in order to reproduce the outputs.

  2. Unsupervised learning: There is no target variable in the case of unsupervised learning. The computer is left on its own to find patterns within the data.

  3. Reinforcement learning: A program has to interact with its environment in a dynamic manner, such as a driving a car.

Supervised learning

As described earlier, a supervised learning algorithm studies the training data and generates a function, which can be used for predicting new instances.

As you can see from the preceding diagram, there is training data, which the machine learning model will learn from.

Let's assume that the training data is a set of text that represents...