8000 reduce randomness plot rbf parameters by pooja-subramaniam · Pull Request #25622 · scikit-learn/scikit-learn · GitHub
[go: up one dir, main page]

Skip to content

reduce randomness plot rbf parameters #25622

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

Conversation

pooja-subramaniam
Copy link
Contributor

Reference Issues/PRs

#17568

What does this implement/fix? Explain your changes.

Added random state to the classifier SVC for fixing randomness.

Any other comments?

pair-programmer (@tabeak)

@@ -160,7 +160,7 @@ def __call__(self, value, clip=None):
classifiers = []
for C in C_2d_range:
for gamma in gamma_2d_range:
clf = SVC(C=C, gamma=gamma)
clf = SVC(C=C, gamma=gamma, random_state=42)
Copy link
Member

Choose a reason for hiding this comment

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

It seems that the random state of an SVC is ignored when probability is False, which is the default.

@jeremiedbb
Copy link
Member

Thanks for the PR @pooja-subramaniam , but since there's no randomness with the current probability=False (default), I don't think there's anything to change here. It's already deterministic. With that in mind I'm closing it.

@jeremiedbb jeremiedbb closed this Feb 24, 2023
@pooja-subramaniam pooja-subramaniam deleted the 17568_reduce_randomness_plot_rbf_parameters branch March 15, 2023 19:42
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
0