use of org.kie.pmml.commons.model.expressions.KiePMMLLinearNorm in project drools by kiegroup.
the class KiePMMLNormContinuousInstanceFactory method getKiePMMLNormContinuous.
static KiePMMLNormContinuous getKiePMMLNormContinuous(final NormContinuous normContinuous) {
final List<KiePMMLLinearNorm> linearNorms = normContinuous.hasLinearNorms() ? getKiePMMLLinearNorms(normContinuous.getLinearNorms()) : Collections.emptyList();
final OUTLIER_TREATMENT_METHOD outlierTreatmentMethod = normContinuous.getOutliers() != null ? OUTLIER_TREATMENT_METHOD.byName(normContinuous.getOutliers().value()) : null;
return new KiePMMLNormContinuous(normContinuous.getField().getValue(), getKiePMMLExtensions(normContinuous.getExtensions()), linearNorms, outlierTreatmentMethod, normContinuous.getMapMissingTo());
}
use of org.kie.pmml.commons.model.expressions.KiePMMLLinearNorm in project drools by kiegroup.
the class KiePMMLLinearNormInstanceFactoryTest method getKiePMMLLinearNorm.
@Test
public void getKiePMMLLinearNorm() {
final LinearNorm toConvert = getRandomLinearNorm();
final KiePMMLLinearNorm retrieved = KiePMMLLinearNormInstanceFactory.getKiePMMLLinearNorm(toConvert);
commonVerifyKiePMMLLinearNorm(retrieved, toConvert);
}
Aggregations