Fix 19 failing tests, dependency conflicts, and broken package structure#43
Merged
Fix 19 failing tests, dependency conflicts, and broken package structure#43
Conversation
…config - Fix split_data error messages to match test expectations - Add stratification fallback in split_data for small datasets - Fix validate_data_for_training messages (class imbalance, all NaN, target column) - Fix load_data error messages (size limit, non-CSV extension) - Add EmptyDataError handling in load_data - Add model_type key to run_automl results - Add empty array validation in validate_input - Fix visualization.py error message capitalization and wording - Fix evo_learn/utils.py broken imports (remove non-existent functions) - Fix numpy version conflict in requirements.txt - Fix mypy python_version in pyproject.toml (3.14 -> 3.13) - Fix Dockerfile Python version (3.14 -> 3.13) and stale mloptimizer path - Fix docker-compose.yml stale mloptimizer volume paths - Add EvoLearnConfig and load_config to evo_learn/__init__.py exports - Fix CLI version string (3.14+ -> 3.10+) - Fix test_core_enhanced.py size limit test (0.001 -> 0.0001) Co-authored-by: TurboRx <187360786+TurboRx@users.noreply.github.com>
Co-authored-by: TurboRx <187360786+TurboRx@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix bugs and enhance repository functionality
Fix 19 failing tests, dependency conflicts, and broken package structure
Feb 8, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Systematic audit of the repository surfaced broken tests, dependency version conflicts, incorrect package exports, and stale Docker configuration.
Code/message mismatches causing test failures
core.py: Error messages insplit_data,validate_data_for_training, andload_datadidn't match test regex expectations (e.g."not in columns"→"not found in columns", missing"class"in imbalance warning, missing"allowed"in size error)core.py:split_datacrashes on small datasets when stratification is impossible — added fallback to non-stratified splitcore.py:load_datadidn't catchpd.errors.EmptyDataError, letting a pandas exception leak instead of a cleanValueErrorcore.py:run_automlresult dict missingmodel_typekey expected by testsutils.py:validate_inputonly checked type, not emptiness — added empty collection checkvisualization.py: Error log messages used lowercase"failed"but tests asserted capitalized"Failed"; correlation warning said"Need >1"instead of"Not enough"Broken package structure
evo_learn/utils.py: Importedcross_validate_modelandsave_model_metadatafrom rootutils.pywhere they don't exist — immediateImportErroronimport evo_learnevo_learn/__init__.py: Missing exports forEvoLearnConfigandload_configDependency & config conflicts
requirements.txtpinnednumpy>=1.24.0,<2.0.0whilepyproject.tomlrequirednumpy>=2.0.0— irreconcilable conflict. Aligned to>=2.0.0,<3.0.0pyproject.toml: mypypython_version = "3.14"→"3.13"Dockerfile:python:3.14-slim→python:3.13-slim; stalemloptimizer/modelspath →modelsdocker-compose.yml: Same stalemloptimizer/modelsvolume mountcli.py: Version string claimed "3.14+" compat → corrected to "3.10+"Test fix
test_core_enhanced.py:max_size_mb=0.001was larger than the test CSV (~584 bytes) soValueErrorwas never raised. Changed to0.0001.Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.