Open mike0sv opened 2 years ago
Related to this, looks like even a part of the same problem:
>>> res = apply_remote("http", "data/Churn_Modelling_0.csv", method="predict")
mlem.core.errors.MlemObjectNotFound: MLEM object was not found at `data/Churn_Modelling_0.csv`
We should resolve this automatically.
From the API the intended usage is to call import_object
explicitly
Right now you have to manually set importing type when you use
import
orapply
except for pickle imports, because all other implementations (pandas) are a part of ext and are not loaded by default. But if you are importingcsv
file we should understand that we need to try to import pandas ext if it is available. For this we should introduce multiple names for ABC implementation for entrypoints and register each extension as an entrypoint likeimport_type.csv = ....PandasHook, import_type.parquet = PandasHook
etc