pub struct SimdMetrics { /* private fields */ }Expand description
SIMD-accelerated metric computations
Implementations§
Source§impl SimdMetrics
impl SimdMetrics
Sourcepub fn with_simd_enabled(self, enabled: bool) -> Self
pub fn with_simd_enabled(self, enabled: bool) -> Self
Configure SIMD settings
Sourcepub fn with_parallel_config(self, config: ParallelConfig) -> Self
pub fn with_parallel_config(self, config: ParallelConfig) -> Self
Configure parallel processing
Sourcepub fn simd_mse<F>(
&self,
y_true: &ArrayView1<'_, F>,
ypred: &ArrayView1<'_, F>,
) -> Result<F>
pub fn simd_mse<F>( &self, y_true: &ArrayView1<'_, F>, ypred: &ArrayView1<'_, F>, ) -> Result<F>
SIMD-accelerated mean squared error computation
Sourcepub fn simd_mae<F>(
&self,
y_true: &ArrayView1<'_, F>,
ypred: &ArrayView1<'_, F>,
) -> Result<F>
pub fn simd_mae<F>( &self, y_true: &ArrayView1<'_, F>, ypred: &ArrayView1<'_, F>, ) -> Result<F>
SIMD-accelerated mean absolute error computation
Sourcepub fn simd_r2_score<F>(
&self,
y_true: &ArrayView1<'_, F>,
ypred: &ArrayView1<'_, F>,
) -> Result<F>
pub fn simd_r2_score<F>( &self, y_true: &ArrayView1<'_, F>, ypred: &ArrayView1<'_, F>, ) -> Result<F>
SIMD-accelerated R² score computation
Sourcepub fn simd_correlation<F>(
&self,
x: &ArrayView1<'_, F>,
y: &ArrayView1<'_, F>,
) -> Result<F>
pub fn simd_correlation<F>( &self, x: &ArrayView1<'_, F>, y: &ArrayView1<'_, F>, ) -> Result<F>
SIMD-accelerated correlation computation
Sourcepub fn simd_exponential_moving_average<F>(
&self,
values: &ArrayView1<'_, F>,
alpha: F,
) -> Result<Array1<F>>
pub fn simd_exponential_moving_average<F>( &self, values: &ArrayView1<'_, F>, alpha: F, ) -> Result<Array1<F>>
Advanced SIMD-accelerated exponential moving average
Sourcepub fn simd_log_operations<F>(
&self,
values: &ArrayView1<'_, F>,
) -> Result<LogOperationResults<F>>
pub fn simd_log_operations<F>( &self, values: &ArrayView1<'_, F>, ) -> Result<LogOperationResults<F>>
SIMD-accelerated logarithmic operations
Sourcepub fn simd_batch_matrix_operations<F>(
&self,
matrices: &[Array2<F>],
operation: MatrixOperation,
) -> Result<BatchMatrixResults<F>>
pub fn simd_batch_matrix_operations<F>( &self, matrices: &[Array2<F>], operation: MatrixOperation, ) -> Result<BatchMatrixResults<F>>
Advanced SIMD matrix operations for batch processing
Sourcepub fn gpu_batch_metrics<F>(
&self,
y_true_batch: &ArrayView2<'_, F>,
y_pred_batch: &ArrayView2<'_, F>,
metrics: &[&str],
) -> Result<Vec<HashMap<String, F>>>
pub fn gpu_batch_metrics<F>( &self, y_true_batch: &ArrayView2<'_, F>, y_pred_batch: &ArrayView2<'_, F>, metrics: &[&str], ) -> Result<Vec<HashMap<String, F>>>
GPU-accelerated batch metric computation
Sourcepub fn get_capabilities(&self) -> &PlatformCapabilities
pub fn get_capabilities(&self) -> &PlatformCapabilities
Get hardware capabilities information
Sourcepub fn get_gpu_info(&self) -> Option<&GpuInfo>
pub fn get_gpu_info(&self) -> Option<&GpuInfo>
Get GPU information if available
Sourcepub fn benchmark_implementations<F>(
&self,
y_true: &ArrayView1<'_, F>,
ypred: &ArrayView1<'_, F>,
iterations: usize,
) -> Result<BenchmarkResults>
pub fn benchmark_implementations<F>( &self, y_true: &ArrayView1<'_, F>, ypred: &ArrayView1<'_, F>, iterations: usize, ) -> Result<BenchmarkResults>
Benchmark different implementations to choose the best one
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SimdMetrics
impl RefUnwindSafe for SimdMetrics
impl Send for SimdMetrics
impl Sync for SimdMetrics
impl Unpin for SimdMetrics
impl UnwindSafe for SimdMetrics
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> 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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.