pub struct VisualizationFactory { /* private fields */ }Expand description
Comprehensive visualization factory for creating different types of plots
Implementations§
Source§impl VisualizationFactory
impl VisualizationFactory
Sourcepub fn with_config(config: PlotConfig) -> Self
pub fn with_config(config: PlotConfig) -> Self
Create factory with custom default configuration
Sourcepub fn interactive(&mut self) -> &mut InteractiveVisualizer
pub fn interactive(&mut self) -> &mut InteractiveVisualizer
Get mutable reference to interactive visualizer
Sourcepub fn feature_importance(
&self,
importance_values: &ArrayView1<'_, Float>,
feature_names: Option<&[String]>,
plot_type: FeatureImportanceType,
) -> SklResult<FeatureImportancePlot>
pub fn feature_importance( &self, importance_values: &ArrayView1<'_, Float>, feature_names: Option<&[String]>, plot_type: FeatureImportanceType, ) -> SklResult<FeatureImportancePlot>
Create feature importance plot with factory defaults
Sourcepub fn shap_summary(
&self,
shap_values: &ArrayView2<'_, Float>,
feature_values: &ArrayView2<'_, Float>,
feature_names: &[String],
) -> SklResult<ShapPlot>
pub fn shap_summary( &self, shap_values: &ArrayView2<'_, Float>, feature_values: &ArrayView2<'_, Float>, feature_names: &[String], ) -> SklResult<ShapPlot>
Create SHAP waterfall plot with factory defaults
Sourcepub fn partial_dependence(
&self,
feature_values: &ArrayView1<'_, Float>,
pd_values: &ArrayView1<'_, Float>,
feature_name: &str,
ice_curves: Option<&ArrayView2<'_, Float>>,
) -> SklResult<PartialDependencePlot>
pub fn partial_dependence( &self, feature_values: &ArrayView1<'_, Float>, pd_values: &ArrayView1<'_, Float>, feature_name: &str, ice_curves: Option<&ArrayView2<'_, Float>>, ) -> SklResult<PartialDependencePlot>
Create partial dependence plot with factory defaults
Sourcepub fn scatter_3d(
&self,
x_values: &ArrayView1<'_, Float>,
y_values: &ArrayView1<'_, Float>,
z_values: &ArrayView1<'_, Float>,
axis_labels: (String, String, String),
) -> SklResult<Plot3D>
pub fn scatter_3d( &self, x_values: &ArrayView1<'_, Float>, y_values: &ArrayView1<'_, Float>, z_values: &ArrayView1<'_, Float>, axis_labels: (String, String, String), ) -> SklResult<Plot3D>
Create 3D scatter plot with factory defaults
Sourcepub fn surface_3d(
&self,
x_grid: &ArrayView2<'_, Float>,
y_grid: &ArrayView2<'_, Float>,
z_surface: &ArrayView2<'_, Float>,
axis_labels: (String, String, String),
) -> SklResult<Surface3D>
pub fn surface_3d( &self, x_grid: &ArrayView2<'_, Float>, y_grid: &ArrayView2<'_, Float>, z_surface: &ArrayView2<'_, Float>, axis_labels: (String, String, String), ) -> SklResult<Surface3D>
Create 3D surface plot with factory defaults
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for VisualizationFactory
impl !UnwindSafe for VisualizationFactory
impl Freeze for VisualizationFactory
impl Send for VisualizationFactory
impl Sync for VisualizationFactory
impl Unpin for VisualizationFactory
impl UnsafeUnpin for VisualizationFactory
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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