Machine Learning - Types of Learning
Tags: machinelearning, elasticsearch, beginners
Published: 2021-08-02 14:35:41

| [Menu](https://dev.to/priscilla_parodi/a-guide-to-machine-learning-ai-with-the-elastic-stack-1dkl) | [Next Post: Elastic Anomaly Detection - Learning Process and Anomaly Score](https://dev.to/priscilla_parodi/elastic-anomaly-detection-learning-process-and-anomaly-score-3nl7) |

There are different types of ML learning: Supervised Learning, Unsupervised Learning and Reinforcement Learning.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hd07w4q54bw21ip460qo.png)

In **Supervised Learning** input is provided as a labeled dataset with the need for a supervisor, the model processes this data to provide the result and the output data patterns are known to the system.
 
![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wl6n97e7298qdruof8pb.png)

**Unsupervised learning** is not supervised, it is self-organized learning. Its main aim is to explore the patterns and predict the output by finding an association between input values.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yu08atwgxjhka62rddrb.png)

In **Reinforcement Learning**, the learning agent works as a reward system, the data is not predefined and the agent interacts with the environment, traveling from one state to another.

###Supervised ML vs Unsupervised ML vs Reinforcement ML###

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/s21x22sfohijgdmww2s5.png)

**Elastic uses Supervised Learning and Unsupervised Learning**. The type of analysis that you choose depends on the questions or problems you want to address and the type of data you have available.

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/hn6d6scoeflrfnaysg92.png)

###Elastic Anomaly Detection###

[**Anomaly detection**](https://dev.to/priscilla_parodi/elastic-anomaly-detection-learning-process-and-anomaly-score-3nl7) constructs a probability model and can run continuously to identify unusual events as they occur. (unsupervised)

###Elastic Data Frame Analytics###

[**Outlier detection**](https://dev.to/priscilla_parodi/elastic-data-frame-outlier-detection-16ni) identifies unusual points in a data set by analyzing how close each data point is to others and the density of the cluster of points around it. (unsupervised)

[**Classification**](https://dev.to/priscilla_parodi/elastic-data-frame-classification-analysis-1b3f) predicts the class or category of a given data point in a dataset. (supervised)

[**Regression**](https://dev.to/priscilla_parodi/elastic-data-frame-regression-analysis-2ge2) predicts continuous numerical values after it determines certain relationships among your data points. (supervised)

It is also possible to **import a model** to your Elasticsearch cluster even if the model is not trained by Elastic data frame analytics, following the appropriate [JSON schema](https://github.com/elastic/ml-json-schemas). Likewise, you can use third-party models to perform [**Natural Language Processing**](https://dev.to/elastic/natural-language-processing-15fj) (NLP) tasks.

To use the Elastic Stack machine learning features, you must have the appropriate subscription level or the [free trial period activated](https://dev.to/elastic/handson-setup-elastic-cloud-4j8p) and at least one machine learning node in your cluster. 

![Alt Text](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n9aqkr2dwbmcrds5zzj9.png)

Our goal is to empower users with tools to get value and insights from their Elasticsearch data, and **we view machine learning as a natural extension to the search and analytics capabilities in Elasticsearch**, that’s why machine learning jobs are automatically distributed and managed across the Elasticsearch cluster in much the same way that indexes and shards are and one of the big focus areas is adding Machine Learning as integrated capability across all of our solutions.

| [Menu](https://dev.to/priscilla_parodi/a-guide-to-machine-learning-ai-with-the-elastic-stack-1dkl) | [Next Post: Elastic Anomaly Detection - Learning Process and Anomaly Score](https://dev.to/priscilla_parodi/elastic-anomaly-detection-learning-process-and-anomaly-score-3nl7) |

>*This post is part of a series that covers [Artificial Intelligence with a focus on Elastic's (Creators of Elasticsearch) Machine Learning solution](https://dev.to/priscilla_parodi/a-guide-to-machine-learning-ai-with-the-elastic-stack-1dkl), aiming to introduce and exemplify the possibilities and options available, in addition to addressing the context and usability.*