MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / SFS

Method SFS

JSAT/src/jsat/datatransform/featureselection/SFS.java:38–56  ·  view source on GitHub ↗

Copy constructor @param toClone the SFS to copy

(SFS toClone)

Source from the content-addressed store, hash-verified

36 * @param toClone the SFS to copy
37 */
38 private SFS(SFS toClone)
39 {
40 if(toClone.catSelected != null)
41 {
42 this.finalTransform = toClone.finalTransform.clone();
43 this.catSelected = new IntSet(toClone.catSelected);
44 this.numSelected = new IntSet(toClone.numSelected);
45 }
46
47 this.maxIncrease = toClone.maxIncrease;
48 this.folds = toClone.folds;
49 this.minFeatures = toClone.minFeatures;
50 this.maxFeatures = toClone.maxFeatures;
51 this.evaluator = toClone.evaluator;
52 if (toClone.classifier != null)
53 this.classifier = toClone.classifier.clone();
54 if (toClone.regressor != null)
55 this.regressor = toClone.regressor.clone();
56 }
57
58 /**
59 * Performs SFS feature selection for a classification problem

Callers

nothing calls this directly

Calls 7

searchMethod · 0.95
setMinFeaturesMethod · 0.95
setMaxFeaturesMethod · 0.95
setFoldsMethod · 0.95
setMaxIncreaseMethod · 0.95
setEvaluatorMethod · 0.95
cloneMethod · 0.65

Tested by

no test coverage detected