Load outside from dss sklearn models with pickle
Paucns
Dataiku DSS Core Designer, Registered Posts: 1 ✭✭✭
Hello,
I'm trying to load a python model in a.sav file with pickle, form a project outside DSS. The DSS is running in a container. I can't access the file with "open", it returns the following error:
[Errno 2] No such file or directory:
Is there a way to load external files to a python recipe with Pickle? or any alternative approach?
Thanks!
Tagged:
Answers
-
Hi @Paucns
By default you don't have access to your host filesystem from inside a Docker container. What you can do is to mount a volume by providing an extra parameter to the "docker run" command:
docker run [other parameters] -v /path/on/host:/path/inside/container
This will allow you to access files in
/path/on/host
on the host from/path/inside/container
in container.Regards