pub struct BifurcationPredictionNetwork {
pub architecture: NetworkArchitecture,
pub model_parameters: ModelParameters,
pub training_config: TrainingConfiguration,
pub feature_extraction: FeatureExtraction,
pub performance_metrics: PerformanceMetrics,
pub uncertainty_quantification: UncertaintyQuantification,
}Expand description
Neural network for bifurcation classification and prediction
Fields§
§architecture: NetworkArchitectureNetwork architecture specification
model_parameters: ModelParametersTrained model weights and biases
training_config: TrainingConfigurationTraining configuration
feature_extraction: FeatureExtractionFeature extraction settings
performance_metrics: PerformanceMetricsModel performance metrics
uncertainty_quantification: UncertaintyQuantificationUncertainty quantification
Implementations§
Source§impl BifurcationPredictionNetwork
impl BifurcationPredictionNetwork
Sourcepub fn new(
input_size: usize,
hidden_layers: Vec<usize>,
output_size: usize,
) -> Self
pub fn new( input_size: usize, hidden_layers: Vec<usize>, output_size: usize, ) -> Self
Create a new bifurcation prediction network
Sourcepub fn forward(&self, input: &Array1<f64>) -> IntegrateResult<Array1<f64>>
pub fn forward(&self, input: &Array1<f64>) -> IntegrateResult<Array1<f64>>
Forward pass through the network
Sourcepub fn train(
&mut self,
training_data: &[(Array1<f64>, Array1<f64>)],
validation_data: Option<&[(Array1<f64>, Array1<f64>)]>,
) -> IntegrateResult<()>
pub fn train( &mut self, training_data: &[(Array1<f64>, Array1<f64>)], validation_data: Option<&[(Array1<f64>, Array1<f64>)]>, ) -> IntegrateResult<()>
Train the network on bifurcation data
Sourcepub fn evaluate(
&self,
test_data: &[(Array1<f64>, Array1<f64>)],
) -> IntegrateResult<f64>
pub fn evaluate( &self, test_data: &[(Array1<f64>, Array1<f64>)], ) -> IntegrateResult<f64>
Evaluate model performance
Sourcepub fn predict_bifurcation(
&self,
features: &Array1<f64>,
) -> IntegrateResult<BifurcationPrediction>
pub fn predict_bifurcation( &self, features: &Array1<f64>, ) -> IntegrateResult<BifurcationPrediction>
Predict bifurcation type and location
Trait Implementations§
Source§impl Clone for BifurcationPredictionNetwork
impl Clone for BifurcationPredictionNetwork
Source§fn clone(&self) -> BifurcationPredictionNetwork
fn clone(&self) -> BifurcationPredictionNetwork
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 BifurcationPredictionNetwork
impl RefUnwindSafe for BifurcationPredictionNetwork
impl Send for BifurcationPredictionNetwork
impl Sync for BifurcationPredictionNetwork
impl Unpin for BifurcationPredictionNetwork
impl UnwindSafe for BifurcationPredictionNetwork
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