Skip to content

Commit

Permalink
Fix dataframe not being recognised (issue #23)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmcinnes committed Nov 21, 2017
1 parent 411dda4 commit e2abc3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions umap/umap_.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from scipy.optimize import curve_fit
from sklearn.base import BaseEstimator
from sklearn.utils import check_random_state
from sklearn.utils import check_random_state, check_array

import numpy as np
import scipy.sparse
Expand Down Expand Up @@ -1520,7 +1520,7 @@ def fit(self, X, y=None):
"""

# Handle other array dtypes (TODO: do this properly)
X = X.astype(np.float64)
X = check_array(X).astype(np.float64)

random_state = check_random_state(self.random_state)

Expand Down

0 comments on commit e2abc3a

Please sign in to comment.