Skip to content

Export startRunning function so it can be used in autogenerated.ts #41

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 12, 2025

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.

2 participants