-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloader.py
30 lines (28 loc) · 1004 Bytes
/
loader.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import game
from agent import advanceGreedyAgent
from agent import advanceThompsonAgent
from agent import advanceUcb
from agent import epsilonDeltaAgent
from agent import expSmoothAgent
from agent import greedyAgent
from agent import lightBGMAgent
from agent import ml_advanceUcbAgent
from agent import mlAgent
from agent import polyfitAgent
from agent import pureARAgent
from agent import randomAgent
from agent import thompsonAgent
from agent import ucbAgent
from agent import gradiantBanditAgent
from agent import adaptiveUCBAgent
from agent import ml_ucbAgent
import sklearn
from sklearn.linear_model import LinearRegression
from sklearn.neighbors import KNeighborsRegressor
from sklearn.tree import DecisionTreeRegressor
from sklearn.svm import SVR
from sklearn.ensemble import RandomForestRegressor
if __name__ == '__main__':
G = game.game(50, 1000)
# G.run( mlAgent.agent(DecisionTreeRegressor()), lightBGMAgent.agent(), False)
G.run(mlAgent.agent(SVR()), greedyAgent.agent(), True)