All Downloads are FREE. Search and download functionalities are using the official Maven repository.

mml-models-regression-model.8.34.0.Final.source-code.KiePMMLRegressionModelTemplate.tmpl Maven / Gradle / Ivy

There is a newer version: 10.0.0
Show newest version
package org.kie.pmml.models.regression.runtime;

import java.util.Arrays;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.stream.Collectors;
import java.util.stream.Stream;

import org.kie.pmml.api.models.*;
import org.kie.pmml.commons.model.*;
import org.kie.pmml.commons.model.expressions.*;
import org.kie.pmml.commons.transformations.*;
import org.kie.pmml.models.regression.model.KiePMMLRegressionModel;

public class KiePMMLRegressionModelTemplate {

    public static KiePMMLRegressionModel getModel() {
        KiePMMLRegressionModel toReturn = KiePMMLRegressionModel.builder(fileName, name, miningFunction)
                                .withAbstractKiePMMLTable(regressionTable)
                                .withTargetField(targetField)
                                .withMiningFields(getCreatedMiningFields())
                                .withOutputFields(getCreatedOutputFields())
                                .withKiePMMLMiningFields(getCreatedKiePMMLMiningFields())
                                .withKiePMMLOutputFields(getCreatedKiePMMLOutputFields())
                                .withKiePMMLTargets(getCreatedKiePMMLTargets() )
                                .withKiePMMLTransformationDictionary(getCreatedTransformationDictionary())
                                .withKiePMMLLocalTransformations(getCreatedLocalTransformations())
                                .build();
        return toReturn;
    }

    private static List getCreatedMiningFields() {
        List toReturn = new ArrayList();
        return toReturn;
    }

    private static List getCreatedOutputFields() {
        List toReturn = new ArrayList();
        return toReturn;
    }

    private static List getCreatedKiePMMLMiningFields() {
        List toReturn = new ArrayList();
        return toReturn;
    }

    private static List getCreatedKiePMMLOutputFields() {
        List toReturn = new ArrayList();
        return toReturn;
    }

    private static List getCreatedKiePMMLTargets() {
        List toReturn = new ArrayList();
        return toReturn;
    }

    private static KiePMMLTransformationDictionary getCreatedTransformationDictionary() {
        return null;
    }

    private static KiePMMLLocalTransformations getCreatedLocalTransformations() {
        return null;
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy