change method to constructur

This commit is contained in:
Paul Schaub 2018-05-29 15:35:14 +02:00
parent 2be5cdd2ce
commit a19fb1e39e
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -5,7 +5,7 @@ class Net:
regressor = None
def net(self, feature_cols):
def __init__(self, feature_cols):
self.regressor = tf.estimator.DNNRegressor(feature_columns=feature_cols,
hidden_units=[50, 50],
model_dir='tf_pywatts_model')