Expand description
Rust bindings for the VowpalWabbit C-binding surface.
§Example
The following is an example for a basic usecase similar to command line driver mode. VW is initialized, an example run through the parser then prediction pipeline. Finally the example and VW object are finished.
use std::ffi::CString;
unsafe {
let command_line_str = CString::new("--quiet").unwrap();
let vw_handle = vowpalwabbit_sys::VW_InitializeA(command_line_str.as_ptr());
let example_str =
CString::new("1 | test example=1").unwrap();
let example_handle = vowpalwabbit_sys::VW_ReadExampleA(vw_handle, example_str.as_ptr());
vowpalwabbit_sys::VW_Predict(vw_handle, example_handle);
vowpalwabbit_sys::VW_Learn(vw_handle, example_handle);
vowpalwabbit_sys::VW_FinishExample(vw_handle, example_handle);
vowpalwabbit_sys::VW_Finish(vw_handle);
}Structs§
Statics§
Functions§
- VW_
AddLabel ⚠ - VW_
AddString ⚠Label - VW_
Copy ⚠Model Data - VW_
EndParser ⚠ - VW_
Export ⚠Example - VW_
Finish ⚠ - VW_
Finish ⚠Example - VW_
Finish_ ⚠Passes - VW_
FreeIO ⚠Buf - VW_
GetAction ⚠Score - VW_
GetAction ⚠Score Length - VW_
GetConfidence ⚠ - VW_
GetCost ⚠Sensitive Prediction - VW_
GetExample ⚠ - VW_
GetFeature ⚠ - VW_
GetFeature ⚠Number - VW_
GetFeature ⚠Space - VW_
GetFeatures ⚠ - VW_
GetImportance ⚠ - VW_
GetInitial ⚠ - VW_
GetLabel ⚠ - VW_
GetMultilabel ⚠Predictions - VW_
GetPrediction ⚠ - VW_
GetTag ⚠ - VW_
GetTag ⚠Length - VW_
GetTopic ⚠Prediction - VW_
Get_ ⚠Stride - VW_
Get_ ⚠Weight - VW_
Hash ⚠FeatureA - VW_
Hash ⚠Feature StaticA - VW_
Hash ⚠SpaceA - VW_
Hash ⚠Space StaticA - VW_
Import ⚠Example - VW_
Init ⚠Features - VW_
InitializeA ⚠ - VW_
Initialize ⚠EscapedA - VW_
Initialize ⚠Feature Spaces - VW_
Initialize ⚠With Model - VW_
Initialize ⚠With Model Escaped - VW_
Learn ⚠ - VW_
Num_ ⚠Weights - VW_
Predict ⚠ - VW_
Predict ⚠Cost Sensitive - VW_
Read ⚠ExampleA - VW_
Release ⚠Feature Space - VW_
Return ⚠Features - VW_
Save ⚠Model - VW_
Seed ⚠With Model - VW_
SetFeature ⚠ - VW_
SetFeature ⚠Space - VW_
Set_ ⚠Weight - VW_
Start ⚠Parser