Commit
·
877209b
1
Parent(s):
ff1ed32
Experiment
Browse files- Model_Handler.py +2 -2
Model_Handler.py
CHANGED
@@ -9,8 +9,8 @@ class Model_handler :
|
|
9 |
print("Model loaded and is ready to use !!!")
|
10 |
|
11 |
def predict(self, state, color) :
|
12 |
-
prediction = self.model(self.convert_state_to_input(state, color))
|
13 |
-
return self.convert_output_to_probs(state, color, prediction[
|
14 |
|
15 |
def convert_state_to_input(self, state, color) :
|
16 |
if type(state) == str :
|
|
|
9 |
print("Model loaded and is ready to use !!!")
|
10 |
|
11 |
def predict(self, state, color) :
|
12 |
+
prediction = self.model.predict(self.convert_state_to_input(state, color))
|
13 |
+
return self.convert_output_to_probs(state, color, prediction[0])
|
14 |
|
15 |
def convert_state_to_input(self, state, color) :
|
16 |
if type(state) == str :
|