pub struct VisualizationConfig {Show 13 fields
pub color_palette: ColorPalette,
pub figure_size: (usize, usize),
pub resolution: usize,
pub show_support_vectors: bool,
pub show_decision_boundary: bool,
pub show_margins: bool,
pub support_vector_size: f64,
pub point_size: f64,
pub line_width: f64,
pub alpha: f64,
pub title: Option<String>,
pub axis_labels: Option<(String, String)>,
pub show_grid: bool,
}Expand description
Configuration for SVM visualizations
Fields§
§color_palette: ColorPaletteColor palette to use
figure_size: (usize, usize)Figure size (width, height)
resolution: usizeResolution for contour plots
show_support_vectors: boolShow support vectors
show_decision_boundary: boolShow decision boundary
show_margins: boolShow margins
support_vector_size: f64Support vector marker size
point_size: f64Regular point marker size
line_width: f64Line width for boundaries
alpha: f64Transparency level (0.0 to 1.0)
title: Option<String>Title for the plot
axis_labels: Option<(String, String)>Labels for axes
show_grid: boolGrid visibility
Trait Implementations§
Source§impl Clone for VisualizationConfig
impl Clone for VisualizationConfig
Source§fn clone(&self) -> VisualizationConfig
fn clone(&self) -> VisualizationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VisualizationConfig
impl Debug for VisualizationConfig
Auto Trait Implementations§
impl Freeze for VisualizationConfig
impl RefUnwindSafe for VisualizationConfig
impl Send for VisualizationConfig
impl Sync for VisualizationConfig
impl Unpin for VisualizationConfig
impl UnsafeUnpin for VisualizationConfig
impl UnwindSafe for VisualizationConfig
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> 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