Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM ubuntu:20.04

RUN apt-get update
RUN apt-get install -y zip python3-pip

RUN mkdir workspace
COPY src /workspace

WORKDIR /workspace
RUN pip3 install -r requirements.txt

CMD sh scripts/run_e2e.sh
38 changes: 0 additions & 38 deletions LICENSE

This file was deleted.

58 changes: 27 additions & 31 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,39 +1,35 @@
### The directory structure
# AI4VN 2022 - Air Quality Forecasting Challenge
## Team: LQDBD
- Nguyễn Tiến Hưng
- Nguyễn Quang Bình
- Nguyễn Hữu Đạt
- Lê Minh Tú

## Hướng dẫn reproduce lại kết quả
Đầu tiên, tiến hành build Docker image
```
├── README.md <- The top-level README for developers using this project.
├── data
│ ├── raw <- The original, immutable data dump.
│ ├── interim <- Intermediate data that has been transformed.
│ ├── processed <- The final, canonical data sets for modeling.
│ └── external <- Data from third party sources.
├── saved <- Trained and serialized models, model predictions, or model summaries
├── notebooks <- Jupyter notebooks. Naming convention is task name SHKPA-XX (for ordering),
│ the creator's initials, and a short `-` delimited description, e.g.
│ `SHKPA-67-mms-test-LSTM-model-on-all-electrolyses`.
├── docs <- Questions and some other related documentation
├── results <- submission.
├── config <- config file.
├── .gitignore <- Avoids uploading data, credentials, outputs, system files etc
├── requirements.txt <- The requirements file for reproducing the analysis environment, e.g.
│ generated with `pip freeze > requirements.txt`
|
└── src <- Source code for use in this project.
docker build -t <tên image> .
```
### Command
Training

Sau khi quá trình build Docker image hoàn tất, vui lòng chỉnh sửa file `run_container.sh` để tiến hành mount các folder chứa dữ liệu cần thiết:
- folder data-train
- folder public-test
- folder chứa file zip kết quả prediction (`prediction.zip`)

Lưu ý: khi mount cần mount trực tiếp vào folder cha, ví dụ khi data trên máy được lưu có cấu trúc:
```
python src/train.py --config config/config.yaml
ai4vn-aqf
├── data-train
├── input/
├── output/
└── location.csv
```
Thì cần mount như sau: `/ai4vn-aqf/data-train/:/data/train/raw/`

Inference result
Khi đã hoàn tất mount folder thì có thể tiến hành chạy docker container
```
python src/inference.py --config config/config.yaml
sh run_container.sh
```



51 changes: 0 additions & 51 deletions config/config.yaml

This file was deleted.

12 changes: 0 additions & 12 deletions data/external/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions data/interim/.gitignore

This file was deleted.

12 changes: 0 additions & 12 deletions data/processed/.gitignore

This file was deleted.

Loading