The binclass-tools package contains a set of Python wrappers and interactive plots that facilitate the analysis of binary classification problems.
BSD 3-Clause "New" or "Revised" License
75
stars
11
forks
source link
Error on small data #2
Closed
kliegr closed 1 year ago
Assume the following small test case
The package will fail at --> 676 baseline = len(true_y[true_y==1]) / len(true_y) TypeError: object of type 'bool' has no len()
The reason seems to be that after the subsetting, the list degenerated to a single item and ceased to be list.