File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
causal_testing/json_front Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change @@ -78,12 +78,6 @@ def setup(self, scenario: Scenario):
78
78
def _create_abstract_test_case (self , test , mutates , effects ):
79
79
assert len (test ["mutations" ]) == 1
80
80
treatment_var = next (self .scenario .variables [v ] for v in test ["mutations" ])
81
- if not treatment_var .distribution :
82
- fitter = Fitter (self .data [treatment_var .name ], distributions = get_common_distributions ())
83
- fitter .fit ()
84
- (dist , params ) = list (fitter .get_best (method = "sumsquare_error" ).items ())[0 ]
85
- treatment_var .distribution = getattr (scipy .stats , dist )(** params )
86
- self ._append_to_file (treatment_var .name + f" { dist } ({ params } )" , logging .INFO )
87
81
88
82
if not treatment_var .distribution :
89
83
fitter = Fitter (self .data [treatment_var .name ], distributions = get_common_distributions ())
You can’t perform that action at this time.
0 commit comments