cistrome / MIRA

Python package for analysis of multiomic single cell RNA-seq and ATAC-seq.
56 stars 8 forks source link

OneHotEncoder: unexpected keyword argument #44

Closed xgaoo closed 6 months ago

xgaoo commented 6 months ago

Hi, When I run the example codes, I got an error:

model.get_learning_rate_bounds(data)

639 def _get_dataset_statistics(self, dataset, training_bar = True): --> 641 self.categorical_transformer = OneHotEncoder( 642 sparse_output = False, 643 dtype = np.float32 644 ) 645 self.continuous_transformer = StandardScaler()

TypeError: OneHotEncoder.init () got an unexpected keyword argument 'sparse_output'

Python 3.10.6 scanpy==1.9.8 anndata==0.8.0 umap==0.5.3 numpy==1.23.4 scipy==1.9.3 pandas==1.5.1 scikit-learn==1.1.3 statsmodels==0.13.5 igraph==0.10.2 pynndescent==0.5.8

How should I fix this? Thanks ahead for the help.

xgaoo commented 6 months ago

Fixed by updating scikit-learn to 1.3 Thanks.