Comments (8)
It seems it's not the data not in the good order, but the preprocessing done in preprocess_dataset which is not performed on the prediction data.
from prophitbet-soccer-bets-predictor.
This should happen only during Cross-Validation process and it's perfectly normal. The idea is that we randomly selected a train set and a n evaluation set, to measure the performance of the models.
However, during the training period (ONLY), it should use the first 100 matches as test and the rest of the dataset should be processed in the correct order!
Otherwise, can you print the results of the preprocess_dataset for the evaluation data to verify this?
from prophitbet-soccer-bets-predictor.
The problem is not on the evaluation data, but on the prediction data passed to the predict match dialog.
For example, I launch my trained model on Ligue 1 French league, I select Paris SG as home team (the best team in the league) and Clermont as away team (the worst team in the league), and I enter the same odd (3.00) for all possible results, the algorithm gives me probabilities of 0.32 for Paris 0.23 a draw and 0.44 for Clermont, which is totally incoherent, and this is because the data given to the model is not processed before it was passed to the model.
from prophitbet-soccer-bets-predictor.
So the program grabs the features from the history tables, but does not preprocess them beforing passing them to model for prediction?
from prophitbet-soccer-bets-predictor.
Exactly !
But the program also does not update the statistics with the data of the previous match !
from prophitbet-soccer-bets-predictor.
Thanks. I will take a look into it.
from prophitbet-soccer-bets-predictor.
I am also looking on that issue on my own side, I think the best way to proceed is to modify the construct_input() method to process the data before giving it to the model to make the prediction.
from prophitbet-soccer-bets-predictor.
Yeah, I think that would be the best way. The rows should be processed before returned using the scaler of them model's config (if any)
from prophitbet-soccer-bets-predictor.
Related Issues (20)
- adding openAI
- Can't Create League HOT 3
- Is it possible to run the app on Streamlit instead of Tkinter
- No matches shown in evaluation tab HOT 3
- Best accuracy
- Issue when clicking the create league HOT 1
- Can't parse French league due to webpage in French HOT 7
- Can't create a league HOT 12
- ModuleNotFoundError: No module named 'tensorflow_addons' HOT 13
- Can't create a league HOT 1
- Create League HOT 1
- wrong names in fixtures
- I can't run main.py, No module named 'keras.src.engine' HOT 15
- SSL: CERTIFICATE_VERIFY_FAILED: Create a League
- Not present the over 2.5 and under 2.5 bet
- Creating a league crashes
- NAN values in HW Series
- NSButton: 0x7fe573a48080 HOT 3
- Accuracy of the models HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prophitbet-soccer-bets-predictor.