Mikhail Mikhasenko, 29/07/2025
AD
Decision
Tree
Dense
Nets
Transformers
ML
Gradient
Boost
Convolutional NN
AI Workflow
Labelled data
Machine-learning language:
we want to learn
One training example is a 28 × 28 image: 784 grayscale pixel values.
The label is a single digit. MNIST has 10 classes, the digits 0 through 9.
ML
0
1
2
3
4
5
6
7
8
9

79 data fields in, one price out
MSSubClass · MSZoning · LotFrontage · LotArea · Street · Alley · LotShape · LandContour · Utilities · LotConfig · LandSlope · Neighborhood · Condition1 · Condition2 · BldgType · HouseStyle · OverallQual · OverallCond · YearBuilt · YearRemodAdd · RoofStyle · RoofMatl · Exterior1st · Exterior2nd · MasVnrType · MasVnrArea · ExterQual · ExterCond · Foundation · BsmtQual · BsmtCond · BsmtExposure · BsmtFinType1 · BsmtFinSF1 · BsmtFinType2 · BsmtFinSF2 · BsmtUnfSF · TotalBsmtSF · Heating · HeatingQC · CentralAir · Electrical · 1stFlrSF · 2ndFlrSF · LowQualFinSF · GrLivArea · BsmtFullBath · BsmtHalfBath · FullBath · HalfBath · BedroomAbvGr · KitchenAbvGr · KitchenQual · TotRmsAbvGrd · Functional · Fireplaces · FireplaceQu · GarageType · GarageYrBlt · GarageFinish · GarageCars · GarageArea · GarageQual · GarageCond · PavedDrive · WoodDeckSF · OpenPorchSF · EnclosedPorch · 3SsnPorch · ScreenPorch · PoolArea · PoolQC · Fence · MiscFeature · MiscVal · MoSold · YrSold · SaleType · SaleCondition
Id is only an index. SalePrice is the label, not a feature. Competition data
| LotArealot size, square feet | 8450 |
| OverallQualmaterial and finish, 1–10 | 7 |
| YearBuiltyear of construction | 2003 |
| GrLivAreaabove-ground living area, square feet | 1710 |
| GarageCarsgarage capacity, in cars | 2 |
ML

ML
0 · push left
1 · push right

or score function


Complex loss landscape as a function of parameters and
Hypothetical flat prices

Thirty noisy prices. The curve is one setting of ; training moves to make this loss small.
Every frame gives . Choose .
Let and define the probability of the action taken:
Minimizing this loss makes actions from the observed 120-frame episode more probable.
Standard for binary classification
The loss grows rapidly when the model assigns low probability to the observed class.
How broad, and how uncertain, a distribution is
Monte Carlo, with drawn from :
The narrow density has . A broader density is more uncertain, so its entropy is larger.
Likelihood of , evaluated on a sample from

,
Kullback–Leibler divergence
Expected likelihood difference when the truth is and the model is . The two directions are not equal.

,


Receiver operating characteristic

The same threshold sweep in different variables

Training minimizes a loss over model parameters .
