BaseLoss.py 404 Bytes
Newer Older
Tiago de Freitas Pereira's avatar
Scratch  
Tiago de Freitas Pereira committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/usr/bin/env python
# vim: set fileencoding=utf-8 :
# @author: Tiago de Freitas Pereira <tiago.pereira@idiap.ch>
# @date: Tue 09 Aug 2016 16:38 CEST

import logging
logger = logging.getLogger("bob.learn.tensorflow")


class BaseLoss(object):
    """
    Base loss function.

    One exam
    """

    def __init__(self, loss):
        self.loss = loss

    def __call__(self):
        return self.loss