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

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • onRequestPermissionsResult (Fragment)
  • setScale (BigDecimal)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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