Skip to content

Commit

Permalink
improved prediction
Browse files Browse the repository at this point in the history
  • Loading branch information
matteotolloso committed Jan 14, 2024
1 parent 15a551b commit 5d78b5b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions smartreport_app/kb_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -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] ))



Expand Down

0 comments on commit 5d78b5b

Please sign in to comment.