Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
repos:
# Ruff - linter AND formatter (the single source of truth; CI gates `ruff check` + `ruff format`)
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.15.21
rev: v0.16.6
hooks:
# Lint with autofix, then format, both read the configuration from pyproject.toml
- id: ruff
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ x = np.random.default_rng(0).standard_normal(200)

result = bootstrap(x, method=MovingBlock(block_length="auto"), n_bootstraps=999, random_state=0)

samples = result.values() # (n_bootstraps, n) resampled series
oob = result.get_oob_mask() # (n_bootstraps, n) out-of-bag mask
samples = result.values() # (n_bootstraps, n) resampled series
oob = result.get_oob_mask() # (n_bootstraps, n) out-of-bag mask
```

Choose a method spec for the structure you need (block lengths default to the
Expand Down
4 changes: 2 additions & 2 deletions docs/development/migration_to_0.2.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ breaking change replaces the old top-level bootstrap classes with the functional
from tsbootstrap import bootstrap, MovingBlock

result = bootstrap(x, method=MovingBlock(block_length="auto"), n_bootstraps=999, random_state=0)
samples = result.values() # (n_bootstraps, n[, d])
oob = result.get_oob_mask() # (n_bootstraps, n) for observation-resampling methods
samples = result.values() # (n_bootstraps, n[, d])
oob = result.get_oob_mask() # (n_bootstraps, n) for observation-resampling methods
```

`bootstrap` takes the data and a method specification, and returns a
Expand Down