Closed yihuicai closed 11 months ago
@yihuicai Would you mind adding a test for report.py? I know the code in report.py is really crappy, so it would be nice to have a test for it. Thank you for fixing the compatibility issue BTW! Really appreciate it.
Sure, just added a test for risk index report.
Seems the workflow didn't pass the test I wrote but did pass locally for me. I changed the accuracy of float number results. Let's see if it works.
chunk_BG
should be 20 to calculateri_per_hour
, since the gap between two records is 3 mins.chunk_BG
may not be full. This will affect the accuracy of theri_mean
.np.mean()
is no longer compatible (see #61 ) Use similar caculation inrisk.py