-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
34 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
# Used by streamlit deployment | ||
-e . | ||
streamlit>=1.34.0 | ||
-e ."[streamlit]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,27 @@ | ||
# Description | ||
|
||
Writing scikit-learn compatible estimators might be harder than expected. | ||
|
||
While everyone knows about the `fit` and `predict`, there are other behaviours, methods and attributes that scikit-learn might be expecting from your estimator depending on: | ||
While everyone knows about the `fit` and `predict`, there are other behaviours, methods and attributes that | ||
scikit-learn might be expecting from your estimator depending on: | ||
|
||
- The type of estimator you're writing. | ||
- The signature of the estimator. | ||
- The signature of the `.fit(...)` method. | ||
|
||
Scikit-learn Smithy to the rescue: this tool aims to help you crafting your own estimator by asking a few questions about it, and then generating the boilerplate code. | ||
Scikit-learn Smithy to the rescue: this tool aims to help you crafting your own estimator by asking a few | ||
questions about it, and then generating the boilerplate code. | ||
|
||
In this way you will be able to fully focus on the core implementation logic, and not on nitty-gritty details | ||
of the scikit-learn API. | ||
|
||
## Sanity check | ||
|
||
Once the core logic is implemented, the estimator should be ready to test against the _somewhat official_ | ||
[`parametrize_with_checks`](https://scikit-learn.org/dev/modules/generated/sklearn.utils.estimator_checks.parametrize_with_checks.html#sklearn.utils.estimator_checks.parametrize_with_checks) | ||
pytest compatible decorator. | ||
|
||
## Official guide | ||
|
||
In this way you will be able to fully focus on the core implementation logic, and not on nitty-gritty details of the | ||
scikit-learn API. | ||
Scikit-learn documentation on how to | ||
[develop estimators](https://scikit-learn.org/dev/developers/develop.html#developing-scikit-learn-estimators). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -115,7 +115,3 @@ OptionGroup { | |
height: 1fr; | ||
border-right: vkey $background; | ||
} | ||
|
||
Message { | ||
margin: 0 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters