Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Docker installiert https://docs.docker.com/engine/install/

Python installieren?

Autostart: 

Code Block
sudo systemctl enable docker.service
sudo systemctl enable containerd.service
sudo usermod -a -G docker admin #um den Dockerdaemon ansprechen zu dürfen

...

  • Either from API (ddbIds are contained in /data/ddb/tools/ise-apd-classification/data/onjectIds.csv) or from Files (contained in /data/ddb/tools/ise-apd-classification/data/dump)
  • objectIds or Files have to get delivered by Archives.

  • Code Block
    titleLoad Data
    cd /data/ddb/tools/ise-apd-classification
    
    #From API
    docker run --rm -v "$(pwd)"/data:/usr/src/app/data --name APDclassifier apdweimar:latest python loadData.py
    
    #From Files (Path to dumpfiles is defined in /data/ddb/tools/ise-apd-classification/config.py)
    docker run --rm -v "$(pwd)"/data:/usr/src/app/data --name APDclassifier apdweimar:latest python loadData.py --local
    
    #Output is in /data/ddb/tools/ise-apd-classification/data/input


Create Suggestions:


  • Code Block
    titleCreate Suggestions
    cd /data/ddb/tools/ise-apd-classification
    docker run --rm -v "$(pwd)"/data:/usr/src/app/data --name APDclassifier apdweimar:latest python classification.py -m TfIdfClassifier -s data/models/tfidf.pickle data/output/predictions.csv
    # Maybe use different model (-m) and load existing trained model instead of creating a new one (-l instead of -s)

    Which model to use? When to save a new trained model?

Load Suggestions:


  • Code Block
    titleLoad Suggestions
    # Configure Assignment-Tool-Backend URL in /data/ddb/tools/ise-apd-classification/config.py
     docker run --rm -v "$(pwd)"/data:/usr/src/app/data --name APDclassifier apdweimar:latest python uploadPredictions.py data/output/predictions.csv

    FEHLER beim Purge: 2022-04-07 09:46:30.500 ERROR [d.f.d.a.s.AssignmentToolBackendExceptionMapper] - URL: http://dev-apd.fiz-karlsruhe.de/assignment-tool-backend/keyword-relation, Method: DELETE, Message: NotAllowedException: HTTP 405 Method Not Allowed