Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pre-commit-ci-update-config' int…
Browse files Browse the repository at this point in the history
…o docs-mkdocs-version
  • Loading branch information
oboulant committed Apr 5, 2022
2 parents 7be24a5 + 63d060f commit 81a80f6
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/psf/black
rev: 21.12b0
rev: 22.3.0
hooks:
- id: black
language_version: python3
Expand Down Expand Up @@ -33,11 +33,11 @@ repos:
hooks:
- id: nbstripout
- repo: https://github.com/asottile/blacken-docs
rev: v1.12.0
rev: v1.12.1
hooks:
- id: blacken-docs
- repo: https://github.com/nbQA-dev/nbQA
rev: 1.2.2
rev: 1.3.1
hooks:
- id: nbqa-black
args: [--nbqa-mutate]
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/detection/binseg.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ In the situation in which the number of change points is unknown, one can specif
the `pen` parameter or a threshold on the residual norm using `epsilon`.

```python
my_bkps = algo.predict(pen=np.log(n) * dim * sigma ** 2)
my_bkps = algo.predict(pen=np.log(n) * dim * sigma**2)
# or
my_bkps = algo.predict(epsilon=3 * n * sigma ** 2)
my_bkps = algo.predict(epsilon=3 * n * sigma**2)
```

For faster predictions, one can modify the `jump` parameter during initialization.
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/detection/bottomup.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ In the situation in which the number of change points is unknown, one can specif
the `pen` parameter or a threshold on the residual norm using `epsilon`.

```python
my_bkps = algo.predict(pen=np.log(n) * dim * sigma ** 2)
my_bkps = algo.predict(pen=np.log(n) * dim * sigma**2)
# or
my_bkps = algo.predict(epsilon=3 * n * sigma ** 2)
my_bkps = algo.predict(epsilon=3 * n * sigma**2)
```

For faster predictions, one can modify the `jump` parameter during initialization.
Expand Down
4 changes: 2 additions & 2 deletions docs/user-guide/detection/window.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ In the situation in which the number of change points is unknown, one can specif
the `pen` parameter or a threshold on the residual norm using `epsilon`.

```python
my_bkps = algo.predict(pen=np.log(n) * dim * sigma ** 2)
my_bkps = algo.predict(pen=np.log(n) * dim * sigma**2)
# or
my_bkps = algo.predict(epsilon=3 * n * sigma ** 2)
my_bkps = algo.predict(epsilon=3 * n * sigma**2)
```

For faster predictions, one can modify the `jump` parameter during initialization.
Expand Down
4 changes: 2 additions & 2 deletions tests/test_detection.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,13 +347,13 @@ def test_model_small_signal(signal_bkps_5D_n10, algo, model):
with pytest.raises(BadSegmentationParameters):
algo(model=model, min_size=5, jump=2).fit_predict(signal, n_bkps=2)
assert (
len(algo(model=model, min_size=5, jump=2).fit_predict(signal, pen=10 ** 6)) > 0
len(algo(model=model, min_size=5, jump=2).fit_predict(signal, pen=10**6)) > 0
)
assert (
len(algo(model=model, min_size=5, jump=2).fit_predict(signal, epsilon=10)) > 0
)
assert (
len(algo(model=model, min_size=9, jump=2).fit_predict(signal, pen=10 ** 6)) > 0
len(algo(model=model, min_size=9, jump=2).fit_predict(signal, pen=10**6)) > 0
)


Expand Down

0 comments on commit 81a80f6

Please sign in to comment.