-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwinPredict.py
More file actions
22 lines (18 loc) · 733 Bytes
/
Copy pathwinPredict.py
File metadata and controls
22 lines (18 loc) · 733 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
from getDataApi import getData
import pickle
mainSummonerName = "YOUR IN-GAME NICK HERE"
liveGame = False #change this to True if You want to use it in Live Games
neverSeenData = [0,6,7,6,0,0,0,0,16400,7.0,210,-1004,21.0,1640.0,1,7,6,7,1,1,0,0,17404,7.0,225,1004,22.5,1740.4]
model = pickle.load(open('model.pkl', 'rb'))
if liveGame:
gameData = getData(mainSummoner=mainSummonerName, verboose=True)
print(gameData[0])
if model.predict([gameData[1:]]) == 1:
print("blue team will most likely win")
else:
print("red team will most likely win")
else:
if model.predict([neverSeenData]) == 1:
print("blue team will most likely win")
else:
print("red team will most likely win")