diff --git a/smartreport_app/kb_interface.py b/smartreport_app/kb_interface.py index 54a470f..6e0178d 100644 --- a/smartreport_app/kb_interface.py +++ b/smartreport_app/kb_interface.py @@ -95,8 +95,12 @@ def kb_interface(params): for kb_resp in kb_resps: - kb_resp['value'].append(random.random()) # TODO actual prediction - kb_resp['value'].append(random.random()) + sign = random.choice([-1, 1]) + percentage = random.uniform(0.3, 0.4) + kb_resp['value'].append(kb_resp['value'][-1] + (sign * percentage * kb_resp['value'][-1] ))# TODO actual prediction + sign = sign * -1 + percentage = random.uniform(0.3, 0.4) + kb_resp['value'].append(kb_resp['value'][-1] + (sign * percentage * kb_resp['value'][-1] ))