pub struct RotationAugmenter {
pub max_angle: f64,
}Expand description
Rotation augmentation (placeholder for future implementation).
For 2D images, this would apply random rotations. Currently implements a simplified version for tabular data.
Fields§
§max_angle: f64Maximum rotation angle in radians.
Implementations§
Trait Implementations§
Source§impl Clone for RotationAugmenter
impl Clone for RotationAugmenter
Source§fn clone(&self) -> RotationAugmenter
fn clone(&self) -> RotationAugmenter
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 DataAugmenter for RotationAugmenter
impl DataAugmenter for RotationAugmenter
Source§fn augment(
&self,
data: &ArrayView2<'_, f64>,
rng: &mut StdRng,
) -> TrainResult<Array2<f64>>
fn augment( &self, data: &ArrayView2<'_, f64>, rng: &mut StdRng, ) -> TrainResult<Array2<f64>>
Augment the given data. Read more
Source§impl Debug for RotationAugmenter
impl Debug for RotationAugmenter
Auto Trait Implementations§
impl Freeze for RotationAugmenter
impl RefUnwindSafe for RotationAugmenter
impl Send for RotationAugmenter
impl Sync for RotationAugmenter
impl Unpin for RotationAugmenter
impl UnwindSafe for RotationAugmenter
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more