MCPcopy
hub / github.com/google-deepmind/mathematics_dataset / sample

Function sample

mathematics_dataset/sample/polynomials.py:297–299  ·  view source on GitHub ↗
(variables, degrees, entropy, length=None)

Source from the content-addressed store, hash-verified

295
296
297def sample(variables, degrees, entropy, length=None):
298 coefficients = sample_expanded_coefficients(degrees, entropy, length)
299 return coefficients_to_polynomial(coefficients, variables)
300
301
302def add_coefficients(coeffs1, coeffs2):

Callers 1

_sample_with_bracketsFunction · 0.85

Calls 2

Tested by

no test coverage detected