aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorInigoGutierrez <inigogf.95@gmail.com>2022-06-19 20:14:12 +0200
committerInigoGutierrez <inigogf.95@gmail.com>2022-06-19 20:14:12 +0200
commit3c20c94d6644966ba0c9fe5f68f41a6480f3fef5 (patch)
tree66c23141183555ccee66e225881248b722c8c701
parent8519597eb00f838ca7beca5324ab27435adb4d36 (diff)
downloadimago-3c20c94d6644966ba0c9fe5f68f41a6480f3fef5.tar.gz
imago-3c20c94d6644966ba0c9fe5f68f41a6480f3fef5.zip
Lowest representable float is -sys.float_info.max, not sys.float_info.min.
-rw-r--r--imago/engine/keras/neuralNetwork.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/imago/engine/keras/neuralNetwork.py b/imago/engine/keras/neuralNetwork.py
index 41b8b23..1ec0efd 100644
--- a/imago/engine/keras/neuralNetwork.py
+++ b/imago/engine/keras/neuralNetwork.py
@@ -119,7 +119,7 @@ class NeuralNetwork:
prediction = self._predict(gameMove)[0]
#self.showHeatmap(prediction)
playableVertices = gameMove.getPlayableVertices()
- highest = sys.float_info.min
+ highest = -sys.float_info.max
hRow = -1
hCol = -1
for row in range(self.boardSize):