Tabnine Logo
SGD.getLossFunction
Code IndexAdd Tabnine 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)

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

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • setScale (BigDecimal)
  • onCreateOptionsMenu (Activity)
  • Date (java.util)
    A specific moment in time, with millisecond precision. Values typically come from System#currentTime
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • Options (org.apache.commons.cli)
    Main entry-point into the library. Options represents a collection of Option objects, which describ
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • Top 12 Jupyter Notebook extensions
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