public class ForestTrainOptions extends CASGeneratedActionOptions
Modifier and Type | Class and Description |
---|---|
static class |
ForestTrainOptions.CRIT |
static class |
ForestTrainOptions.MISSING |
static class |
ForestTrainOptions.VOTE |
CASActionOptions.EnumValue, CASActionOptions.FORMAT
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_NAME |
static java.lang.String |
ACTION_SET_NAME |
static java.lang.String |
KEY_ALPHA |
static java.lang.String |
KEY_ATTRIBUTES |
static java.lang.String |
KEY_BINORDER |
static java.lang.String |
KEY_BOOTSTRAP |
static java.lang.String |
KEY_CASOUT |
static java.lang.String |
KEY_CFLEV |
static java.lang.String |
KEY_CODE |
static java.lang.String |
KEY_CRIT |
static java.lang.String |
KEY_EVENT |
static java.lang.String |
KEY_EVENTFREQ |
static java.lang.String |
KEY_GREEDY |
static java.lang.String |
KEY_INCLUDEMISSING |
static java.lang.String |
KEY_INPUTS |
static java.lang.String |
KEY_LEAFSIZE |
static java.lang.String |
KEY_LOH |
static java.lang.String |
KEY_M |
static java.lang.String |
KEY_MAXBRANCH |
static java.lang.String |
KEY_MAXLEVEL |
static java.lang.String |
KEY_MERGEBIN |
static java.lang.String |
KEY_MINUSEINSEARCH |
static java.lang.String |
KEY_MISSING |
static java.lang.String |
KEY_MODELID |
static java.lang.String |
KEY_NBINS |
static java.lang.String |
KEY_NBINSTARGET |
static java.lang.String |
KEY_NOMINALS |
static java.lang.String |
KEY_NTREE |
static java.lang.String |
KEY_OOB |
static java.lang.String |
KEY_PRUNE |
static java.lang.String |
KEY_RBAIMP |
static java.lang.String |
KEY_SEED |
static java.lang.String |
KEY_TABLE |
static java.lang.String |
KEY_TARGET |
static java.lang.String |
KEY_VARIMP |
static java.lang.String |
KEY_VOTE |
static java.lang.String |
KEY_WEIGHT |
FLAGS_EXPAND_ARRAYS, FLAGS_IGNORE_DISPOSITION_ERROR, FLAGS_RETURN_RESULTS_ON_EXCEPTION, FLAGS_SKIP_ACTION_EVENTS, FLAGS_SKIP_RESULTS, HIDDEN_PASSWORD, JSON_NULL, LUA_NIL, PARAMETER_FLAG_ISPASSWORD, PARAMETER_FLAG_ISPATH, PARAMETER_FLAG_ISTABLENAME, PARAMETER_FLAG_ISVAR, PARAMETER_FLAG_REQUIRED, PYTHON_NULL, SERIALIZED_PREFIX
Constructor and Description |
---|
ForestTrainOptions() |
ForestTrainOptions(CASActionOptions options) |
Modifier and Type | Method and Description |
---|---|
java.lang.Double |
getAlpha() |
Casinvardesc[] |
getAttr() |
Casinvardesc[] |
getAttribute() |
Casinvardesc[] |
getAttributes() |
Casinvardesc[] |
getAttrs() |
java.lang.Boolean |
getBinOrder() |
java.lang.Double |
getBootstrap() |
Casouttable |
getCasOut() |
java.lang.Double |
getCfLev() |
Codegen |
getCode() |
java.lang.Object |
getCrit() |
java.lang.String[] |
getEvent() |
java.lang.Double[] |
getEventFreq() |
java.lang.Boolean |
getGreedy() |
java.lang.Boolean |
getIncludeMissing() |
Casinvardesc[] |
getInput() |
Casinvardesc[] |
getInputs() |
java.lang.Integer |
getLeafSize() |
java.lang.Integer |
getLoh() |
java.lang.Integer |
getM() |
java.lang.Integer |
getMaxBranch() |
java.lang.Integer |
getMaxLevel() |
java.lang.Boolean |
getMergeBin() |
java.lang.Integer |
getMinUseInSearch() |
ForestTrainOptions.MISSING |
getMissing() |
java.lang.String |
getModelId() |
java.lang.Integer |
getNBins() |
java.lang.Integer |
getNBinsTarget() |
Casinvardesc[] |
getNominal() |
Casinvardesc[] |
getNominals() |
java.lang.Integer |
getNTree() |
java.lang.Boolean |
getOob() |
java.lang.Boolean |
getPrune() |
java.lang.Boolean |
getRbaImp() |
java.lang.Double |
getSeed() |
java.lang.Object |
getServerDefaultValue(java.lang.String key)
Gets the server default value, if known.
|
Castable |
getTable() |
java.lang.String |
getTarget() |
Casinvardesc[] |
getVarAttrs() |
java.lang.Boolean |
getVarImp() |
ForestTrainOptions.VOTE |
getVote() |
java.lang.String |
getWeight() |
ForestTrainOptions |
setAlpha(java.lang.Double value)
Sets the value of parameter 'alpha': specifies the value to use for minimal cost-complexity pruning for regression trees.
|
ForestTrainOptions |
setAttr(Casinvardesc[] value) |
ForestTrainOptions |
setAttribute(Casinvardesc[] value) |
ForestTrainOptions |
setAttributes(Casinvardesc[] value)
Sets the value of parameter 'attributes': specifies temporary attributes, such as a format, to apply to input variables.
|
ForestTrainOptions |
setAttrs(Casinvardesc[] value) |
ForestTrainOptions |
setBinOrder(java.lang.Boolean value)
Sets the value of parameter 'binOrder': by default, the bin order is preserved for numeric variables.
|
ForestTrainOptions |
setBootstrap(java.lang.Double value)
Sets the value of parameter 'bootstrap': specifies the fraction of the data for the bootstrap sample.
|
ForestTrainOptions |
setCasOut(Casouttable value)
Sets the value of parameter 'casOut': specifies the table to store the decision tree model in.
|
ForestTrainOptions |
setCfLev(java.lang.Double value)
Sets the value of parameter 'cfLev': specifies the aggressiveness of tree pruning according to the C4.5 algorithm.
|
ForestTrainOptions |
setCode(Codegen value)
Sets the value of parameter 'code': requests that the action produce SAS score code.
|
ForestTrainOptions |
setCrit(ForestTrainOptions.CRIT value)
Sets the value of parameter 'crit' for alternative 1.
|
ForestTrainOptions |
setCrit(java.lang.Long value)
Sets the value of parameter 'crit' for alternative 2.
|
ForestTrainOptions |
setEvent(java.lang.String[] value)
Sets the value of parameter 'event': specifies the event values of the target variable.
|
ForestTrainOptions |
setEventFreq(java.lang.Double[] value)
Sets the value of parameter 'eventFreq': specifies the frequency for each corresponding event in the event parameter.
|
ForestTrainOptions |
setGreedy(java.lang.Boolean value)
Sets the value of parameter 'greedy': by default, a greedy search or exhaustive search is used to determine the best split for each variable of each tree node.
|
ForestTrainOptions |
setIncludeMissing(java.lang.Boolean value)
Sets the value of parameter 'includeMissing': by default, observations with missing values are included.
|
ForestTrainOptions |
setInput(Casinvardesc[] value) |
ForestTrainOptions |
setInputs(Casinvardesc[] value)
Sets the value of parameter 'inputs': specifies the input variables to use in the analysis.
|
ForestTrainOptions |
setLeafSize(java.lang.Integer value)
Sets the value of parameter 'leafSize': specifies the minimum number of observations on each node.
|
ForestTrainOptions |
setLoh(java.lang.Integer value)
Sets the value of parameter 'loh': specifies number of variables to split with using the LOH method.
|
ForestTrainOptions |
setM(java.lang.Integer value)
Sets the value of parameter 'm': specifies the number of input variables to consider for splitting on a node.
|
ForestTrainOptions |
setMaxBranch(java.lang.Integer value)
Sets the value of parameter 'maxBranch': specifies the maximum number of children (branches) allowed for each level of the tree.
|
ForestTrainOptions |
setMaxLevel(java.lang.Integer value)
Sets the value of parameter 'maxLevel': specifies the maximum number of the tree level.
|
ForestTrainOptions |
setMergeBin(java.lang.Boolean value)
Sets the value of parameter 'mergeBin': by default, when the largest value in one bin matches the lowest value in a neighboring bin, the values are merged into the lower bin.
|
ForestTrainOptions |
setMinUseInSearch(java.lang.Integer value)
Sets the value of parameter 'minUseInSearch': specifies a threshold for utilizing missing values in the split search when the missing parameter is set to USEINSEARCH.
|
ForestTrainOptions |
setMissing(ForestTrainOptions.MISSING value)
Sets the value of parameter 'missing': specifies the missing policy to handle missing values.
|
ForestTrainOptions |
setModelId(java.lang.String value)
Sets the value of parameter 'modelId': specifies the model ID variable name to use when generating SAS score code.
|
ForestTrainOptions |
setNBins(java.lang.Integer value)
Sets the value of parameter 'nBins': specifies the number of bins to use for numeric variables in the calculation of the decision tree.
|
ForestTrainOptions |
setNBinsTarget(java.lang.Integer value)
Sets the value of parameter 'nBinsTarget': specifies the number of bins to use for a numerical target variable.
|
ForestTrainOptions |
setNominal(Casinvardesc[] value) |
ForestTrainOptions |
setNominals(Casinvardesc[] value)
Sets the value of parameter 'nominals': specifies the nominal input variables to use in the analysis.
|
ForestTrainOptions |
setNTree(java.lang.Integer value)
Sets the value of parameter 'nTree': specifies the number of trees to create.
|
ForestTrainOptions |
setOob(java.lang.Boolean value)
Sets the value of parameter 'oob': when set to True, specifies that the out-of-bag error is computed when building a forest.
|
ForestTrainOptions |
setPrune(java.lang.Boolean value)
Sets the value of parameter 'prune': specify true to use a C4.5 pruning method for classification trees or minimal cost-complexity pruning for regression trees.
|
ForestTrainOptions |
setRbaImp(java.lang.Boolean value)
Sets the value of parameter 'rbaImp': calculate variable importance using the random branch assignments (RBA) method.
|
ForestTrainOptions |
setSeed(java.lang.Double value)
Sets the value of parameter 'seed': specifies the seed for the random number generator.
|
ForestTrainOptions |
setTable(Castable value)
Sets the value of parameter 'table': specifies the settings for an input table.
|
ForestTrainOptions |
setTarget(java.lang.String value)
Sets the value of parameter 'target': specifies the target or response variable for training the decision tree.
|
ForestTrainOptions |
setVarAttrs(Casinvardesc[] value) |
ForestTrainOptions |
setVarImp(java.lang.Boolean value)
Sets the value of parameter 'varImp': specifies whether the variable importance information is generated.
|
ForestTrainOptions |
setVote(ForestTrainOptions.VOTE value)
Sets the value of parameter 'vote': specifies the vote strategy for classification.
|
ForestTrainOptions |
setWeight(java.lang.String value)
Sets the value of parameter 'weight': specifies a numeric variable that contains the weight of each observation.
|
addActionFlags, addParameterFlag, appendValue, checkForPasswords, clear, containsKey, containsValue, convertToEnumArray, copy, deserialize, entrySet, equals, findOptionsClass, findSetter, get, getActionFlags, getActionName, getActionResponseEventListener, getActionResultEventListener, getActionSetName, getCASClient, getClassName, getDebugOptions, getDispositionEventListener, getFullyQualifiedActionName, getLogEventListener, getLogMessage, getMessageOutputStream, getMessageTagHandler, getParameter, getParameterAsBoolean, getParameterAsByteArray, getParameterAsDouble, getParameterAsDoubleArray, getParameterAsInteger, getParameterAsIntegerArray, getParameterAsLong, getParameterAsLongArray, getParameterAsString, getParameterAsStringArray, getParameterFlags, getParameterIgnoreCase, getParameterIgnoreCase, getParameterKeys, getPerformanceEventListener, getPropertyKey, getSessionID, getUserProperty, getUserPropertyKeys, hashCode, invoke, isEmpty, isFlagSet, isMap, isParameterFlagSet, isPassword, isPath, isRequired, isTable, isVariable, keySet, put, putAll, putAllDeep, putDeep, putDeep, quoteIfNotNull, remove, removeParameter, set, setActionFlags, setActionName, setActionResponseEventListener, setActionResultEventListener, setActionSetName, setCASClient, setDebugOptions, setDispositionEventListener, setFullyQualifiedActionName, setLogEventListener, setLogMessage, setMessageOutputStream, setMessageTagHandler, setParameter, setPerformanceEventListener, setPropertyKey, setSessionID, setUserProperty, size, toCASLString, toLuaString, toLuaString, toOptionsWithGeneratedClasses, toSerialized, toString, toString, toString, upcaseFirstChar, values
public static final java.lang.String ACTION_SET_NAME
public static final java.lang.String ACTION_NAME
public static final java.lang.String KEY_TABLE
public static final java.lang.String KEY_TARGET
public static final java.lang.String KEY_INPUTS
public static final java.lang.String KEY_NOMINALS
public static final java.lang.String KEY_ATTRIBUTES
public static final java.lang.String KEY_WEIGHT
public static final java.lang.String KEY_NBINS
public static final java.lang.String KEY_NBINSTARGET
public static final java.lang.String KEY_MAXLEVEL
public static final java.lang.String KEY_MAXBRANCH
public static final java.lang.String KEY_LEAFSIZE
public static final java.lang.String KEY_CRIT
public static final java.lang.String KEY_MISSING
public static final java.lang.String KEY_VOTE
public static final java.lang.String KEY_MINUSEINSEARCH
public static final java.lang.String KEY_CFLEV
public static final java.lang.String KEY_ALPHA
public static final java.lang.String KEY_PRUNE
public static final java.lang.String KEY_GREEDY
public static final java.lang.String KEY_BINORDER
public static final java.lang.String KEY_LOH
public static final java.lang.String KEY_VARIMP
public static final java.lang.String KEY_RBAIMP
public static final java.lang.String KEY_CODE
public static final java.lang.String KEY_MODELID
public static final java.lang.String KEY_CASOUT
public static final java.lang.String KEY_MERGEBIN
public static final java.lang.String KEY_INCLUDEMISSING
public static final java.lang.String KEY_NTREE
public static final java.lang.String KEY_SEED
public static final java.lang.String KEY_M
public static final java.lang.String KEY_BOOTSTRAP
public static final java.lang.String KEY_OOB
public static final java.lang.String KEY_EVENT
public static final java.lang.String KEY_EVENTFREQ
public ForestTrainOptions()
public ForestTrainOptions(CASActionOptions options)
public java.lang.Object getServerDefaultValue(java.lang.String key)
CASActionOptions
getServerDefaultValue
in class CASActionOptions
key
- The parameter keypublic Castable getTable()
public ForestTrainOptions setTable(Castable value)
value
- The valuepublic java.lang.String getTarget()
public ForestTrainOptions setTarget(java.lang.String value)
value
- The valuepublic Casinvardesc[] getInputs()
public Casinvardesc[] getInput()
public ForestTrainOptions setInputs(Casinvardesc[] value)
value
- The valuepublic ForestTrainOptions setInput(Casinvardesc[] value)
public Casinvardesc[] getNominals()
public Casinvardesc[] getNominal()
public ForestTrainOptions setNominals(Casinvardesc[] value)
value
- The valuepublic ForestTrainOptions setNominal(Casinvardesc[] value)
public Casinvardesc[] getAttributes()
public Casinvardesc[] getAttribute()
public Casinvardesc[] getAttrs()
public Casinvardesc[] getAttr()
public Casinvardesc[] getVarAttrs()
public ForestTrainOptions setAttributes(Casinvardesc[] value)
value
- The valuepublic ForestTrainOptions setAttribute(Casinvardesc[] value)
public ForestTrainOptions setAttrs(Casinvardesc[] value)
public ForestTrainOptions setAttr(Casinvardesc[] value)
public ForestTrainOptions setVarAttrs(Casinvardesc[] value)
public java.lang.String getWeight()
public ForestTrainOptions setWeight(java.lang.String value)
value
- The valuepublic java.lang.Integer getNBins()
public ForestTrainOptions setNBins(java.lang.Integer value)
value
- The valuepublic java.lang.Integer getNBinsTarget()
public ForestTrainOptions setNBinsTarget(java.lang.Integer value)
value
- The valuepublic java.lang.Integer getMaxLevel()
public ForestTrainOptions setMaxLevel(java.lang.Integer value)
value
- The valuepublic java.lang.Integer getMaxBranch()
public ForestTrainOptions setMaxBranch(java.lang.Integer value)
value
- The valuepublic java.lang.Integer getLeafSize()
public ForestTrainOptions setLeafSize(java.lang.Integer value)
value
- The valuepublic java.lang.Object getCrit()
public ForestTrainOptions setCrit(ForestTrainOptions.CRIT value)
value
- The valuepublic ForestTrainOptions setCrit(java.lang.Long value)
value
- The valuepublic ForestTrainOptions.MISSING getMissing()
public ForestTrainOptions setMissing(ForestTrainOptions.MISSING value)
value
- The valuepublic ForestTrainOptions.VOTE getVote()
public ForestTrainOptions setVote(ForestTrainOptions.VOTE value)
value
- The valuepublic java.lang.Integer getMinUseInSearch()
public ForestTrainOptions setMinUseInSearch(java.lang.Integer value)
value
- The valuepublic java.lang.Double getCfLev()
public ForestTrainOptions setCfLev(java.lang.Double value)
value
- The valuepublic java.lang.Double getAlpha()
public ForestTrainOptions setAlpha(java.lang.Double value)
value
- The valuepublic java.lang.Boolean getPrune()
public ForestTrainOptions setPrune(java.lang.Boolean value)
value
- The valuepublic java.lang.Boolean getGreedy()
public ForestTrainOptions setGreedy(java.lang.Boolean value)
value
- The valuepublic java.lang.Boolean getBinOrder()
public ForestTrainOptions setBinOrder(java.lang.Boolean value)
value
- The valuepublic java.lang.Integer getLoh()
public ForestTrainOptions setLoh(java.lang.Integer value)
value
- The valuepublic java.lang.Boolean getVarImp()
public ForestTrainOptions setVarImp(java.lang.Boolean value)
value
- The valuepublic java.lang.Boolean getRbaImp()
public ForestTrainOptions setRbaImp(java.lang.Boolean value)
value
- The valuepublic Codegen getCode()
public ForestTrainOptions setCode(Codegen value)
value
- The valuepublic java.lang.String getModelId()
public ForestTrainOptions setModelId(java.lang.String value)
value
- The valuepublic Casouttable getCasOut()
public ForestTrainOptions setCasOut(Casouttable value)
value
- The valuepublic java.lang.Boolean getMergeBin()
public ForestTrainOptions setMergeBin(java.lang.Boolean value)
value
- The valuepublic java.lang.Boolean getIncludeMissing()
public ForestTrainOptions setIncludeMissing(java.lang.Boolean value)
value
- The valuepublic java.lang.Integer getNTree()
public ForestTrainOptions setNTree(java.lang.Integer value)
value
- The valuepublic java.lang.Double getSeed()
public ForestTrainOptions setSeed(java.lang.Double value)
value
- The valuepublic java.lang.Integer getM()
public ForestTrainOptions setM(java.lang.Integer value)
value
- The valuepublic java.lang.Double getBootstrap()
public ForestTrainOptions setBootstrap(java.lang.Double value)
value
- The valuepublic java.lang.Boolean getOob()
public ForestTrainOptions setOob(java.lang.Boolean value)
value
- The valuepublic java.lang.String[] getEvent()
public ForestTrainOptions setEvent(java.lang.String[] value)
value
- The valuepublic java.lang.Double[] getEventFreq()
public ForestTrainOptions setEventFreq(java.lang.Double[] value)
value
- The value