Skip to content
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

New method getSegmenter() #119

Merged
merged 1 commit into from
Jul 22, 2024
Merged

New method getSegmenter() #119

merged 1 commit into from
Jul 22, 2024

Conversation

acardona
Copy link
Contributor

So that one can, on a script, getSegmenter().getClassifier(), to then e.g., call setNumThreads(1) on the underlying FastRandomForest instance. At the moment there's no way to set the number of threads used to 1 except via Prefs.setThreads(1), which is fragile.

So that one can, on a script, getSegmenter().getClassifier(), to then e.g., call setNumThreads(1) on the underlying FastRandomForest instance.
At the moment there's no way to set the number of threads used to 1 except via Prefs.setThreads(1), which is fragile.
@maarzt
Copy link
Collaborator

maarzt commented Jul 5, 2024

I would like to understand what the use case for this looks like. To my understanding the effect of calling setNumThreads(1) will only effect the random forest training. Is that your intention?

Could you please explain a bit why you want to run this single-threaded?

@acardona
Copy link
Contributor Author

acardona commented Jul 5, 2024 via email

@maarzt maarzt merged commit 1e258a6 into juglab:master Jul 22, 2024
1 check passed
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