pub struct DatasetBase<U, V> {
pub records: U,
pub targets: V,
}Expand description
A dataset is a collection of records and targets along with various other attributes useful for machine learning tasks
Fields§
§records: U§targets: VImplementations§
Trait Implementations§
Source§impl<U: Clone, V: Clone> Clone for DatasetBase<U, V>
impl<U: Clone, V: Clone> Clone for DatasetBase<U, V>
Source§fn clone(&self) -> DatasetBase<U, V>
fn clone(&self) -> DatasetBase<U, V>
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<U: Default, V: Default> Default for DatasetBase<U, V>
impl<U: Default, V: Default> Default for DatasetBase<U, V>
Source§fn default() -> DatasetBase<U, V>
fn default() -> DatasetBase<U, V>
Returns the “default value” for a type. Read more
Source§impl<'de, U, V> Deserialize<'de> for DatasetBase<U, V>where
U: Deserialize<'de>,
V: Deserialize<'de>,
impl<'de, U, V> Deserialize<'de> for DatasetBase<U, V>where
U: Deserialize<'de>,
V: Deserialize<'de>,
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<U, V> Display for DatasetBase<U, V>
impl<U, V> Display for DatasetBase<U, V>
Source§impl<U: Ord, V: Ord> Ord for DatasetBase<U, V>
impl<U: Ord, V: Ord> Ord for DatasetBase<U, V>
Source§fn cmp(&self, other: &DatasetBase<U, V>) -> Ordering
fn cmp(&self, other: &DatasetBase<U, V>) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<U: PartialOrd, V: PartialOrd> PartialOrd for DatasetBase<U, V>
impl<U: PartialOrd, V: PartialOrd> PartialOrd for DatasetBase<U, V>
Source§impl<U, V> Records for DatasetBase<U, V>
impl<U, V> Records for DatasetBase<U, V>
type Inputs = U
type Targets = V
fn inputs(&self) -> &Self::Inputs
fn inputs_mut(&mut self) -> &mut Self::Inputs
fn targets(&self) -> &Self::Targets
fn targets_mut(&mut self) -> &mut Self::Targets
fn set_inputs(&mut self, inputs: Self::Inputs)
fn set_targets(&mut self, targets: Self::Targets)
Source§impl<U, V> Serialize for DatasetBase<U, V>
impl<U, V> Serialize for DatasetBase<U, V>
impl<U: Copy, V: Copy> Copy for DatasetBase<U, V>
impl<U: Eq, V: Eq> Eq for DatasetBase<U, V>
impl<U, V> StructuralPartialEq for DatasetBase<U, V>
Auto Trait Implementations§
impl<U, V> Freeze for DatasetBase<U, V>
impl<U, V> RefUnwindSafe for DatasetBase<U, V>where
U: RefUnwindSafe,
V: RefUnwindSafe,
impl<U, V> Send for DatasetBase<U, V>
impl<U, V> Sync for DatasetBase<U, V>
impl<U, V> Unpin for DatasetBase<U, V>
impl<U, V> UnwindSafe for DatasetBase<U, V>where
U: UnwindSafe,
V: UnwindSafe,
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