Skip to content

Commit

Permalink
simple readme change
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Heid committed Aug 10, 2023
1 parent e86a2bf commit 7762851
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
7 changes: 5 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]

### Added
- PSL classifier: introduced parallelization
- PSL classifier: implemented l-step lookahead
- PSL classifier
- introduced parallelization
- implemented l-step lookahead
- simple inspect(·) method that creates a tabular representation of the model


## 0.1.0 - 2023-08-08

Expand Down
3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ from skpsl import ProbabilisticScoringList
X, y = make_classification(random_state=42)
X = (X > .5).astype(int)

clf = ProbabilisticScoringList([-1, 1, 2])
psl = ProbabilisticScoringList([-1, 1, 2])

for train, test in ShuffleSplit(1, test_size=.2, random_state=42).split(X):
psl = ProbabilisticScoringList([-1, 1, 2])
psl.fit(X[train], y[train])
print(f"Brier score: {psl.score(X[test], y[test]):.4f}")
#> Brier score: 0.1924 (lower is better)
Expand Down

0 comments on commit 7762851

Please sign in to comment.