tf-keras-nightly 2.18.0.dev2024080209__py3-none-any.whl → 2.18.0.dev2024080409__py3-none-any.whl
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.
- tf_keras/__init__.py +1 -1
- tf_keras/src/callbacks.py +7 -7
- tf_keras/src/utils/data_utils.py +1 -1
- {tf_keras_nightly-2.18.0.dev2024080209.dist-info → tf_keras_nightly-2.18.0.dev2024080409.dist-info}/METADATA +1 -1
- {tf_keras_nightly-2.18.0.dev2024080209.dist-info → tf_keras_nightly-2.18.0.dev2024080409.dist-info}/RECORD +7 -7
- {tf_keras_nightly-2.18.0.dev2024080209.dist-info → tf_keras_nightly-2.18.0.dev2024080409.dist-info}/WHEEL +0 -0
- {tf_keras_nightly-2.18.0.dev2024080209.dist-info → tf_keras_nightly-2.18.0.dev2024080409.dist-info}/top_level.txt +0 -0
tf_keras/__init__.py
CHANGED
tf_keras/src/callbacks.py
CHANGED
@@ -1423,20 +1423,20 @@ class ModelCheckpoint(Callback):
|
|
1423
1423
|
if mode == "min":
|
1424
1424
|
self.monitor_op = np.less
|
1425
1425
|
if self.best is None:
|
1426
|
-
self.best = np.
|
1426
|
+
self.best = np.inf
|
1427
1427
|
elif mode == "max":
|
1428
1428
|
self.monitor_op = np.greater
|
1429
1429
|
if self.best is None:
|
1430
|
-
self.best = -np.
|
1430
|
+
self.best = -np.inf
|
1431
1431
|
else:
|
1432
1432
|
if "acc" in self.monitor or self.monitor.startswith("fmeasure"):
|
1433
1433
|
self.monitor_op = np.greater
|
1434
1434
|
if self.best is None:
|
1435
|
-
self.best = -np.
|
1435
|
+
self.best = -np.inf
|
1436
1436
|
else:
|
1437
1437
|
self.monitor_op = np.less
|
1438
1438
|
if self.best is None:
|
1439
|
-
self.best = np.
|
1439
|
+
self.best = np.inf
|
1440
1440
|
|
1441
1441
|
if self.save_freq != "epoch" and not isinstance(self.save_freq, int):
|
1442
1442
|
raise ValueError(
|
@@ -2112,7 +2112,7 @@ class EarlyStopping(Callback):
|
|
2112
2112
|
# Allow instances to be re-used
|
2113
2113
|
self.wait = 0
|
2114
2114
|
self.stopped_epoch = 0
|
2115
|
-
self.best = np.
|
2115
|
+
self.best = np.inf if self.monitor_op == np.less else -np.inf
|
2116
2116
|
self.best_weights = None
|
2117
2117
|
self.best_epoch = 0
|
2118
2118
|
|
@@ -3115,10 +3115,10 @@ class ReduceLROnPlateau(Callback):
|
|
3115
3115
|
self.mode == "auto" and "acc" not in self.monitor
|
3116
3116
|
):
|
3117
3117
|
self.monitor_op = lambda a, b: np.less(a, b - self.min_delta)
|
3118
|
-
self.best = np.
|
3118
|
+
self.best = np.inf
|
3119
3119
|
else:
|
3120
3120
|
self.monitor_op = lambda a, b: np.greater(a, b + self.min_delta)
|
3121
|
-
self.best = -np.
|
3121
|
+
self.best = -np.inf
|
3122
3122
|
self.cooldown_counter = 0
|
3123
3123
|
self.wait = 0
|
3124
3124
|
|
tf_keras/src/utils/data_utils.py
CHANGED
@@ -1108,7 +1108,7 @@ def pad_sequences(
|
|
1108
1108
|
maxlen = np.max(lengths)
|
1109
1109
|
|
1110
1110
|
is_dtype_str = np.issubdtype(dtype, np.str_) or np.issubdtype(
|
1111
|
-
dtype, np.
|
1111
|
+
dtype, np.str_
|
1112
1112
|
)
|
1113
1113
|
if isinstance(value, str) and dtype != object and not is_dtype_str:
|
1114
1114
|
raise ValueError(
|
@@ -1,4 +1,4 @@
|
|
1
|
-
tf_keras/__init__.py,sha256=
|
1
|
+
tf_keras/__init__.py,sha256=TDY4W59q5mMFVNFvZS1MYRnS9T0ahVoyXHea7373vIE,911
|
2
2
|
tf_keras/__internal__/__init__.py,sha256=OHQbeIC0QtRBI7dgXaJaVbH8F00x8dCI-DvEcIfyMsE,671
|
3
3
|
tf_keras/__internal__/backend/__init__.py,sha256=LnMs2A6685gDG79fxqmdulIYlVE_3WmXlBTBo9ZWYcw,162
|
4
4
|
tf_keras/__internal__/layers/__init__.py,sha256=F5SGMhOTPzm-PR44VrfinURHcVeQPIEdwnZlAkSTB3A,176
|
@@ -210,7 +210,7 @@ tf_keras/src/__init__.py,sha256=zogCD1H65aeYRu_EMjB0bBQBXq2IAww7ys3SjEw1IKU,1502
|
|
210
210
|
tf_keras/src/activations.py,sha256=QNTCdIuNGww5BPwkkjkaNZf4j09m27Nqi-r4aTBOxnk,22630
|
211
211
|
tf_keras/src/backend.py,sha256=025YEbBOWW2J_iqO3IpPx549tsJtcHqtlQadXq4ssWs,248504
|
212
212
|
tf_keras/src/backend_config.py,sha256=DaKkQg6jLmzR2GtgjNxwFoHuTXwVcAzx_Hx8XgAKPNs,4516
|
213
|
-
tf_keras/src/callbacks.py,sha256=
|
213
|
+
tf_keras/src/callbacks.py,sha256=NTfP_-gtstxjrT8LduyXWm6_ThW9vCBjoK7YHYllCqU,134312
|
214
214
|
tf_keras/src/callbacks_v1.py,sha256=iT1NSRgN0Yw3joDTB3uKy4bEzb6Az6E5CTNH77wElUs,22154
|
215
215
|
tf_keras/src/constraints.py,sha256=vxdBJEQz3rmtGSyCwou_WSCQUhaw6Wz_OgJoW1dtyIo,13949
|
216
216
|
tf_keras/src/losses.py,sha256=dhdaZfY56-ZimHgfckyQYBKxvLDeYyLEU_mAyxM8H4g,110698
|
@@ -574,7 +574,7 @@ tf_keras/src/utils/__init__.py,sha256=HDp6YtwWY9al-pSjokrgj_IzsFi36TWQVGJp3ibTlw
|
|
574
574
|
tf_keras/src/utils/audio_dataset.py,sha256=5ML_mwWqRdB7T-figwE77VKO_8koiHP7f4EZIdNkBfo,14818
|
575
575
|
tf_keras/src/utils/control_flow_util.py,sha256=AOqalI3Xg0thK98jCxV_HkScHf4hIt_sAhOtSBknFhY,4418
|
576
576
|
tf_keras/src/utils/conv_utils.py,sha256=zFXVu4fU7Wi8nOb_t8P95sfc1sksRfgBOiJO7ZFOz0k,20188
|
577
|
-
tf_keras/src/utils/data_utils.py,sha256=
|
577
|
+
tf_keras/src/utils/data_utils.py,sha256=phPaaZuLkv9nP7UXxnPqV3JyZonqGs3mMg-iPNPS12g,38184
|
578
578
|
tf_keras/src/utils/dataset_creator.py,sha256=snbbdHRC6CLbaFb2TAPWJfPiHtJ2xyD4zYJsErsEfR0,4746
|
579
579
|
tf_keras/src/utils/dataset_utils.py,sha256=EJjVMA1LlJvrAeyQHifnyhe5tngtIF4TXuC39bi-kjw,28016
|
580
580
|
tf_keras/src/utils/feature_space.py,sha256=xcqwUOjXou2_q0I_KeJhdPEjmlkUabWbckv2PbBRneI,28868
|
@@ -606,7 +606,7 @@ tf_keras/src/utils/legacy/__init__.py,sha256=EfMmeHYDzwvxNaktPhQbkTdcPSIGCqMhBND
|
|
606
606
|
tf_keras/utils/__init__.py,sha256=b7_d-USe_EmLo02_P99Q1rUCzKBYayPCfiYFStP-0nw,2735
|
607
607
|
tf_keras/utils/experimental/__init__.py,sha256=DzGogE2AosjxOVILQBT8PDDcqbWTc0wWnZRobCdpcec,97
|
608
608
|
tf_keras/utils/legacy/__init__.py,sha256=7ujlDa5HeSRcth2NdqA0S1P2-VZF1kB3n68jye6Dj-8,189
|
609
|
-
tf_keras_nightly-2.18.0.
|
610
|
-
tf_keras_nightly-2.18.0.
|
611
|
-
tf_keras_nightly-2.18.0.
|
612
|
-
tf_keras_nightly-2.18.0.
|
609
|
+
tf_keras_nightly-2.18.0.dev2024080409.dist-info/METADATA,sha256=mbAaTBTNGb_-3DIg60PkpOxG1Zg8sHBN_q2j9VpCGXk,1638
|
610
|
+
tf_keras_nightly-2.18.0.dev2024080409.dist-info/WHEEL,sha256=R0nc6qTxuoLk7ShA2_Y-UWkN8ZdfDBG2B6Eqpz2WXbs,91
|
611
|
+
tf_keras_nightly-2.18.0.dev2024080409.dist-info/top_level.txt,sha256=LC8FK7zHDNKxB17C6lGKvrZ_fZZGJsRiBK23SfiDegY,9
|
612
|
+
tf_keras_nightly-2.18.0.dev2024080409.dist-info/RECORD,,
|
File without changes
|
File without changes
|