Created
April 18, 2018 04:41
-
-
Save devforfu/aa6910d874aaae43d83b53e826d45b2d to your computer and use it in GitHub Desktop.
DNNClassifier Init
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class DNNClassifier: | |
def __init__(self, hidden_layers, n_classes, activation=tf.nn.elu): | |
self.hidden_layers = hidden_layers | |
self.n_classes = n_classes | |
self.activation = activation | |
self._graph = None | |
self._session = None | |
self._saver = None | |
self.stop_training = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment