pub struct OneHotEncoderConfig {
pub cats_int64s: Option<Vec<i64>>,
pub cats_strings: Option<Vec<String>>,
pub zeros: Option<i64>,
}Expand description
Configuration for OneHotEncoder operation
Fields§
§cats_int64s: Option<Vec<i64>>List of integer categories for lookup
cats_strings: Option<Vec<String>>List of string categories for lookup (not supported in Burn codegen)
zeros: Option<i64>If true (1, default) and category is not present, return all zeros; if false (0), the operator will fail on unknown categories.
Implementations§
Trait Implementations§
Source§impl Clone for OneHotEncoderConfig
impl Clone for OneHotEncoderConfig
Source§impl Debug for OneHotEncoderConfig
impl Debug for OneHotEncoderConfig
Auto Trait Implementations§
impl Freeze for OneHotEncoderConfig
impl RefUnwindSafe for OneHotEncoderConfig
impl Send for OneHotEncoderConfig
impl Sync for OneHotEncoderConfig
impl Unpin for OneHotEncoderConfig
impl UnsafeUnpin for OneHotEncoderConfig
impl UnwindSafe for OneHotEncoderConfig
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