com.blazebit.ai.decisiontree.impl.NoopDecisionTree Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of blaze-ai-utils Show documentation
Show all versions of blaze-ai-utils Show documentation
Artificial Intelligence Utilities.
package com.blazebit.ai.decisiontree.impl;
import com.blazebit.ai.decisiontree.DecisionTree;
import com.blazebit.ai.decisiontree.Item;
import java.util.HashSet;
import java.util.Set;
/**
* @author Christian Beikov
*/
public class NoopDecisionTree implements DecisionTree {
private final T value;
public NoopDecisionTree(T value) {
this.value = value;
}
@Override
public Set apply(final Item test) {
Set set = new HashSet();
set.add(value);
return set;
}
@Override
public T applySingle(final Item test) {
return value;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy