Tabnine Logo
ContinuousFeature.getDataType
Code IndexAdd Tabnine to your IDE (free)

How to use
getDataType
method
in
org.jpmml.converter.ContinuousFeature

Best Java code snippets using org.jpmml.converter.ContinuousFeature.getDataType (Showing top 5 results out of 315)

origin: jpmml/jpmml-xgboost

  @Override
  public Feature apply(Feature feature){
    if(feature instanceof BinaryFeature){
      BinaryFeature binaryFeature = (BinaryFeature)feature;
      return binaryFeature;
    } else
    {
      ContinuousFeature continuousFeature = feature.toContinuousFeature();
      DataType dataType = continuousFeature.getDataType();
      switch(dataType){
        case INTEGER:
        case FLOAT:
          break;
        case DOUBLE:
          continuousFeature = continuousFeature.toContinuousFeature(DataType.FLOAT);
          break;
        default:
          throw new IllegalArgumentException();
      }
      return continuousFeature;
    }
  }
};
origin: org.jpmml/jpmml-xgboost

  @Override
  public Feature apply(Feature feature){
    if(feature instanceof BinaryFeature){
      BinaryFeature binaryFeature = (BinaryFeature)feature;
      return binaryFeature;
    } else
    {
      ContinuousFeature continuousFeature = feature.toContinuousFeature();
      DataType dataType = continuousFeature.getDataType();
      switch(dataType){
        case INTEGER:
        case FLOAT:
          break;
        case DOUBLE:
          continuousFeature = continuousFeature.toContinuousFeature(DataType.FLOAT);
          break;
        default:
          throw new IllegalArgumentException();
      }
      return continuousFeature;
    }
  }
};
origin: cheng-li/pyramid

DataType dataType = continuousFeature.getDataType();
switch(dataType){
  case INTEGER:
origin: org.jpmml/jpmml-xgboost

DataType dataType = continuousFeature.getDataType();
switch(dataType){
  case INTEGER:
origin: jpmml/jpmml-xgboost

DataType dataType = continuousFeature.getDataType();
switch(dataType){
  case INTEGER:
org.jpmml.converterContinuousFeaturegetDataType

Popular methods of ContinuousFeature

  • <init>
  • ref
  • getName
  • toContinuousFeature

Popular in Java

  • Making http post requests using okhttp
  • scheduleAtFixedRate (ScheduledExecutorService)
  • setRequestProperty (URLConnection)
  • startActivity (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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