Codota Logo
SGD.getLossFunction
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ScheduledThreadPoolExecutor s =
  • Codota Iconnew ScheduledThreadPoolExecutor(corePoolSize)
  • Codota IconThreadFactory threadFactory;new ScheduledThreadPoolExecutor(corePoolSize, threadFactory)
  • Codota IconString str;new ScheduledThreadPoolExecutor(1, new ThreadFactoryBuilder().setNameFormat(str).build())
  • Smart code suggestions by Codota
}
origin: nz.ac.waikato.cms.weka/weka-stable

/**
 * Gets the current settings of the classifier.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 ArrayList<String> options = new ArrayList<String>();
 options.add("-F");
 options.add("" + getLossFunction().getSelectedTag().getID());
 options.add("-L");
 options.add("" + getLearningRate());
 options.add("-R");
 options.add("" + getLambda());
 options.add("-E");
 options.add("" + getEpochs());
 options.add("-C");
 options.add("" + getEpsilon());
 if (getDontNormalize()) {
  options.add("-N");
 }
 if (getDontReplaceMissing()) {
  options.add("-M");
 }
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[1]);
}
origin: Waikato/weka-trunk

/**
 * Gets the current settings of the classifier.
 * 
 * @return an array of strings suitable for passing to setOptions
 */
@Override
public String[] getOptions() {
 ArrayList<String> options = new ArrayList<String>();
 options.add("-F");
 options.add("" + getLossFunction().getSelectedTag().getID());
 options.add("-L");
 options.add("" + getLearningRate());
 options.add("-R");
 options.add("" + getLambda());
 options.add("-E");
 options.add("" + getEpochs());
 options.add("-C");
 options.add("" + getEpsilon());
 if (getDontNormalize()) {
  options.add("-N");
 }
 if (getDontReplaceMissing()) {
  options.add("-M");
 }
 Collections.addAll(options, super.getOptions());
 
 return options.toArray(new String[1]);
}
weka.classifiers.functionsSGDgetLossFunction

Javadoc

Get the current loss function.

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.
  • 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.
  • getDontNormalize,
  • getDontReplaceMissing,
  • getEpochs,
  • getEpsilon,
  • getLambda,
  • getLearningRate,
  • getSeed,
  • getWeights,
  • reset

Popular in Java

  • Finding current android device location
  • onCreateOptionsMenu (Activity)
  • setRequestProperty (URLConnection)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Kernel (java.awt.image)
  • LinkedHashMap (java.util)
    Hash table and linked list implementation of the Map interface, with predictable iteration order. Th
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
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