diff --git a/src/machine_learning/data.txt b/src/machine_learning/data.txt new file mode 100644 index 0000000..d1fd739 --- /dev/null +++ b/src/machine_learning/data.txt @@ -0,0 +1,2594 @@ +[ + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"bad", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"medium", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"unstable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"mud", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"grass", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"dry ground", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AT", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":true, + "pressure_gt_two":false, + "action":"detonation" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"AP", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":true, + "pressure_gt_two":false, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":true, + "action":"defuse" + }, + { + "visibility":"good", + "stability":"stable", + "ground":"concrete", + "mine_type":"ADM", + "armed":false, + "pressure_gt_two":false, + "action":"defuse" + } +] \ No newline at end of file diff --git a/src/machine_learning/data_set.py b/src/machine_learning/data_set.py index a1ce059..c57af21 100644 --- a/src/machine_learning/data_set.py +++ b/src/machine_learning/data_set.py @@ -1,6 +1,10 @@ +import json from typing import List from itertools import product +from const import main_path + + visibility = ('bad', 'medium', 'good') stability = ('unstable', 'stable') ground = ('mud', 'grass', 'dry ground', 'concrete') @@ -56,6 +60,19 @@ def generate_data_set() -> List[dict]: return data -data_set = generate_data_set() -training_set = data_set[:50] + data_set[55:90] + data_set[95:140] + data_set[145:200] + data_set[205:] -test_set = data_set[50:55] + data_set[90:95] + data_set[140:145] +def main(): + data_set = generate_data_set() + with open('data.txt', 'w') as outfile: + json.dump(data_set, outfile) + + +with open(f'{main_path}/src/machine_learning/data.txt', 'r') as f: + data = f.read() + json_data = json.loads(data) + +training_set = json_data[:50] + json_data[55:90] + json_data[95:140] + json_data[145:200] + json_data[205:] +test_set = json_data[50:55] + json_data[90:95] + json_data[140:145] + + +if __name__ == "__main__": + main()