mlem icon indicating copy to clipboard operation
mlem copied to clipboard

Autoload Import extensions

Open mike0sv opened this issue 3 years ago • 2 comments

Right now you have to manually set importing type when you use import or apply except for pickle imports, because all other implementations (pandas) are a part of ext and are not loaded by default. But if you are importing csv 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 like import_type.csv = ....PandasHook, import_type.parquet = PandasHook etc

mike0sv avatar May 17 '22 12:05 mike0sv

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.

aguschin avatar Dec 15 '22 07:12 aguschin

From the API the intended usage is to call import_object explicitly

mike0sv avatar Jan 19 '23 11:01 mike0sv