Package org.deidentifier.arx
Klasse ARXClassificationConfiguration<T extends ARXClassificationConfiguration<?>>
java.lang.Object
org.deidentifier.arx.ARXClassificationConfiguration<T>
- Alle implementierten Schnittstellen:
Serializable,Cloneable
- Bekannte direkte Unterklassen:
ClassificationConfigurationLogisticRegression,ClassificationConfigurationNaiveBayes,ClassificationConfigurationRandomForest
public abstract class ARXClassificationConfiguration<T extends ARXClassificationConfiguration<?>>
extends Object
implements Serializable, Cloneable
An base class for configuration classes for classification experiments
- Siehe auch:
-
Feldübersicht
FelderModifizierer und TypFeldBeschreibungstatic final booleanDefault valuestatic final intDefault valuestatic final intDefault valuestatic final intDefault value -
Konstruktorübersicht
KonstruktorenModifiziererKonstruktorBeschreibungCreates a new instance with default settingsprotectedARXClassificationConfiguration(boolean deterministic, int maxRecords, int numberOfFolds, long seed, int vectorLength) Clone constructor -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungabstract ARXClassificationConfiguration<T> clone()Creates a new instance for logistic regression classifiersCreates a new instance for naive bayes classifiersCreates a new instance for random forest classifiersintintlonggetSeed()intbooleanReturns whether the process should be deterministicbooleanIs this configuration modifiedvoidparse(ARXClassificationConfiguration<?> config) Parses another configurationsetDeterministic(boolean deterministic) Sets whether the process should be deterministicsetMaxRecords(int maxRecords) voidSets modifiedsetNumFolds(int numberOfFolds) setSeed(int seed) Seed for randomization.voidSet unmodifiedsetVectorLength(int vectorLength)
-
Felddetails
-
DEFAULT_DETERMINISTIC
public static final boolean DEFAULT_DETERMINISTICDefault value- Siehe auch:
-
DEFAULT_MAX_RECORDS
public static final int DEFAULT_MAX_RECORDSDefault value- Siehe auch:
-
DEFAULT_NUMBER_OF_FOLDS
public static final int DEFAULT_NUMBER_OF_FOLDSDefault value- Siehe auch:
-
DEFAULT_VECTOR_LENGTH
public static final int DEFAULT_VECTOR_LENGTHDefault value- Siehe auch:
-
-
Konstruktordetails
-
ARXClassificationConfiguration
public ARXClassificationConfiguration()Creates a new instance with default settings -
ARXClassificationConfiguration
protected ARXClassificationConfiguration(boolean deterministic, int maxRecords, int numberOfFolds, long seed, int vectorLength) Clone constructor- Parameter:
deterministic-maxRecords-numberOfFolds-seed-vectorLength-
-
-
Methodendetails
-
createLogisticRegression
Creates a new instance for logistic regression classifiers- Gibt zurück:
-
createNaiveBayes
Creates a new instance for naive bayes classifiers- Gibt zurück:
-
createRandomForest
Creates a new instance for random forest classifiers- Gibt zurück:
-
clone
-
getMaxRecords
public int getMaxRecords()- Gibt zurück:
- the maxRecords to consider
-
getNumFolds
public int getNumFolds()- Gibt zurück:
- the numberOfFolds
-
getSeed
public long getSeed()- Gibt zurück:
- the seed
-
getVectorLength
public int getVectorLength()- Gibt zurück:
- the vectorLength
-
isDeterministic
public boolean isDeterministic()Returns whether the process should be deterministic- Gibt zurück:
-
isModified
public boolean isModified()Is this configuration modified- Gibt zurück:
-
parse
Parses another configuration- Parameter:
config-
-
setDeterministic
Sets whether the process should be deterministic- Parameter:
deterministic-- Gibt zurück:
-
setMaxRecords
- Parameter:
maxRecords- the maxRecords to set
-
setModified
public void setModified()Sets modified -
setNumFolds
- Parameter:
numberOfFolds- the numberOfFolds to set
-
setSeed
Seed for randomization. Set to Integer.MAX_VALUE for randomization.- Parameter:
seed- the seed to set
-
setUnmodified
public void setUnmodified()Set unmodified -
setVectorLength
- Parameter:
vectorLength- the vectorLength to set
-