Package org.deidentifier.arx.aggregates
Klasse ClassificationConfigurationRandomForest
java.lang.Object
org.deidentifier.arx.ARXClassificationConfiguration<ClassificationConfigurationRandomForest>
org.deidentifier.arx.aggregates.ClassificationConfigurationRandomForest
- Alle implementierten Schnittstellen:
Serializable,Cloneable
public class ClassificationConfigurationRandomForest
extends ARXClassificationConfiguration<ClassificationConfigurationRandomForest>
implements Serializable, Cloneable
Configuration for Random Forest classifiers
- Siehe auch:
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypKlasseBeschreibungstatic enumSplit rule for the decision tree -
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final intDefault valuestatic final intDefault valuestatic final intDefault valuestatic final intDefault value = 0: sqrt(#features) seems to provide good resultsstatic final ClassificationConfigurationRandomForest.SplitRuleSplit rulestatic final double1.0 = sampling with replacement; Ungültige Eingabe: "<"1.0 = sampling without replacementVon Klasse geerbte Felder org.deidentifier.arx.ARXClassificationConfiguration
DEFAULT_DETERMINISTIC, DEFAULT_MAX_RECORDS, DEFAULT_NUMBER_OF_FOLDS, DEFAULT_VECTOR_LENGTH -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungclone()create()Returns a new instanceintintintintdoublevoidparse(ARXClassificationConfiguration<?> config) Parses another configurationsetMaximumNumberOfLeafNodes(int maximumNumberOfLeafNodes) setMinimumSizeOfLeafNodes(int minimumSizeOfLeafNodes) setNumberOfTrees(int numberOfTrees) setNumberOfVariablesToSplit(int numberOfVariablesToSplit) setSubsample(double subsample) Von Klasse geerbte Methoden org.deidentifier.arx.ARXClassificationConfiguration
createLogisticRegression, createNaiveBayes, createRandomForest, getMaxRecords, getNumFolds, getSeed, getVectorLength, isDeterministic, isModified, setDeterministic, setMaxRecords, setModified, setNumFolds, setSeed, setUnmodified, setVectorLength
-
Felddetails
-
DEFAULT_NUMBER_OF_TREES
public static final int DEFAULT_NUMBER_OF_TREESDefault value- Siehe auch:
-
DEFAULT_NUMBER_OF_VARIABLES_TO_SPLIT
public static final int DEFAULT_NUMBER_OF_VARIABLES_TO_SPLITDefault value = 0: sqrt(#features) seems to provide good results- Siehe auch:
-
DEFAULT_MINIMUM_SIZE_OF_LEAF_NODES
public static final int DEFAULT_MINIMUM_SIZE_OF_LEAF_NODESDefault value- Siehe auch:
-
DEFAULT_MAXMIMUM_NUMBER_OF_LEAF_NODES
public static final int DEFAULT_MAXMIMUM_NUMBER_OF_LEAF_NODESDefault value- Siehe auch:
-
DEFAULT_SUBSAMPLE
public static final double DEFAULT_SUBSAMPLE1.0 = sampling with replacement; Ungültige Eingabe: "<"1.0 = sampling without replacement- Siehe auch:
-
DEFAULT_SPLIT_RULE
Split rule
-
-
Methodendetails
-
create
Returns a new instance- Gibt zurück:
-
clone
- Angegeben von:
clonein KlasseARXClassificationConfiguration<ClassificationConfigurationRandomForest>
-
getMaximumNumberOfLeafNodes
public int getMaximumNumberOfLeafNodes()- Gibt zurück:
- the maximumNumberOfLeafNodes
-
getMinimumSizeOfLeafNodes
public int getMinimumSizeOfLeafNodes()- Gibt zurück:
- the minimumSizeOfLeafNodes
-
getNumberOfTrees
public int getNumberOfTrees()- Gibt zurück:
- the numberOfTrees
-
getNumberOfVariablesToSplit
public int getNumberOfVariablesToSplit()- Gibt zurück:
- the numberOfVariablesToSplit
-
getSplitRule
- Gibt zurück:
- the splitRule
-
getSubsample
public double getSubsample()- Gibt zurück:
- the subsample
-
parse
Beschreibung aus Klasse kopiert:ARXClassificationConfigurationParses another configuration- Setzt außer Kraft:
parsein KlasseARXClassificationConfiguration<ClassificationConfigurationRandomForest>- Parameter:
config-
-
setMaximumNumberOfLeafNodes
public ClassificationConfigurationRandomForest setMaximumNumberOfLeafNodes(int maximumNumberOfLeafNodes) - Parameter:
maximumNumberOfLeafNodes- the maximumNumberOfLeafNodes to set
-
setMinimumSizeOfLeafNodes
public ClassificationConfigurationRandomForest setMinimumSizeOfLeafNodes(int minimumSizeOfLeafNodes) - Parameter:
minimumSizeOfLeafNodes- the minimumSizeOfLeafNodes to set
-
setNumberOfTrees
- Parameter:
numberOfTrees- the numberOfTrees to set
-
setNumberOfVariablesToSplit
public ClassificationConfigurationRandomForest setNumberOfVariablesToSplit(int numberOfVariablesToSplit) - Parameter:
numberOfVariablesToSplit- the numberOfVariablesToSplit to set
-
setSplitRule
public ClassificationConfigurationRandomForest setSplitRule(ClassificationConfigurationRandomForest.SplitRule splitRule) - Parameter:
splitRule- the splitRule to set
-
setSubsample
- Parameter:
subsample- the subsample to set
-