pub struct DataPoints {
pub in_vecs: Array2<f32>,
pub out_vecs: Array2<f32>,
}Expand description
Data points as input and output matrices, where each row is another data-point and every data-point is assumed to have a weight of 1.
Fields§
§in_vecs: Array2<f32>§out_vecs: Array2<f32>Implementations§
Source§impl DataPoints
impl DataPoints
Sourcepub fn num_points(&self) -> usize
pub fn num_points(&self) -> usize
Gets the number of data-points in this DataPoints.
Trait Implementations§
Source§impl<'a> AddAssign<DataPoints> for Model<'a>
impl<'a> AddAssign<DataPoints> for Model<'a>
Source§fn add_assign(&mut self, other: DataPoints)
fn add_assign(&mut self, other: DataPoints)
Updates this Model to reflect new regression information from the
given DataPoints, which is assumed to map from the compressed space
of the input to the compressed space of the output.
Auto Trait Implementations§
impl Freeze for DataPoints
impl RefUnwindSafe for DataPoints
impl Send for DataPoints
impl Sync for DataPoints
impl Unpin for DataPoints
impl UnwindSafe for DataPoints
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