ym_pre_performance()

Description:

Get model performance information according to scoring result.

Syntax:

ym_pre_performance(ps)

Note:

The function gets model performance information according to scoring result, including GINI index, AUC and KS.

Parameters:

ps

The scoring result object

Return value:

Table sequence

Example:

 

A

 

1

=ym_env()

Start Python service

2

=file("train.csv")

 

3

=ym_model(A1,A2)

Load data files for model building

4

=ym_target(A3, "Survived")

Set target variable

5

=ym_setparam(A3,"modelFieldNames":["PassengerId","Survived","Pclass","Name","Sex","Age","SibSp"])

Set variable parameters for model building

6

=ym_build_model(A3)

Execute model building and return model object

7

=ym_predict(A6,"train_1.csv")

Score data in train_1.csv using the model object and return scoring result object

8

=ym_pre_performance(A7)

Get model performance information according to A7’s scoring result

9

>ym_close(A1)

Close Python service

 

 

A

 

1

=ym_env()

Start Python service

2

=ym_load_pcf("model1.pcf")

Generate a model object based on model file model1.pcf

3

=ym_predict(A2,"train_2.csv")

Score data in train_2.csv using the model object and return scoring result object

4

=ym_pre_performance(A3)

Get model performance information according to A3’s scoring result and return a table sequence

5

>ym_close(A1)

Close Python service