Skip to content

Conversation

@microbit-robert
Copy link
Collaborator

@microbit-robert microbit-robert commented Jun 11, 2025

Add isRunning guard to getCertainty function

The intention is to call startRunning at the end of the autogenerated.ts file. This requires additional changes in ml-trainer.

See #40

Add `isRunning` guard to `getCertainty` function
Copy link
Contributor

@microbit-carlos microbit-carlos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested it locally and works great, thanks Rob!

I still think it's not ideal that ml.getCertainty() returns zero until the model is run for the first time after a couple of seconds from startup, but I think that's a separate thing that we might or might not change.

@microbit-robert microbit-robert merged commit 6d30b89 into main Jun 12, 2025
2 checks passed
@microbit-robert microbit-robert deleted the fix-get-certainty branch June 12, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants