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

Issue when specifying a label name for ECDF plots #7

Open
figolus opened this issue Aug 26, 2022 · 0 comments
Open

Issue when specifying a label name for ECDF plots #7

figolus opened this issue Aug 26, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@figolus
Copy link
Collaborator

figolus commented Aug 26, 2022

Should allow to customized label names when plotting ECDF:

# Import load_circuit_breaker function from relife.dataset
from relife import *
from relife.datasets import load_circuit_breaker 

# Assign time, event variables from dataset
time, event = load_circuit_breaker().astuple()[:-1]

# Get only time values for observed event
time1 = time[event==1]

# Fit ECDF estimator to time1
ecdf = ECDF().fit(time1)

# Plot ECDF estimator of F and 1-F
ecdf.plot(label='custom_label')

returns error:
TypeError: plot() got multiple values for keyword argument 'label'

@figolus figolus added the bug Something isn't working label Aug 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants