Spaces:
Sleeping
Sleeping
Commit History
-
refactor: Simplify diversity configuration management
- Removed user-specific settings and related methods from `DiversityConfigManager`, focusing on global configuration management. - Updated `DiversityController` to retrieve global diversity parameters directly, enhancing code clarity and maintainability. - Streamlined the `Recommender` class to utilize the updated configuration retrieval method, improving overall efficiency.57fc5f7
-
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
-
refactor: Remove unused recommendation methods and clean up apt.txt
- Deleted the `apt.txt` file as it contained an obsolete dependency. - Removed several unused methods related to recommendation diversity from `diversification.py`, streamlining the code and improving maintainability.df526c8 -
refactor: Enhance diversification strategy for recommendations
- Updated the `DiversificationStrategy` class to improve the separation of exploration and exploitation candidates. - Introduced a mechanism to track used indices, ensuring items are not repeated in recommendations. - Enhanced the logic for selecting exploration items, prioritizing unseen interests while maintaining performance. - Added detailed logging for better insights into the recommendation process.67a1b5e -
feat: Enhance recommendation diversity and exploration strategies
- Integrated diversification strategies into the recommendation process to improve user experience. - Added methods for user interest history retrieval and diversified recommendation generation. - Updated the `recommend_for_user` method to incorporate context-based adjustments and exploration rates. - Introduced new classes for managing diversity parameters and exploration behavior.be1c9c3