MCPcopy Create free account
hub / github.com/rushter/MLAlgorithms / PhaseMixin

Class PhaseMixin

mla/neuralnet/layers/basic.py:33–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class PhaseMixin(object):
34 _train = False
35
36 @property
37 def is_training(self):
38 return self._train
39
40 @is_training.setter
41 def is_training(self, is_train=True):
42 self._train = is_train
43
44 @property
45 def is_testing(self):
46 return not self._train
47
48 @is_testing.setter
49 def is_testing(self, is_test=True):
50 self._train = not is_test
51
52
53class Dense(Layer, ParamMixin):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected