Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile 637 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  1. FROM python:3.8.6
  2. RUN mkdir model
  3. ENV MODEL_DIR=/model
  4. ENV MODEL_FILE=random_forest_model.pkl
  5. RUN mkdir reports
  6. RUN mkdir reports/metrics
  7. ENV METRICS_DIR=/reports/metrics
  8. ENV METRICS_FILE=eval.json
  9. RUN mkdir data
  10. RUN mkdir data/prepared
  11. ADD data/prepared/ ./data/prepared/
  12. COPY gene_expressions/train.py ./train.py
  13. COPY gene_expressions/evaluate.py ./evaluate.py
  14. COPY gene_expressions/predict.py ./predict.py
  15. COPY requirements.txt ./requirements.txt
  16. RUN pip3 install -r requirements.txt
  17. RUN python ./train.py
  18. RUN python ./evaluate.py ROC_AUC_curve.png Confusion_Matrix.png
  19. # RUN python ./predict.py
  20. CMD [ "python", "./predict.py" ]
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...