abidlabs / contrastive

Contrastive PCA
MIT License
199 stars 47 forks source link

Update __init__.py #18

Closed gabriel-santanna closed 3 years ago

gabriel-santanna commented 3 years ago

Updated function cpca_alpha - was giving error if the parameter "dataset" passed to it was pandas dataframe, because the slicing method used was deprecated in pandas.

Fixed error by converting pandas dataframes to numpy arrays.