This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author zkneupper
Recipients matthewharrison, pablogsal, rhettinger, steven.daprano, tebeka, zkneupper
Date 2021-05-19.02:25:06
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1621391106.71.0.891431588584.issue44151@roundup.psfhosted.org>
In-reply-to
Content
> Any objections to linear_regression(x, y) -> (slope, intercept)?


I think `linear_regression(x, y)` would be intuitive for a wide range of users.

Just to clarify, is the proposal to return a regular tuple instead of named tuple?

Would we do this:

    return (slope, intercept)

and not do this:

    return LinearRegression(intercept=intercept, slope=slope)
 
and not do this:

    return Line(intercept=intercept, slope=slope)
 
?
History
Date User Action Args
2021-05-19 02:25:06zkneuppersetrecipients: + zkneupper, rhettinger, tebeka, steven.daprano, pablogsal, matthewharrison
2021-05-19 02:25:06zkneuppersetmessageid: <1621391106.71.0.891431588584.issue44151@roundup.psfhosted.org>
2021-05-19 02:25:06zkneupperlinkissue44151 messages
2021-05-19 02:25:06zkneuppercreate