fixing master
This commit is contained in:
parent
7be420781b
commit
53fd4d9cc8
6
.gitignore
vendored
6
.gitignore
vendored
@ -1,3 +1,3 @@
|
||||
__pycache__
|
||||
Engine\\__pycache__
|
||||
venv
|
||||
__pycache__/
|
||||
Engine/__pycache__
|
||||
venv/
|
@ -10,7 +10,7 @@ class DecisionTree:
|
||||
|
||||
|
||||
def __init__(self, doCreation):
|
||||
self.data = pd.read_csv("C:\\Users\\Konrad\\PycharmProjects\\Projekt_AI-Automatyczny_saper\\out.csv")
|
||||
self.data = pd.read_csv("out.csv")
|
||||
if doCreation:
|
||||
self.mapData()
|
||||
features = ['bomb_type', 'detonation_duration', 'size', 'detonation_area', 'defusable']
|
||||
@ -21,7 +21,7 @@ class DecisionTree:
|
||||
decision_tree_model_pkl = open('tree.pkl', 'wb')
|
||||
pickle.dump(dtree, decision_tree_model_pkl)
|
||||
decision_tree_model_pkl.close()
|
||||
decision_tree_model_pkl = open('C:\\Users\\Konrad\\PycharmProjects\\Projekt_AI-Automatyczny_saper\\Engine\\tree.pkl', 'rb')
|
||||
decision_tree_model_pkl = open('.\\Engine\\tree.pkl', 'rb')
|
||||
self.dtree = pickle.load(decision_tree_model_pkl)
|
||||
|
||||
def getTree(self):
|
||||
|
@ -52,10 +52,8 @@ class Population:
|
||||
child = []
|
||||
childP1 = []
|
||||
childP2 = []
|
||||
print(parent1)
|
||||
|
||||
geneA = int(random.random() * len(parent1))
|
||||
print(geneA)
|
||||
geneB = int(random.random() * len(parent1))
|
||||
|
||||
startGene = min(geneA, geneB)
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user