summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-04-01 10:09:17 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-04-01 10:09:17 +0200
commit16b058bb7e136f8bf478538f057fad6f7b0217d3 (patch)
tree8538a5c1e532e499b999ec160e252eb802f3f434 /lib
parent8f29c2a25fa77491753bfbb48c6d13034acabdff (diff)
remove unused function AnalyticModel._fit
Diffstat (limited to 'lib')
-rwxr-xr-xlib/dfatool.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/lib/dfatool.py b/lib/dfatool.py
index f54d1a0..1712d75 100755
--- a/lib/dfatool.py
+++ b/lib/dfatool.py
@@ -952,28 +952,6 @@ class AnalyticModel:
self.stats = ParamStats(self.by_name, self.by_param, self.parameters, self._num_args, verbose = verbose)
- def _fit(self):
- paramfit = ParallelParamFit(self.by_param)
-
- for name in self.by_name.keys():
- for attribute in self.by_name[fname]['attributes']:
- for param_index, param in enumerate(self.parameters):
- ratio = self.stats.param_dependence_ratio(fname, attribute, param)
- if self.stats.depends_on_param(fname, attribute, param):
- paramfit.enqueue(fname, attribute, param_index, param, False)
-
- paramfit.fit()
-
- for name in self.by_name.keys():
- for attribute in self.by_name[fname]['attributes']:
- fit_result = {}
- for result in paramfit.results:
- if result['key'][0] == name and result['key'][1] == attribute and result['result']['best'] != None:
- fit_result[result['key'][2]] = result['result']
- if len(fit_result.keys()):
- x = analytic.function_powerset(fit_result, parameters)
- x.fit(by_param, fname, attribute)
-
def _get_model_from_dict(self, model_dict, model_function):
model = {}
for name, elem in model_dict.items():