dragon-ml-toolbox 4.4.0__tar.gz → 4.5.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of dragon-ml-toolbox might be problematic. Click here for more details.

Files changed (36) hide show
  1. {dragon_ml_toolbox-4.4.0/dragon_ml_toolbox.egg-info → dragon_ml_toolbox-4.5.0}/PKG-INFO +1 -1
  2. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0/dragon_ml_toolbox.egg-info}/PKG-INFO +1 -1
  3. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/PSO_optimization.py +14 -1
  4. dragon_ml_toolbox-4.5.0/ml_tools/__init__.py +1 -0
  5. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/data_exploration.py +1 -1
  6. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/pyproject.toml +1 -1
  7. dragon_ml_toolbox-4.4.0/ml_tools/__init__.py +0 -0
  8. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/LICENSE +0 -0
  9. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/LICENSE-THIRD-PARTY.md +0 -0
  10. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/README.md +0 -0
  11. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/dragon_ml_toolbox.egg-info/SOURCES.txt +0 -0
  12. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/dragon_ml_toolbox.egg-info/dependency_links.txt +0 -0
  13. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/dragon_ml_toolbox.egg-info/requires.txt +0 -0
  14. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/dragon_ml_toolbox.egg-info/top_level.txt +0 -0
  15. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/ETL_engineering.py +0 -0
  16. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/GUI_tools.py +0 -0
  17. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/MICE_imputation.py +0 -0
  18. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/ML_callbacks.py +0 -0
  19. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/ML_evaluation.py +0 -0
  20. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/ML_inference.py +0 -0
  21. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/ML_trainer.py +0 -0
  22. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/RNN_forecast.py +0 -0
  23. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/SQL.py +0 -0
  24. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/VIF_factor.py +0 -0
  25. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/_logger.py +0 -0
  26. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/_pytorch_models.py +0 -0
  27. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/_script_info.py +0 -0
  28. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/custom_logger.py +0 -0
  29. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/datasetmaster.py +0 -0
  30. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/ensemble_inference.py +0 -0
  31. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/ensemble_learning.py +0 -0
  32. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/handle_excel.py +0 -0
  33. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/keys.py +0 -0
  34. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/path_manager.py +0 -0
  35. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/ml_tools/utilities.py +0 -0
  36. {dragon_ml_toolbox-4.4.0 → dragon_ml_toolbox-4.5.0}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dragon-ml-toolbox
3
- Version: 4.4.0
3
+ Version: 4.5.0
4
4
  Summary: A collection of tools for data science and machine learning projects.
5
5
  Author-email: Karl Loza <luigiloza@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: dragon-ml-toolbox
3
- Version: 4.4.0
3
+ Version: 4.5.0
4
4
  Summary: A collection of tools for data science and machine learning projects.
5
5
  Author-email: Karl Loza <luigiloza@gmail.com>
6
6
  License-Expression: MIT
@@ -2,7 +2,7 @@ import numpy as np
2
2
  from pathlib import Path
3
3
  import xgboost as xgb
4
4
  import lightgbm as lgb
5
- from typing import Literal, Union, Tuple, Dict, Optional
5
+ from typing import Literal, Union, Tuple, Dict, Optional, Any
6
6
  import pandas as pd
7
7
  from copy import deepcopy
8
8
  from .utilities import (
@@ -25,6 +25,7 @@ from contextlib import nullcontext
25
25
  __all__ = [
26
26
  "ObjectiveFunction",
27
27
  "multiple_objective_functions_from_dir",
28
+ "parse_lower_upper_bounds",
28
29
  "run_pso",
29
30
  "plot_optimal_feature_distributions"
30
31
  ]
@@ -169,6 +170,18 @@ def multiple_objective_functions_from_dir(directory: Union[str,Path], add_noise:
169
170
  return objective_functions, objective_function_names
170
171
 
171
172
 
173
+ def parse_lower_upper_bounds(source: dict[str,tuple[Any,Any]]):
174
+ """
175
+ Parse lower and upper boundaries, returning 2 lists:
176
+
177
+ `lower_bounds`, `upper_bounds`
178
+ """
179
+ lower = [low[0] for low in source.values()]
180
+ upper = [up[1] for up in source.values()]
181
+
182
+ return lower, upper
183
+
184
+
172
185
  def _set_boundaries(lower_boundaries: list[float], upper_boundaries: list[float]):
173
186
  assert len(lower_boundaries) == len(upper_boundaries), "Lower and upper boundaries must have the same length."
174
187
  assert len(lower_boundaries) >= 1, "At least one boundary pair is required."
@@ -0,0 +1 @@
1
+ from .custom_logger import custom_logger
@@ -348,7 +348,7 @@ def plot_correlation_heatmap(df: pd.DataFrame,
348
348
  full_path = save_path / plot_title
349
349
 
350
350
  plt.savefig(full_path, bbox_inches="tight", format='svg')
351
- print(f"Saved correlation heatmap: '{plot_title}.svg'")
351
+ print(f"Saved correlation heatmap: '{plot_title}'")
352
352
 
353
353
  plt.show()
354
354
  plt.close()
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "dragon-ml-toolbox"
3
- version = "4.4.0"
3
+ version = "4.5.0"
4
4
  description = "A collection of tools for data science and machine learning projects."
5
5
  authors = [
6
6
  { name = "Karl Loza", email = "luigiloza@gmail.com" }
File without changes