Skip to content

Commit

Permalink
Logistic Regression Worked for scores in the range 100-300 , Now Tryi…
Browse files Browse the repository at this point in the history
…ng Genetic Algorithm
  • Loading branch information
vigneshhari committed Jul 18, 2018
1 parent a06648c commit e5b2d97
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 3 additions & 2 deletions model.py → Logistic_Regression/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ def parse_function(filename,basewidth):
variable = 1
while True:
if( elem.get_attribute("class") == "offline" ):continue
if(driver.execute_script("return Runner.instance_.playing;") == False ):continue
if(driver.execute_script("return Runner.instance_.playing;") == False ):
elem.send_keys(Keys.SPACE)
continue

driver.save_screenshot("temp/screenshot-{}.png".format(variable))
img = cv2.imread("temp/screenshot-{}.png".format( variable))
Expand All @@ -115,4 +117,3 @@ def parse_function(filename,basewidth):

if(round(sess.run(pred , feed_dict={x : [np.array(value).flatten()]})) == 0) :
elem.send_keys(Keys.SPACE)

0 comments on commit e5b2d97

Please sign in to comment.