pub struct Touchstone { /* private fields */ }Expand description
Evaluation runner for streaming detectors on Touchstone datasets.
Implementations§
Source§impl Touchstone
impl Touchstone
Sourcepub fn new(data_dir: &Path) -> Self
pub fn new(data_dir: &Path) -> Self
Creates a new evaluation runner for datasets under data_dir.
Sourcepub fn add_detector<D>(&mut self)where
D: Detector + 'static,
pub fn add_detector<D>(&mut self)where
D: Detector + 'static,
Registers a detector type.
The display name comes from D::name(). A fresh instance is built per
dataset via D::new(n_dimensions).
Sourcepub fn add_detector_factory(&mut self, factory: Box<dyn DetectorFactory>)
pub fn add_detector_factory(&mut self, factory: Box<dyn DetectorFactory>)
Registers a dynamic detector factory.
Use this when the detector type is not known at compile time (e.g. Python detectors).
Sourcepub fn add_metric<M>(&mut self, metric: M)where
M: Metric + 'static,
pub fn add_metric<M>(&mut self, metric: M)where
M: Metric + 'static,
Adds a custom metric used for scoring.
If no metrics are added, the default metric set is used.
Auto Trait Implementations§
impl Freeze for Touchstone
impl !RefUnwindSafe for Touchstone
impl Send for Touchstone
impl !Sync for Touchstone
impl Unpin for Touchstone
impl UnsafeUnpin for Touchstone
impl !UnwindSafe for Touchstone
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
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