Skip to content

extract(nn): scitex.nn → scitex-nn v0.1.0 (2,664 LOC, 458 tests pass)#254

Open
ywatanabe1989 wants to merge 1 commit intodevelopfrom
extract/scitex-nn
Open

extract(nn): scitex.nn → scitex-nn v0.1.0 (2,664 LOC, 458 tests pass)#254
ywatanabe1989 wants to merge 1 commit intodevelopfrom
extract/scitex-nn

Conversation

@ywatanabe1989
Copy link
Copy Markdown
Owner

Summary

  • Extract scitex.nn (2,664 LOC, neural-network blocks: BNet, Hilbert, PAC, Wavelet, Filters, …) to standalone scitex-nn v0.1.0.
  • Replace src/scitex/nn/ with 12-line sys.modules alias.
  • Collapse [nn] extra from 9 transitive deps → single scitex-nn>=0.1.0.
  • Standalone tests: 458 pass / 2 fail / 38 skip (failures are flaky FreqGainChanger random-init checks, identical in scitex-python).

Decoupling (in scitex-nn)

Test plan

  • python -c "import scitex.nn as n; import scitex_nn as r; assert n is r" — passes
  • hasattr(scitex.nn, 'Hilbert' / 'PAC' / 'Wavelet' / ...) — present
  • standalone test suite: 458/498 pass (matches upstream)

Depends on

scitex.nn (2,664 LOC, neural-network blocks) extracted to standalone
scitex-nn package: https://github.com/ywatanabe1989/scitex-nn

- Replace src/scitex/nn/ with 12-line sys.modules-alias __init__.py
- Collapse [nn] extra (9 transitive deps) to single scitex-nn>=0.1.0
- scitex.nn is scitex_nn: True (verified)
- Standalone tests: 458 pass / 2 fail (flaky FreqGainChanger random) / 38 skip

Decoupling in scitex-nn:
- scitex.{decorators,gen} → scitex_decorators / scitex_gen direct imports
- scitex.dsp.utils helpers vendored under _vendor_dsp_utils/ with prefer-real fallback
- scitex.nn.X self-references → scitex_nn.X

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant