Description:
Set a target variable for model building.
Syntax:
ym_target(md, targetName)
Note:
The external library function (See External Library Guide) sets a target variable, which must be a binary variable or a numeric type variable.
Parameter:
md |
An MD object |
targetName |
Target variable name |
Return value:
A Boolean value
Example:
|
A |
|
1 |
=ym_env() |
Start Python service |
2 |
=file("D:/yimming/store/data_md/train.csv").cursor@tc() |
The data file for model building |
3 |
=ym_model(A1,A2) |
Load the data fiel for model building |
4 |
=ym_target(A3, "Survived") |
Set Survived filed as the binary target variable |
5 |
=ym_build_model(A3) |
Perform model building operation and return a model object |
6 |
>ym_close(A1) |
Release resources |