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

Commit 16c9e8d

Browse files
committed
Merge branch 'master' of github.com:google/skflow
2 parents d7a98a5 + 8312f3e commit 16c9e8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/iris_with_pipeline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# DNN classifier
3030
DNNclassifier = skflow.TensorFlowDNNClassifier(hidden_units=[10, 20, 10], n_classes=3, steps=200)
3131

32-
pipeline = Pipeline([('scaler', StandardScaler()), ('DNNclassifier', DNNclassifier)])
32+
pipeline = Pipeline([('scaler', scaler, ('DNNclassifier', DNNclassifier)])
3333

3434
pipeline.fit(X_train, y_train)
3535

skflow/monitors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def update(self, global_step, step_number, training_loss,
7474
self.loss_expression_tensor = loss_expression_tensor
7575
self._set_last_loss_seen()
7676
if self.last_loss_seen < self.min_loss:
77-
self.min_loss = training_loss
77+
self.min_loss = self.last_loss_seen
7878
self.min_loss_i = self.steps
7979
self._set_epoch(feed_params_fn)
8080
self.report()

0 commit comments

Comments
 (0)