GeoStat-Framework / PyKrige

Kriging Toolkit for Python
https://pykrige.readthedocs.io
BSD 3-Clause "New" or "Revised" License
740 stars 186 forks source link

kr and ck are not imported in __init__.py #270

Closed hayato-n closed 8 months ago

hayato-n commented 1 year ago

I installed this library and tried to use RegressionKriging. But I could not import pykrige.rk.

I found that in init.py , rk.py and ck.py are not imported and are not added to __all__.

I suspect that they should be added.

MuellerSeb commented 8 months ago

Since scikit-learn is an optional dependency, this would immediately raise an error here if it is not installed.

You should use the imports shown in the documentation here and here:

from pykrige.rk import RegressionKriging
from pykrige.ck import ClassificationKriging