Codota Logo
L2LossParallelJLISLearner.<init>
Code IndexAdd Codota to your IDE (free)

How to use
edu.illinois.cs.cogcomp.indsup.learning.L2Loss.L2LossParallelJLISLearner
constructor

Best Java code snippets using edu.illinois.cs.cogcomp.indsup.learning.L2Loss.L2LossParallelJLISLearner.<init> (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: edu.illinois.cs.cogcomp/JLIS-reranking

public static RerankerModel trainRerankerModel(double C, int n_thread,
    StructuredProblem train) throws Exception {
  RerankerModel model = new RerankerModel();
  
  model.para = new JLISParameters();
  // para.total_number_features = train.label_mapping.size() *
  // train.n_base_feature_in_train;
  model.para.c_struct = C;
  model.para.TRAINMINI = true;
  // play with the following two parameters if you want to solve SSVM more
  // tightly
  model.para.DUAL_GAP = 0.01;
  model.para.WORKINGSETSVM_STOP = 0.01;
  System.out.println("Initializing Solvers...");
  System.out.flush();
  AbstractLossSensitiveStructureFinder[] s_finder_list = new AbstractLossSensitiveStructureFinder[n_thread];
  for (int i = 0; i < s_finder_list.length; i++) {
    s_finder_list[i] = new RerankerBestItemFinder();
  }
  System.out.println("Done!");
  System.out.flush();
  
  L2LossParallelJLISLearner learner = new L2LossParallelJLISLearner();
  // train model
  model.wv = learner.parallelTrainStructuredSVM(s_finder_list, train,
      model.para);
  return model;
}

origin: edu.illinois.cs.cogcomp/JLIS-multiclass

public static MulticlassModel trainMultiClassModel(double C, int n_thread,
    LabeledMulticlassData train) throws Exception {
  MulticlassModel model = new MulticlassModel();
  model.lab_mapping = train.label_mapping; // for the bias term
  model.n_base_feature_in_train = train.n_base_feature_in_train;
  model.para = new JLISParameters();
  // para.total_number_features = train.label_mapping.size() *
  // train.n_base_feature_in_train;
  model.para.c_struct = C;
  model.para.TRAINMINI = true;
  // play with the following two parameters if you want to solve SSVM more
  // tightly
  model.para.DUAL_GAP = 0.01;
  model.para.WORKINGSETSVM_STOP = 0.01;
  System.out.println("Initializing Solvers...");
  System.out.flush();
  AbstractLossSensitiveStructureFinder[] s_finder_list = new AbstractLossSensitiveStructureFinder[n_thread];
  for (int i = 0; i < s_finder_list.length; i++) {
    s_finder_list[i] = new MultiClassStructureFinder();
  }
  System.out.println("Done!");
  System.out.flush();
  model.s_finder = s_finder_list[0];
  L2LossParallelJLISLearner learner = new L2LossParallelJLISLearner();
  // train model
  model.wv = learner.parallelTrainStructuredSVM(s_finder_list, train.sp,
      model.para);
  return model;
}
origin: edu.illinois.cs.cogcomp/JLIS-multiclass

L2LossParallelJLISLearner learner = new L2LossParallelJLISLearner();
edu.illinois.cs.cogcomp.indsup.learning.L2LossL2LossParallelJLISLearner<init>

Popular methods of L2LossParallelJLISLearner

    Popular in Java

    • Making http requests using okhttp
    • getApplicationContext (Context)
    • compareTo (BigDecimal)
      Compares this BigDecimal with the specified BigDecimal. Two BigDecimal objects that are equal in val
    • getSupportFragmentManager (FragmentActivity)
      Return the FragmentManager for interacting with fragments associated with this activity.
    • Pointer (com.sun.jna)
      An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
    • Collections (java.util)
      This class consists exclusively of static methods that operate on or return collections. It contains
    • HashMap (java.util)
      HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
    • TimerTask (java.util)
      A task that can be scheduled for one-time or repeated execution by a Timer.
    • TimeUnit (java.util.concurrent)
      A TimeUnit represents time durations at a given unit of granularity and provides utility methods to
    • JComboBox (javax.swing)
    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