From be1fa757d61e957da24f5f3b31ba17461067280f Mon Sep 17 00:00:00 2001 From: Alex Moreo Date: Thu, 27 May 2021 16:56:09 +0200 Subject: [PATCH] cleaning --- quapy/evaluation.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/quapy/evaluation.py b/quapy/evaluation.py index cfbc492..1fb5517 100644 --- a/quapy/evaluation.py +++ b/quapy/evaluation.py @@ -132,7 +132,7 @@ def artificial_sampling_report( true_prevs, estim_prevs = artificial_sampling_prediction( model, test, sample_size, n_prevpoints, n_repetitions, eval_budget, n_jobs, random_seed, verbose ) - return __sampling_report(true_prevs, estim_prevs, error_metrics) + return _sampling_report(true_prevs, estim_prevs, error_metrics) def natural_sampling_report( @@ -148,10 +148,10 @@ def natural_sampling_report( true_prevs, estim_prevs = natural_sampling_prediction( model, test, sample_size, n_repetitions, n_jobs, random_seed, verbose ) - return __sampling_report(true_prevs, estim_prevs, error_metrics) + return _sampling_report(true_prevs, estim_prevs, error_metrics) -def __sampling_report( +def _sampling_report( true_prevs, estim_prevs, error_metrics: Iterable[Union[str, Callable]] = 'mae'):