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 a fitter_kwargs argument to k_fold_cross_validation utility function #212

Merged
merged 7 commits into from Dec 21, 2015

Conversation

cosmicBboy
Copy link
Contributor

  • when doing k_fold_cross_validation, the function should be
    able to pass in key-word arguments to the fitter
  • for example, for the coxph model, you should be able to
    pass in the strata argument
  • updated k_fold_cross_validation docstring

Niels Bantilan added 6 commits December 4, 2015 14:55
…ction

- when doing k_fold_cross_validation, the function should be able
to pash in key-word arguments to the fitter
- for example, for the coxph model, you should be able to pass
in the strata argument
…ction

- when doing k_fold_cross_validation, the function should be able
to pash in key-word arguments to the fitter
- for example, for the coxph model, you should be able to pass
in the strata argument
- updated k_fold_cross_validation docstring
@@ -207,7 +207,6 @@ def plot_lifetimes(lifetimes, event_observed=None, birthtimes=None,
plt.scatter((birthtimes[i]) + lifetimes[i], N - 1 - i, color=c, s=30, marker=m)

plt.ylim(-0.5, N)
plt.show(block=block)
Copy link
Owner

Choose a reason for hiding this comment

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

is this a necessary change?

@CamDavidsonPilon
Copy link
Owner

Cool, just a single question, otherwise lgtm!

@cosmicBboy
Copy link
Contributor Author

Oops! It's not relevant to the revision, I'll revise

@CamDavidsonPilon
Copy link
Owner

Thanks for the contribution @cosmicBboy! Merging now

@cosmicBboy
Copy link
Contributor Author

Awesome, thanks for developing this! survival modeling in Python is a godsend :)

CamDavidsonPilon added a commit that referenced this pull request Dec 21, 2015
Added a fitter_kwargs argument to k_fold_cross_validation utility function
@CamDavidsonPilon CamDavidsonPilon merged commit e689d8d into CamDavidsonPilon:master Dec 21, 2015
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.

None yet

2 participants