use of org.kie.kogito.explainability.local.counterfactual.entities.fixed.FixedCategoricalEntity in project kogito-apps by kiegroup.
the class CounterfactualEntityFactoryTest method testFixedCategoricalEntity.
@Test
void testFixedCategoricalEntity() {
final String value = "foo";
final Feature feature = FeatureFactory.newCategoricalFeature("categorical-feature", value);
final CounterfactualEntity counterfactualEntity = CounterfactualEntityFactory.from(feature);
assertTrue(counterfactualEntity instanceof FixedCategoricalEntity);
assertEquals(value, counterfactualEntity.asFeature().getValue().toString());
}
Aggregations