reg
.
>act -h hostname -u username -w password -d databasename >select filename from nc_user_installed_files where name like '%sasscore_reg%';
name ------------------------- sasscore_reg.ds2 sasscore_reg_io.xml sasscore_reg_ufmt.xml
reg
.
proc sql noerrorstop; connect to aster (user=username password=password dsn=dsnname); select * from connection to aster (select filename, fileowner, uploadtime from nc_user_installed_files where name like 'sasscore_reg%'); disconnect from aster; quit;
score_outtab
that
is populated with a unique integer from 1 to n. n is
the number of rows in the table.
reg
.
drop table score_outtab; create table score_outtab( id integer ,"EM_CLASSIFICATION" varchar(256) ,"EM_EVENTPROBABILITY" float ,"EM_PROBABILITY" float ); insert into score_outtab( id ,"EM_CLASSIFICATION" ,"EM_EVENTPROBABILITY" ,"EM_PROBABILITY" ) select id, "EM_CLASSIFICATION", "EM_EVENTPROBABILITY", "EM_PROBABILITY" from sas_score(on score_intab model('reg'));
Column Name
|
Description
|
Specifications
|
---|---|---|
ModelName
|
contains the name of
the model
|
VARCHAR(128) CHARACTER
SET UNICODE CASESPECIFIC
|
ModelDS2
|
contains the sasscore_modelname.ds2
file
|
BLOB(209708800)
|
ModelFormats
|
contains the sasscore_modelname_ufmt.xml
file
|
BLOB(209708800)
|
ModelOwner
|
contains the name of
the user who published the model
|
VARCHAR(128) CHARACTER
SET UNICODE CASESPECIFIC
|
ModelUpdated
|
contains the date and
time that the model was published
|
TIMESTAMP(6)
|
specifies the input table that is used by the SAS_SCORE() function.
specifies the name of the model. The value of this argument is the same as the value of MODELNAME=name argument for the %INDAC_PUBLISH_MODEL macro.
specifies the name of the schema where the scoring model files are published.
Default | your default schema. To determine your default schema name, use the show search_path command from the Aster Client Tool (ACT). |
Restriction | This argument is valid only for Aster 4.6. For Aster 4.5, the scoring model files are published to the PUBLIC schema. |
Requirement | Any schema that is used must be in the search path. |
score_intab
and
the model name is reg.select id, em_classification, em_eventprobability, em_probability from sas_score (on score_intab model('reg') model_schema('mysch'));