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

Model object abstraction and refactoring #143

Open
4 of 8 tasks
RemyLau opened this issue Jan 20, 2023 · 0 comments
Open
4 of 8 tasks

Model object abstraction and refactoring #143

RemyLau opened this issue Jan 20, 2023 · 0 comments

Comments

@RemyLau
Copy link
Collaborator

RemyLau commented Jan 20, 2023

  • Model metadata, e.g., description, training info, params
  • Abstract methods (standardize in/out format)
    • fit(*args, **kwargs) -> None
    • predict(*args, **kwargs) -> Union[np.ndarray, torch.Tensor, other?]
    • fit_predict shortcut function combining fit and predict
    • score(*args, **kwargs) -> float (determine the type of metric via metric: Union[str, Callable], default setting saved in class attr. Abstract class per type of tasks?)
    • __repr__ (show model metadata and info)
  • Model saving and loading (checkpointing)?

TODOs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant