Closed
Description
- I am testing edge cases (not on purpose haha)
- I have indices like this:
Epi_Abs_BEST4+__H335__M21_00014
- The clustering or some earlier step seems to replace the
+
with.
- Full error for findability
Traceback (most recent call last):
File "/path/to/proj.snakemake/scripts/tmph6wb_w6l.validation_external.py", line 68, in <module>
idx_dfs["AMI"].loc[clustering, metadata] = metrics.adjusted_mutual_info_score(categorical_metadata[metadata], clustering_results[clustering])
File "/path/to/conda/ea520d7177268389aea78d788e0c3541_/lib/python3.9/site-packages/sklearn/utils/_param_validation.py", line 211, in wrapper
return func(*args, **kwargs)
File "/path/to/conda/ea520d7177268389aea78d788e0c3541_/lib/python3.9/site-packages/sklearn/metrics/cluster/_supervised.py", line 1000, in adjusted_mutual_info_score
labels_true, labels_pred = check_clusterings(labels_true, labels_pred)
File "/path/to/conda/ea520d7177268389aea78d788e0c3541_/lib/python3.9/site-packages/sklearn/metrics/cluster/_sup
ervised.py", line 50, in check_clusterings
labels_pred = check_array(
File "/path/to/conda/ea520d7177268389aea78d788e0c3541_/lib/python3.9/site-packages/sklearn/utils/validation.py", line 959, in check_array
_assert_all_finite(
File "/path/to/conda/ea520d7177268389aea78d788e0c3541_/lib/python3.9/site-packages/sklearn/utils/validation.py"
, line 124, in _assert_all_finite
_assert_all_finite_element_wise(
File "/path/to/conda/ea520d7177268389aea78d788e0c3541_/lib/python3.9/site-packages/sklearn/utils/validation.py"
, line 173, in _assert_all_finite_element_wise
raise ValueError(msg_err)
ValueError: Input contains NaN.