Skip to content

A logical, standardized, but flexible project structure for sharing AI and data science work following FAIR principles.

License

Notifications You must be signed in to change notification settings

FAIR4HEP/cookiecutter4fair

 
 

Repository files navigation

Cookiecutter4FAIR

DOI

A logical, standardized, but flexible project structure for sharing AI and data science work following FAIR principles.

Requirements to use the cookiecutter template:


$ pip install cookiecutter

or

$ conda config --add channels conda-forge
$ conda install cookiecutter

To start a new project, run:


$ cookiecutter https://github.com/FAIR4HEP/cookiecutter4fair

Demo:


asciicast

The resulting directory structure


The directory structure of your new project looks like this:

├── LICENSE            <- License for reusing code
├── Makefile           <- Makefile with commands like `make data` or `make train`
├── CITATION.cff       <- Standardized citation metadata
├── README.md          <- The top-level README for developers using this project
├── data
│   ├── processed      <- The final, canonical data sets for modeling
│   └── raw            <- The original, FAIR, and immutable data dump
│
├── Dockerfile         <- For building a containerized environment
|
├── docs               <- A default Sphinx project for documentation; see sphinx-doc.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`.
│
├── 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.py           <- Makes project pip installable (`pip install -e .`) so src can be imported
├── src                <- Source code for use in this project
│   ├── __init__.py    <- Makes `src` a Python module
│   │
│   ├── data           <- Scripts to download or generate data
│   │   └── make_dataset.py
│   │
│   ├── features       <- Scripts to turn raw data into features for modeling
│   │   └── build_features.py
│   │
│   ├── models         <- Scripts to train models and then use trained models to make
│   │   │                 predictions
│   │   ├── predict_model.py
│   │   └── train_model.py
│   │
│   └── visualization  <- Scripts to create exploratory and results oriented visualizations
│       └── visualize.py
│
└── tox.ini            <- Tox file with settings for running `tox`; see tox.readthedocs.io

Contributing

We welcome contributions!

Installing development requirements


pip install -r requirements.txt

Running the tests


pytest tests

About

A logical, standardized, but flexible project structure for sharing AI and data science work following FAIR principles.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 47.5%
  • Makefile 34.0%
  • Batchfile 16.5%
  • Shell 1.5%
  • Dockerfile 0.5%