ym2_close()

Read(489) Label: release resources,

Description:

Release resources.

Syntax:

ym2_close(preObj)

Note:

External library function (See YModel User Reference).

 

The function closes the YModel service to release resources.

 

When parameter preObj is present, clear the specified prediction result data and closes YModel service.

Parameter:

preObj

Prediction result object.

Example:

 

A

 

1

=ym2_env("F:/ymodel")

Initialize environment and start Python service.

2

=ym2_pcfload("F:/tmp/train.pcf")

Return a pcf object.

3

=ym2_predict(A2,"F:/tmp/train.csv")

Perform prediction using a .csv file.

4

>ym2_close(A3)

Clear prediction data to release resources.