Spaces:
Sleeping
Sleeping
Commit History
-
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: 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
-
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 -
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