use of org.kie.kogito.explainability.local.counterfactual.entities.fixed.FixedVectorEntity in project kogito-apps by kiegroup.
the class CounterfactualEntityFactoryTest method testVectorFactory.
@Test
void testVectorFactory() {
final double[] value = new double[10];
Arrays.fill(value, 1d);
final Feature feature = FeatureFactory.newVectorFeature("uri-feature", value);
CounterfactualEntity counterfactualEntity = CounterfactualEntityFactory.from(feature);
assertTrue(counterfactualEntity instanceof FixedVectorEntity);
assertEquals(Type.VECTOR, counterfactualEntity.asFeature().getType());
}
Aggregations