Skip to main content

T-REC learner libs

Project description

TREC Learner

For production config, set ENV to production

How to Run

  1. Install requeriments

    • python3 -m venv .venv
    • source ./.venv/bin/activate
    • pip install -r requirements.txt
  2. Config parameters

    • cp .env.example .env
    • cp pytest.ini.example pytest.ini
    • fill .env and pytest.ini
  3. Run learner

    • ./run.sh

How to Setup

All application variables are exposed in src/config.py. Container variables are exposed in .env:

  • Learner Options:

    Option Description
    LEARNER_DAYS_INTERVAL Learner interval in days
    LEARNER_ROOT_MODEL_DIR Temporary root dir used during trainning
    LEARNER_MODEL_DIR Temporary dir used store model files
  • Connection Options:

    Option Description
    MONGODB_URI Mongo URI (without database name)
    MONGODB_DATABASE Mongo database with PLM data
    MONGODB_COLLECTION Mongo collection with issue-document data
    MINIO_HOST MinIO host (without http://)
    MINIO_ACCESS_KEY MinIO Key
    MINIO_SECRET_KEY MinIO Secret
    MINIO_RECOMMENDER_BUCKET MinIO recommender bucket
  • Scheduler Options:

    Option Description
    JOB_FREQUENCY Frequency to run job (seconds interval for dev mode)
    JOB_FREQUENCY Frequency to run job (hour of day for production mode)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dart-trec-learner-1.0.0.tar.gz (17.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dart_trec_learner-1.0.0-py3-none-any.whl (20.1 kB view details)

Uploaded Python 3

File details

Details for the file dart-trec-learner-1.0.0.tar.gz.

File metadata

  • Download URL: dart-trec-learner-1.0.0.tar.gz
  • Upload date:
  • Size: 17.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.13.0 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.32.3 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for dart-trec-learner-1.0.0.tar.gz
Algorithm Hash digest
SHA256 62e88b31f7ff40fc116a0e16bd564f1d5857642f9448447c9b16a5c3500d95a2
MD5 76e30ec15fa2ceb78a58e84b24092173
BLAKE2b-256 0cf7a6cb4a4ab9b1e63a52c6a78da155e0380683733ec52f2ef5960276e50f7e

See more details on using hashes here.

File details

Details for the file dart_trec_learner-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: dart_trec_learner-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 20.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 colorama/0.4.4 importlib-metadata/4.13.0 keyring/23.5.0 pkginfo/1.8.2 readme-renderer/34.0 requests-toolbelt/0.9.1 requests/2.32.3 rfc3986/1.5.0 tqdm/4.57.0 urllib3/1.26.5 CPython/3.10.12

File hashes

Hashes for dart_trec_learner-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 64359fc55aff1003b5eec64404c6116186f08af496b315b08a8041103873e746
MD5 0f7dc97973663eac6ba0825e74b31ae9
BLAKE2b-256 094d65c46d4597db5c9e5380f7c5da6df7b6b8e10403b1ac93c2e67658716e77

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page