pub struct AutoencoderConfig {
pub encoding_dim: usize,
pub encoder_layers: Option<Vec<usize>>,
pub activation: Activation,
pub learning_rate: Float,
pub n_epochs: usize,
pub batch_size: usize,
pub random_state: Option<u64>,
pub noise_factor: Float,
pub l2_reg: Float,
pub sparsity: Option<(Float, Float)>,
pub optimizer: OptimizerType,
}Expand description
Autoencoder configuration
Fields§
§encoding_dim: usizeSize of hidden layer (encoding dimension) - for simple autoencoder
encoder_layers: Option<Vec<usize>>Encoder layer sizes - for deep autoencoder
activation: ActivationActivation function
learning_rate: FloatLearning rate
n_epochs: usizeNumber of epochs
batch_size: usizeBatch size
random_state: Option<u64>Random state
noise_factor: FloatNoise factor for denoising autoencoder
l2_reg: FloatL2 regularization parameter
sparsity: Option<(Float, Float)>Sparsity parameters (rho, beta) for sparse autoencoder
optimizer: OptimizerTypeOptimizer type
Trait Implementations§
Source§impl Clone for AutoencoderConfig
impl Clone for AutoencoderConfig
Source§fn clone(&self) -> AutoencoderConfig
fn clone(&self) -> AutoencoderConfig
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 Debug for AutoencoderConfig
impl Debug for AutoencoderConfig
Auto Trait Implementations§
impl Freeze for AutoencoderConfig
impl RefUnwindSafe for AutoencoderConfig
impl Send for AutoencoderConfig
impl Sync for AutoencoderConfig
impl Unpin for AutoencoderConfig
impl UnwindSafe for AutoencoderConfig
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