Spaces:
Sleeping
Sleeping
Commit History
-
refactor: Update model loading to include weights_only parameter and ensure model evaluation state
6454a3f
-
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
-
fix: Improve label construction and error handling in recommender
- Enhanced the label construction logic in the `Recommender` class to handle None and invalid types more robustly. - Updated the rating and duration processing to ensure defaults are applied correctly in case of errors. - Adjusted the vocabulary JSON to include a more comprehensive list of categories, improving the recommendation context.4646187 -
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
-
fix: remove limited filter
abf1536 -
fix: new users empty list
a2f9242
-
feat: Add online learning support to the FastAPI recommender
- Enhanced the FastAPI app to include online learning capabilities, allowing real-time updates based on user interactions. - Introduced new endpoints: `/track-interaction` for tracking user interactions and `/online-stats` for retrieving online learning statistics. - Updated the recommender model to support both batch training and online learning, improving recommendation accuracy dynamically. - Version updated to 2.0.0 to reflect these significant changes.884ecd8
-
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
-
feat: Implement ML Recommendation System with Neural Networks
- Updated requirements.txt to include new ML dependencies: torch, scikit-learn, and tqdm. - Created model package with __init__.py to initialize the recommender module. - Developed neural_models.py containing PlanEmbeddingNetwork, UserPreferenceNetwork, ScorePredictor, and CompleteRecommenderModel classes for the recommendation system. - Added train.py script for training the ML model, including dummy data generation and training logic. - Introduced utils package with __init__.py and supabase_client for database interactions. - Created verify_setup.py to check the setup of the ML system, including file existence, imports, database connection, model creation, and training data availability.3932a6f
-
Enhance recommender module with detailed logging for model loading, recommendation process, and error handling
ed62f2d
-
update model logic
be7f94e