ym_result()

Read(64) Label: scoring result object,

Description:

Get data from the scoring result object.

Syntax:

ym_result(ps)

Note:

The function gets data from scoring result object and returns it as a table sequence.

Parameters:

ps

The scoring result object

Return value:

A table sequence

Example:

 

A

 

1

=ym_env()

Start Python service

2

=file("train.csv")

 

3

=ym_model(A1,A2)

Load data for model building

4

=ym_target(A3, "Survived")

Set a target variable

5

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

Set model parameters

6

=ym_build_model(A3)

Perform model building and retun a model object

7

=ym_predict(A6,"train_1.csv")

Score data in train_1.csv according to A6’s model object and return the scoring result object

8

=ym_result(A7)

Get data from A7’s scoring result object

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 mode file model1.pcf

3

=ym_predict(A2,"train_2.csv")

Score data in train_2.csv according to A2’s model object and return the scoring result object

4

=ym_result(A3)

Get data from A3’s scoring result object

5

>ym_close(A1)

Close Python service