Download benchmarks/math/minimizing_max_min_dist/2/initial_program.py from JustinTX/sky2: direct link, hf CLI and curl.
- Browser
- Download file 459 Bytes
-
https://huggingface.co/JustinTX/sky2/resolve/main/benchmarks/math/minimizing_max_min_dist/2/initial_program.py
- Command line
-
hf download hf://JustinTX/sky2/benchmarks/math/minimizing_max_min_dist/2/initial_program.py
-
curl -L -o initial_program.py https://huggingface.co/JustinTX/sky2/resolve/main/benchmarks/math/minimizing_max_min_dist/2/initial_program.py
459 Bytes
| # EVOLVE-BLOCK-START | |
| import numpy as np | |
| def min_max_dist_dim2_16() -> np.ndarray: | |
| """ | |
| Creates 16 points in 2 dimensions in order to maximize the ratio of minimum to maximum distance. | |
| Returns | |
| points: np.ndarray of shape (16,2) containing the (x,y) coordinates of the 16 points. | |
| """ | |
| n = 16 | |
| d = 2 | |
| # places points randomly | |
| np.random.seed(42) | |
| points = np.random.randn(n, d) | |
| return points | |
| # EVOLVE-BLOCK-END | |