Spaces:
Build error
Build error
Commit History
-
Startup model check: 2025-09-01 09:31:10
a90f2dd
-
Fix import
371767b -
Add k-fold cross-validation to prediction pipeline
Introduces a --kfold argument to main.py to enable 3-fold cross-validation. Implements run_kfold_cv in pipeline.py, using event-based splits and MLflow for experiment tracking and model registration. Refactors imports and typing for consistency, and moves configuration constants to config.py for better modularity.eb615ca
-
Startup model check: 2025-08-03 13:02:33
f972c61
-
Revert "(CAREFUL!!!!!!) Refactor argument parsing and prediction pipeline"
This reverts commit 7fcaffe1b17b52b1451fe966549d2708dc218ffc.ffd453e -
(CAREFUL!!!!!!) Refactor argument parsing and prediction pipeline
Moved command-line argument parsing to a dedicated src/args.py module and updated main.py and predict/main.py to use these functions. Improved model management logic and modularized pipeline execution. Enhanced feature engineering and preprocessing in predict/preprocess.py and refactored model classes in predict/models.py for consistency and maintainability.7fcaffe
-
Refactor imports to use absolute paths and clean up scripts
Standardized all internal imports to use absolute paths for better maintainability and to avoid import errors. Removed unnecessary sys.path manipulations and direct script execution blocks from modules, making the codebase more modular and suitable for package usage.9678fdb
-
Add AGPL-3.0 license and update documentation
Added the GNU Affero General Public License v3 (AGPL-3.0) as LICENSE. Updated README with new project name, improved setup instructions, and detailed license section explaining copyleft and usage terms. Added license and copyright header to src/predict/pipeline.py.8a644b9 -
Add model update pipeline and improve CLI options
Introduces a new 'update' pipeline option to retrain models only if new data is detected or models are missing, without running evaluation. Refactors model instantiation into a shared MODELS_TO_RUN list, updates CLI help and documentation, and implements the update_models_if_new_data method in PredictionPipeline.3994c21
-
Update preprocess.py
2181ea6 -
Update main.py
83c650c -
Update README and UFC data, retrain models
Expanded and clarified the README with detailed usage instructions for scraping, prediction, and pipeline execution. Updated ufc_fights.csv with new event results, added output/last_event.json, and refreshed model artifacts and results to reflect retraining on the latest data.5271c2e -
Add model caching and new event config paths
Introduced a global MODEL_CACHE in app.py to avoid reloading models from disk on each prediction, improving performance. Also added UPCOMING_EVENTS_JSON_PATH and EVENTS_JSON_PATH to src/config.py for future event data handling.0e63702
-
Add win probability to fight predictions
Updated prediction logic in models and pipeline to return both the predicted winner and the associated win probability. Adjusted app.py and predict_new.py to display the probability alongside the winner. This provides more informative prediction results for users and improves model evaluation reporting.f3ecc65 -
Integrate model saving into prediction pipeline
Moved model training and saving logic from save_model.py into the PredictionPipeline class. Updated config to define MODELS_DIR and refactored predict_new.py to use the new model directory. Removed the now-redundant save_model.py script.1e04613 -
Add grappling features to fighter stats and ML pipeline
Introduces takedown accuracy and submission attempts per minute as new features in both the model and preprocessing pipeline. Updates requirements.txt with pinned versions and adds new dependencies for data processing and visualization. Enhances fighter history stats calculation to include grappling metrics, improving model input feature richness.1999f4d
-
Update model save and load paths to use dynamic names
AlvaroChanged the default model filename from 'trained_model.joblib' to 'XGBoostModel.joblib' in predict_new.py. Updated save_model.py to save models using the provided model name, improving flexibility for handling multiple models.f445a65 -
Add new ML models and CLI tools for prediction
AlvaroIntroduces several new machine learning models (XGBoost, LightGBM, SVC, RandomForest, BernoulliNB) to the prediction pipeline by refactoring model logic into a shared base class. Adds requirements for new dependencies. Implements two new CLI scripts: save_model.py for training and saving models, and predict_new.py for predicting outcomes of hypothetical fights using saved models. Improves preprocessing robustness for date parsing.2aed0aa -
Add logistic regression model and ML preprocessing
AlvaroIntroduces a new LogisticRegressionModel for fight outcome prediction, including a comprehensive ML preprocessing module (preprocess.py) for feature engineering and data preparation. Refactors model interfaces to accept fight dictionaries, updates the pipeline and main entrypoint for model selection and reporting, and improves data cleaning in the scraping and preprocessing steps. Also fixes fighter name formatting and adds pandas and scikit-learn as dependencies.bf7e729 -
Refactor config imports and add JSON report for predictions
AlvaroMoved config.py to the project root and updated all imports to use the new location. Deleted the unused analyze.py script. Enhanced the prediction pipeline to save detailed model results to a JSON file, grouping predictions by event. Updated predict.main to generate a detailed report by default. Improved module import consistency in scrape modules.38c6a34 -
Refactor prediction pipeline and modularize models
AlvaroReplaces the monolithic predict.py with a modular prediction pipeline. Adds main.py to orchestrate model evaluation, models.py for model abstractions and the ELO baseline, and pipeline.py for data loading, splitting, evaluation, and reporting. Updates process_fights_for_elo to accept either a file path or pre-loaded data for improved flexibility.e012a04 -
Baseline
Alvarod48eef6 -
Update main.py
Alvaroffa92b9 -
Cleanup
Alvaro5b07ff1 -
Added preprocessing
Alvaro787f9a6 -
Update main.py
Alvarod794d20 -
Pipeline
Alvaro7036785 -
Update to_csv.py
Alvaro5f34bc0 -
Update
Alvarob38f690