Codota Logo
ModelUtil.createProbabilityFields
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
SimpleDateFormat s =
  • Codota IconString pattern;new SimpleDateFormat(pattern)
  • Codota IconString template;Locale locale;new SimpleDateFormat(template, locale)
  • Codota Iconnew SimpleDateFormat()
  • Smart code suggestions by Codota
}
origin: jpmml/jpmml-sparkml

@Override
public List<OutputField> registerOutputFields(Label label, SparkMLEncoder encoder){
  MultilayerPerceptronClassificationModel model = getTransformer();
  List<OutputField> result = super.registerOutputFields(label, encoder);
  if(!(model instanceof HasProbabilityCol)){
    CategoricalLabel categoricalLabel = (CategoricalLabel)label;
    result = new ArrayList<>(result);
    result.addAll(ModelUtil.createProbabilityFields(DataType.DOUBLE, categoricalLabel.getValues()));
  }
  return result;
}
origin: jpmml/jpmml-sparkml

@Override
public List<OutputField> registerOutputFields(Label label, SparkMLEncoder encoder){
  List<OutputField> result = super.registerOutputFields(label, encoder);
  MiningFunction miningFunction = getMiningFunction();
  switch(miningFunction){
    case CLASSIFICATION:
      CategoricalLabel categoricalLabel = (CategoricalLabel)label;
      result = new ArrayList<>(result);
      result.addAll(ModelUtil.createProbabilityFields(DataType.DOUBLE, categoricalLabel.getValues()));
      break;
    default:
      break;
  }
  return result;
}
origin: jpmml/jpmml-sklearn

CategoricalLabel categoricalLabel = (CategoricalLabel)label;
List<OutputField> predictProbaFields = ModelUtil.createProbabilityFields(DataType.DOUBLE, categoricalLabel.getValues());
org.jpmml.converterModelUtilcreateProbabilityFields

Popular methods of ModelUtil

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

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
    Creates and executes a periodic action that becomes enabled first after the given initial delay, and
  • getApplicationContext (Context)
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now