Closed VargBurz closed 4 years ago
this PR updates analytic_model_tester.py tool: get learning and detection info using tasks, same as analytics gets from server.
analytic_model_tester.py
We want to test the whole analytics process, not only models
AnalyticUnitManager
Detector
ModelData
get_task
get_formated_segments
get_positive_segments
get_negative_segments
asyncio
main()
async
this PR updates
analytic_model_tester.py
tool: get learning and detection info using tasks, same as analytics gets from server.Motivation:
We want to test the whole analytics process, not only models
Changes:
AnalyticUnitManager
instance instead ofDetector
ModelData
class:get_task
method: create learning or detection taskget_formated_segments
,get_positive_segments
,get_negative_segments
methods to simplify segments controlasyncio
:main()
isasync
function nowmain()
: send learning and detection tasks toAnalyticUnitManager
and await its results