Skip to content
This repository was archived by the owner on Aug 25, 2024. It is now read-only.

Commit d7c3827

Browse files
author
John Andersen
committed
plugin: model: tensorflow Change hidden_units
Signed-off-by: John Andersen <[email protected]>
1 parent 5eefbbf commit d7c3827

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

model/tensorflow/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ DFFML models backed by Tensorflow.
88

99
![Demo](https://github.com/intel/dffml/raw/master/docs/images/iris_demo.gif)
1010

11+
> This demo was taken before the below steps were updated, the actual accuracy
12+
> may vary as this video shows accuracy being assessed against the training
13+
> data. You should try it for yourself and see!
14+
1115
## Install
1216

1317
```console
@@ -38,7 +42,7 @@ dffml train \
3842
-log debug
3943
dffml accuracy \
4044
-model dnn \
41-
-sources csv=iris_training.csv \
45+
-sources csv=iris_test.csv \
4246
-classifications 0 1 2 \
4347
-features \
4448
def:SepalLength:float:1 \

model/tensorflow/dffml_model_tensorflow/model/dnn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ async def model(self, features: Features, classifications: List[Any]):
189189
len(classifications), classifications)
190190
self._model = self._tf.estimator.DNNClassifier(
191191
feature_columns=list((await self.features(features)).values()),
192-
hidden_units=[10, 20, 10],
192+
hidden_units=[12, 40, 15],
193193
n_classes=len(classifications),
194194
model_dir=self.model_dir_path(features))
195195
return self._model

0 commit comments

Comments
 (0)