# Machine Learning

## What is Machine Learning

There are many objectives of machine learning. Two of the most applied objectives are classifications and regressions. In classifications and regression, the following four factors are relevant.

- Input:
- Domain knowledge $\tilde{\mathscr K_D}$.
- on features,
- on target values,
- on relation between features and target values.

- A dataset $\tilde{\mathscr D}(\tilde{\mathbf X}, \tilde{\mathbf Y})$ with $\tilde{\mathbf X}$ being the features and $\tilde{\mathbf Y}$ being the values to be predicted;
- features (domain set): $\tilde{\mathbf X}$,
- target values (label set): $\tilde{\mathbf Y}$.
- relations between features and target values: $f(\mathbf X) \to \mathbf Y$.

- Domain knowledge $\tilde{\mathscr K_D}$.
- A set of “encoders” $\mathscr T_i$ that maps the features $\tilde{\mathbf X}$ into machine readable new features $\mathbf X$ and predicting values $\tilde{\mathbf y}$ into machine readable new values $\mathbf y$. The dimensions of $\tilde{\mathbf X}$ and $\mathbf X$ may not be the same. In summary, $\mathscr T(\tilde{\mathscr D}) \to \mathscr D$.
- A model (aka, prediction rule, predictor, hypothesis) $h(\mathbf X;\mathbf \theta)\to \bar{\mathbf Y}$ that maps $\mathbf X$ to the values with $\mathbf X$ being a set of input features. $h$ may also be a set of functions.
- A measurement of the model performance, $L_{f, \mathscr D}(h)$.
- Error of model: $L_{f, \mathscr D}(h) = \mathscr L(h(\mathbf X), f(\mathbf X))$, where $\mathscr L$ is distance operator.