- The three types of machine learning systems are supervised learning, unsupervised learning and reinforcement learning.
- All ML models are AI models, but not every AI model is an ML model.
- Supervised learning solves classification and regression problems; unsupervised learning covers clustering, anomaly detection and dimensionality reduction.
- Reinforcement learning trains a model through trial and error to maximize cumulative reward.
- Model training feeds an algorithm enough data to learn from, then compares its outputs with known results to improve it.
There are three different ML systems: supervised machine learning, unsupervised machine learning, and reinforcement learning. They each have a different relationship between data and objects and vary on the type of machine learning they represent.
ML models vs. AI models
ML models are designed to teach machines to operate and optimize themselves, while learning and improving from past decisions. AI models are designed to replicate human intelligence through algorithms. While all ML models are AI models, not every AI model is an ML model.
Types of machine learning models
Supervised learning
Supervised machine learning provides algorithms with input data and optimizes them to meet specific end results. Supervised learning provides context to the discovery of a solution and can then produce detailed models. Ways of deriving said context can be further grouped into problem types solved through supervised learning; classification and regression.
Classification
Classification is attaching classes to specific clusters within a dataset. A common use of classification is auto-labeling emails as spam, promotions, or junk. Classification-based problems are often solved through several frequently used supervised algorithms and models. Examples of commonly used classification models in supervised learning are:
- Decision tree - Decision trees are graphical representations of the available alternatives to solve a given problem and determine the most effective course of action.
- Support vector machine (SVM) - SVMs are supervised learning models with associated learning algorithms that analyze and categorize data. SVM models assign vectors into different categories.
- K-nearest neighbors (KNN) - KNN is an algorithm that identifies the nearest vectors, or neighbors, to an unknown variable that must be predicted or classified by the symbol “K”. This algorithm is effective in solving both classification and regression problem statements.
Regression
Regression analysis involves finding a specific numerical value from various data points. Predicting upcoming weather, for example, needs to be calculated through specific properties such as air temperature, humidity, atmospheric pressure, etc. Each of these properties are quantified as data points and inserted into algorithms to produce predictive models of future weather patterns. Several algorithms can be used to produce these models. Examples of common algorithms include, but are not limited to:
- Linear regression - Linear regression is a process that identifies relationships between dependent and one (simple linear) or more independent variables (multiple linear), processing these connections to optimize predictions.
- Simple linear regression - Simple linear regression uses a single input and output variable to create predictions based on trained datasets. These predictions are derived through a straight line between the input and output.
- Multiple linear regression - While similar to simple linear regression, multiple linear regression has multiple input variables.
- Multivariate linear regression - Multivariate linear regression differentiates itself from simple linear regression through the use of multiple output variables.
Unsupervised learning
Unsupervised machine learningalgorithms identify patterns from a dataset without a known outcome. Due to the lack of clarified end results, unsupervised machine learning often discovers unknown information. This approach benefits unlabeled and unstructured data as unsupervised learning can find patterns within them. This manifests itself through detailed unsupervised learning algorithms including clustering, anomaly detection, and dimensionality reduction.
Clustering
Clustering is an ML algorithm that organizes similar data points into defined clusters. This algorithm is an unsupervised machine learning task that gives insight into data through analysis of the clusters.
Anomaly Detection
Also known as outlier detection, anomaly detection identifies irregularities among processed data. This is valuable in detecting cloud security vulnerabilities across various industries.
Dimensionality reduction
Dimensionality is the number of features, or input variables, in a dataset. Dimensionality reduction, a form of data simplification, is the unsupervised learning process of reducing those features to a smaller set that keeps most of the information. This process is most effective when producing straightforward ML models.
Reinforcement learning
Reinforcement machine learning (RL) is when a model interacts continuously with the environment and trains itself through trial and error. RL does not rely on training data. Instead, it learns to identify and maximize positive results over time. RL is unique to both supervised and unsupervised learning through optimization and function.
Though supervised and reinforcement learning incorporate data categorization, RL leverages a system of actions and consequences to optimize results. Conversely, while a primary function of unsupervised learning lies in pattern discovery between unlabeled data points, the primary function of RL is to create models that maximize the total cumulative rewards of the initial output data.
ML Model Training
ML models are trained through data consumption. ML model training is the process of feeding an algorithm sufficient data to learn from. Training models run primary datasets through a given algorithm to correlate processed outcomes against their preprocessed sample results. The correlation between these two outputs can then be used to iterate and modify the ML model.
Machine Learning Models in H2O AI
The AutoML in open-source H2O-3 trains and compares supervised models such as GLM, gradient boosting, random forest and deep learning, and ranks them on a leaderboard. AutoML in H2O-3 docs.