libinephany 1.0.0__py3-none-any.whl → 1.0.1__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.
- libinephany/observations/statistic_trackers.py +8 -10
- libinephany/utils/enums.py +6 -0
- {libinephany-1.0.0.dist-info → libinephany-1.0.1.dist-info}/METADATA +1 -1
- {libinephany-1.0.0.dist-info → libinephany-1.0.1.dist-info}/RECORD +7 -7
- {libinephany-1.0.0.dist-info → libinephany-1.0.1.dist-info}/WHEEL +0 -0
- {libinephany-1.0.0.dist-info → libinephany-1.0.1.dist-info}/licenses/LICENSE +0 -0
- {libinephany-1.0.0.dist-info → libinephany-1.0.1.dist-info}/top_level.txt +0 -0
@@ -1187,19 +1187,17 @@ class LogOfNoiseScaleStatistics(Statistic):
|
|
1187
1187
|
# This is a common assumption when the exact noise structure is unknown
|
1188
1188
|
noise_covariance = torch.ones_like(hessian_diagonals)
|
1189
1189
|
|
1190
|
-
# Compute tr(HΣ)
|
1191
|
-
trace_hessian_noise_covariance =
|
1192
|
-
|
1193
|
-
|
1194
|
-
if trace_hessian_noise_covariance <= 0:
|
1195
|
-
return None
|
1190
|
+
# Compute tr(HΣ), add zero division tolerance to avoid log of zero when gradient is too small
|
1191
|
+
trace_hessian_noise_covariance = (
|
1192
|
+
torch.sum(hessian_diagonals * noise_covariance) + LHOPT_CONSTANTS["ZERO_DIVISION_TOLERANCE"]
|
1193
|
+
)
|
1196
1194
|
|
1197
1195
|
log_trace_hessian_noise_covariance = torch.log(trace_hessian_noise_covariance).item()
|
1198
1196
|
|
1199
|
-
# Compute tr(H^3 Σ)
|
1200
|
-
trace_hessian_cubed_noise_covariance =
|
1201
|
-
|
1202
|
-
|
1197
|
+
# Compute tr(H^3 Σ), add zero division tolerance to avoid log of zero when gradient is too small
|
1198
|
+
trace_hessian_cubed_noise_covariance = (
|
1199
|
+
torch.sum(hessian_diagonals**3 * noise_covariance) + LHOPT_CONSTANTS["ZERO_DIVISION_TOLERANCE"]
|
1200
|
+
)
|
1203
1201
|
|
1204
1202
|
log_trace_hessian_cubed_noise_covariance = torch.log(trace_hessian_cubed_noise_covariance).item()
|
1205
1203
|
|
libinephany/utils/enums.py
CHANGED
@@ -6,7 +6,7 @@ libinephany/observations/observation_utils.py,sha256=JSNJYEi2d-VQ0ZovfHrn28RDv41
|
|
6
6
|
libinephany/observations/observer_pipeline.py,sha256=_xA4vrijhG8-9MCtGXnKAEmpd6q0nKVpJgY_qSbypIA,12979
|
7
7
|
libinephany/observations/pipeline_coordinator.py,sha256=mLfaHhkXVhMp9w5jWIAL3jPyauCM-795qOzyqwGOSdw,7932
|
8
8
|
libinephany/observations/statistic_manager.py,sha256=LLg1zSxnJr2oQQepYla3qoUuRy10rsthr9jta4wEbnc,8956
|
9
|
-
libinephany/observations/statistic_trackers.py,sha256=
|
9
|
+
libinephany/observations/statistic_trackers.py,sha256=F98V-H2Ljx0v2YnppYCCJLJojL6pzYBdbBh8Lb4lasA,47666
|
10
10
|
libinephany/observations/observers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
libinephany/observations/observers/base_observers.py,sha256=9YI_jkivoCjyPtNSn3VnPADF1VqwGdHPkgi1kDzed3Y,16516
|
12
12
|
libinephany/observations/observers/local_observers.py,sha256=yBXmuCaDZotJPmBZKdrPfGYtVO-CCvT5ZS0KvROOcE4,45657
|
@@ -42,7 +42,7 @@ libinephany/utils/backend_statuses.py,sha256=ZbpBPbz0qKmeqxyGGN_ePTrQ7Wrxh7KM6W2
|
|
42
42
|
libinephany/utils/constants.py,sha256=XAOuPowvM4FDSbfvNsubKTAqSB84AANX4CoHb7LwgEI,2330
|
43
43
|
libinephany/utils/directory_utils.py,sha256=408unVeE_5_Hm-ZYZuxc9sdvfuU0CgYELX7EzPlPieo,1217
|
44
44
|
libinephany/utils/dropout_utils.py,sha256=X43yCW7Dh1cC5sNnivgS5j1fn871K_RCvxCBTT0YHKg,3392
|
45
|
-
libinephany/utils/enums.py,sha256=
|
45
|
+
libinephany/utils/enums.py,sha256=6fTgUd4EiFh4TzNXjvWX-zx1UKb90emgDaGB5gyAbdo,2977
|
46
46
|
libinephany/utils/error_severities.py,sha256=B9oidqOVaYOe0W6P6GwjpmuDsrkyTX30v1xdiUStCFk,1427
|
47
47
|
libinephany/utils/exceptions.py,sha256=kgwLpHOgy3kciUz_I18xnYsWRtzdonfadUtwG2uDYk8,1823
|
48
48
|
libinephany/utils/import_utils.py,sha256=WzC6V6UIa0nCiU2MekROwG82fWBh9RuVzichtby5EvM,1495
|
@@ -57,8 +57,8 @@ libinephany/utils/typing.py,sha256=rGbaPO3MaUndsWiC_wHzReD_TOLYqb43i01pKN-j7Xs,6
|
|
57
57
|
libinephany/web_apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
58
58
|
libinephany/web_apps/error_logger.py,sha256=gAQIaqerqP4ornXZwFF1cghjnd2mMZEt3aVrTuUCr34,16653
|
59
59
|
libinephany/web_apps/web_app_utils.py,sha256=qiq_lasPipgN1RgRudPJc342kYci8O_4RqppxmIX8NY,4095
|
60
|
-
libinephany-1.0.
|
61
|
-
libinephany-1.0.
|
62
|
-
libinephany-1.0.
|
63
|
-
libinephany-1.0.
|
64
|
-
libinephany-1.0.
|
60
|
+
libinephany-1.0.1.dist-info/licenses/LICENSE,sha256=pogfDoMBP07ehIOvWymuWIar8pg2YLUhqOHsJQU3wdc,9250
|
61
|
+
libinephany-1.0.1.dist-info/METADATA,sha256=V6iQ6cRxETVLRSiikWuuQi9CCmSSc7BSsy0M4p0HcwE,8389
|
62
|
+
libinephany-1.0.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
63
|
+
libinephany-1.0.1.dist-info/top_level.txt,sha256=bYAOXQdJgIoLkO2Ui0kxe7pSYegS_e38u0dMscd7COQ,12
|
64
|
+
libinephany-1.0.1.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|