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

added option for quantile regression in scatter #197

Merged
merged 4 commits into from
May 24, 2023

Conversation

clemenscremer
Copy link
Collaborator

via bool fit_to_quantiles parameter

via bool fit_to_quantiles parameter
fmskill/plot.py Outdated
)

if fit_to_quantiles:
plt.plot(
Copy link
Member

Choose a reason for hiding this comment

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

Try to reduce duplication, e.g. by creating new variables that for the x,ys that will be used in the regression.

Right now, in order to understand the code, you have to compare the two branches of the condition, and try to spot the differences, it is better if it is obvious.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Good catch, thanks! I made it more concise

clemenscremer and others added 2 commits May 24, 2023 11:09
overwriting x_trend for conciseness. Might be dangerous be we don't use it anywhere else.
@clemenscremer clemenscremer merged commit b96568c into main May 24, 2023
@ecomodeller ecomodeller deleted the quantile_regression branch May 24, 2023 12:00
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