ilovetools 0.2.13__tar.gz → 0.2.14__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.
Files changed (68) hide show
  1. {ilovetools-0.2.13/ilovetools.egg-info → ilovetools-0.2.14}/PKG-INFO +2 -2
  2. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/__init__.py +2 -2
  3. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/__init__.py +57 -2
  4. ilovetools-0.2.14/ilovetools/ml/loss_functions.py +867 -0
  5. {ilovetools-0.2.13 → ilovetools-0.2.14/ilovetools.egg-info}/PKG-INFO +2 -2
  6. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/SOURCES.txt +2 -0
  7. {ilovetools-0.2.13 → ilovetools-0.2.14}/pyproject.toml +2 -2
  8. {ilovetools-0.2.13 → ilovetools-0.2.14}/setup.py +2 -2
  9. ilovetools-0.2.14/tests/test_loss_functions.py +324 -0
  10. {ilovetools-0.2.13 → ilovetools-0.2.14}/LICENSE +0 -0
  11. {ilovetools-0.2.13 → ilovetools-0.2.14}/MANIFEST.in +0 -0
  12. {ilovetools-0.2.13 → ilovetools-0.2.14}/README.md +0 -0
  13. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/__init__.py +0 -0
  14. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/embeddings.py +0 -0
  15. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/inference.py +0 -0
  16. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/llm_helpers.py +0 -0
  17. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/audio/__init__.py +0 -0
  18. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/automation/__init__.py +0 -0
  19. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/automation/file_organizer.py +0 -0
  20. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/conversion/__init__.py +0 -0
  21. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/conversion/config_converter.py +0 -0
  22. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/conversion/config_converter_fixed_header.py +0 -0
  23. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/data/__init__.py +0 -0
  24. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/data/feature_engineering.py +0 -0
  25. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/data/preprocessing.py +0 -0
  26. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/database/__init__.py +0 -0
  27. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/datetime/__init__.py +0 -0
  28. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/email/__init__.py +0 -0
  29. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/email/template_engine.py +0 -0
  30. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/files/__init__.py +0 -0
  31. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/image/__init__.py +0 -0
  32. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/anomaly_detection.py +0 -0
  33. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/clustering.py +0 -0
  34. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/cross_validation.py +0 -0
  35. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/dimensionality.py +0 -0
  36. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/ensemble.py +0 -0
  37. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/feature_selection.py +0 -0
  38. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/gradient_descent.py +0 -0
  39. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/imbalanced.py +0 -0
  40. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/interpretation.py +0 -0
  41. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/metrics.py +0 -0
  42. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/neural_network.py +0 -0
  43. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/pipeline.py +0 -0
  44. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/regularization.py +0 -0
  45. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/timeseries.py +0 -0
  46. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/tuning.py +0 -0
  47. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/security/__init__.py +0 -0
  48. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/security/password_checker.py +0 -0
  49. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/text/__init__.py +0 -0
  50. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/__init__.py +0 -0
  51. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/cache_system.py +0 -0
  52. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/logger.py +0 -0
  53. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/rate_limiter.py +0 -0
  54. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/retry.py +0 -0
  55. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/validation/__init__.py +0 -0
  56. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/validation/data_validator.py +0 -0
  57. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/web/__init__.py +0 -0
  58. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/web/scraper.py +0 -0
  59. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/web/url_shortener.py +0 -0
  60. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/dependency_links.txt +0 -0
  61. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/requires.txt +0 -0
  62. {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/top_level.txt +0 -0
  63. {ilovetools-0.2.13 → ilovetools-0.2.14}/requirements.txt +0 -0
  64. {ilovetools-0.2.13 → ilovetools-0.2.14}/setup.cfg +0 -0
  65. {ilovetools-0.2.13 → ilovetools-0.2.14}/tests/__init__.py +0 -0
  66. {ilovetools-0.2.13 → ilovetools-0.2.14}/tests/test_gradient_descent.py +0 -0
  67. {ilovetools-0.2.13 → ilovetools-0.2.14}/tests/test_neural_network.py +0 -0
  68. {ilovetools-0.2.13 → ilovetools-0.2.14}/tests/test_regularization.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: ilovetools
3
- Version: 0.2.13
3
+ Version: 0.2.14
4
4
  Summary: A comprehensive Python utility library with modular tools for AI/ML, data processing, and daily programming needs
5
5
  Home-page: https://github.com/AliMehdi512/ilovetools
6
6
  Author: Ali Mehdi
@@ -11,7 +11,7 @@ Project-URL: Repository, https://github.com/AliMehdi512/ilovetools
11
11
  Project-URL: Issues, https://github.com/AliMehdi512/ilovetools/issues
12
12
  Project-URL: Bug Reports, https://github.com/AliMehdi512/ilovetools/issues
13
13
  Project-URL: Source, https://github.com/AliMehdi512/ilovetools
14
- Keywords: utilities,tools,ai,ml,data-processing,automation,gradient-descent,optimization,regularization
14
+ Keywords: utilities,tools,ai,ml,data-processing,automation,gradient-descent,optimization,regularization,loss-functions
15
15
  Classifier: Development Status :: 3 - Alpha
16
16
  Classifier: Intended Audience :: Developers
17
17
  Classifier: Topic :: Software Development :: Libraries :: Python Modules
@@ -2,8 +2,8 @@
2
2
  ilovetools - A comprehensive Python utility library
3
3
  """
4
4
 
5
- __version__ = "0.2.12"
6
- # release marker: 0.2.12
5
+ __version__ = "0.2.13"
6
+ # release marker: 0.2.13
7
7
  __author__ = "Ali Mehdi"
8
8
  __email__ = "ali.mehdi.dev579@gmail.com"
9
9
 
@@ -347,7 +347,7 @@ from .neural_network import (
347
347
  mse_loss,
348
348
  binary_crossentropy,
349
349
  categorical_crossentropy,
350
- huber_loss,
350
+ huber_loss as nn_huber_loss,
351
351
  # Weight Initialization
352
352
  xavier_init,
353
353
  he_init,
@@ -425,6 +425,35 @@ from .regularization import (
425
425
  apply_weight_decay,
426
426
  )
427
427
 
428
+ from .loss_functions import (
429
+ # Regression Losses
430
+ mean_squared_error_loss,
431
+ mean_absolute_error_loss,
432
+ root_mean_squared_error_loss,
433
+ huber_loss,
434
+ log_cosh_loss,
435
+ quantile_loss,
436
+ mean_squared_logarithmic_error,
437
+ # Classification Losses
438
+ binary_crossentropy_loss,
439
+ categorical_crossentropy_loss,
440
+ sparse_categorical_crossentropy_loss,
441
+ hinge_loss,
442
+ squared_hinge_loss,
443
+ categorical_hinge_loss,
444
+ focal_loss,
445
+ kullback_leibler_divergence,
446
+ # Segmentation Losses
447
+ dice_loss,
448
+ dice_coefficient,
449
+ iou_loss,
450
+ tversky_loss,
451
+ focal_tversky_loss,
452
+ # Utilities
453
+ combined_loss,
454
+ weighted_loss,
455
+ )
456
+
428
457
  __all__ = [
429
458
  # Metrics (full names)
430
459
  'accuracy_score',
@@ -734,7 +763,7 @@ __all__ = [
734
763
  'mse_loss',
735
764
  'binary_crossentropy',
736
765
  'categorical_crossentropy',
737
- 'huber_loss',
766
+ 'nn_huber_loss',
738
767
  # Neural Network - Weight Initialization
739
768
  'xavier_init',
740
769
  'he_init',
@@ -804,4 +833,30 @@ __all__ = [
804
833
  # Regularization - Utilities
805
834
  'compute_regularization_loss',
806
835
  'apply_weight_decay',
836
+ # Loss Functions - Regression
837
+ 'mean_squared_error_loss',
838
+ 'mean_absolute_error_loss',
839
+ 'root_mean_squared_error_loss',
840
+ 'huber_loss',
841
+ 'log_cosh_loss',
842
+ 'quantile_loss',
843
+ 'mean_squared_logarithmic_error',
844
+ # Loss Functions - Classification
845
+ 'binary_crossentropy_loss',
846
+ 'categorical_crossentropy_loss',
847
+ 'sparse_categorical_crossentropy_loss',
848
+ 'hinge_loss',
849
+ 'squared_hinge_loss',
850
+ 'categorical_hinge_loss',
851
+ 'focal_loss',
852
+ 'kullback_leibler_divergence',
853
+ # Loss Functions - Segmentation
854
+ 'dice_loss',
855
+ 'dice_coefficient',
856
+ 'iou_loss',
857
+ 'tversky_loss',
858
+ 'focal_tversky_loss',
859
+ # Loss Functions - Utilities
860
+ 'combined_loss',
861
+ 'weighted_loss',
807
862
  ]