fix: π Enhance Models code snippets #374
Merged
+352
β216
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.
β Closes: #361
This pull request includes extensive changes to the
pysnippets
machine learning models and their corresponding tests. The main updates involve adding logging for better tracking and error handling, enhancing docstrings for clarity, and removing old test files.Enhancements to models:
pysnippets/models/CV_means.py
,pysnippets/models/Catboost.py
,pysnippets/models/Ensemble.py
,pysnippets/models/Grid_search.py
,pysnippets/models/KMeans.py
,pysnippets/models/LightGBM.py
,pysnippets/models/Linear_regression.py
,pysnippets/models/Logistic_regression.py
,pysnippets/models/XGB.py
). [1] [2] [3] [4] [5] [6] [7] [8] [9]pysnippets/models/CV_means.py
,pysnippets/models/Catboost.py
,pysnippets/models/Ensemble.py
,pysnippets/models/Grid_search.py
,pysnippets/models/KMeans.py
,pysnippets/models/LightGBM.py
,pysnippets/models/Linear_regression.py
,pysnippets/models/Logistic_regression.py
,pysnippets/models/XGB.py
). [1] [2] [3] [4] [5] [6] [7] [8] [9]Test file removals:
Tests/machine-learning-test/test_CV_means.py
,Tests/machine-learning-test/test_Catboost.py
,Tests/machine-learning-test/test_Ensemble.py
,Tests/machine-learning-test/test_Grid_search.py
,Tests/machine-learning-test/test_KMeans.py
,Tests/machine-learning-test/test_LightGBM.py
,Tests/machine-learning-test/test_Linear.py
,Tests/machine-learning-test/test_Logistic.py
,Tests/machine-learning-test/test_XGB.py
). [1] [2] [3] [4] [5] [6] [7] [8] [9]Initialization of models module:
__init__.py
file to facilitate easier access (pysnippets/models/__init__.py
).@UTSAVS26 kindly review this PR.