congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
SupportVectorMachineModel.getRepresentation
Code IndexAdd Tabnine to your IDE (free)

How to use
getRepresentation
method
in
org.dmg.pmml.support_vector_machine.SupportVectorMachineModel

Best Java code snippets using org.dmg.pmml.support_vector_machine.SupportVectorMachineModel.getRepresentation (Showing top 2 results out of 315)

origin: jpmml/jpmml-evaluator

@Override
public VisitorAction visit(SupportVectorMachineModel supportVectorMachineModel){
  boolean maxWins = supportVectorMachineModel.isMaxWins();
  if(maxWins){
    report(new UnsupportedAttributeException(supportVectorMachineModel, PMMLAttributes.SUPPORTVECTORMACHINEMODEL_MAXWINS, true));
  }
  SupportVectorMachineModel.Representation representation = supportVectorMachineModel.getRepresentation();
  switch(representation){
    case COEFFICIENTS:
      report(new UnsupportedAttributeException(supportVectorMachineModel, representation));
      break;
    default:
      break;
  }
  return super.visit(supportVectorMachineModel);
}
origin: jpmml/jpmml-evaluator

public SupportVectorMachineModelEvaluator(PMML pmml, SupportVectorMachineModel supportVectorMachineModel){
  super(pmml, supportVectorMachineModel);
  boolean maxWins = supportVectorMachineModel.isMaxWins();
  if(maxWins){
    throw new UnsupportedAttributeException(supportVectorMachineModel, PMMLAttributes.SUPPORTVECTORMACHINEMODEL_MAXWINS, maxWins);
  }
  SupportVectorMachineModel.Representation representation = supportVectorMachineModel.getRepresentation();
  switch(representation){
    case SUPPORT_VECTORS:
      break;
    default:
      throw new UnsupportedAttributeException(supportVectorMachineModel, representation);
  }
  VectorDictionary vectorDictionary = supportVectorMachineModel.getVectorDictionary();
  if(vectorDictionary == null){
    throw new MissingElementException(supportVectorMachineModel, PMMLElements.SUPPORTVECTORMACHINEMODEL_VECTORDICTIONARY);
  }
  VectorFields vectorFields = vectorDictionary.getVectorFields();
  if(vectorFields == null){
    throw new MissingElementException(vectorDictionary, PMMLElements.VECTORDICTIONARY_VECTORFIELDS);
  } // End if
  if(!supportVectorMachineModel.hasSupportVectorMachines()){
    throw new MissingElementException(supportVectorMachineModel, PMMLElements.SUPPORTVECTORMACHINEMODEL_SUPPORTVECTORMACHINES);
  }
}
org.dmg.pmml.support_vector_machineSupportVectorMachineModelgetRepresentation

Popular methods of SupportVectorMachineModel

  • getSupportVectorMachines
  • getKernel
  • getVectorDictionary
  • hasSupportVectorMachines
  • setKernel
  • setOutput
  • <init>
  • getAlternateBinaryTargetCategory
  • getExtensions
  • getLocalTransformations
  • getMathContext
  • getMiningSchema
  • getMathContext,
  • getMiningSchema,
  • getModelExplanation,
  • getModelStats,
  • getModelVerification,
  • getOutput,
  • getTargets,
  • getThreshold,
  • hasExtensions

Popular in Java

  • Finding current android device location
  • compareTo (BigDecimal)
  • getSystemService (Context)
  • putExtra (Intent)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • String (java.lang)
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • Top plugins for WebStorm
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