ym2_pcfsave()

Read(189) Label: model, pcf file,

Description:

Save a pcf file object to a pcf file.

Syntax:

ym2_pcfsave(pcfObj, pcfFile)

Note:

External library function (See YModel User Reference).

 

The function saves a pcf file object to a pcf file.

Parameter:

pcfObj

pcf file object

pcfFile

pcf file name

Return value:

Boolean value

Example:

 

A

 

1

=ym2_env("F:/ymodel")

 

2

=ym2_mcfload("F:/ymodel/documents/csv/train.mcf")

Read an mcf file as an mcf object.

3

=ym2_model(A2,"Embarked")

Use A2’s mcf file object to build models, set the target variable as Embarked and return a pcf file object.

4

=ym2_pcfsave(A3,"F:/ymodel/data/train1.pcf")

Save the pcf object to a pcf file in the specified location.

5

>ym2_close()