ilovetools 0.2.12__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.12/ilovetools.egg-info → ilovetools-0.2.14}/PKG-INFO +2 -2
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/__init__.py +2 -2
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/__init__.py +102 -2
- ilovetools-0.2.14/ilovetools/ml/loss_functions.py +867 -0
- ilovetools-0.2.14/ilovetools/ml/regularization.py +603 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14/ilovetools.egg-info}/PKG-INFO +2 -2
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools.egg-info/SOURCES.txt +5 -1
- {ilovetools-0.2.12 → ilovetools-0.2.14}/pyproject.toml +2 -2
- {ilovetools-0.2.12 → ilovetools-0.2.14}/setup.py +2 -2
- ilovetools-0.2.14/tests/test_loss_functions.py +324 -0
- ilovetools-0.2.14/tests/test_regularization.py +322 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/LICENSE +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/MANIFEST.in +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/README.md +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ai/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ai/embeddings.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ai/inference.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ai/llm_helpers.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/audio/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/automation/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/automation/file_organizer.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/conversion/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/conversion/config_converter.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/conversion/config_converter_fixed_header.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/data/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/data/feature_engineering.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/data/preprocessing.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/database/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/datetime/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/email/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/email/template_engine.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/files/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/image/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/anomaly_detection.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/clustering.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/cross_validation.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/dimensionality.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/ensemble.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/feature_selection.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/gradient_descent.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/imbalanced.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/interpretation.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/metrics.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/neural_network.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/pipeline.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/timeseries.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/ml/tuning.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/security/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/security/password_checker.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/text/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/utils/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/utils/cache_system.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/utils/logger.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/utils/rate_limiter.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/utils/retry.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/validation/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/validation/data_validator.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/web/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/web/scraper.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools/web/url_shortener.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools.egg-info/dependency_links.txt +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools.egg-info/requires.txt +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/ilovetools.egg-info/top_level.txt +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/requirements.txt +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/setup.cfg +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/tests/__init__.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/tests/test_gradient_descent.py +0 -0
- {ilovetools-0.2.12 → ilovetools-0.2.14}/tests/test_neural_network.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
|
|
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,
|
|
@@ -401,6 +401,59 @@ from .gradient_descent import (
|
|
|
401
401
|
compute_learning_rate,
|
|
402
402
|
)
|
|
403
403
|
|
|
404
|
+
from .regularization import (
|
|
405
|
+
# L1/L2 Regularization
|
|
406
|
+
l1_regularization,
|
|
407
|
+
l2_regularization,
|
|
408
|
+
elastic_net_regularization,
|
|
409
|
+
l1_penalty,
|
|
410
|
+
l2_penalty,
|
|
411
|
+
elastic_net_penalty,
|
|
412
|
+
# Dropout
|
|
413
|
+
dropout,
|
|
414
|
+
dropout_mask,
|
|
415
|
+
inverted_dropout,
|
|
416
|
+
# Early Stopping
|
|
417
|
+
early_stopping_monitor as reg_early_stopping_monitor,
|
|
418
|
+
should_stop_early,
|
|
419
|
+
# Weight Constraints
|
|
420
|
+
max_norm_constraint,
|
|
421
|
+
unit_norm_constraint,
|
|
422
|
+
non_negative_constraint,
|
|
423
|
+
# Regularization Utilities
|
|
424
|
+
compute_regularization_loss,
|
|
425
|
+
apply_weight_decay,
|
|
426
|
+
)
|
|
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
|
+
|
|
404
457
|
__all__ = [
|
|
405
458
|
# Metrics (full names)
|
|
406
459
|
'accuracy_score',
|
|
@@ -710,7 +763,7 @@ __all__ = [
|
|
|
710
763
|
'mse_loss',
|
|
711
764
|
'binary_crossentropy',
|
|
712
765
|
'categorical_crossentropy',
|
|
713
|
-
'
|
|
766
|
+
'nn_huber_loss',
|
|
714
767
|
# Neural Network - Weight Initialization
|
|
715
768
|
'xavier_init',
|
|
716
769
|
'he_init',
|
|
@@ -759,4 +812,51 @@ __all__ = [
|
|
|
759
812
|
'check_convergence',
|
|
760
813
|
'line_search',
|
|
761
814
|
'compute_learning_rate',
|
|
815
|
+
# Regularization - L1/L2
|
|
816
|
+
'l1_regularization',
|
|
817
|
+
'l2_regularization',
|
|
818
|
+
'elastic_net_regularization',
|
|
819
|
+
'l1_penalty',
|
|
820
|
+
'l2_penalty',
|
|
821
|
+
'elastic_net_penalty',
|
|
822
|
+
# Regularization - Dropout
|
|
823
|
+
'dropout',
|
|
824
|
+
'dropout_mask',
|
|
825
|
+
'inverted_dropout',
|
|
826
|
+
# Regularization - Early Stopping
|
|
827
|
+
'reg_early_stopping_monitor',
|
|
828
|
+
'should_stop_early',
|
|
829
|
+
# Regularization - Weight Constraints
|
|
830
|
+
'max_norm_constraint',
|
|
831
|
+
'unit_norm_constraint',
|
|
832
|
+
'non_negative_constraint',
|
|
833
|
+
# Regularization - Utilities
|
|
834
|
+
'compute_regularization_loss',
|
|
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',
|
|
762
862
|
]
|