Sha256: 5094f7d5f5f9a54d61ce5353ecf1fa15fd55834cfc97971393a9fc63a52b70f7

Contents?: true

Size: 1.75 KB

Versions: 6

Compression:

Stored size: 1.75 KB

Contents

#include "solver_type.h"

RUBY_EXTERN VALUE mLiblinear;

void rb_init_solver_type_module()
{
  /**
   * Document-module: Numo::Liblinear::SolverType
   * The module consisting of constants for solver type that used for parameter of LIBLINER.
   */
  VALUE mSolverType = rb_define_module_under(mLiblinear, "SolverType");
  /* L2-regularized logistic regression (primal) */
  rb_define_const(mSolverType, "L2R_LR", INT2NUM(L2R_LR));
  /* L2-regularized L2-loss support vector classification (dual) */
  rb_define_const(mSolverType, "L2R_L2LOSS_SVC_DUAL", INT2NUM(L2R_L2LOSS_SVC_DUAL));
  /* L2-regularized L2-loss support vector classification (primal) */
  rb_define_const(mSolverType, "L2R_L2LOSS_SVC", INT2NUM(L2R_L2LOSS_SVC));
  /* L2-regularized L1-loss support vector classification (dual) */
  rb_define_const(mSolverType, "L2R_L1LOSS_SVC_DUAL", INT2NUM(L2R_L1LOSS_SVC_DUAL));
	/* support vector classification by Crammer and Singer */
  rb_define_const(mSolverType, "MCSVM_CS", INT2NUM(MCSVM_CS));
	/* L1-regularized L2-loss support vector classification */
  rb_define_const(mSolverType, "L1R_L2LOSS_SVC", INT2NUM(L1R_L2LOSS_SVC));
	/* L1-regularized logistic regression */
  rb_define_const(mSolverType, "L1R_LR", INT2NUM(L1R_LR));
  /* L2-regularized logistic regression (dual) */
  rb_define_const(mSolverType, "L2R_LR_DUAL", INT2NUM(L2R_LR_DUAL));
	/* L2-regularized L2-loss support vector regression (primal) */
  rb_define_const(mSolverType, "L2R_L2LOSS_SVR", INT2NUM(L2R_L2LOSS_SVR));
	/* L2-regularized L2-loss support vector regression (dual) */
  rb_define_const(mSolverType, "L2R_L2LOSS_SVR_DUAL", INT2NUM(L2R_L2LOSS_SVR_DUAL));
	/* L2-regularized L1-loss support vector regression (dual) */
  rb_define_const(mSolverType, "L2R_L1LOSS_SVR_DUAL", INT2NUM(L2R_L1LOSS_SVR_DUAL));
}

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
numo-liblinear-1.0.0 ext/numo/liblinear/solver_type.c
numo-liblinear-0.5.0 ext/numo/liblinear/solver_type.c
numo-liblinear-0.4.0 ext/numo/liblinear/solver_type.c
numo-liblinear-0.3.0 ext/numo/liblinear/solver_type.c
numo-liblinear-0.2.0 ext/numo/liblinear/solver_type.c
numo-liblinear-0.1.0 ext/numo/liblinear/solver_type.c