change method to constructur
This commit is contained in:
parent
2be5cdd2ce
commit
a19fb1e39e
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@ class Net:
|
||||||
regressor = None
|
regressor = None
|
||||||
|
|
||||||
|
|
||||||
def net(self, feature_cols):
|
def __init__(self, feature_cols):
|
||||||
self.regressor = tf.estimator.DNNRegressor(feature_columns=feature_cols,
|
self.regressor = tf.estimator.DNNRegressor(feature_columns=feature_cols,
|
||||||
hidden_units=[50, 50],
|
hidden_units=[50, 50],
|
||||||
model_dir='tf_pywatts_model')
|
model_dir='tf_pywatts_model')
|
||||||
|
|
Loading…
Reference in a new issue