Created
January 14, 2016 20:15
-
-
Save ikkebr/20d8a48d6c1d3fc165eb to your computer and use it in GitHub Desktop.
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 import svm | |
X = mega_results[['D1','D2','D3','D4','D5','D6']] | |
y = mega_results['Sena'] | |
clf = svm.SVC() | |
clf.fit(X, y) | |
import random | |
tries = 0 | |
while 1: | |
tries += 1 | |
numeros = random.sample(range(1,61), 6) | |
if clf.predict(sorted(numeros))[0]: | |
print numeros | |
break | |
print tries |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment