pub struct SvmNode {
pub index: i32,
pub value: f64,
}Expand description
A single sparse feature: index:value.
In the original LIBSVM, a sentinel node with index = -1 marks the end
of each instance. In this Rust port, instance length is tracked by
Vec::len() instead, so no sentinel is needed.
Fields§
§index: i321-based feature index. Uses i32 to match the original C int and
preserve file-format compatibility.
value: f64Feature value.
Trait Implementations§
impl Copy for SvmNode
impl StructuralPartialEq for SvmNode
Auto Trait Implementations§
impl Freeze for SvmNode
impl RefUnwindSafe for SvmNode
impl Send for SvmNode
impl Sync for SvmNode
impl Unpin for SvmNode
impl UnwindSafe for SvmNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more