Skip to content

Commit

Permalink
Add trained model. Uses 50 models, code works.
Browse files Browse the repository at this point in the history
  • Loading branch information
Batchu Venkat Vishal committed Dec 8, 2016
1 parent 4a7b3c9 commit a50197d
Show file tree
Hide file tree
Showing 52 changed files with 2 additions and 2 deletions.
Binary file added BestGeneticallyTrainedModels/model_trained1.keras
Binary file not shown.
4 changes: 2 additions & 2 deletions flappy.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
def save_pool():
for xi in range(total_models):
current_pool[xi].save_weights("model_new" + str(xi) + ".keras")
print("Saved current pool!")

def model_crossover(model_idx1, model_idx2):
global current_pool
Expand Down Expand Up @@ -428,8 +429,7 @@ def showGameOverScreen(crashInfo):
for select in range(len(new_weights)):
fitness[select] = -100
current_pool[select].set_weights(new_weights[select])
if generation % 30 == 1:
save_pool()
save_pool()
generation = generation + 1
return

Expand Down
Binary file modified model_new0.keras
Binary file not shown.
Binary file modified model_new1.keras
Binary file not shown.
Binary file modified model_new10.keras
Binary file not shown.
Binary file modified model_new11.keras
Binary file not shown.
Binary file modified model_new12.keras
Binary file not shown.
Binary file modified model_new13.keras
Binary file not shown.
Binary file modified model_new14.keras
Binary file not shown.
Binary file modified model_new15.keras
Binary file not shown.
Binary file modified model_new16.keras
Binary file not shown.
Binary file modified model_new17.keras
Binary file not shown.
Binary file modified model_new18.keras
Binary file not shown.
Binary file modified model_new19.keras
Binary file not shown.
Binary file modified model_new2.keras
Binary file not shown.
Binary file modified model_new20.keras
Binary file not shown.
Binary file modified model_new21.keras
Binary file not shown.
Binary file modified model_new22.keras
Binary file not shown.
Binary file modified model_new23.keras
Binary file not shown.
Binary file modified model_new24.keras
Binary file not shown.
Binary file modified model_new25.keras
Binary file not shown.
Binary file modified model_new26.keras
Binary file not shown.
Binary file modified model_new27.keras
Binary file not shown.
Binary file modified model_new28.keras
Binary file not shown.
Binary file modified model_new29.keras
Binary file not shown.
Binary file modified model_new3.keras
Binary file not shown.
Binary file modified model_new30.keras
Binary file not shown.
Binary file modified model_new31.keras
Binary file not shown.
Binary file modified model_new32.keras
Binary file not shown.
Binary file modified model_new33.keras
Binary file not shown.
Binary file modified model_new34.keras
Binary file not shown.
Binary file modified model_new35.keras
Binary file not shown.
Binary file modified model_new36.keras
Binary file not shown.
Binary file modified model_new37.keras
Binary file not shown.
Binary file modified model_new38.keras
Binary file not shown.
Binary file modified model_new39.keras
Binary file not shown.
Binary file modified model_new4.keras
Binary file not shown.
Binary file modified model_new40.keras
Binary file not shown.
Binary file modified model_new41.keras
Binary file not shown.
Binary file modified model_new42.keras
Binary file not shown.
Binary file modified model_new43.keras
Binary file not shown.
Binary file modified model_new44.keras
Binary file not shown.
Binary file modified model_new45.keras
Binary file not shown.
Binary file modified model_new46.keras
Binary file not shown.
Binary file modified model_new47.keras
Binary file not shown.
Binary file modified model_new48.keras
Binary file not shown.
Binary file modified model_new49.keras
Binary file not shown.
Binary file modified model_new5.keras
Binary file not shown.
Binary file modified model_new6.keras
Binary file not shown.
Binary file modified model_new7.keras
Binary file not shown.
Binary file modified model_new8.keras
Binary file not shown.
Binary file modified model_new9.keras
Binary file not shown.

0 comments on commit a50197d

Please sign in to comment.