Repository navigation
DOC clarify RANSACRegressor random_state behavior - #35020
Conversation
|
Thank you for opening your first pull request to scikit-learn! 🎉 To help get your contribution reviewed, please make sure that:
|
AnneBeyer
left a comment
There was a problem hiding this comment.
Thank you @AryaTopale. I have one suggestion to make it clearer that the actual instance is shared (instead of passing the input to random_state, which can also be int or None), otherwise LGTM.
|
AI-assisted source check: in |
|
@AryaTopale, could you please apply my suggestion above? Then I think this is ready to be merged. |
|
Hi, I will apply the change.
Get Outlook for Android<https://aka.ms/AAb9ysg>
…________________________________
From: Anne Beyer ***@***.***>
Sent: Thursday, 08 October 2026 17:31:44
To: scikit-learn/scikit-learn ***@***.***>
Cc: Arya Yogesh Topale ***@***.***>; Mention ***@***.***>
Subject: Re: [scikit-learn/scikit-learn] DOC clarify RANSACRegressor random_state behavior (PR #35020)
[https://avatars.githubusercontent.com/u/12881170?s=20&v=4]AnneBeyer left a comment (scikit-learn/scikit-learn#35020)<#35020 (comment)>
@AryaTopale<https://github.com/AryaTopale>, could you please apply my suggestion<#35020 (comment)> above? Then I think this is ready to be merged.
—
Reply to this email directly, view it on GitHub<#35020?email_source=notifications&email_token=A35ESTYHNTCGR7W7YX6HSND5S562RA5CNFSNUABFM5UWIORPF5TWS5BNNB2WEL2JONZXKZKDN5WW2ZLOOQXTMMBVHEZTSOJSGI32M4TFMFZW63VHNVSW45DJN5XKKZLWMVXHJLDGN5XXIZLSL5RWY2LDNM#issuecomment-6059399227>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/A35EST5TMENHPVW6YM5HBST5S562RAVCNFSNUABCKJSXA33TNF2G64TZHM4DIMZSGIZDWSLTON2WKOZVGU2DINJTGAZDGNVBOYBA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
Co-authored-by: Anne Beyer <[email protected]>
|
The CI hiccup looks unrelated, can you merge |
lesteve
left a comment
There was a problem hiding this comment.
Approved based on trusted people approvals 🙏
|
Personally I find the new wording slightly too verbose, but I don't think this really matters, and this has been waiting for a while already, so I enabled auto-merge. |
Reference Issues/PRs
Fixes #34992
What does this implement/fix? Explain your changes.
Clarifies the documentation of
RANSACRegressor.random_stateto reflect its behavior in the implementation.The same random state is used for selecting data subsets and, when supported, is passed to the underlying estimator. Consequently, random numbers consumed by the estimator can affect the data subsets selected in subsequent RANSAC iterations.
Introduce yourself
Hi! I'm Arya, a B.Tech Graduate ECE student from IIIT Hyderabad and a new contributor to scikit-learn.
I use scikit-learn for machine learning projects and wanted to contribute by improving the documentation around existing behavior.
AI usage disclosure
I used AI assistance for:
Any other comments?
The RANSAC test suite passes locally (
27 passed).