Tabnine Logo
NaiveBayes.getUseSupervisedDiscretization
Code IndexAdd Tabnine to your IDE (free)

How to use
getUseSupervisedDiscretization
method
in
weka.classifiers.bayes.NaiveBayes

Best Java code snippets using weka.classifiers.bayes.NaiveBayes.getUseSupervisedDiscretization (Showing top 2 results out of 315)

origin: nz.ac.waikato.cms.weka/weka-stable

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public NaiveBayes aggregate(NaiveBayes toAggregate) throws Exception {
 // Highly unlikely that discretization intervals will match between the
 // two classifiers
 if (m_UseDiscretization || toAggregate.getUseSupervisedDiscretization()) {
  throw new Exception("Unable to aggregate when supervised discretization "
   + "has been turned on");
 }
 if (!m_Instances.equalHeaders(toAggregate.m_Instances)) {
  throw new Exception("Can't aggregate - data headers don't match: "
   + m_Instances.equalHeadersMsg(toAggregate.m_Instances));
 }
 ((Aggregateable) m_ClassDistribution)
  .aggregate(toAggregate.m_ClassDistribution);
 // aggregate all conditional estimators
 for (int i = 0; i < m_Distributions.length; i++) {
  for (int j = 0; j < m_Distributions[i].length; j++) {
   ((Aggregateable) m_Distributions[i][j])
    .aggregate(toAggregate.m_Distributions[i][j]);
  }
 }
 return this;
}
origin: Waikato/weka-trunk

@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public NaiveBayes aggregate(NaiveBayes toAggregate) throws Exception {
 // Highly unlikely that discretization intervals will match between the
 // two classifiers
 if (m_UseDiscretization || toAggregate.getUseSupervisedDiscretization()) {
  throw new Exception("Unable to aggregate when supervised discretization "
   + "has been turned on");
 }
 if (!m_Instances.equalHeaders(toAggregate.m_Instances)) {
  throw new Exception("Can't aggregate - data headers don't match: "
   + m_Instances.equalHeadersMsg(toAggregate.m_Instances));
 }
 ((Aggregateable) m_ClassDistribution)
  .aggregate(toAggregate.m_ClassDistribution);
 // aggregate all conditional estimators
 for (int i = 0; i < m_Distributions.length; i++) {
  for (int j = 0; j < m_Distributions[i].length; j++) {
   ((Aggregateable) m_Distributions[i][j])
    .aggregate(toAggregate.m_Distributions[i][j]);
  }
 }
 return this;
}
weka.classifiers.bayesNaiveBayesgetUseSupervisedDiscretization

Javadoc

Get whether supervised discretization is to be used.

Popular methods of NaiveBayes

  • <init>
  • buildClassifier
    Generates the classifier.
  • updateClassifier
    Updates the classifier with the given instance.
  • getCapabilities
    Returns default capabilities of the classifier.
  • getConditionalEstimators
    Get all the conditional estimators.
  • getHeader
    Return the header that this classifier was trained with
  • getTechnicalInformation
    Returns an instance of a TechnicalInformation object, containing detailed information about the tech
  • pad
  • runClassifier
  • setDisplayModelInOldFormat
    Set whether to display model output in the old, original format.
  • setUseKernelEstimator
    Sets if kernel estimator is to be used.
  • setUseSupervisedDiscretization
    Set whether supervised discretization is to be used.
  • setUseKernelEstimator,
  • setUseSupervisedDiscretization,
  • toStringOriginal,
  • classifyInstance,
  • distributionForInstance,
  • toString

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • setRequestProperty (URLConnection)
  • scheduleAtFixedRate (Timer)
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Top Vim plugins
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