Skip to content

check_array() got an unexpected keyword argument 'ensure_all_finite' #171

@falkinator12345

Description

@falkinator12345

Hey,

if running the newest doubletdetection release (4.3.0.post1) with not the most recent scikit-learn (1.5.2) the call

adata_clf = doubletdetection.BoostClassifier(n_iters=200, clustering_algorithm='leiden', standard_scaling=True, n_jobs=32, random_state=123)

adata_dd_doublets = adata_clf.fit(adata.X).predict(p_thresh=1e-6, voter_thresh=0.8)

throws an error due to change in the variable name for one argument in check_array(), which is deprecated as is and will be removed form the function in future.

https://scikit-learn.org/stable/modules/generated/sklearn.utils.check_array.html
Deprecated since version 1.6: force_all_finite was renamed to ensure_all_finite and will be removed in 1.8.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions