How meysouro/ai-driven-corporate-credit-rating-prediction works
Main Components
• Data Sources & Storage: Represent the raw datasets (found in the Datasets folder) coming from external APIs (Financial Modeling Prep API) and internal CSV/Excel files.
• Data Preprocessing & Feature Engineering: Capture the process (documented in the README and implemented in the Jupyter notebooks) that cleans, aggregates, and creates financial ratio features.
• Model Training & Validation: Highlight the model training, which includes using algorithms (such as a random forest classifier) and model validation using performance metrics (precision, recall, and F1 score). Indicate that checkpoints and different notebooks (e.g., Credit rating predictions-checkpoint.ipynb) are used during this stage.
• Model Persistence: This focuses on saving the trained model components (model_LR.pkl, encoder.pkl, transformer.pkl stored in the Pickles folder) for later use.
• Deployment/UI Layer: Emphasize the Streamlit application (app.py located in the Notebook folder) that serves as the user-facing interface for making credit rating predictions by accepting inputs and displaying outputs.
Relationships and Interactions
• Data Flow Start: Raw financial datasets (CSV/Excel) are ingested and then preprocessed/feature engineered as part of the model training pipeline.
• Model Training: The cleaned data feeds into model training and evaluation processes done within Jupyter Notebooks. From this phase, trained artifacts are stored (via the Pickles folder).
Architectural Patterns and Design Principles
• Separation of Concerns: Clearly separate data ingestion/preprocessing, model training/validation, and deployment. This indicates modular responsibilities.
• Persistence and Reusability: Use of pickle files for saving models and transformers emphasizes reusability and efficient deployment.
• User-Centric Deployment: The use of Streamlit represents a clear separation of the user interface from the core ML logic.