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.
- {ilovetools-0.2.13/ilovetools.egg-info → ilovetools-0.2.14}/PKG-INFO +2 -2
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/__init__.py +2 -2
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/__init__.py +57 -2
- ilovetools-0.2.14/ilovetools/ml/loss_functions.py +867 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14/ilovetools.egg-info}/PKG-INFO +2 -2
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/SOURCES.txt +2 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/pyproject.toml +2 -2
- {ilovetools-0.2.13 → ilovetools-0.2.14}/setup.py +2 -2
- ilovetools-0.2.14/tests/test_loss_functions.py +324 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/LICENSE +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/MANIFEST.in +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/README.md +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/embeddings.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/inference.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ai/llm_helpers.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/audio/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/automation/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/automation/file_organizer.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/conversion/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/conversion/config_converter.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/conversion/config_converter_fixed_header.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/data/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/data/feature_engineering.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/data/preprocessing.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/database/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/datetime/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/email/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/email/template_engine.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/files/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/image/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/anomaly_detection.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/clustering.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/cross_validation.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/dimensionality.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/ensemble.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/feature_selection.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/gradient_descent.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/imbalanced.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/interpretation.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/metrics.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/neural_network.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/pipeline.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/regularization.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/timeseries.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/ml/tuning.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/security/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/security/password_checker.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/text/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/cache_system.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/logger.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/rate_limiter.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/utils/retry.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/validation/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/validation/data_validator.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/web/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/web/scraper.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools/web/url_shortener.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/dependency_links.txt +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/requires.txt +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/ilovetools.egg-info/top_level.txt +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/requirements.txt +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/setup.cfg +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/tests/__init__.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/tests/test_gradient_descent.py +0 -0
- {ilovetools-0.2.13 → ilovetools-0.2.14}/tests/test_neural_network.py +0 -0
- {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.
|
|
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
|
|
@@ -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
|
-
'
|
|
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
|
]
|