Skip to content

Commit

Permalink
Merge branch 'main' into nodylink-build
Browse files Browse the repository at this point in the history
  • Loading branch information
hoodmane committed Oct 7, 2023
2 parents b2a2281 + dbf4dea commit a5e8a39
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/project/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ myst:

## Unreleased

### Packages

- Added river version 0.19.0 {pr}`4197`

### Load time & size optimizations

- {{ Performance }} Do not use `importlib.metadata` when identifying installed packages,
Expand Down
31 changes: 31 additions & 0 deletions packages/river/meta.yaml
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
17 changes: 17 additions & 0 deletions packages/river/test_river.py
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)
1 change: 1 addition & 0 deletions src/js/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { TypedArray } from "./types";
// Exported for micropip
API.loadBinaryFile = loadBinaryFile;

// Exported for micropip
API.loadBinaryFile = loadBinaryFile;

/**
Expand Down

0 comments on commit a5e8a39

Please sign in to comment.