pub struct MLVisualizationUtils;Expand description
ML visualization specific utilities
Implementations§
Source§impl MLVisualizationUtils
impl MLVisualizationUtils
Sourcepub fn prepare_confusion_matrix(
y_true: &Array1<usize>,
y_pred: &Array1<usize>,
class_names: Option<&[String]>,
) -> UtilsResult<HeatmapData>
pub fn prepare_confusion_matrix( y_true: &Array1<usize>, y_pred: &Array1<usize>, class_names: Option<&[String]>, ) -> UtilsResult<HeatmapData>
Prepare confusion matrix for visualization
Sourcepub fn prepare_learning_curve(
train_sizes: &Array1<usize>,
train_scores: &Array1<f64>,
val_scores: &Array1<f64>,
) -> UtilsResult<(LinePlotData, LinePlotData)>
pub fn prepare_learning_curve( train_sizes: &Array1<usize>, train_scores: &Array1<f64>, val_scores: &Array1<f64>, ) -> UtilsResult<(LinePlotData, LinePlotData)>
Prepare learning curve data for visualization
Sourcepub fn prepare_feature_importance(
feature_names: &[String],
importance_scores: &Array1<f64>,
) -> UtilsResult<ScatterPlotData>
pub fn prepare_feature_importance( feature_names: &[String], importance_scores: &Array1<f64>, ) -> UtilsResult<ScatterPlotData>
Prepare feature importance visualization
Sourcepub fn prepare_roc_curve(
fpr: &Array1<f64>,
tpr: &Array1<f64>,
auc: f64,
) -> UtilsResult<LinePlotData>
pub fn prepare_roc_curve( fpr: &Array1<f64>, tpr: &Array1<f64>, auc: f64, ) -> UtilsResult<LinePlotData>
Prepare ROC curve data
Auto Trait Implementations§
impl Freeze for MLVisualizationUtils
impl RefUnwindSafe for MLVisualizationUtils
impl Send for MLVisualizationUtils
impl Sync for MLVisualizationUtils
impl Unpin for MLVisualizationUtils
impl UnwindSafe for MLVisualizationUtils
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 more