trw.reporting.normalize_data
¶
Module Contents¶
Functions¶
|
|
|
Normalize, subsample and categorize the data |
- trw.reporting.normalize_data.resize_arrays(arrays: List[numpy.ndarray], shape=None) numpy.ndarray ¶
- trw.reporting.normalize_data.normalize_data(options, data, table_name)¶
Normalize, subsample and categorize the data
The following operations are performed: - convert to numpy arrays - removed type column and return a specific type dictionary - normalize the path according to deployment: if static html, nothing to do
if deployed, we MUST add the app name (the top folder name containing the SQL DB) as root
categorize the data as continuous, discrete unordered, discrete ordered, other
recover the DB type (string) from data values (e.g., float or int)