#[non_exhaustive]pub struct DatasetValidation {
pub document_error_count: i32,
pub dataset_error_count: i32,
pub document_errors: Vec<Status>,
pub dataset_errors: Vec<Status>,
/* private fields */
}Expand description
The dataset validation information. This includes any and all errors with documents and the dataset.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.document_error_count: i32The total number of document errors.
dataset_error_count: i32The total number of dataset errors.
document_errors: Vec<Status>Error information pertaining to specific documents. A maximum of 10 document errors will be returned. Any document with errors will not be used throughout training.
dataset_errors: Vec<Status>Error information for the dataset as a whole. A maximum of 10 dataset errors will be returned. A single dataset error is terminal for training.
Implementations§
Source§impl DatasetValidation
impl DatasetValidation
pub fn new() -> Self
Sourcepub fn set_document_error_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_document_error_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of document_error_count.
Sourcepub fn set_dataset_error_count<T: Into<i32>>(self, v: T) -> Self
pub fn set_dataset_error_count<T: Into<i32>>(self, v: T) -> Self
Sets the value of dataset_error_count.
Sourcepub fn set_document_errors<T, V>(self, v: T) -> Self
pub fn set_document_errors<T, V>(self, v: T) -> Self
Sets the value of document_errors.
Sourcepub fn set_dataset_errors<T, V>(self, v: T) -> Self
pub fn set_dataset_errors<T, V>(self, v: T) -> Self
Sets the value of dataset_errors.
Trait Implementations§
Source§impl Clone for DatasetValidation
impl Clone for DatasetValidation
Source§fn clone(&self) -> DatasetValidation
fn clone(&self) -> DatasetValidation
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatasetValidation
impl Debug for DatasetValidation
Source§impl Default for DatasetValidation
impl Default for DatasetValidation
Source§fn default() -> DatasetValidation
fn default() -> DatasetValidation
Returns the “default value” for a type. Read more
Source§impl Message for DatasetValidation
impl Message for DatasetValidation
Source§impl PartialEq for DatasetValidation
impl PartialEq for DatasetValidation
impl StructuralPartialEq for DatasetValidation
Auto Trait Implementations§
impl Freeze for DatasetValidation
impl RefUnwindSafe for DatasetValidation
impl Send for DatasetValidation
impl Sync for DatasetValidation
impl Unpin for DatasetValidation
impl UnwindSafe for DatasetValidation
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