How jmallone/classificador_mestrado works
Step 1. Identify the Main Components
• Data Sources & Input Files
• Raw Feature Files: Located in the features_raw directory (with separate subdirectories for DTD and FMD versions).
• Feature Conversion Module
• Notebooks (converter.ipynb) in each dataset folder under features_raw serve to convert/extract the raw features into a standardized format.
• Pipeline Orchestration
• The central “rodar_all.py” script acts as the orchestrator for running the training pipeline, which likely includes data pre-processing and model training steps.
• Supporting scripts such as raw_2_npy_michel.py and run_params_michel.py are used to transform or manage the features and runtime parameters.
• Model Training & Evaluation
• This component uses the pre-processed features and labels to train models using various backbones.
• The README refers to evaluation and comparison across backbones (e.g., ResNet, VGG, Inception).
• Notification & Result Visualization
• send_discord.py is used to send notifications (likely when training/evaluation completes).
• ver_resultados.ipynb and verificar.py assist in verifying or visualizing the results.
Step 2. Outline Relationships and Interactions
• Data Ingestion Layer
• Feature Conversion Process
• After conversion, the system requires a manual replacement (via copying the correct labels directory to a generic “labels” folder) to align the labels with the expected dataset.
• Training Pipeline
• The central orchestration script (rodar_all.py) initiates and controls the training workflow. Components or modules like raw_2_npy_michel.py and run_params_michel.py feed data inputs into the training routines.
• Model Evaluation and Notification
• Once models are trained, evaluation modules (referenced by ver_resultados.ipynb and verificar.py) inspect the outcomes and performance.
• Finally, the notification system (send_discord.py) communicates the results.
Step 3. Architectural Patterns & Design Principles
• Modular Pipeline Architecture
• The system is divided into modular steps (feature extraction, conversion, training, evaluation), reflecting a pipeline pattern.
• Separation of Concerns
• Each component (converter, training orchestrator, evaluation/notification) is kept separate in the file structure and in their corresponding script or notebook.
• Standardized Data Formats
• The README emphasizes a consistent file naming pattern and data format for features (including numeric feature values, label names, and file names).
Step 4. Relevant Technologies & Frameworks
• Python-based Execution:
• All scripts and notebooks are Python-based. The dependency file (requirements.txt) will list the needed libraries (likely including deep learning frameworks).
• Notebooks for Data Processing:
• The use of Jupyter notebooks (converter.ipynb) is an important part of the conversion process.
• Notification Mechanism:
• The use of a Discord API (via send_discord.py) highlights integration with external messaging/notification services.
• Model Training Libraries:
• While not explicitly outlined, the mention of backbones such as ResNet, VGG, and Inception indicates the usage of deep learning libraries (e.g., PyTorch or TensorFlow).
• Data Input Layer: Representing raw feature files (from features_raw) and label files (from labels_DTD and labels_FMD).
• Data Processing Layer: Representing the feature conversion notebooks and scripts.
• Pipeline Control Layer: Highlight the central orchestrator (rodar_all.py) and helper scripts.
• Model Training & Evaluation Layer: Indicating the parts where models are trained and evaluated.
• Notification & Visualization Layer: Mark the components that handle sending external notifications and result inspection.
Notes for manually triggered steps
• That the user must “copy” or “replace” the correct labels folder as per the README instructions before pipeline execution.
Step 6. High-Level Instructions for the Principal Software Engineer
• Interdependencies such as the conversion outputs feeding into the training module.
• Manual preprocessing steps (like copying the label folder) as side annotations.