class BinarizationTrainer implements PreprocessingTrainer<K, V> {

    @Override public BinarizationPreprocessor<K, V> fit(
        LearningEnvironmentBuilder envBuilder,
        DatasetBuilder<K, V> datasetBuilder,
        Preprocessor<K, V> basePreprocessor) {
        return new BinarizationPreprocessor<>(threshold, basePreprocessor);
    }

}