โครงสร้างโครงการที่มีเหตุผลและเป็นมาตรฐาน แต่มีความยืดหยุ่นสำหรับการทำและแบ่งปันงานวิทยาศาสตร์ข้อมูล
CookieCutter Data Science (CCDS) เป็นเครื่องมือในการตั้งค่าเทมเพลตโครงการวิทยาศาสตร์ข้อมูลที่รวมเอาแนวทางปฏิบัติที่ดีที่สุด หากต้องการเรียนรู้เพิ่มเติมเกี่ยวกับปรัชญาของ CCDS ไปที่หน้าแรกของโครงการ
CookieCutter Data Science V2 เปลี่ยนจาก V1 ตอนนี้ต้องมีการติดตั้งแพ็คเกจ Python CookieCutter-Data-Science ใหม่ซึ่งขยายการใช้งานของยูทิลิตี้การทำ CookieCutter Templating ใช้โปรแกรมบรรทัดคำสั่ง
ccdsที่ให้มาแทนcookiecutter
CookieCutter Data Science V2 ต้องใช้ Python 3.8+ เนื่องจากนี่เป็นแอปพลิเคชันยูทิลิตี้ข้ามโครงการเราขอแนะนำให้ติดตั้งด้วย PIPX ตัวเลือกคำสั่งการติดตั้ง:
# With pipx from PyPI (recommended)
pipx install cookiecutter-data-science
# With pip from PyPI
pip install cookiecutter-data-science
# With conda from conda-forge (coming soon)
# conda install cookiecutter-data-science -c conda-forge ในการเริ่มต้นโครงการใหม่ Run:
ccdsโครงสร้างไดเรกทอรีของโครงการใหม่ของคุณจะมีลักษณะเช่นนี้ (ขึ้นอยู่กับการตั้งค่าที่คุณเลือก):
├── LICENSE <- Open-source license if one is chosen
├── Makefile <- Makefile with convenience commands like `make data` or `make train`
├── README.md <- The top-level README for developers using this project.
├── data
│ ├── external <- Data from third party sources.
│ ├── interim <- Intermediate data that has been transformed.
│ ├── processed <- The final, canonical data sets for modeling.
│ └── raw <- The original, immutable data dump.
│
├── docs <- A default mkdocs project; see www.mkdocs.org for details
│
├── models <- Trained and serialized models, model predictions, or model summaries
│
├── notebooks <- Jupyter notebooks. Naming convention is a number (for ordering),
│ the creator's initials, and a short `-` delimited description, e.g.
│ `1.0-jqp-initial-data-exploration`.
│
├── pyproject.toml <- Project configuration file with package metadata for
│ {{ cookiecutter.module_name }} and configuration for tools like black
│
├── references <- Data dictionaries, manuals, and all other explanatory materials.
│
├── reports <- Generated analysis as HTML, PDF, LaTeX, etc.
│ └── figures <- Generated graphics and figures to be used in reporting
│
├── requirements.txt <- The requirements file for reproducing the analysis environment, e.g.
│ generated with `pip freeze > requirements.txt`
│
├── setup.cfg <- Configuration file for flake8
│
└── {{ cookiecutter.module_name }} <- Source code for use in this project.
│
├── __init__.py <- Makes {{ cookiecutter.module_name }} a Python module
│
├── config.py <- Store useful variables and configuration
│
├── dataset.py <- Scripts to download or generate data
│
├── features.py <- Code to create features for modeling
│
├── modeling
│ ├── __init__.py
│ ├── predict.py <- Code to run model inference with trained models
│ └── train.py <- Code to train models
│
└── plots.py <- Code to create visualizations
หากคุณต้องการใช้เทมเพลตโครงการ V1 เก่าคุณจะต้องมีแพ็คเกจ CookieCutter-Data-Science หรือแพ็คเกจ CookieCutter ที่ติดตั้ง จากนั้นใช้โปรแกรมบรรทัดคำสั่งใดด้วยตัวเลือก -c v1 :
ccds https://github.com/drivendataorg/cookiecutter-data-science -c v1
# or equivalently
cookiecutter https://github.com/drivendataorg/cookiecutter-data-science -c v1เรายินดีต้อนรับผลงาน! ดูเอกสารสำหรับแนวทาง
pip install -r dev-requirements.txtpytest tests