TensorFlow Project Structure
A scalable and maintainable folder structure for TensorFlow applications
File Structure
- src
- train.py
- model.py
- utils.py
- data
- raw
- processed
- models
- saved_model
- requirements.txt
- README.md
Directory Structure Explanation
src/
Contains the main Python source code for the TensorFlow project.
src/train.py
Main training script that defines and trains the TensorFlow model.
src/model.py
Defines the neural network architecture and model structure.
src/utils.py
Utility functions for data processing and helper methods.
data/
Contains datasets organized by processing stage.
data/raw/
Original, unprocessed datasets as received from data sources.
data/processed/
Preprocessed and cleaned datasets ready for training.
models/
Contains saved models, checkpoints, and model artifacts.