pub struct ClassificationInferenceOptions {
pub num_top_classes: Option<u32>,
pub num_top_feature_importance_values: Option<u32>,
pub results_field: Option<String>,
pub top_classes_results_field: Option<String>,
pub prediction_field_type: Option<String>,
}Fields§
§num_top_classes: Option<u32>Specifies the number of top class predictions to return. Defaults to 0.
num_top_feature_importance_values: Option<u32>Specifies the maximum number of feature importance values per document.
results_field: Option<String>The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.
top_classes_results_field: Option<String>Specifies the field to which the top classes are written. Defaults to top_classes.
prediction_field_type: Option<String>Specifies the type of the predicted field to write. Acceptable values are: string, number, Boolean. When Boolean is provided 1.0 is transformed to true and 0.0 to false.
Implementations§
Trait Implementations§
Source§impl Clone for ClassificationInferenceOptions
impl Clone for ClassificationInferenceOptions
Source§fn clone(&self) -> ClassificationInferenceOptions
fn clone(&self) -> ClassificationInferenceOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for ClassificationInferenceOptions
impl Default for ClassificationInferenceOptions
Source§fn default() -> ClassificationInferenceOptions
fn default() -> ClassificationInferenceOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ClassificationInferenceOptions
impl<'de> Deserialize<'de> for ClassificationInferenceOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ClassificationInferenceOptions
impl PartialEq for ClassificationInferenceOptions
Source§fn eq(&self, other: &ClassificationInferenceOptions) -> bool
fn eq(&self, other: &ClassificationInferenceOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ClassificationInferenceOptions
Auto Trait Implementations§
impl Freeze for ClassificationInferenceOptions
impl RefUnwindSafe for ClassificationInferenceOptions
impl Send for ClassificationInferenceOptions
impl Sync for ClassificationInferenceOptions
impl Unpin for ClassificationInferenceOptions
impl UnsafeUnpin for ClassificationInferenceOptions
impl UnwindSafe for ClassificationInferenceOptions
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