pub struct NeuralArchitecture {
pub num_layers: usize,
pub layer_sizes: Vec<usize>,
pub activations: Vec<String>,
pub dropout_rates: Vec<Float>,
pub batch_norm: Vec<bool>,
pub skip_connections: Vec<(usize, usize)>,
pub complexity_score: Float,
}Expand description
Neural network architecture representation
Fields§
§num_layers: usizeNumber of layers
layer_sizes: Vec<usize>Hidden layer sizes
activations: Vec<String>Activation functions for each layer
dropout_rates: Vec<Float>Dropout rates for each layer
batch_norm: Vec<bool>Batch normalization flags
skip_connections: Vec<(usize, usize)>Skip connections (ResNet-style)
complexity_score: FloatArchitecture complexity score
Implementations§
Source§impl NeuralArchitecture
impl NeuralArchitecture
Sourcepub fn parameter_count(&self) -> usize
pub fn parameter_count(&self) -> usize
Calculate the number of parameters in the architecture
Sourcepub fn estimated_flops(&self) -> usize
pub fn estimated_flops(&self) -> usize
Calculate estimated FLOPs for the architecture
Trait Implementations§
Source§impl Clone for NeuralArchitecture
impl Clone for NeuralArchitecture
Source§fn clone(&self) -> NeuralArchitecture
fn clone(&self) -> NeuralArchitecture
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 moreAuto Trait Implementations§
impl Freeze for NeuralArchitecture
impl RefUnwindSafe for NeuralArchitecture
impl Send for NeuralArchitecture
impl Sync for NeuralArchitecture
impl Unpin for NeuralArchitecture
impl UnwindSafe for NeuralArchitecture
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