Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 29, 2024
1 parent 055bec6 commit 9ee3018
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/examples_sequence.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for i in range(20):
X.append(X[-1] + X[-2])
X = np.array(X)
model = PySRSequenceRegressor(
recursive_history_length=2,
recursive_history_length=2,
binary_operators=["+", "-", "*", "/"]
)
model.fit(X) # no y needed
Expand All @@ -37,7 +37,7 @@ with two data points at a time.
X = [[1, 2], [3, 4]]
for i in range(100):
X.append([
X[-1][0] + X[-2][0],
X[-1][0] + X[-2][0],
X[-1][1] - X[-2][1]
])
X = np.array(X)
Expand All @@ -50,4 +50,4 @@ model = PySRSequenceRegressor(

model.fit(X)
print(model)
```
```

0 comments on commit 9ee3018

Please sign in to comment.