Set new args for dataset
This commit is contained in:
parent
737f59671d
commit
49c5c2aef4
@ -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)
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user