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

How to use
buildClassifier
method
in
weka.classifiers.functions.SGD

Best Java code snippets using weka.classifiers.functions.SGD.buildClassifier (Showing top 2 results out of 315)

origin: Waikato/weka-trunk

protected void initializeSVMProbs(Instances data) throws Exception {
 m_svmProbs = new SGD();
 m_svmProbs.setLossFunction(new SelectedTag(SGD.LOGLOSS, TAGS_SELECTION));
 m_svmProbs.setLearningRate(m_learningRate);
 m_svmProbs.setLambda(m_lambda);
 m_svmProbs.setEpochs(m_epochs);
 ArrayList<Attribute> atts = new ArrayList<Attribute>(2);
 atts.add(new Attribute("pred"));
 ArrayList<String> attVals = new ArrayList<String>(2);
 attVals.add(data.classAttribute().value(0));
 attVals.add(data.classAttribute().value(1));
 atts.add(new Attribute("class", attVals));
 m_fitLogisticStructure = new Instances("data", atts, 0);
 m_fitLogisticStructure.setClassIndex(1);
 m_svmProbs.buildClassifier(m_fitLogisticStructure);
}
origin: nz.ac.waikato.cms.weka/weka-stable

protected void initializeSVMProbs(Instances data) throws Exception {
 m_svmProbs = new SGD();
 m_svmProbs.setLossFunction(new SelectedTag(SGD.LOGLOSS, TAGS_SELECTION));
 m_svmProbs.setLearningRate(m_learningRate);
 m_svmProbs.setLambda(m_lambda);
 m_svmProbs.setEpochs(m_epochs);
 ArrayList<Attribute> atts = new ArrayList<Attribute>(2);
 atts.add(new Attribute("pred"));
 ArrayList<String> attVals = new ArrayList<String>(2);
 attVals.add(data.classAttribute().value(0));
 attVals.add(data.classAttribute().value(1));
 atts.add(new Attribute("class", attVals));
 m_fitLogisticStructure = new Instances("data", atts, 0);
 m_fitLogisticStructure.setClassIndex(1);
 m_svmProbs.buildClassifier(m_fitLogisticStructure);
}
weka.classifiers.functionsSGDbuildClassifier

Javadoc

Method for building the classifier.

Popular methods of SGD

  • <init>
  • setDontNormalize
    Turn normalization off/on.
  • setDontReplaceMissing
    Turn global replacement of missing values off/on. If turned off, then missing values are effectively
  • setEpochs
    Set the number of epochs to use
  • setLearningRate
    Set the learning rate.
  • distributionForInstance
    Computes the distribution for a given instance
  • dloss
  • dotProd
  • getCapabilities
    Returns default capabilities of the classifier.
  • getDontNormalize
    Get whether normalization has been turned off.
  • getDontReplaceMissing
    Get whether global replacement of missing values has been disabled.
  • getEpochs
    Get current number of epochs
  • getDontReplaceMissing,
  • getEpochs,
  • getEpsilon,
  • getLambda,
  • getLearningRate,
  • getLossFunction,
  • getSeed,
  • getWeights,
  • reset

Popular in Java

  • Finding current android device location
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setContentView (Activity)
  • startActivity (Activity)
  • GridBagLayout (java.awt)
    The GridBagLayout class is a flexible layout manager that aligns components vertically and horizonta
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • JTextField (javax.swing)
  • 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