#[non_exhaustive]pub struct ClassifierMetadataBuilder { /* private fields */ }Expand description
A builder for ClassifierMetadata.
Implementations§
source§impl ClassifierMetadataBuilder
 
impl ClassifierMetadataBuilder
sourcepub fn number_of_labels(self, input: i32) -> Self
 
pub fn number_of_labels(self, input: i32) -> Self
The number of labels in the input data.
sourcepub fn set_number_of_labels(self, input: Option<i32>) -> Self
 
pub fn set_number_of_labels(self, input: Option<i32>) -> Self
The number of labels in the input data.
sourcepub fn get_number_of_labels(&self) -> &Option<i32>
 
pub fn get_number_of_labels(&self) -> &Option<i32>
The number of labels in the input data.
sourcepub fn number_of_trained_documents(self, input: i32) -> Self
 
pub fn number_of_trained_documents(self, input: i32) -> Self
The number of documents in the input data that were used to train the classifier. Typically this is 80 to 90 percent of the input documents.
sourcepub fn set_number_of_trained_documents(self, input: Option<i32>) -> Self
 
pub fn set_number_of_trained_documents(self, input: Option<i32>) -> Self
The number of documents in the input data that were used to train the classifier. Typically this is 80 to 90 percent of the input documents.
sourcepub fn get_number_of_trained_documents(&self) -> &Option<i32>
 
pub fn get_number_of_trained_documents(&self) -> &Option<i32>
The number of documents in the input data that were used to train the classifier. Typically this is 80 to 90 percent of the input documents.
sourcepub fn number_of_test_documents(self, input: i32) -> Self
 
pub fn number_of_test_documents(self, input: i32) -> Self
The number of documents in the input data that were used to test the classifier. Typically this is 10 to 20 percent of the input documents, up to 10,000 documents.
sourcepub fn set_number_of_test_documents(self, input: Option<i32>) -> Self
 
pub fn set_number_of_test_documents(self, input: Option<i32>) -> Self
The number of documents in the input data that were used to test the classifier. Typically this is 10 to 20 percent of the input documents, up to 10,000 documents.
sourcepub fn get_number_of_test_documents(&self) -> &Option<i32>
 
pub fn get_number_of_test_documents(&self) -> &Option<i32>
The number of documents in the input data that were used to test the classifier. Typically this is 10 to 20 percent of the input documents, up to 10,000 documents.
sourcepub fn evaluation_metrics(self, input: ClassifierEvaluationMetrics) -> Self
 
pub fn evaluation_metrics(self, input: ClassifierEvaluationMetrics) -> Self
Describes the result metrics for the test data associated with an documentation classifier.
sourcepub fn set_evaluation_metrics(
    self,
    input: Option<ClassifierEvaluationMetrics>
) -> Self
 
pub fn set_evaluation_metrics( self, input: Option<ClassifierEvaluationMetrics> ) -> Self
Describes the result metrics for the test data associated with an documentation classifier.
sourcepub fn get_evaluation_metrics(&self) -> &Option<ClassifierEvaluationMetrics>
 
pub fn get_evaluation_metrics(&self) -> &Option<ClassifierEvaluationMetrics>
Describes the result metrics for the test data associated with an documentation classifier.
sourcepub fn build(self) -> ClassifierMetadata
 
pub fn build(self) -> ClassifierMetadata
Consumes the builder and constructs a ClassifierMetadata.
Trait Implementations§
source§impl Clone for ClassifierMetadataBuilder
 
impl Clone for ClassifierMetadataBuilder
source§fn clone(&self) -> ClassifierMetadataBuilder
 
fn clone(&self) -> ClassifierMetadataBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ClassifierMetadataBuilder
 
impl Debug for ClassifierMetadataBuilder
source§impl Default for ClassifierMetadataBuilder
 
impl Default for ClassifierMetadataBuilder
source§fn default() -> ClassifierMetadataBuilder
 
fn default() -> ClassifierMetadataBuilder
source§impl PartialEq for ClassifierMetadataBuilder
 
impl PartialEq for ClassifierMetadataBuilder
source§fn eq(&self, other: &ClassifierMetadataBuilder) -> bool
 
fn eq(&self, other: &ClassifierMetadataBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ClassifierMetadataBuilder
Auto Trait Implementations§
impl Freeze for ClassifierMetadataBuilder
impl RefUnwindSafe for ClassifierMetadataBuilder
impl Send for ClassifierMetadataBuilder
impl Sync for ClassifierMetadataBuilder
impl Unpin for ClassifierMetadataBuilder
impl UnwindSafe for ClassifierMetadataBuilder
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
source§impl<T> Instrument for T
 
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
 
fn instrument(self, span: Span) -> Instrumented<Self>
source§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>
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>
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