Tabnine Logo
ModelUtil.createPredictedField
Code IndexAdd Tabnine to your IDE (free)

How to use
createPredictedField
method
in
org.jpmml.converter.ModelUtil

Best Java code snippets using org.jpmml.converter.ModelUtil.createPredictedField (Showing top 6 results out of 315)

origin: jpmml/jpmml-sparkml

  @Override
  public List<OutputField> registerOutputFields(Label label, SparkMLEncoder encoder){
    T model = getTransformer();

    String predictionCol = model.getPredictionCol();

    OutputField predictedField = ModelUtil.createPredictedField(FieldName.create(predictionCol), DataType.STRING, OpType.CATEGORICAL);

    Feature feature = new StringFeature(encoder, predictedField);

    encoder.putOnlyFeature(predictionCol, feature);

    return Collections.singletonList(predictedField);
  }
}
origin: jpmml/jpmml-sparkml

  @Override
  public List<OutputField> registerOutputFields(Label label, SparkMLEncoder encoder){
    T model = getTransformer();

    String predictionCol = model.getPredictionCol();

    OutputField predictedField = ModelUtil.createPredictedField(FieldName.create(predictionCol), label.getDataType(), OpType.CONTINUOUS);

    encoder.putOnlyFeature(predictionCol, new ContinuousFeature(encoder, predictedField));

    return Collections.singletonList(predictedField);
  }
}
origin: jpmml/jpmml-sparkml

OutputField pmmlPredictedField = ModelUtil.createPredictedField(FieldName.create("pmml(" + predictionCol + ")"), categoricalLabel.getDataType(), OpType.CATEGORICAL);
origin: org.jpmml/jpmml-h2o

ContinuousLabel continuousLabel = (ContinuousLabel)label;
OutputField predictedField = ModelUtil.createPredictedField(FieldName.create("stack(" + i + ")"), DataType.DOUBLE, OpType.CONTINUOUS)
  .setFinalResult(false);
origin: jpmml/jpmml-sklearn

  predictField = ModelUtil.createPredictedField(name, label.getDataType(), OpType.CONTINUOUS)
    .setFinalResult(false);
} else
  predictField = ModelUtil.createPredictedField(name, label.getDataType(), OpType.CATEGORICAL)
    .setFinalResult(false);
} else
origin: jpmml/jpmml-r

case REGRESSION:
    outputField = ModelUtil.createPredictedField(name, DataType.DOUBLE, OpType.CONTINUOUS)
      .setFinalResult(Boolean.FALSE);
org.jpmml.converterModelUtilcreatePredictedField

Popular methods of ModelUtil

  • createMiningSchema
  • createPredictedOutput
  • createRescaleTargets
  • createProbabilityField
  • createProbabilityOutput
  • createModelVerification
  • createVerificationField
  • ensureOutput
  • createEntityIdField
  • createProbabilityFields
  • simplifyMathContext
  • simplifyMathContext

Popular in Java

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • JOptionPane (javax.swing)
  • JPanel (javax.swing)
  • Join (org.hibernate.mapping)
  • Top 15 Vim Plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now