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

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

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

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);
}
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

setLearningRate(Double.parseDouble(learningRateString));
origin: Waikato/weka-trunk

setLearningRate(Double.parseDouble(learningRateString));
origin: nz.ac.waikato.cms.weka/weka-stable

/** Creates a default SGD */
public Classifier getClassifier() {
 SGD p = new SGD();
 p.setDontNormalize(true);
 p.setDontReplaceMissing(true);
 p.setEpochs(1);
 p.setLearningRate(0.001);
 return p;
}
origin: Waikato/weka-trunk

/** Creates a default SGD */
public Classifier getClassifier() {
 SGD p = new SGD();
 p.setDontNormalize(true);
 p.setDontReplaceMissing(true);
 p.setEpochs(1);
 p.setLearningRate(0.001);
 return p;
}
weka.classifiers.functionsSGDsetLearningRate

Javadoc

Set the learning rate.

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
  • buildClassifier
    Method for building the classifier.
  • 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

  • Making http post requests using okhttp
  • requestLocationUpdates (LocationManager)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Reference (javax.naming)
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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