Skip to content

Commit

Permalink
Update black linting
Browse files Browse the repository at this point in the history
  • Loading branch information
reidjohnson committed Dec 13, 2023
1 parent 2372e2b commit d434ac9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
16 changes: 7 additions & 9 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,15 +184,13 @@

# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(
"index",
"quantile-forest",
"quantile-forest Documentation",
["Zillow Group"],
1,
)
]
man_pages = [(
"index",
"quantile-forest",
"quantile-forest Documentation",
["Zillow Group"],
1,
)]

# If true, show URL addresses after external links.
# man_show_urls = False
Expand Down
12 changes: 6 additions & 6 deletions quantile_forest/tests/test_quantile_forest.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,9 @@ def check_proximity_counts(name):
n_samples = len(X_california)
proximities = est.proximity_counts(X_california)
X_leaves = est.apply(X_california)
bootstrap_indices = np.array([
_generate_sample_indices(e.random_state, n_samples, n_samples) for e in est.estimators_
])
bootstrap_indices = np.array(
[_generate_sample_indices(e.random_state, n_samples, n_samples) for e in est.estimators_]
)
for train_idx, train_idx_prox in enumerate(proximities):
for proximity_idx, proximity_count in train_idx_prox:
bootstrap_count = 0
Expand Down Expand Up @@ -1029,9 +1029,9 @@ def check_proximity_counts_oob(name):
# Check that OOB proximity counts match OOB bootstrap counts.
X_leaves = est.apply(X)
n_samples = len(X)
bootstrap_indices = np.array([
_generate_sample_indices(e.random_state, n_samples, n_samples) for e in est.estimators_
])
bootstrap_indices = np.array(
[_generate_sample_indices(e.random_state, n_samples, n_samples) for e in est.estimators_]
)
for train_idx, train_idx_prox in enumerate(proximities):
for proximity_idx, proximity_count in train_idx_prox:
bootstrap_count = 0
Expand Down

0 comments on commit d434ac9

Please sign in to comment.