Blame view

mmodel/__init__.py 274 Bytes
c7fa1d60   Chunk   refractoration st...
1
2
3
4
__author__ = 'chunk'

__all__ = ['ModelBase', ]

be12257b   Chunk   data-feat-model f...
5

c7fa1d60   Chunk   refractoration st...
6
7
class ModelBase(object):
    def __init__(self):
be12257b   Chunk   data-feat-model f...
8
        self.model = None
c7fa1d60   Chunk   refractoration st...
9

be12257b   Chunk   data-feat-model f...
10
    def train(self, X, Y):
c7fa1d60   Chunk   refractoration st...
11
12
        pass

be12257b   Chunk   data-feat-model f...
13
    def predict(self, feat, model=None):
c7fa1d60   Chunk   refractoration st...
14
15
        pass

be12257b   Chunk   data-feat-model f...
16
    def test(self, X, Y, model=None):
c7fa1d60   Chunk   refractoration st...
17
        pass