Load outside from dss sklearn models with pickle

Paucns
Paucns Dataiku DSS Core Designer, Registered Posts: 1 ✭✭✭
edited July 16 in Using Dataiku

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!

Answers

  • Andrey
    Andrey Dataiker Alumni Posts: 119 ✭✭✭✭✭✭✭
    edited July 17

    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

Setup Info
    Tags
      Help me…