Repository navigation
ENH: Array API for GFDLRegressor
#129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sdtemple
wants to merge
24
commits into
lanl:main
Choose a base branch
from
sdtemple:sdtemple_torch_cpu_regressor
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
89fb851
ENH: array api standard for torch cpu
2321b33
ENH,TST: ensure float, check and convert arrays
ec6f302
ENH: move_to from private utility funcs
sdtemple b2b3a03
ENH: activation functions with xp
412e50e
ENH: zero must be tensor in max func
1e91625
ENH,TST: array api dtypes, sklearn tags, and fixtures
7f58164
ENH,TST: sklearn-based tests
b60d0e7
ENH,TST: array api checks local to some tests
04297ca
ENH,TST: make_regression test for torch
b5e1a3c
MAINT: xp.min instead of min or .min()
d25c9f5
ENH,TST: xp flexible tests for check values
3fda2d3
ENH,TST,BUG: need with context, atol and rtol control
20dc3bb
ENH,TST: use yield for namespace, device, dtype
sdtemple 48b8688
ENH: revise for strict Array API
sdtemple 96fd0a2
TST: no check array api for classifier
sdtemple faf9bbb
CI: CI for array API
sdtemple 368108c
ENH,MAINT: use xp for `sigmoid`, `log_sigmoid`
sdtemple 5551b12
ENH,TST: `partial_fit` for array API
sdtemple 9da78d1
ENH,TST: softmax; tighter atol, rtol bounds for float64
sdtemple b5deaf9
TST: `sklearn` api compliance already handles array API
sdtemple ecf9ba1
ENH,TST: revisions after Emma's PR
sdtemple 50f9f4d
TST: `xpx` assert, small `partial_fit` test
sdtemple cc2847b
ENH: `xp.asarray` in `partial_fit`
sdtemple 0401566
CI: not cuda, xpu, mps for Array API CI
sdtemple File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,38 @@ | ||
| name: Array API CI | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - maintenance/** | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - maintenance/** | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| matrix: | ||
| os: [ubuntu-latest, macos-latest] | ||
| python-version: ["3.14"] | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | ||
| - name: Set up Python ${{ matrix.python-version }} | ||
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install -v . | ||
| python -m pip install -v --group test | ||
| python -m pip install torch array-api-strict array-api-compat | ||
| - name: test | ||
| run: | | ||
| cd $RUNNER_TEMP | ||
| SCIPY_ARRAY_API=1 python -m pytest | ||
| --pyargs gfdl | ||
| --cov=gfdl | ||
| --cov-report=term-missing | ||
| -k "not (cuda or xpu or mps)" |
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.