src.threshold#

Module Contents#

Functions#

mean_std(→ list[int])

Return a list of bool showing the positions of the predictions which are grater equal

src.threshold.mean_std(predictions: list[float], t: float) list[int]#

Return a list of bool showing the positions of the predictions which are grater equal than the threshold. The threshold equals the mean of predictions plus the product of parameter t and std of predictions.

Parameters:
  • predictions (list[float]) – a list of predictions

  • t (float) – input float

Returns:

a list of 0 and 1 showing the posision of the non-passed and passed predictions correspondingly

Return type:

list[int]