liblinear-rs
Rust bindings for the liblinear C/C++ library. Provides a thin (but rustic) wrapper around the original C-interface exposed by the library.
Usage
Use the liblinear::Builder
API to train a model on sparse features and
predict the class of a new instance.
extern crate liblinear;
use *;
let x: = vec!;
let y = vec!;
let mut model_builder = new;
model_builder
.problem
.input_data
.bias;
model_builder
.parameters
.solver_type
.stopping_criterion
.constraints_violation_cost
.regression_loss_sensitivity;
let model = model_builder.build_model.unwrap;
assert_eq!;
let predicted_class = model
.predict
.unwrap;
println!;
More examples can be found in the bundled unit tests.
Changelog
1.0.0 - Update liblinear to v230 (breaking changes), minor changes and fixes.
0.1.1 - Added readme, minor documentation fixes.
0.1.0 - Initial release.