Skip to main content

TreePathViz

Trait TreePathViz 

Source
pub trait TreePathViz {
    // Required methods
    fn to_tree_graph(&self) -> Result<Framebuffer>;
    fn to_tree_graph_with(&self, width: u32, height: u32) -> Result<Framebuffer>;
    fn to_waterfall_chart(&self, feature_names: &[&str]) -> Result<Framebuffer>;
}
Expand description

Visualization extensions for tree-based decision paths.

Required Methods§

Source

fn to_tree_graph(&self) -> Result<Framebuffer>

Render the decision path as a tree graph.

Source

fn to_tree_graph_with(&self, width: u32, height: u32) -> Result<Framebuffer>

Render with custom dimensions.

Source

fn to_waterfall_chart(&self, feature_names: &[&str]) -> Result<Framebuffer>

Create a waterfall chart showing cumulative decision impact.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§