pub struct DataPipeline { /* private fields */ }Expand description
Data pipeline
Implementations§
Source§impl DataPipeline
impl DataPipeline
pub fn new() -> Self
pub fn initialize(&mut self) -> Result<(), MLError>
Sourcepub fn register_data_source(&mut self, source: DataSource)
pub fn register_data_source(&mut self, source: DataSource)
Register a data source under its source id.
Sourcepub fn get_data_source(&self, source_id: &str) -> Option<&DataSource>
pub fn get_data_source(&self, source_id: &str) -> Option<&DataSource>
Get a registered data source by id.
Sourcepub fn list_data_sources(&self) -> Vec<String>
pub fn list_data_sources(&self) -> Vec<String>
List the ids of all registered data sources.
Sourcepub fn register_transformer(&mut self, transformer: DataTransformer)
pub fn register_transformer(&mut self, transformer: DataTransformer)
Register a data transformer under its transformer id.
Sourcepub fn get_transformer(&self, transformer_id: &str) -> Option<&DataTransformer>
pub fn get_transformer(&self, transformer_id: &str) -> Option<&DataTransformer>
Get a registered data transformer by id.
Sourcepub fn list_transformers(&self) -> Vec<String>
pub fn list_transformers(&self) -> Vec<String>
List the ids of all registered data transformers.
Sourcepub fn register_loader(&mut self, loader: DataLoader)
pub fn register_loader(&mut self, loader: DataLoader)
Register a data loader under its loader id.
Sourcepub fn get_loader(&self, loader_id: &str) -> Option<&DataLoader>
pub fn get_loader(&self, loader_id: &str) -> Option<&DataLoader>
Get a registered data loader by id.
Sourcepub fn list_loaders(&self) -> Vec<String>
pub fn list_loaders(&self) -> Vec<String>
List the ids of all registered data loaders.
Sourcepub fn register_augmenter(&mut self, augmenter: DataAugmenter)
pub fn register_augmenter(&mut self, augmenter: DataAugmenter)
Register a data augmenter under its augmenter id.
Sourcepub fn get_augmenter(&self, augmenter_id: &str) -> Option<&DataAugmenter>
pub fn get_augmenter(&self, augmenter_id: &str) -> Option<&DataAugmenter>
Get a registered data augmenter by id.
Sourcepub fn list_augmenters(&self) -> Vec<String>
pub fn list_augmenters(&self) -> Vec<String>
List the ids of all registered data augmenters.
Auto Trait Implementations§
impl Freeze for DataPipeline
impl RefUnwindSafe for DataPipeline
impl Send for DataPipeline
impl Sync for DataPipeline
impl Unpin for DataPipeline
impl UnsafeUnpin for DataPipeline
impl UnwindSafe for DataPipeline
Blanket Implementations§
§impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
impl<S, A> Aggregate<Result<S, Error>> for Awhere
A: Aggregate<S>,
Aggregate shares in an MPC protocol.
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<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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