|
|
@ -458,6 +458,7 @@ export async function updateThreshold( |
|
|
|
export async function runLearningWithDetection(id: AnalyticUnit.AnalyticUnitId) { |
|
|
|
export async function runLearningWithDetection(id: AnalyticUnit.AnalyticUnitId) { |
|
|
|
// TODO: move setting status somehow "inside" learning
|
|
|
|
// TODO: move setting status somehow "inside" learning
|
|
|
|
await AnalyticUnit.setStatus(id, AnalyticUnit.AnalyticUnitStatus.PENDING); |
|
|
|
await AnalyticUnit.setStatus(id, AnalyticUnit.AnalyticUnitStatus.PENDING); |
|
|
|
|
|
|
|
await Detection.clearSpans(id); |
|
|
|
runLearning(id) |
|
|
|
runLearning(id) |
|
|
|
.then(() => runDetect(id)) |
|
|
|
.then(() => runDetect(id)) |
|
|
|
.catch(err => console.error(err)); |
|
|
|
.catch(err => console.error(err)); |
|
|
|