Skip to content

Commit

Permalink
Update heuristic_payoff_table.py: replace np.math.factorial with math…
Browse files Browse the repository at this point in the history
….factorial
  • Loading branch information
lanctot authored Jul 5, 2024
1 parent 82b5aac commit 76a3c79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion open_spiel/python/egt/heuristic_payoff_table.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

import abc
import collections
import math

import numpy as np

Expand Down Expand Up @@ -501,7 +502,7 @@ def _multinomial_coefficients(distributions):
Args:
distributions: The distributions table [num_rows, num_strategies].
"""
v_factorial = np.vectorize(np.math.factorial)
v_factorial = np.vectorize(math.factorial)
# Multinomial coefficients (one per distribution Ni).
# ( P )
# ( Ni1, Ni1, ... Nik )
Expand Down

0 comments on commit 76a3c79

Please sign in to comment.