Copy constructor @param toClone the SFS to copy
(SFS toClone)
| 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 |
nothing calls this directly
no test coverage detected