Spaces:
Sleeping
Sleeping
Commit History
-
refactor: Remove unused classes and methods from diversification and feature extraction
- Deleted the `AdaptiveExploration` class and its associated methods from `diversification.py`, streamlining the diversification strategy. - Removed unused batch preparation and negative sampling methods from `feature_extractor.py`, enhancing code maintainability. - Cleaned up the `Recommender` class by eliminating references to the removed `AdaptiveExploration` class. - Removed the `load_checkpoint` method from `trainer.py`, as it was no longer needed.fb762c2 -
refactor: Revise FastAPI app structure and enhance documentation
- Updated the FastAPI app entrypoint to better reflect its purpose as a backend for the Explore AI Recommender System. - Improved CORS middleware configuration for Flutter compatibility. - Enhanced function docstrings for clarity, including detailed descriptions for endpoints and helper functions. - Streamlined error handling and improved variable naming for better readability. - Updated README to include new features like smart diversification and online learning strategies, along with clearer usage instructions.9031b79
-
Add plan embeddings and vocabulary files for model artifacts
- Created `plan_embeddings.npz` containing plan IDs and their corresponding embeddings. - Added `vocabularies.json` to map interests and categories to their respective indices for model training.720e732 -
feat: Implement feature extraction and training pipeline for recommendation system
- Added `feature_extractor.py` to handle feature extraction from plans, places, and user interactions. - Updated `verify_setup.py` to include the new "interests" table in database verification. - Introduced `trainer.py` for the ML training pipeline, including dataset preparation, model training, evaluation metrics, and early stopping. - Implemented various metrics for model evaluation such as MSE, MAE, Precision@K, Recall@K, and NDCG@K. - Established a training loop with gradient clipping and learning rate scheduling.9166aef