#[non_exhaustive]pub struct MostPopularFeatureConfig {
pub time_window_days: i64,
/* private fields */
}Available on crate feature
engine-service only.Expand description
Feature configurations that are required for creating a Most Popular engine.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.time_window_days: i64The time window of which the engine is queried at training and
prediction time. Positive integers only. The value translates to the
last X days of events. Currently required for the most-popular-items
engine.
Implementations§
Source§impl MostPopularFeatureConfig
impl MostPopularFeatureConfig
pub fn new() -> Self
Sourcepub fn set_time_window_days<T: Into<i64>>(self, v: T) -> Self
pub fn set_time_window_days<T: Into<i64>>(self, v: T) -> Self
Sets the value of time_window_days.
§Example
ⓘ
let x = MostPopularFeatureConfig::new().set_time_window_days(42);Trait Implementations§
Source§impl Clone for MostPopularFeatureConfig
impl Clone for MostPopularFeatureConfig
Source§fn clone(&self) -> MostPopularFeatureConfig
fn clone(&self) -> MostPopularFeatureConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MostPopularFeatureConfig
impl Debug for MostPopularFeatureConfig
Source§impl Default for MostPopularFeatureConfig
impl Default for MostPopularFeatureConfig
Source§fn default() -> MostPopularFeatureConfig
fn default() -> MostPopularFeatureConfig
Returns the “default value” for a type. Read more
Source§impl Message for MostPopularFeatureConfig
impl Message for MostPopularFeatureConfig
Source§impl PartialEq for MostPopularFeatureConfig
impl PartialEq for MostPopularFeatureConfig
impl StructuralPartialEq for MostPopularFeatureConfig
Auto Trait Implementations§
impl Freeze for MostPopularFeatureConfig
impl RefUnwindSafe for MostPopularFeatureConfig
impl Send for MostPopularFeatureConfig
impl Sync for MostPopularFeatureConfig
impl Unpin for MostPopularFeatureConfig
impl UnwindSafe for MostPopularFeatureConfig
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