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

  • Finding current android device location
  • setScale (BigDecimal)
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • BoxLayout (javax.swing)
  • JTable (javax.swing)
  • Response (javax.ws.rs.core)
    Defines the contract between a returned instance and the runtime when an application needs to provid
  • Top 25 Plugins for Webstorm
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