Struct isolation_forest::isolation_forest::Forest [−][src]
pub struct Forest { /* fields omitted */ }
Isolation Forest implementation.
Implementations
impl Forest
[src]
impl Forest
[src]pub fn new(num_trees_to_create: u32, sub_sampling_size: u32) -> Forest
[src]
pub fn add_sample(&mut self, sample: Sample)
[src]
pub fn create(&mut self)
[src]
Creates a forest containing the number of trees specified to the constructor.
pub fn score(&self, sample: &Sample) -> f64
[src]
Scores the sample against the entire forest of trees. Result is the average path length.
pub fn normalized_score(&self, sample: &Sample) -> f64
[src]
Scores the sample against the entire forest of trees. Result is normalized so that values close to 1 indicate anomalies and values close to zero indicate normal values.“”“
pub fn dump(&self) -> String
[src]
pub fn load(&self, json_str: &String)
[src]
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Forest
impl !RefUnwindSafe for Forest
impl !UnwindSafe for Forest
impl !UnwindSafe for Forest