Skip to content

Commit

Permalink
Addition of base module with abstract classes models.
Browse files Browse the repository at this point in the history
  • Loading branch information
muammar committed Dec 25, 2019
1 parent 5cb63c4 commit d5f2cae
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions ml4chem/models/base.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
from abc import ABC, abstractmethod


class DeepLearningModel(ABC):
@abstractmethod
def name(cls):
pass

@abstractmethod
def __init__(self, **kwargs):
pass

@abstractmethod
def prepare_model(self, **kwargs):
pass

@abstractmethod
def forward(self, X):
pass

0 comments on commit d5f2cae

Please sign in to comment.