ilovetools 0.2.10__tar.gz → 0.2.12__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.10/ilovetools.egg-info → ilovetools-0.2.12}/PKG-INFO +2 -2
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/__init__.py +2 -2
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/conversion/config_converter.py +1 -1
- ilovetools-0.2.12/ilovetools/conversion/config_converter_fixed_header.py +14 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/__init__.py +136 -0
- ilovetools-0.2.12/ilovetools/ml/gradient_descent.py +977 -0
- ilovetools-0.2.12/ilovetools/ml/neural_network.py +980 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12/ilovetools.egg-info}/PKG-INFO +2 -2
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools.egg-info/SOURCES.txt +6 -1
- {ilovetools-0.2.10 → ilovetools-0.2.12}/pyproject.toml +2 -2
- {ilovetools-0.2.10 → ilovetools-0.2.12}/setup.py +33 -6
- ilovetools-0.2.12/tests/test_gradient_descent.py +362 -0
- ilovetools-0.2.12/tests/test_neural_network.py +301 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/LICENSE +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/MANIFEST.in +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/README.md +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ai/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ai/embeddings.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ai/inference.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ai/llm_helpers.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/audio/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/automation/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/automation/file_organizer.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/conversion/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/data/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/data/feature_engineering.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/data/preprocessing.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/database/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/datetime/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/email/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/email/template_engine.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/files/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/image/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/anomaly_detection.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/clustering.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/cross_validation.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/dimensionality.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/ensemble.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/feature_selection.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/imbalanced.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/interpretation.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/metrics.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/pipeline.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/timeseries.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/ml/tuning.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/security/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/security/password_checker.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/text/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/utils/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/utils/cache_system.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/utils/logger.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/utils/rate_limiter.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/utils/retry.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/validation/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/validation/data_validator.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/web/__init__.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/web/scraper.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools/web/url_shortener.py +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools.egg-info/dependency_links.txt +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools.egg-info/requires.txt +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/ilovetools.egg-info/top_level.txt +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/requirements.txt +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/setup.cfg +0 -0
- {ilovetools-0.2.10 → ilovetools-0.2.12}/tests/__init__.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.12
|
|
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
|
|
14
|
+
Keywords: utilities,tools,ai,ml,data-processing,automation,gradient-descent,optimization
|
|
15
15
|
Classifier: Development Status :: 3 - Alpha
|
|
16
16
|
Classifier: Intended Audience :: Developers
|
|
17
17
|
Classifier: Topic :: Software Development :: Libraries :: Python Modules
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"""
|
|
2
|
+
FIXED HEADER FOR config_converter.py
|
|
3
|
+
Copy lines 1-9 to replace the broken import in config_converter.py
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
"""
|
|
7
|
+
Configuration File Converter
|
|
8
|
+
Convert between JSON, YAML, TOML, XML, and INI formats
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
import json
|
|
12
|
+
import re
|
|
13
|
+
from typing import Any, Dict, List, Union, Optional
|
|
14
|
+
from collections import OrderedDict
|
|
@@ -330,6 +330,77 @@ from .anomaly_detection import (
|
|
|
330
330
|
visualize_anomalies,
|
|
331
331
|
)
|
|
332
332
|
|
|
333
|
+
from .neural_network import (
|
|
334
|
+
# Activation Functions
|
|
335
|
+
sigmoid,
|
|
336
|
+
relu,
|
|
337
|
+
leaky_relu,
|
|
338
|
+
tanh,
|
|
339
|
+
softmax,
|
|
340
|
+
elu,
|
|
341
|
+
swish,
|
|
342
|
+
# Activation Derivatives
|
|
343
|
+
sigmoid_derivative,
|
|
344
|
+
relu_derivative,
|
|
345
|
+
tanh_derivative,
|
|
346
|
+
# Loss Functions
|
|
347
|
+
mse_loss,
|
|
348
|
+
binary_crossentropy,
|
|
349
|
+
categorical_crossentropy,
|
|
350
|
+
huber_loss,
|
|
351
|
+
# Weight Initialization
|
|
352
|
+
xavier_init,
|
|
353
|
+
he_init,
|
|
354
|
+
random_init,
|
|
355
|
+
zeros_init,
|
|
356
|
+
ones_init,
|
|
357
|
+
# Layer Operations
|
|
358
|
+
dense_forward,
|
|
359
|
+
dense_backward,
|
|
360
|
+
dropout_forward,
|
|
361
|
+
batch_norm_forward,
|
|
362
|
+
# Optimization
|
|
363
|
+
sgd_update,
|
|
364
|
+
momentum_update,
|
|
365
|
+
adam_update,
|
|
366
|
+
rmsprop_update,
|
|
367
|
+
# Utilities
|
|
368
|
+
one_hot_encode,
|
|
369
|
+
shuffle_data,
|
|
370
|
+
mini_batch_generator,
|
|
371
|
+
calculate_accuracy,
|
|
372
|
+
confusion_matrix_nn,
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
from .gradient_descent import (
|
|
376
|
+
# Basic Gradient Descent
|
|
377
|
+
gradient_descent,
|
|
378
|
+
batch_gradient_descent,
|
|
379
|
+
stochastic_gradient_descent,
|
|
380
|
+
mini_batch_gradient_descent,
|
|
381
|
+
# Advanced Optimizers
|
|
382
|
+
momentum_optimizer,
|
|
383
|
+
nesterov_momentum,
|
|
384
|
+
adagrad_optimizer,
|
|
385
|
+
rmsprop_optimizer,
|
|
386
|
+
adam_optimizer,
|
|
387
|
+
adamw_optimizer,
|
|
388
|
+
nadam_optimizer,
|
|
389
|
+
adadelta_optimizer,
|
|
390
|
+
# Learning Rate Schedules
|
|
391
|
+
step_decay_schedule,
|
|
392
|
+
exponential_decay_schedule,
|
|
393
|
+
cosine_annealing_schedule,
|
|
394
|
+
linear_warmup_schedule,
|
|
395
|
+
polynomial_decay_schedule,
|
|
396
|
+
# Utilities
|
|
397
|
+
compute_gradient,
|
|
398
|
+
gradient_clipping,
|
|
399
|
+
check_convergence,
|
|
400
|
+
line_search,
|
|
401
|
+
compute_learning_rate,
|
|
402
|
+
)
|
|
403
|
+
|
|
333
404
|
__all__ = [
|
|
334
405
|
# Metrics (full names)
|
|
335
406
|
'accuracy_score',
|
|
@@ -623,4 +694,69 @@ __all__ = [
|
|
|
623
694
|
'remove_outliers',
|
|
624
695
|
'get_outlier_scores',
|
|
625
696
|
'visualize_anomalies',
|
|
697
|
+
# Neural Network - Activation Functions
|
|
698
|
+
'sigmoid',
|
|
699
|
+
'relu',
|
|
700
|
+
'leaky_relu',
|
|
701
|
+
'tanh',
|
|
702
|
+
'softmax',
|
|
703
|
+
'elu',
|
|
704
|
+
'swish',
|
|
705
|
+
# Neural Network - Activation Derivatives
|
|
706
|
+
'sigmoid_derivative',
|
|
707
|
+
'relu_derivative',
|
|
708
|
+
'tanh_derivative',
|
|
709
|
+
# Neural Network - Loss Functions
|
|
710
|
+
'mse_loss',
|
|
711
|
+
'binary_crossentropy',
|
|
712
|
+
'categorical_crossentropy',
|
|
713
|
+
'huber_loss',
|
|
714
|
+
# Neural Network - Weight Initialization
|
|
715
|
+
'xavier_init',
|
|
716
|
+
'he_init',
|
|
717
|
+
'random_init',
|
|
718
|
+
'zeros_init',
|
|
719
|
+
'ones_init',
|
|
720
|
+
# Neural Network - Layer Operations
|
|
721
|
+
'dense_forward',
|
|
722
|
+
'dense_backward',
|
|
723
|
+
'dropout_forward',
|
|
724
|
+
'batch_norm_forward',
|
|
725
|
+
# Neural Network - Optimization
|
|
726
|
+
'sgd_update',
|
|
727
|
+
'momentum_update',
|
|
728
|
+
'adam_update',
|
|
729
|
+
'rmsprop_update',
|
|
730
|
+
# Neural Network - Utilities
|
|
731
|
+
'one_hot_encode',
|
|
732
|
+
'shuffle_data',
|
|
733
|
+
'mini_batch_generator',
|
|
734
|
+
'calculate_accuracy',
|
|
735
|
+
'confusion_matrix_nn',
|
|
736
|
+
# Gradient Descent - Basic
|
|
737
|
+
'gradient_descent',
|
|
738
|
+
'batch_gradient_descent',
|
|
739
|
+
'stochastic_gradient_descent',
|
|
740
|
+
'mini_batch_gradient_descent',
|
|
741
|
+
# Gradient Descent - Advanced Optimizers
|
|
742
|
+
'momentum_optimizer',
|
|
743
|
+
'nesterov_momentum',
|
|
744
|
+
'adagrad_optimizer',
|
|
745
|
+
'rmsprop_optimizer',
|
|
746
|
+
'adam_optimizer',
|
|
747
|
+
'adamw_optimizer',
|
|
748
|
+
'nadam_optimizer',
|
|
749
|
+
'adadelta_optimizer',
|
|
750
|
+
# Gradient Descent - Learning Rate Schedules
|
|
751
|
+
'step_decay_schedule',
|
|
752
|
+
'exponential_decay_schedule',
|
|
753
|
+
'cosine_annealing_schedule',
|
|
754
|
+
'linear_warmup_schedule',
|
|
755
|
+
'polynomial_decay_schedule',
|
|
756
|
+
# Gradient Descent - Utilities
|
|
757
|
+
'compute_gradient',
|
|
758
|
+
'gradient_clipping',
|
|
759
|
+
'check_convergence',
|
|
760
|
+
'line_search',
|
|
761
|
+
'compute_learning_rate',
|
|
626
762
|
]
|