隔离森林 Rust中带有选项Python绑定的隔离林实现。 例子 use isoforest :: {IsolationForestParams, IsolationTreeParams, MaxFeatures, MaxSamples}; use ndarray :: array; use std :: io :: Result ; use linfa :: dataset :: DatasetBase; use linfa :: traits :: {Fit, Predict}; fn main () -> Result <()> { let data = array! [ [ - 2.0 , - 1.0 ], [ - 1.0 , - 1.0 ], [ - 1.0 , - 2.0 ], [ 1.0 , 1.0 ],