dataeval.outputs.SufficiencyOutput¶
- class dataeval.outputs.SufficiencyOutput¶
Output class for
Sufficiencyworkflow.- measures¶
3D array [runs, substep, classes] of values for all runs observed for each sample size step for each measure
- Type:¶
dict[str, NDArray]
- averaged_measures¶
Average of values for all runs observed for each sample size step for each measure
- Type:¶
dict[str, NDArray]
- n_iter¶
Number of iterations to perform in the basin-hopping curve-fit process
- Type:¶
int, default 1000
- unit_interval¶
Constrains the power law to the interval [0, 1]. Set True (default) for metrics such as accuracy, precision, and recall which are defined to take values on [0,1]. Set False for metrics not on the unit interval.
- Type:¶
bool, default True
-
inv_project(targets, n_iter=
None)¶ Calculate training samples needed to achieve target model metric values.
-
plot(class_names=
None, error_bars=True, asymptote=True)¶ Plotting function for data sufficience tasks.
- Parameters:¶
- Returns:¶
List of Figures for each measure
- Return type:¶
Sequence[Figure]
- Raises:¶
ValueError – If the length of data points in the measures do not match
Notes
This method requires matplotlib to be installed.
- project(projection)¶
Projects the measures for each step.