Tabnine Logo
SGD.setLambda
Code IndexAdd Tabnine to your IDE (free)

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

Best Java code snippets using weka.classifiers.functions.SGD.setLambda (Showing top 4 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

setLambda(Double.parseDouble(lambdaString));
origin: Waikato/weka-trunk

setLambda(Double.parseDouble(lambdaString));
weka.classifiers.functionsSGDsetLambda

Javadoc

Set the value of lambda to use

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,
  • getLossFunction,
  • getSeed,
  • getWeights,
  • reset

Popular in Java

  • Updating database using SQL prepared statement
  • getContentResolver (Context)
  • putExtra (Intent)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • SocketException (java.net)
    This SocketException may be thrown during socket creation or setting options, and is the superclass
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • ImageIO (javax.imageio)
  • Best plugins for Eclipse
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