pub struct InputToSchmearedOutput {
pub in_vec: Array1<f32>,
pub out_schmear: Schmear,
}Expand description
A variation on DataPoint where the output
is allowed to be a schmear instead of just one point,
and the weight is assumed to be one.
Fields§
§in_vec: Array1<f32>§out_schmear: SchmearImplementations§
Source§impl InputToSchmearedOutput
impl InputToSchmearedOutput
Sourcepub fn featurize(
&self,
func_space_info: &FunctionSpaceInfo<'_>,
) -> InputToSchmearedOutput
pub fn featurize( &self, func_space_info: &FunctionSpaceInfo<'_>, ) -> InputToSchmearedOutput
Assuming that this InputToSchmearedOutput is given in terms of the base space
of the input space of a given model and its output space, and
given the FunctionSpaceInfo of the model that this InputToSchmearedOutput
will be used to update, computes a new InputToSchmearedOutput whose input
has been passed through the FunctionSpaceInfo’s input feature mapping.
Sourcepub fn get_data_points(&self) -> Vec<DataPoint>
pub fn get_data_points(&self) -> Vec<DataPoint>
Gets the vector of DataPoints which this InputToSchmearedOutput represents.
Trait Implementations§
Source§impl AddAssign<&InputToSchmearedOutput> for NormalInverseWishart
impl AddAssign<&InputToSchmearedOutput> for NormalInverseWishart
Source§fn add_assign(&mut self, update: &InputToSchmearedOutput)
fn add_assign(&mut self, update: &InputToSchmearedOutput)
Updates this NormalInverseWishart distribution to incorporate
regression information from the given InputToSchmearedOutput.
Source§impl Clone for InputToSchmearedOutput
impl Clone for InputToSchmearedOutput
Source§fn clone(&self) -> InputToSchmearedOutput
fn clone(&self) -> InputToSchmearedOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl SubAssign<&InputToSchmearedOutput> for NormalInverseWishart
impl SubAssign<&InputToSchmearedOutput> for NormalInverseWishart
Source§fn sub_assign(&mut self, update: &InputToSchmearedOutput)
fn sub_assign(&mut self, update: &InputToSchmearedOutput)
Updates this NormalInverseWishart distribution to remove
regression information from the given InputToSchmearedOutput.