Skip to content

Commit

Permalink
Merge pull request #126 from VishwamAI/bugfix/warnings_documentation
Browse files Browse the repository at this point in the history
Refined Warning Suppression
  • Loading branch information
kasinadhsarma authored Sep 26, 2024
2 parents e258de3 + 2a2a189 commit 51a698f
Show file tree
Hide file tree
Showing 4 changed files with 1,155 additions and 0 deletions.
47 changes: 47 additions & 0 deletions tasks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# NeuroFlex Project Tasks

## Task Categories

### 1. Bug Fixes
- Address warnings related to line search and gradient evaluations in `math_solvers.py`.
- Resolve intermittent failures in `test_multi_modal_learning.py`.
- Fix issues in `tests/edge_ai/test_edge_ai_optimization.py`.

### 2. Feature Implementations
- Implement additional self-healing strategies in `edge_ai_optimization.py`.
- Enhance logging for optimization processes in `math_solvers.py`.

### 3. Performance Optimizations
- Refine optimization parameters in `math_solvers.py` to improve convergence.
- Optimize data handling and preprocessing in `multi_modal_learning.py`.

### 4. Documentation Improvements
- Update documentation to reflect recent changes in optimization logic.
- Document new features and enhancements in the `README.md` file.

### 5. Test Case Additions
- Add test cases for new self-healing strategies in `edge_ai_optimization.py`.
- Develop tests for enhanced logging functionality in `math_solvers.py`.

## Task Division

### Bug Fixes
- **Task 1.1**: Investigate and resolve line search warnings in `math_solvers.py`.
- **Task 1.2**: Fix intermittent failures in `test_multi_modal_learning.py`.
- **Task 1.3**: Address issues in `tests/edge_ai/test_edge_ai_optimization.py`.

### Feature Implementations
- **Task 2.1**: Implement new self-healing strategies in `edge_ai_optimization.py`.
- **Task 2.2**: Enhance logging for optimization processes in `math_solvers.py`.

### Performance Optimizations
- **Task 3.1**: Refine optimization parameters in `math_solvers.py`.
- **Task 3.2**: Optimize data handling in `multi_modal_learning.py`.

### Documentation Improvements
- **Task 4.1**: Update documentation for optimization logic changes.
- **Task 4.2**: Document new features in the `README.md`.

### Test Case Additions
- **Task 5.1**: Add test cases for self-healing strategies.
- **Task 5.2**: Develop tests for logging functionality.
8 changes: 8 additions & 0 deletions tests/advanced_models/test_advanced_time_series_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@
from NeuroFlex.advanced_models.advanced_time_series_analysis import AdvancedTimeSeriesAnalysis
from statsmodels.tools.sm_exceptions import ValueWarning, EstimationWarning, ConvergenceWarning

warnings.filterwarnings("ignore", category=UserWarning, message="Non-stationary starting autoregressive parameters")
warnings.filterwarnings("ignore", category=UserWarning, message="Non-invertible starting MA parameters")
warnings.filterwarnings("ignore", category=RuntimeWarning, message="invalid value encountered in divide")
warnings.filterwarnings("ignore", category=RuntimeWarning, message="divide by zero encountered in divide")
warnings.filterwarnings("ignore", category=RuntimeWarning, message="invalid value encountered in log")
warnings.filterwarnings("ignore", category=RuntimeWarning, message="Mean of empty slice")
warnings.filterwarnings("ignore", category=ConvergenceWarning, message="Maximum Likelihood optimization failed to converge")

logger = logging.getLogger(__name__)

@pytest.fixture
Expand Down
Loading

0 comments on commit 51a698f

Please sign in to comment.