keras-differential-lr 0.1.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.
- keras_differential_lr-0.1.0/LICENSE +0 -0
- keras_differential_lr-0.1.0/PKG-INFO +8 -0
- keras_differential_lr-0.1.0/README.md +0 -0
- keras_differential_lr-0.1.0/keras_differentail_lr/__init__.py +12 -0
- keras_differential_lr-0.1.0/keras_differentail_lr/groups.py +22 -0
- keras_differential_lr-0.1.0/keras_differentail_lr/model.py +0 -0
- keras_differential_lr-0.1.0/keras_differentail_lr/optimizer.py +0 -0
- keras_differential_lr-0.1.0/keras_differentail_lr/utils.py +0 -0
- keras_differential_lr-0.1.0/keras_differential_lr.egg-info/PKG-INFO +8 -0
- keras_differential_lr-0.1.0/keras_differential_lr.egg-info/SOURCES.txt +13 -0
- keras_differential_lr-0.1.0/keras_differential_lr.egg-info/dependency_links.txt +1 -0
- keras_differential_lr-0.1.0/keras_differential_lr.egg-info/top_level.txt +1 -0
- keras_differential_lr-0.1.0/pyproject.toml +20 -0
- keras_differential_lr-0.1.0/setup.cfg +4 -0
- keras_differential_lr-0.1.0/setup.py +21 -0
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
from dataclasses import dataclass
|
|
2
|
+
from keras.optimizers import Optimizer
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
@dataclass
|
|
6
|
+
class OptimizerGroup:
|
|
7
|
+
|
|
8
|
+
optimizer: Optimizer
|
|
9
|
+
layers: list
|
|
10
|
+
name: str = "group"
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def variables(self):
|
|
14
|
+
|
|
15
|
+
variables = []
|
|
16
|
+
|
|
17
|
+
for layer in self.layers:
|
|
18
|
+
variables.extend(
|
|
19
|
+
layer.trainable_variables
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
return variables
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
LICENSE
|
|
2
|
+
README.md
|
|
3
|
+
pyproject.toml
|
|
4
|
+
setup.py
|
|
5
|
+
keras_differentail_lr/__init__.py
|
|
6
|
+
keras_differentail_lr/groups.py
|
|
7
|
+
keras_differentail_lr/model.py
|
|
8
|
+
keras_differentail_lr/optimizer.py
|
|
9
|
+
keras_differentail_lr/utils.py
|
|
10
|
+
keras_differential_lr.egg-info/PKG-INFO
|
|
11
|
+
keras_differential_lr.egg-info/SOURCES.txt
|
|
12
|
+
keras_differential_lr.egg-info/dependency_links.txt
|
|
13
|
+
keras_differential_lr.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
keras_differentail_lr
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["setuptools>=61"]
|
|
3
|
+
build-backend = "setuptools.build_meta"
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[project]
|
|
7
|
+
name = "keras_differential_lr"
|
|
8
|
+
version = "0.1.0"
|
|
9
|
+
|
|
10
|
+
description = "Differential learning rate optimizer for Keras"
|
|
11
|
+
|
|
12
|
+
readme = "README.md"
|
|
13
|
+
|
|
14
|
+
requires-python = ">=3.9"
|
|
15
|
+
|
|
16
|
+
authors = [
|
|
17
|
+
{name="Reza Moghimian"}
|
|
18
|
+
]
|
|
19
|
+
|
|
20
|
+
dependencies = []
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
from setuptools import setup, find_packages
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
setup(
|
|
5
|
+
|
|
6
|
+
name="keras-differential-lr",
|
|
7
|
+
|
|
8
|
+
version="1.0.0",
|
|
9
|
+
|
|
10
|
+
packages=find_packages(),
|
|
11
|
+
|
|
12
|
+
install_requires=[
|
|
13
|
+
"tensorflow>=2.16"
|
|
14
|
+
],
|
|
15
|
+
|
|
16
|
+
python_requires=">=3.9",
|
|
17
|
+
|
|
18
|
+
description=
|
|
19
|
+
"Differential learning rate training for Keras models"
|
|
20
|
+
|
|
21
|
+
)
|