Completed
Push — master ( eef17b...3c911b )
by Raphael
01:37
created

TrainingController.bind()   A

Complexity

Conditions 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
#!/usr/bin/env python
2
# -*- coding: utf-8 -*-
3
4
class TrainingController(object):
5
    """
6
    Abstract class of training controllers.
7
    """
8
9
    def bind(self, trainer):
10
        """
11
        :type trainer: deepy.trainers.base.NeuralTrainer
12
        """
13
        self._trainer = trainer
14
15
    def invoke(self):
16
        """
17
        Return True to exit training.
18
        """
19
        return False