forked from pyodide/pyodide
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into nodylink-build
- Loading branch information
Showing
4 changed files
with
53 additions
and
0 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
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
package: | ||
name: river | ||
version: 0.19.0 | ||
top-level: | ||
- river | ||
|
||
source: | ||
url: https://files.pythonhosted.org/packages/79/89/2ff0fd93d8f1e3f3e47392e12a14463147de49b6b25df617835e7da894b9/river-0.19.0.tar.gz | ||
sha256: 6b2192e27636334dd29eb43d6c46a53f9d7eef38eb8479a0797412b7c8c46020 | ||
|
||
requirements: | ||
executable: | ||
- rustup | ||
host: | ||
- numpy | ||
run: | ||
- numpy | ||
- pandas | ||
- pytest # can remove in 0.20 | ||
- scipy | ||
|
||
about: | ||
home: https://github.com/online-ml/river | ||
PyPI: https://pypi.org/project/river | ||
summary: Online machine learning in Python | ||
license: BSD-3 | ||
|
||
test: | ||
imports: | ||
- river | ||
- river.api |
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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import pytest | ||
from pytest_pyodide import run_in_pyodide | ||
|
||
|
||
@pytest.mark.driver_timeout(60) | ||
@run_in_pyodide(packages=["river"]) | ||
def test_linear_regression(selenium): | ||
from river import datasets, evaluate, linear_model, metrics, preprocessing | ||
|
||
dataset = datasets.TrumpApproval() | ||
|
||
model = preprocessing.StandardScaler() | linear_model.LinearRegression( | ||
intercept_lr=0.1 | ||
) | ||
metric = metrics.MAE() | ||
|
||
evaluate.progressive_val_score(dataset, model, metric) |
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