Package qupath.opencv.ml
Class FeaturePreprocessor.Builder
java.lang.Object
qupath.opencv.ml.FeaturePreprocessor.Builder
- Enclosing class:
FeaturePreprocessor
Builder to create a custom
FeaturePreprocessor
.-
Method Summary
Modifier and TypeMethodDescriptionBuild aFeaturePreprocessor
.missingValue
(double missingValue) normalize
(Normalization normalization) Define normalization type.pca
(double retainedVariance, boolean pcaNormalize) Perform PCA to reduce features.
-
Method Details
-
normalize
Define normalization type.- Parameters:
normalization
-- Returns:
- this builder
-
missingValue
- Parameters:
missingValue
-- Returns:
- this builder
-
pca
Perform PCA to reduce features.- Parameters:
retainedVariance
- retained variance, used to determine how many features to keeppcaNormalize
- if true, normalize the projected features- Returns:
- this builder
-
build
Build aFeaturePreprocessor
. The training data is expected to contain samples as rows and features as columns.- Parameters:
trainingData
-applyToTraining
-- Returns:
-