kochlisGit / ProphitBet-Soccer-Bets-Predictor

ProphitBet is a Machine Learning Soccer Bet prediction application. It analyzes the form of teams, computes match statistics and predicts the outcomes of a match using Advanced Machine Learning (ML) methods. The supported algorithms in this application are Neural Networks, Random Forests & Ensembl Models.
MIT License
312 stars 114 forks source link

imblearn is missing? #32

Closed Janimarton closed 1 year ago

Janimarton commented 1 year ago

Hello!

I installed the necessary dependencies, but when I want to run the program by double-clicking on main.py, nothing happens. When started from CMD, it throws this error: Traceback (most recent call last): File "main.py", line 2, in from database.repositories.model import ModelRepository File "...\ProphitBet-Soccer-Bets-Predictor-main\database\repositories\model.py", line 3, in
from models.model import Model File "...\ProphitBet-Soccer-Bets-Predictor-main\models\model.py", line 3, in from imblearn.over_sampling import SVMSMOTE ModuleNotFoundError: No module named 'imblearn'

How could I avoid this issue?

kochlisGit commented 1 year ago

Did you install imbalanced-learn? pip install imbalanced-learn

There is another library called "imblearn", which is different than the one used in this project. Perhaps you installed that one instead of imbalanced-learn as described in the documentation.

AFN7 commented 1 year ago

Also, you can check whether you installed it or not by typing: pip show imblearn or pip show imbalanced-learn.

You can create .bat file and make shortcut to it and start it with one click.

@echo off
python "C:\FOLDER\main.py"
pause
Janimarton commented 1 year ago

Thank you! Yes, I did not install imbalanced-learn. I just installed the packages from requirements.txt. Now it's working fine.