Skip to content
This repository has been archived by the owner on Dec 6, 2023. It is now read-only.

Commit

Permalink
Merge pull request #23 from jwaton/typo-and-path-highlight-bug
Browse files Browse the repository at this point in the history
Typo and path highlight bug
  • Loading branch information
thuijskens committed Jan 19, 2019
2 parents 7916344 + 8b070e8 commit 695e526
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ print(selector.get_support(indices=True))

### Bootstrapping strategies

`stability-selection` uses bootstrapping without replacement by default (as proposed in the original paper), but does support different bootstrapping strategies. [Shah and Samworth] proposed *complentairy pairs* bootstrapping, where the data set is bootstrapped in pairs, such that the intersection is empty but the union equals the original data set. `StabilitySelection` supports this through the `bootstrap_func` parameter.
`stability-selection` uses bootstrapping without replacement by default (as proposed in the original paper), but does support different bootstrapping strategies. [Shah and Samworth] proposed *complementary pairs* bootstrapping, where the data set is bootstrapped in pairs, such that the intersection is empty but the union equals the original data set. `StabilitySelection` supports this through the `bootstrap_func` parameter.

This parameter can be:
- A string, which must be one of
Expand Down
5 changes: 3 additions & 2 deletions stability_selection/stability_selection.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,9 @@ def plot_stability_path(stability_selection, threshold_highlight=None,
x_grid = stability_selection.lambda_grid / np.max(stability_selection.lambda_grid)

fig, ax = plt.subplots(1, 1, **kwargs)
ax.plot(x_grid, stability_selection.stability_scores_[~paths_to_highlight].T,
'k:', linewidth=0.5)
if not paths_to_highlight.all():
ax.plot(x_grid, stability_selection.stability_scores_[~paths_to_highlight].T,
'k:', linewidth=0.5)

if paths_to_highlight.any():
ax.plot(x_grid, stability_selection.stability_scores_[paths_to_highlight].T,
Expand Down

0 comments on commit 695e526

Please sign in to comment.