We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b821818 commit 00f15baCopy full SHA for 00f15ba
sqlflow_models/dnnclassifier.py
@@ -27,15 +27,15 @@ def call(self, inputs):
27
28
def default_optimizer(self):
29
"""Default optimizer name. Used in model.compile."""
30
- return 'adam'
+ return tf.keras.optimizers.Adagrad(lr=0.1)
31
32
def default_loss(self):
33
"""Default loss function. Used in model.compile."""
34
- return 'categorical_crossentropy'
+ return 'sparse_categorical_crossentropy'
35
36
def default_training_epochs(self):
37
"""Default training epochs. Used in model.fit."""
38
- return 5
+ return 2
39
40
def prepare_prediction_column(self, prediction):
41
"""Return the class label of highest probability."""
0 commit comments