ym_env()

Read(56) Label: start python, yimming,

Description:

Initialize the environment by setting an environment variable.

Syntax:

ym_env()

Note:

You need to first configure certain parameters, such as sAppHome, sLicenseFile and sPythonHome, in userconfig.xml file under YimmingCli external library’s directory before environment initialization. For more information, see Section 2.18 in External Libray Guide.

When the function is executed, a store directory with four subdirectories under it will be generated. By default:    

[sAppHome]/store/data_md  Contains data files for model building

  [sAppHome]/store/data_pd  Contains data files for prediction

  [sAppHome]/store/predict  Contains model files

  [sAppHome]/store/result  Contains would-be prediction result files

Return value:

An env object

Example:

 

A

 

1

=ym_env()

Initialize the environment to start Python service

2

>ym_close(A1)

Close Python service to reduce source usage