Spaces:
Sleeping
Sleeping
Commit History
-
chore: Add Python version file and format code in online learner
- Introduced a new `.python-version` file specifying Python 3.11.9. - Reformatted code in `online_learner.py` for improved readability, including adjustments to optimizer initialization and print statements. - Updated the `load_state` method to include the `weights_only` parameter for better model loading control.86ec101 -
chore: Update model artifacts with new weights and sizes
- Updated `best_model.pth`, `neural_model.pth`, and `plan_embeddings.npz` with new SHA256 hashes and sizes. - Modified `vocabularies.json` to include additional categories and ensure proper formatting.3477570 -
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
-
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 -
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: Exclude current user's plans from explore feed
- Updated the plan fetching logic to exclude plans created by the current user, ensuring the explore feed displays only other users' plans.dfe0fa0
-
docs: Update README to include configuration details and enhance project description
- Added metadata section with title, emoji, color scheme, and SDK information. - Included a link to the configuration reference for better user guidance. - Improved the overall structure and clarity of the project description.df6258a -
refactor: Clean up main.py and README for clarity and organization
- Removed outdated comments and unnecessary documentation in `main.py` to streamline the code. - Updated the `README.md` to provide a clearer structure and comprehensive details about the API, including installation instructions and endpoint usage. - Removed commented-out code and unnecessary sections to enhance readability. - Adjusted the `requirements.txt` to remove obsolete comments and ensure clarity on dependencies.2777769
-
chore: Remove deprecated scripts and command files
- Deleted `commands.txt`, `generate_places_from_foursquare.py`, `generate_user_assigned_plans.py`, `generate_user_plan_interactions.py`, `test_api_response.py`, `verify_dataset.py`, `verify_setup.py` as they are no longer needed for the current project structure.29ac570
-
chore: Remove obsolete artifacts and scripts
- Deleted the `Explore_AI_Model.ipynb` notebook and associated model artifacts including `item_map.json`, `model.pkl`, `user_items.npz`, and `user_map.json`. - Removed the `save_model_from_notebook.py` script as it is no longer needed for model saving operations.639cb95 -
fix: remove limited filter
abf1536 -
add fix plan request to fix plans with no interests
3169020 -
fix: remove empty list condition
dd7220f -
fix: new users empty list
a2f9242
-
refactor: Remove unused dataset generation script and update .gitignore
- Deleted the `generate_professional_dataset.py` script as it is no longer needed. - Updated `.gitignore` to include `fsq_cache/` to prevent caching files from being tracked.7268791 -
feat: Enhance security and documentation for FastAPI recommender
- Updated the ADMIN_KEY retrieval to raise an error if SECRET_KEY is not set, improving security by ensuring the environment variable is defined. - Added detailed usage instructions for the `/track-interaction` endpoint, including required and optional parameters, enhancing API documentation for better developer experience.9511b30
-
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 -
fix: Comment out interestIds in format_plan_for_flutter for clarity
45fc52f -
feat: Add interests fetching to format_plan_for_flutter
2edddba
-
fix pagination
cab98ed -
update explore requestion to return the expecterd model
092ec1c
-
feat: Add Professional Dataset Generator and Verification Tool
- Implemented a dataset generator for the Romio ML system that creates 75 plans, 30 users, and 3000 realistic interactions. - Introduced user personality types and interests to enhance user profile diversity. - Developed a verification script to assess dataset quality, including checks for user and plan counts, price and rating distributions, and interaction types. - Added functionality to insert generated data into Supabase database. - Included detailed logging for dataset generation and verification processes.488913f -
feat: Update model artifacts and add training command script
93a3eaa -
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
-
sort explore plans from newest first
bfff574 -
fix key case
31d9018
-
Update user_id to userId in API endpoints and response structures for consistency; remove unused model file and update item_map.json with new data.
4ec55f2
-
Refactor Supabase client to use SERVICE_ROLE_KEY and update error message
b27e4e2 -
Enhance explore endpoint to include user details in recommendations
b2dc2a0
-
Enhance recommender module with detailed logging for model loading, recommendation process, and error handling
ed62f2d
-
Remove custom documentation endpoints and restore default FastAPI documentation
fd2f4c6 -
Enhance FastAPI app with CORS support, custom documentation endpoints, and health check route
0c3111d -
Add root endpoint to provide API status and available routes
60ef5d0 -
Update CMD instruction in Dockerfile to allow dynamic port configuration
7fc1baa -
Refactor recommender access to ensure safe initialization and improve code clarity
4bba1b9 -
Refactor recommender initialization and improve error handling during startup
544da52 -
Refactor Dockerfile to improve formatting and clarify system dependencies installation
204677b -
Add libgomp dependency for implicit
0cccb4c -
update model logic
be7f94e -
initial commit
Verified signature709475b