Skip to content

Instantly share code, notes, and snippets.

@cosmic-cortex
Created January 27, 2020 12:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cosmic-cortex/b6da9ae5855f63933ee6d863b7a3e116 to your computer and use it in GitHub Desktop.
Save cosmic-cortex/b6da9ae5855f63933ee6d863b7a3e116 to your computer and use it in GitHub Desktop.
Abstract interface for the machine learning model
class Model:
def train(self, X, y):
pass
def predict(self, X):
pass
def save(self):
pass
def load(self):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment