mlquantify.utils.general#
Converts specified columns in a DataFrame from strings of arrays to NumPy arrays. |
|
Generate indexes for a stratified sample based on the prevalence of each class. |
|
Generates n artificial prevalences with n dimensions. |
|
Get the real prevalence of each class in the target array. |
|
Load a quantifier from a file. |
|
Generate a list of n_dim values uniformly distributed between 0 and 1 that sum exactly to 1. |
|
Normalize the prevalence of each class to sum to 1. |
|
Run a function in parallel on a list of elements. |
|
Round the columns of a protocol dataframe to a specified number of decimal places. |
|
Get the measure from the evaluation module. |
|
Get the method from the methods module. |