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

[Feature] Refactor code with R6 classes #13

Open
lhjohn opened this issue Nov 1, 2021 · 0 comments
Open

[Feature] Refactor code with R6 classes #13

lhjohn opened this issue Nov 1, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@lhjohn
Copy link
Collaborator

lhjohn commented Nov 1, 2021

I am exploring the possibility to refactor the code base of this project using R6 classes. I believe there are some components that could become R6 classes:

  • Study Class holds the general study information and handles study execution.
  • Data Class handles creating cohorts, loading and saving data and population objects.
  • Model Class holds the model information with some methods for prediction and model loading and saving.
  • Evaluation Class provides methods to evaluates various metrics using a model results object.
  • Sharing Class provides methods to share study results.

An initial overview of proposed classes:
13-r6-class-refactor

@lhjohn lhjohn added the enhancement New feature or request label Nov 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant