Codota Logo
SupportVectorMachineModel.getRepresentation
Code IndexAdd Codota 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)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
Connection c =
  • Codota IconDataSource dataSource;dataSource.getConnection()
  • Codota IconString url;DriverManager.getConnection(url)
  • Codota IconIdentityDatabaseUtil.getDBConnection()
  • Smart code suggestions by Codota
}
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

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • JOptionPane (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
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