This file contains hidden or 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
| #Evolution Strategies with Keras | |
| #Based off of: https://blog.openai.com/evolution-strategies/ | |
| #Implementation by: Nicholas Samoray | |
| #README | |
| #Meant to be run on a single machine | |
| #APPLY_BIAS is currently not working, keep to False | |
| #Solves Cartpole as-is in about 50 episodes | |
| #Solves BipedalWalker-v2 in about 1000 |
This file contains hidden or 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
| # Compare Classifiers | |
| from matplotlib import pyplot | |
| from sklearn.model_selection import KFold | |
| from sklearn.model_selection import cross_val_score | |
| from sklearn.linear_model import LogisticRegression | |
| from sklearn.tree import DecisionTreeClassifier | |
| from sklearn.neighbors import KNeighborsClassifier | |
| from sklearn.discriminant_analysis import LinearDiscriminantAnalysis | |
| from sklearn.naive_bayes import GaussianNB | |
| from sklearn.svm import SVC |