Skip to content

Commit 583cc4d

Browse files
marcharperdrvinceknight
authored andcommitted
Change numpy.matrix to numpy.array in ann.py to remove deprecation warning
1 parent c5b484a commit 583cc4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

axelrod/strategies/ann.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ def __init__(
189189
) -> None:
190190
super().__init__()
191191
(i2h, h2o, bias) = split_weights(weights, num_features, num_hidden)
192-
self.input_to_hidden_layer_weights = np.matrix(i2h)
192+
self.input_to_hidden_layer_weights = np.array(i2h)
193193
self.hidden_to_output_layer_weights = np.array(h2o)
194194
self.bias_weights = np.array(bias)
195195

0 commit comments

Comments
 (0)