Skip to main content

StrategyExecutor

Trait StrategyExecutor 

Source
pub trait StrategyExecutor {
    // Required method
    fn fit(
        &self,
        ctx: &dyn StrategyContext,
        input: &Value,
        y: Option<&Value>,
        node_ids: &[String],
    ) -> Result<HashMap<String, Value>>;
}
Expand description

Contract for training strategy execution. Every TrainingStrategy variant implements this — including Local.

Required Methods§

Source

fn fit( &self, ctx: &dyn StrategyContext, input: &Value, y: Option<&Value>, node_ids: &[String], ) -> Result<HashMap<String, Value>>

Train the model according to this strategy.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl StrategyExecutor for TrainingStrategy

Source§

fn fit( &self, ctx: &dyn StrategyContext, input: &Value, y: Option<&Value>, node_ids: &[String], ) -> Result<HashMap<String, Value>>

Implementors§