ym2_model()

Read(182) Label: mcf file, pcf object,

Description:

Use a mcf file to build models.

Syntax:

ym2_model(mcfFile, target)

Note:

External library function (See YModel User Reference).

 

The function uses a mcf file to build models and returns a pcf file object.

Parameter:

mcfFile

mcf file object

target

The target variable; use the one set up in the mcf file by default

Return value:

pcf file object

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 and set up the targe variable as Embarked.

4

=ym2_model(A2)

Use the target variable set up in A2 to build models.

5

>ym2_close()