diff options
author | InigoGutierrez <inigogf.95@gmail.com> | 2022-06-19 20:14:12 +0200 |
---|---|---|
committer | InigoGutierrez <inigogf.95@gmail.com> | 2022-06-19 20:14:12 +0200 |
commit | 3c20c94d6644966ba0c9fe5f68f41a6480f3fef5 (patch) | |
tree | 66c23141183555ccee66e225881248b722c8c701 | |
parent | 8519597eb00f838ca7beca5324ab27435adb4d36 (diff) | |
download | imago-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.py | 2 |
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): |