From a8a5c666e9fc7411a3e80956110290985d9d1d40 Mon Sep 17 00:00:00 2001 From: dmt <> Date: Mon, 28 Oct 2019 21:24:34 +0100 Subject: [PATCH] Extend DeconstructionSettings with further params. --- cml/shared/settings.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/cml/shared/settings.py b/cml/shared/settings.py index 7d229db..ea5a363 100644 --- a/cml/shared/settings.py +++ b/cml/shared/settings.py @@ -112,10 +112,12 @@ class ReconstructionSettings: class DeconstructionSettings: deconst_strategy: str = DeconstStrategy() deconst_mode: str = DeconstMode() - deconst_max_distance_T: int = DeconstMaxDistanceT() + deconst_max_distance_t: int = DeconstMaxDistanceT() deconst_full_tolerance: float = DeconstFullTolerance() force_time_expansion: bool = ForceTimeExpansion() allow_weak_reliability: bool = AllowWeakReliability() + learn_block_minimum: int = LearnblockMinimum + min_reliability: float = MinReliability() def specific_settings_factory(settings_type: str): @@ -159,7 +161,9 @@ def specific_settings_factory(settings_type: str): Settings.DECONST_MAX_DISTANCE_T, Settings.DECONST_FULL_TOLERANCE, Settings.FORCE_TIME_EXPANSION, - Settings.ALLOW_WEAK_RELIABILITY)]) + Settings.ALLOW_WEAK_RELIABILITY, + Settings.LEARN_BLOCK_MINIMUM, + Settings.MIN_RELIABILITY)]) } return next(factory[settings_type]) -- GitLab