evidently.metrics
Available metrics for Reports and Tests. All metrics is grouped into modules. For specific group see module documentation.
Subpackages
Submodules
base_metric module
class ErrorResult(exception: BaseException)
Bases: object
Attributes:
exception : BaseException
class InputData(reference_data: Optional[pandas.core.frame.DataFrame], current_data: pandas.core.frame.DataFrame, column_mapping: ColumnMapping, data_definition: DataDefinition)
Bases: object
Attributes:
column_mapping : ColumnMapping
current_data : DataFrame
data_definition : DataDefinition
reference_data : Optional[DataFrame]
class Metric()
Bases: Generic
[TResult
]
Attributes:
context = None
Methods:
abstract calculate(data: InputData)
get_id()
get_parameters()
get_result()
set_context(context)
generate_column_metrics(metric_class: Type[Metric], columns: Optional[Union[str, list]] = None, parameters: Optional[Dict] = None, skip_id_column: bool = False)
Function for generating metrics for columns
utils module
apply_func_to_binned_data(df_for_bins, func, target_column, preds_column, is_ref_data=False)
make_target_bins_for_reg_plots(curr: DataFrame, target_column, preds_column, ref: Optional[DataFrame] = None)
Last updated