calvinmccarter / kditransform

Kernel density integral transformation: feature preprocessing and univariate clustering

Home Page:https://openreview.net/pdf?id=6OEcDKZj5j

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

stats not found

muellermarkus opened this issue · comments

I tried to load and use the KDITransformer inplace of the QuantileTransformer. I get the error that stats has not been found. It seems like the import of the scipy.stats is not working out. You currently import it as import scipy.stats as spst but refer to it as stats.

X_col = stats.norm.ppf(X_col)

@muellermarkus - thanks for catching this! I've pushed a fix (commit 7c6c85d), so this should work now, assuming you're installing from source. (I will update the pypi package soon as well.)

One caveat is that I support output_distribution='normal' for backwards-compatibility, but never experimented with it, and I would recommend using the default output_distribution='uniform' for most use-cases.

Fixed as of commit 7c6c85d, which is now uploaded to v0.2 release on PyPI.