Closed VargBurz closed 4 years ago
This PR updates analytic_model_tester.py tool: get info for learning and detection from tasks, same as analytics gets from server.
analytic_model_tester.py
We want to get info after all analytics process, not only after model process
AnalyticUnitManager
Detector
ModelData
get_task
get_formated_segments
get_positive_segments
get_negative_segments
asyncio
main()
@VargBurz let's close it in two days or remove this PR @rozetko please check
close and move this PR to hastic-analytics
This PR updates
analytic_model_tester.py
tool: get info for learning and detection from tasks, same as analytics gets from server.Motivation:
We want to get info after all analytics process, not only after model process
Changes:
AnalyticUnitManager
instance instead ofDetector
ModelData
class:get_task
method: create task for learning or detectget_formated_segments
,get_positive_segments
,get_negative_segments
methods for simplify segments controlasyncio
:main()
is async function nowmain()
: send learning and detect tasks toAnalyticUnitManager
and await its results, get metrics from detection result.