Struct neural_networks_rust::dataset::Feature
source · pub struct Feature {Show 18 fields
pub name: String,
pub predicted: bool,
pub date_format: Option<String>,
pub to_timestamp: bool,
pub extract_month: bool,
pub log10: bool,
pub normalized: bool,
pub filter_outliers: bool,
pub mapped: Option<(MapSelector, MapOp)>,
pub squared: bool,
pub with_extracted_timestamp: Option<Box<Feature>>,
pub with_extracted_month: Option<Box<Feature>>,
pub with_log10: Option<Box<Feature>>,
pub with_normalized: Option<Box<Feature>>,
pub with_squared: Option<Box<Feature>>,
pub used_in_model: bool,
pub one_hot_encoded: bool,
pub is_id: bool,
}
Expand description
A structure that holds metadata of a feature (aka. a “column”) of a data table.
Fields§
§name: String
§predicted: bool
§date_format: Option<String>
§to_timestamp: bool
§extract_month: bool
§log10: bool
§normalized: bool
§filter_outliers: bool
§mapped: Option<(MapSelector, MapOp)>
§squared: bool
§with_extracted_timestamp: Option<Box<Feature>>
§with_extracted_month: Option<Box<Feature>>
§with_log10: Option<Box<Feature>>
§with_normalized: Option<Box<Feature>>
§with_squared: Option<Box<Feature>>
§used_in_model: bool
§one_hot_encoded: bool
§is_id: bool
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Feature
impl<'de> Deserialize<'de> for Feature
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<Feature> for Feature
impl PartialEq<Feature> for Feature
impl Eq for Feature
impl StructuralEq for Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnwindSafe for Feature
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.