Set new args for dataset

This commit is contained in:
Magdalena Wilczynska 2019-06-09 12:19:16 +02:00
parent 737f59671d
commit 49c5c2aef4
3 changed files with 3 additions and 3 deletions

View File

@ -35,4 +35,4 @@ def generate_dataset(run_count, clear, model_name, learn):
wrap_ex("vw " + filename + ".txt -c --passes 2 -f " + model_file)
print("Learning process complete, model saved to " + model_file)
generate_dataset(200, True, "teraz", True)
generate_dataset(100, True, "szypko", True)

View File

@ -139,7 +139,7 @@ def check_position(position, i):
def get_predicted_move(position):
input_filename = pass_input(position)
output_filename = "./VowpalWabbit/VowpalDataCache/constant_output.txt"
wrapper.wrap_ex("vw -i ./VowpalWabbit/VowpalModels/teraz.model -t "+input_filename+" -p "+output_filename+" ")
wrapper.wrap_ex("vw -i ./VowpalWabbit/VowpalModels/szypko.model -t "+input_filename+" -p "+output_filename+" ")
with open( output_filename, 'r' ) as fout:
prediction = float(list(fout.readline().split())[0])
move = make_move_from_prediction(prediction)

View File

@ -2,7 +2,7 @@ import sys, random, MapGenerator
CELL_SIZE = 64
FPS = 60
DELAY = 1200
DELAY = 5
try:
map_mode = sys.argv[1]