pub struct SVMVisualizer { /* private fields */ }Expand description
Comprehensive SVM visualizer
Implementations§
Source§impl SVMVisualizer
impl SVMVisualizer
Sourcepub fn new(config: VisualizationConfig) -> Self
pub fn new(config: VisualizationConfig) -> Self
Create a new SVM visualizer
Sourcepub fn plot_2d_classification<F>(
&self,
x: &Array2<f64>,
y: &Array1<f64>,
support_vectors: &[usize],
decision_function: F,
) -> SVMResult<Plot2D>
pub fn plot_2d_classification<F>( &self, x: &Array2<f64>, y: &Array1<f64>, support_vectors: &[usize], decision_function: F, ) -> SVMResult<Plot2D>
Visualize 2D SVM classification
Sourcepub fn plot_kernel_matrix(
&self,
kernel_matrix: &Array2<f64>,
labels: Option<&Array1<f64>>,
) -> KernelMatrixPlot
pub fn plot_kernel_matrix( &self, kernel_matrix: &Array2<f64>, labels: Option<&Array1<f64>>, ) -> KernelMatrixPlot
Visualize kernel matrix
Sourcepub fn plot_convergence(
&self,
objective_values: Vec<f64>,
iteration_numbers: Vec<usize>,
tolerance: f64,
) -> ConvergencePlot
pub fn plot_convergence( &self, objective_values: Vec<f64>, iteration_numbers: Vec<usize>, tolerance: f64, ) -> ConvergencePlot
Visualize training convergence
Sourcepub fn create_interactive_html(
&self,
_plot_data: &Plot2D,
include_controls: bool,
) -> String
pub fn create_interactive_html( &self, _plot_data: &Plot2D, include_controls: bool, ) -> String
Create interactive HTML visualization
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SVMVisualizer
impl RefUnwindSafe for SVMVisualizer
impl Send for SVMVisualizer
impl Sync for SVMVisualizer
impl Unpin for SVMVisualizer
impl UnsafeUnpin for SVMVisualizer
impl UnwindSafe for SVMVisualizer
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