Spaces:
Running
Running
MilesCranmer
commited on
Commit
•
670f6a4
1
Parent(s):
be5629a
Missing numpy import
Browse files- docs/examples.md +2 -0
docs/examples.md
CHANGED
@@ -247,6 +247,8 @@ primes = {i: jl.p(i*1.0) for i in range(1, 999)}
|
|
247 |
And let's create a dataset:
|
248 |
|
249 |
```python
|
|
|
|
|
250 |
X = np.random.randint(0, 100, 100)[:, None]
|
251 |
y = [primes[3*X[i, 0] + 1] - 5 for i in range(100)]
|
252 |
```
|
|
|
247 |
And let's create a dataset:
|
248 |
|
249 |
```python
|
250 |
+
import numpy as np
|
251 |
+
|
252 |
X = np.random.randint(0, 100, 100)[:, None]
|
253 |
y = [primes[3*X[i, 0] + 1] - 5 for i in range(100)]
|
254 |
```
|