This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Slither.io | |
// @version 0.35 | |
// @description AI powered bot for slither.io! | |
// @author Alex | |
// @match http://slither.io | |
// ==/UserScript== | |
var Vector2 = (function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from sklearn.tree import DecisionTreeRegressor | |
import pandas as pd | |
import numpy as np | |
train = pd.read_csv('train.csv').set_index('_id') | |
X = np.array(train.drop(['gain'], 1)) | |
y = np.array(train['gain']) | |
model = DecisionTreeRegressor(max_depth=7) | |
model.fit(X, y) |