ext/libsvm/libsvm.c in rb-libsvm-1.3.0 vs ext/libsvm/libsvm.c in rb-libsvm-1.3.1
- old
+ new
@@ -482,11 +482,11 @@
}
/* call-seq:
* Model.load(filename) # => model
*
- * Load a {Libsvm::Model} from a file
+ * Load a {Libsvm::Model} from a file.
*
* This load a model from file `filename`. Format is the LIBSVM
* internal file representation of the model.
*
* @param filename [String] name of the model file
@@ -594,26 +594,26 @@
* {Libsvm::SvmParameter#kernel_type}. The value controls what kind
* of kernel is used when training the model.
*/
mKernelType = rb_define_module_under(mLibsvm, "KernelType");
/**
- * A linear kernel
+ * A linear kernel; or not using a kernel.
*/
rb_define_const(mKernelType, "LINEAR", INT2NUM(LINEAR));
/**
- * A polynomial kernel
+ * A polynomial kernel.
*/
rb_define_const(mKernelType, "POLY", INT2NUM(POLY));
/**
- * A redial basis function kernel
+ * A radial basis function kernel.
*/
rb_define_const(mKernelType, "RBF", INT2NUM(RBF));
/**
- * A sigmoid kernel
+ * A sigmoid kernel.
*/
rb_define_const(mKernelType, "SIGMOID", INT2NUM(SIGMOID));
/**
- * A precomputed kernel
+ * A precomputed kernel.
*/
rb_define_const(mKernelType, "PRECOMPUTED", INT2NUM(PRECOMPUTED));
mSvmType = rb_define_module_under(mLibsvm,"SvmType");
rb_define_const(mSvmType, "C_SVC", INT2NUM(C_SVC));