This is a generic baseline repository for Dacon (and Kaggle) competitions. It provides a standardized directory structure, linting, formatting, and essential data science libraries to quickly start any new competition.
_inbox/: 사용자(User)와 에이전트(Agent) 간의 소통 창구. 이미지나 임시 문서를 올려두는 Dropzone.configs/: Hydra configuration files (e.g.,config.yaml) for centralizing hyperparameters and settings.data/: Store datasets here.raw/for unmodified original data,processed/for cleaned/engineered data.docs/: Project documentation, strategy notes, and planning.MASTER_PLAN.md: 대회 전반의 목표와 운영 지침.competition_info/: 대회 공식 개요, 규칙, 평가 산식 등 정보 저장소.DATA_DICTIONARY.md: 피처 명세 및 EDA 발견점 기록 템플릿.SUBMISSION_HISTORY.md: 리더보드 제출 결과 및 실험 실패 기록부.infrastructure/: 도구별 세부 활용 매뉴얼.
models/: Saved models and weights.notebooks/: Jupyter notebooks for EDA and experimentation.scripts/: Executable scripts for setup and workflow orchestration.setup_kaggle.py: Sets up metadata and paths for code/data/notebook deployment to Kaggle.
src/: Reusable source code.data/: Data loading logic.features/: Feature engineering.models/: Model architecture definitions.
submissions/: Output CSV files for competition submission.tests/: Unit tests.
-
Compile Dependencies (if modifying requirements.in):
make deps
-
Install Dependencies:
make install
-
Kaggle API Setup: To push datasets and notebooks to Kaggle, you need your Kaggle API credentials:
- Go to your Kaggle account settings (https://www.kaggle.com/settings).
- Click "Create New Token" to download
kaggle.json. - Place the file in
~/.kaggle/kaggle.jsonand secure it:mkdir -p ~/.kaggle mv path/to/kaggle.json ~/.kaggle/ chmod 600 ~/.kaggle/kaggle.json
-
Environment Variables: Copy
.env.exampleto.envand fill in necessary keys.cp .env.example .env
Note:
DACON_TOKEN,DACON_TEAMNAME,WANDB_API_KEY, andHF_TOKENare configured globally in~/.zshrcand do not need to be set in the.envfile per project.
- Format Code:
make format - Lint Code:
make lint - Type Check:
make typecheck - Run Tests:
make test
Since heavy modeling is often offloaded to Kaggle Kernels:
-
Push Datasets: Upload your
data/folder as a standalone Kaggle dataset.make kaggle-push-data
-
Push Local Source Code & Configs: Turns your
src/andconfigs/folders into a Kaggle dataset so they can be imported in notebooks.make kaggle-push-code
Note: This automatically creates metadata using your environment variables (or requests your username) and zips the files to push.
-
Push and Run Notebook: Push the main notebook located in
notebooks/kaggle_runner/to Kaggle for execution. The notebook code is automatically updated to point to your new datasets.make kaggle-push-notebook
-
Download Outputs:
make kaggle-pull-output
- Blog note: Dacon Base Template