.more-more-condensed[
- .darkblue[Classify] whether the picture contains a .darkblue[cat or dog] based on certain features of animals: 1. Dataset: $\\{(x_1,y_1),...,(x_N,y_N)\\}$
- .darkblue[$x_i$: features]
- .darkblue[$y_i$: labels] (i.e., cat or dog)
|
 |
|
|
|
 |
|
$x_i=$ |
$\left[\begin{array}{c} x_{i,1} \\ x_{i,2} \\ \vdots \\ x_{i,k} \end{array}\right]$ |
$y_i=1$ |
|
$x_j=$ |
$\left[\begin{array}{c} x_{j,1} \\ x_{j,2} \\ \vdots \\ x_{j,k} \end{array}\right]$ |
$y_i=-1$ |
Dataset with $k$ features like weight, tail length, ... |
]
|
.more-more-condensed[
- .darkblue[Split] the dataset .darkblue[into] the .darkblue[training and test datasets]
|
70% Training dataset with $t$ samples |
|
|
30% Test dataset with $u$ samples |
$N=t+u$ |
]
|