Python/Error Solution
TypeError: ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
rrimyuu
2024. 10. 16. 10:44
TypeError: ufunc 'invert' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
ground_truth = np.asarray(ground_truth, dtype=int) # added
assert np.array_equal(np.unique(ground_truth), [0, 1])
order = (~ground_truth).argsort()