libinephany 0.13.5__py3-none-any.whl → 0.13.7__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/observers/global_observers.py +2 -0
- libinephany/observations/observers/local_observers.py +1 -1
- libinephany/pydantic_models/configs/outer_model_config.py +1 -6
- libinephany/utils/import_utils.py +9 -0
- {libinephany-0.13.5.dist-info → libinephany-0.13.7.dist-info}/METADATA +1 -1
- {libinephany-0.13.5.dist-info → libinephany-0.13.7.dist-info}/RECORD +9 -9
- {libinephany-0.13.5.dist-info → libinephany-0.13.7.dist-info}/WHEEL +0 -0
- {libinephany-0.13.5.dist-info → libinephany-0.13.7.dist-info}/licenses/LICENSE +0 -0
- {libinephany-0.13.5.dist-info → libinephany-0.13.7.dist-info}/top_level.txt +0 -0
@@ -36,6 +36,8 @@ class InitialHyperparameters(GlobalObserver):
|
|
36
36
|
|
37
37
|
super().__init__(**kwargs)
|
38
38
|
|
39
|
+
force_skip = ["samples"]
|
40
|
+
skip_hparams = force_skip if skip_hparams is None else skip_hparams + force_skip
|
39
41
|
self.skip_hparams = [] if skip_hparams is None else skip_hparams
|
40
42
|
self.pad_with = pad_with
|
41
43
|
|
@@ -580,7 +580,7 @@ class ModuleTypeOneHot(LocalObserver):
|
|
580
580
|
agent_modules = self.observer_config.agent_modules
|
581
581
|
module_type = agent_modules[self.parameter_group_name]
|
582
582
|
|
583
|
-
if module_type in ModuleTypes:
|
583
|
+
if module_type in {field.value for field in ModuleTypes}:
|
584
584
|
one_hot_index = ModuleTypes.get_index(module_type)
|
585
585
|
|
586
586
|
else:
|
@@ -12,11 +12,7 @@
|
|
12
12
|
|
13
13
|
try:
|
14
14
|
# Re-export all classes from libipcode to maintain backward compatibility
|
15
|
-
from libipcode.pydantic_models.configs.outer_model_config import
|
16
|
-
OuterModelConfig,
|
17
|
-
SharedActorCriticConfig,
|
18
|
-
SoleAgentConfig,
|
19
|
-
)
|
15
|
+
from libipcode.pydantic_models.configs.outer_model_config import OuterModelConfig, SharedActorCriticConfig
|
20
16
|
except ImportError:
|
21
17
|
# If libipcode is not available, provide a fallback or raise a more helpful error
|
22
18
|
raise ImportError(
|
@@ -28,5 +24,4 @@ except ImportError:
|
|
28
24
|
__all__ = [
|
29
25
|
"OuterModelConfig",
|
30
26
|
"SharedActorCriticConfig",
|
31
|
-
"SoleAgentConfig",
|
32
27
|
]
|
@@ -14,6 +14,7 @@ from types import ModuleType
|
|
14
14
|
# ======================================================================================================================
|
15
15
|
|
16
16
|
WANDB = "wandb"
|
17
|
+
LIGHTNING = "lightning"
|
17
18
|
|
18
19
|
# ======================================================================================================================
|
19
20
|
#
|
@@ -41,3 +42,11 @@ def try_import_wandb() -> ModuleType | None:
|
|
41
42
|
"""
|
42
43
|
|
43
44
|
return try_to_import_module(module_name=WANDB)
|
45
|
+
|
46
|
+
|
47
|
+
def try_import_lightning() -> ModuleType | None:
|
48
|
+
"""
|
49
|
+
:return: None or the imported lightning module.
|
50
|
+
"""
|
51
|
+
|
52
|
+
return try_to_import_module(module_name=LIGHTNING)
|
@@ -9,8 +9,8 @@ libinephany/observations/statistic_manager.py,sha256=LLg1zSxnJr2oQQepYla3qoUuRy1
|
|
9
9
|
libinephany/observations/statistic_trackers.py,sha256=flkXquMHvY6YjnQAvRElsV5OUm7Ek_PhA1_fvtX-0oQ,30124
|
10
10
|
libinephany/observations/observers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
11
11
|
libinephany/observations/observers/base_observers.py,sha256=RkG5SW0b6Ooy0_oscRHxyB_YFNP7k8fxu37jBZElxIM,15418
|
12
|
-
libinephany/observations/observers/global_observers.py,sha256
|
13
|
-
libinephany/observations/observers/local_observers.py,sha256=
|
12
|
+
libinephany/observations/observers/global_observers.py,sha256=-BJJaYjQSO82qskIlY_iijd3Lk1Ei1d3Hg1fzmYUPSM,38659
|
13
|
+
libinephany/observations/observers/local_observers.py,sha256=F6IId8STfQix7n9diap3YzqyAX_eR25KCcyxykkwJgM,37003
|
14
14
|
libinephany/observations/observers/observer_containers.py,sha256=g73ScbRRVTNbGEBb-Nyk8AQwoDhKZaqTd6OYP8FIcOs,8771
|
15
15
|
libinephany/observations/post_processors/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
16
16
|
libinephany/observations/post_processors/postprocessors.py,sha256=43_e5UaDPr2KbAvqc_w3wLqnlm7bgRjqgCtyQ95-8cM,5913
|
@@ -18,7 +18,7 @@ libinephany/pydantic_models/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMp
|
|
18
18
|
libinephany/pydantic_models/configs/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
19
19
|
libinephany/pydantic_models/configs/hyperparameter_configs.py,sha256=48pooGTxfg7Ol_mA770h1-x79Qgel-jxvlj5BRjcf1Q,13537
|
20
20
|
libinephany/pydantic_models/configs/observer_config.py,sha256=v_ChzaVXC_rlZ7eDZPuCae1DdG7-PS3mPwC-OaWpGQo,1355
|
21
|
-
libinephany/pydantic_models/configs/outer_model_config.py,sha256=
|
21
|
+
libinephany/pydantic_models/configs/outer_model_config.py,sha256=GQ0QBSC2Xht8x8X_TEMfYM2GF_x1kErLuFrA_H6Jhs0,1209
|
22
22
|
libinephany/pydantic_models/schemas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
23
23
|
libinephany/pydantic_models/schemas/agent_info.py,sha256=me5gDxvZjP9TNK588mpUvxiiJrPDqy3Z7ZHRzryAYTs,2628
|
24
24
|
libinephany/pydantic_models/schemas/inner_task_profile.py,sha256=DBLdXeG_igZKp9t1A9bDiWPtaQ2r0rxKTGnpDpBjGlY,10344
|
@@ -38,7 +38,7 @@ libinephany/utils/dropout_utils.py,sha256=X43yCW7Dh1cC5sNnivgS5j1fn871K_RCvxCBTT
|
|
38
38
|
libinephany/utils/enums.py,sha256=YH10mUhW4kjYS0cp4XUASok9vfPl0jv9ZhS3HpZD0Zg,2339
|
39
39
|
libinephany/utils/error_severities.py,sha256=B9oidqOVaYOe0W6P6GwjpmuDsrkyTX30v1xdiUStCFk,1427
|
40
40
|
libinephany/utils/exceptions.py,sha256=kgwLpHOgy3kciUz_I18xnYsWRtzdonfadUtwG2uDYk8,1823
|
41
|
-
libinephany/utils/import_utils.py,sha256=
|
41
|
+
libinephany/utils/import_utils.py,sha256=WzC6V6UIa0nCiU2MekROwG82fWBh9RuVzichtby5EvM,1495
|
42
42
|
libinephany/utils/optim_utils.py,sha256=-PLqsyuq4ZH3spBy_olNB3yuLwvhnLrCF0384elCmXc,8777
|
43
43
|
libinephany/utils/random_seeds.py,sha256=eF-ErrMShu8mp9V_gXrB_iUxR-Lb-OtHypEEUQAGn2Y,1565
|
44
44
|
libinephany/utils/samplers.py,sha256=RxNib-BpFSsx0qRoWlkfRvUGJNhM-k2uhwXCYNYnThs,11546
|
@@ -50,8 +50,8 @@ libinephany/utils/typing.py,sha256=rGbaPO3MaUndsWiC_wHzReD_TOLYqb43i01pKN-j7Xs,6
|
|
50
50
|
libinephany/web_apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
51
51
|
libinephany/web_apps/error_logger.py,sha256=gAQIaqerqP4ornXZwFF1cghjnd2mMZEt3aVrTuUCr34,16653
|
52
52
|
libinephany/web_apps/web_app_utils.py,sha256=qiq_lasPipgN1RgRudPJc342kYci8O_4RqppxmIX8NY,4095
|
53
|
-
libinephany-0.13.
|
54
|
-
libinephany-0.13.
|
55
|
-
libinephany-0.13.
|
56
|
-
libinephany-0.13.
|
57
|
-
libinephany-0.13.
|
53
|
+
libinephany-0.13.7.dist-info/licenses/LICENSE,sha256=pogfDoMBP07ehIOvWymuWIar8pg2YLUhqOHsJQU3wdc,9250
|
54
|
+
libinephany-0.13.7.dist-info/METADATA,sha256=JwaixywxnDQ5eFphN6QdK0-vryqsApvf_0YMHOv15zU,8354
|
55
|
+
libinephany-0.13.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
56
|
+
libinephany-0.13.7.dist-info/top_level.txt,sha256=bYAOXQdJgIoLkO2Ui0kxe7pSYegS_e38u0dMscd7COQ,12
|
57
|
+
libinephany-0.13.7.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|