Skip to content

Conversation

@xImoZA
Copy link

@xImoZA xImoZA commented Nov 12, 2025

This pull request refactors the estimators and optimizers modules to use generic numeric types and improves numerical stability.

Implementation:

  • Generic Typing: Refactored estimators and optimizers classes to use typing.Generic with a TypeVar("DType").

  • Numerical Stability: Implemented logic to automatically recalculate with higher precision when numerical overflow is detected.

  • Test Coverage: Added additional test cases to significantly improve code coverage.

  • Type Safety: Added tests for return values to ensure type correctness.

@xImoZA xImoZA requested a review from iraedeus November 12, 2025 22:18
@xImoZA xImoZA linked an issue Nov 12, 2025 that may be closed by this pull request
@xImoZA xImoZA self-assigned this Nov 12, 2025
@xImoZA xImoZA force-pushed the feat(core)/switch-to-generics branch from fc27d30 to fcffc43 Compare November 24, 2025 14:06
@xImoZA xImoZA force-pushed the feat(estimators-optimizers)/switch-to-generics branch from 0607c2a to 7faec1a Compare November 24, 2025 15:54
@xImoZA xImoZA force-pushed the feat(estimators-optimizers)/switch-to-generics branch from 7faec1a to 9df7b32 Compare November 24, 2025 16:55
@xImoZA xImoZA force-pushed the feat(core)/switch-to-generics branch from fa9cbae to cd36859 Compare November 24, 2025 18:07
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.

FEAT: Switch from float64 to Generics

2 participants