Skip to content
Snippets Groups Projects
Commit bd94201c authored by Florian Grosse's avatar Florian Grosse
Browse files

Fix default settings which prevent copying of setting states between master...

Fix default settings which prevent copying of setting states between master and worker processes in multithreaded mode. 
parent e3419e3d
No related branches found
No related tags found
No related merge requests found
......@@ -76,8 +76,10 @@ class GeneralSettings:
"""Influence the global framework.
"""
highest_level: int = HighestLevel()
kernel_bandwidth: float = KernelBandwidth()
# Never ever set the defaults here like shown below. This was used before and breaks copying between processes
# (especially pickling) for some unknown reason, which leads to weird bugs
highest_level: int #= HighestLevel()
kernel_bandwidth: float
def __str__(self):
return "\n".join([
......@@ -90,9 +92,9 @@ class BlockProcessingSettings:
"""Influence the block drawing.
"""
learn_block_minimum: int = LearnblockMinimum()
sigma_zeta_cutoff: float = SigmaZetaCutoff()
min_category_size: int = MinCategorySize()
learn_block_minimum: int
sigma_zeta_cutoff: float
min_category_size: int
def __str__(self):
return "\n".join([
......@@ -106,10 +108,10 @@ class ConstructionSettings:
"""Influence the construction step.
"""
max_categories: int = MaxCategories()
min_category_size: int = MinCategorySize()
max_model_targets: int = MaxModelTargets()
max_target_error: float = MaxTargetError()
max_categories: int
min_category_size: int
max_model_targets: int
max_target_error: float
def __str__(self):
return "\n".join([
......@@ -133,10 +135,10 @@ class FeatureSelectionSettings:
"""Influence the feature selection step.
"""
max_features: int = MaxFeatures()
max_filter_x: int = MaxFilterX()
max_filter_y: int = MaxFilterY()
max_model_reduction: bool = MaxModelsReduction()
max_features: int
max_filter_x: int
max_filter_y: int
max_model_reduction: bool
def __str__(self):
return "\n".join([
......@@ -153,13 +155,13 @@ class ReconstructionSettings:
"""Influence the reconstruction step.
"""
min_test_accuracy: float = MinTestAccuracy()
max_test_error_avg: float = MaxTestErrorAvg()
max_test_error_max: float = MaxTestErrorMax()
reliability_sample: float = ReliabilitySample()
min_reliability: float = MinReliability()
reduce_model_redundancy: bool = ReduceModelRedundancy()
min_build_models: int = MinBuildModels()
min_test_accuracy: float
max_test_error_avg: float
max_test_error_max: float
reliability_sample: float
min_reliability: float
reduce_model_redundancy: bool
min_build_models: int
def __str__(self):
return "\n".join([
......@@ -178,14 +180,14 @@ class DeconstructionSettings:
"""Influence the deconstruction step.
"""
deconst_strategy: str = DeconstStrategy()
deconst_mode: str = DeconstMode()
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()
deconst_strategy: str
deconst_mode: str
deconst_max_distance_t: int
deconst_full_tolerance: float
force_time_expansion: bool
allow_weak_reliability: bool
learn_block_minimum: int
min_reliability: float
def __str__(self):
return "\n".join([
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment