aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Martin Wicke <wicke@google.com>2016-03-23 09:29:20 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-03-23 12:11:18 -0700
commit334702e19a920ac21fbbbf5b14f7619cb860c427 (patch)
tree0628fb936d0f1195470a2068305ffffb43589815
parent3ad7d3e289aa8e7af4ac98f7f076a8637dc7ecf8 (diff)
Reformat __future__ imports.
Change: 117943734
-rw-r--r--tensorflow/contrib/skflow/__init__.py1
-rw-r--r--tensorflow/contrib/skflow/python/__init__.py3
-rw-r--r--tensorflow/contrib/skflow/python/skflow/__init__.py7
-rw-r--r--tensorflow/contrib/skflow/python/skflow/addons/__init__.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/addons/config_addon.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/estimators/__init__.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/estimators/base.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/estimators/dnn.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/estimators/linear.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/estimators/rnn.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/io/__init__.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/io/dask_io.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/io/data_feeder.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/io/pandas_io.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/models.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/monitors.py4
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/__init__.py4
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/array_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/batch_norm_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/conv_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/dnn_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/dropout_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/embeddings_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/losses_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/seq2seq_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/tests/__init__.py4
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/tests/test_dropout_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/tests/test_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/ops/tests/test_seq2seq_ops.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/__init__.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/categorical.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/categorical_vocabulary.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/tests/__init__.py4
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical_vocabulary.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_text.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/preprocessing/text.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/__init__.py4
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_base.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_custom_decay.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_data_feeder.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_early_stopping.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_estimators.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_grid_search.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_io.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_multioutput.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_nonlinear.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_regression.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/tests/test_saver.py5
-rw-r--r--tensorflow/contrib/skflow/python/skflow/trainer.py4
-rw-r--r--tensorflow/examples/skflow/boston.py4
-rw-r--r--tensorflow/examples/skflow/digits.py5
-rw-r--r--tensorflow/examples/skflow/iris.py5
-rw-r--r--tensorflow/examples/skflow/iris_config_addon.py4
-rw-r--r--tensorflow/examples/skflow/iris_custom_decay_dnn.py5
-rw-r--r--tensorflow/examples/skflow/iris_custom_model.py5
-rw-r--r--tensorflow/examples/skflow/iris_save_restore.py5
-rw-r--r--tensorflow/examples/skflow/iris_val_based_early_stopping.py5
-rw-r--r--tensorflow/examples/skflow/iris_with_pipeline.py4
-rw-r--r--tensorflow/examples/skflow/language_model.py5
-rw-r--r--tensorflow/examples/skflow/mnist.py4
-rw-r--r--tensorflow/examples/skflow/mnist_weights.py4
-rw-r--r--tensorflow/examples/skflow/multioutput_regression.py6
-rw-r--r--tensorflow/examples/skflow/multiple_gpu.py5
-rw-r--r--tensorflow/examples/skflow/neural_translation.py5
-rw-r--r--tensorflow/examples/skflow/neural_translation_word.py5
-rw-r--r--tensorflow/examples/skflow/out_of_core_data_classification.py5
-rw-r--r--tensorflow/examples/skflow/resnet.py9
-rw-r--r--tensorflow/examples/skflow/text_classification.py5
-rw-r--r--tensorflow/examples/skflow/text_classification_builtin_rnn_model.py5
-rw-r--r--tensorflow/examples/skflow/text_classification_character_cnn.py4
-rw-r--r--tensorflow/examples/skflow/text_classification_character_rnn.py4
-rw-r--r--tensorflow/examples/skflow/text_classification_cnn.py4
-rw-r--r--tensorflow/examples/skflow/text_classification_save_restore.py5
74 files changed, 216 insertions, 141 deletions
diff --git a/tensorflow/contrib/skflow/__init__.py b/tensorflow/contrib/skflow/__init__.py
index 91aef73431..3410eca0ee 100644
--- a/tensorflow/contrib/skflow/__init__.py
+++ b/tensorflow/contrib/skflow/__init__.py
@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
-from __future__ import division, print_function, absolute_import
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
diff --git a/tensorflow/contrib/skflow/python/__init__.py b/tensorflow/contrib/skflow/python/__init__.py
index 2295fbdddc..093f79da1a 100644
--- a/tensorflow/contrib/skflow/python/__init__.py
+++ b/tensorflow/contrib/skflow/python/__init__.py
@@ -12,9 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ==============================================================================
-from __future__ import division, print_function, absolute_import
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-from skflow import *
+from skflow import *
diff --git a/tensorflow/contrib/skflow/python/skflow/__init__.py b/tensorflow/contrib/skflow/python/skflow/__init__.py
index b02ca4be6b..b7b281baca 100644
--- a/tensorflow/contrib/skflow/python/skflow/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/__init__.py
@@ -13,10 +13,11 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-## Check existance of sklearn and it's version
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
+## Check existance of sklearn and it's version
try:
import sklearn
except ImportError:
diff --git a/tensorflow/contrib/skflow/python/skflow/addons/__init__.py b/tensorflow/contrib/skflow/python/skflow/addons/__init__.py
index 5fbef6ee65..b8c42378ed 100644
--- a/tensorflow/contrib/skflow/python/skflow/addons/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/addons/__init__.py
@@ -12,7 +12,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from tensorflow.contrib.skflow.python.skflow.addons.config_addon import ConfigAddon
diff --git a/tensorflow/contrib/skflow/python/skflow/addons/config_addon.py b/tensorflow/contrib/skflow/python/skflow/addons/config_addon.py
index ae5fef553b..4ca4609b62 100644
--- a/tensorflow/contrib/skflow/python/skflow/addons/config_addon.py
+++ b/tensorflow/contrib/skflow/python/skflow/addons/config_addon.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/estimators/__init__.py b/tensorflow/contrib/skflow/python/skflow/estimators/__init__.py
index bda9327406..d072ee2ff0 100644
--- a/tensorflow/contrib/skflow/python/skflow/estimators/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/estimators/__init__.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from tensorflow.contrib.skflow.python.skflow.estimators.base import TensorFlowEstimator
from tensorflow.contrib.skflow.python.skflow.estimators.linear import TensorFlowLinearClassifier
diff --git a/tensorflow/contrib/skflow/python/skflow/estimators/base.py b/tensorflow/contrib/skflow/python/skflow/estimators/base.py
index cb25c6f14e..646d905269 100644
--- a/tensorflow/contrib/skflow/python/skflow/estimators/base.py
+++ b/tensorflow/contrib/skflow/python/skflow/estimators/base.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import datetime
import json
diff --git a/tensorflow/contrib/skflow/python/skflow/estimators/dnn.py b/tensorflow/contrib/skflow/python/skflow/estimators/dnn.py
index cf0412c304..b11f2d0e27 100644
--- a/tensorflow/contrib/skflow/python/skflow/estimators/dnn.py
+++ b/tensorflow/contrib/skflow/python/skflow/estimators/dnn.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn.base import ClassifierMixin, RegressorMixin
diff --git a/tensorflow/contrib/skflow/python/skflow/estimators/linear.py b/tensorflow/contrib/skflow/python/skflow/estimators/linear.py
index dae822a77c..223a659e5d 100644
--- a/tensorflow/contrib/skflow/python/skflow/estimators/linear.py
+++ b/tensorflow/contrib/skflow/python/skflow/estimators/linear.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn.base import ClassifierMixin, RegressorMixin
diff --git a/tensorflow/contrib/skflow/python/skflow/estimators/rnn.py b/tensorflow/contrib/skflow/python/skflow/estimators/rnn.py
index 6cf81b5b93..fceca500be 100644
--- a/tensorflow/contrib/skflow/python/skflow/estimators/rnn.py
+++ b/tensorflow/contrib/skflow/python/skflow/estimators/rnn.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn.base import ClassifierMixin, RegressorMixin
diff --git a/tensorflow/contrib/skflow/python/skflow/io/__init__.py b/tensorflow/contrib/skflow/python/skflow/io/__init__.py
index 7f93552075..68a14ddb93 100644
--- a/tensorflow/contrib/skflow/python/skflow/io/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/io/__init__.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from tensorflow.contrib.skflow.python.skflow.io.pandas_io import *
from tensorflow.contrib.skflow.python.skflow.io.dask_io import *
diff --git a/tensorflow/contrib/skflow/python/skflow/io/dask_io.py b/tensorflow/contrib/skflow/python/skflow/io/dask_io.py
index 10c040fc09..33d6fefec5 100644
--- a/tensorflow/contrib/skflow/python/skflow/io/dask_io.py
+++ b/tensorflow/contrib/skflow/python/skflow/io/dask_io.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
diff --git a/tensorflow/contrib/skflow/python/skflow/io/data_feeder.py b/tensorflow/contrib/skflow/python/skflow/io/data_feeder.py
index cf52afd4c7..1f7257271f 100644
--- a/tensorflow/contrib/skflow/python/skflow/io/data_feeder.py
+++ b/tensorflow/contrib/skflow/python/skflow/io/data_feeder.py
@@ -13,8 +13,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import itertools
import math
diff --git a/tensorflow/contrib/skflow/python/skflow/io/pandas_io.py b/tensorflow/contrib/skflow/python/skflow/io/pandas_io.py
index a702a13efb..b5f90c21f1 100644
--- a/tensorflow/contrib/skflow/python/skflow/io/pandas_io.py
+++ b/tensorflow/contrib/skflow/python/skflow/io/pandas_io.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
try:
import pandas as pd
diff --git a/tensorflow/contrib/skflow/python/skflow/models.py b/tensorflow/contrib/skflow/python/skflow/models.py
index 525a0dbc82..1dc482d6d3 100644
--- a/tensorflow/contrib/skflow/python/skflow/models.py
+++ b/tensorflow/contrib/skflow/python/skflow/models.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/monitors.py b/tensorflow/contrib/skflow/python/skflow/monitors.py
index 2b8adb9bdc..9802944fd8 100644
--- a/tensorflow/contrib/skflow/python/skflow/monitors.py
+++ b/tensorflow/contrib/skflow/python/skflow/monitors.py
@@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import sys
import numpy as np
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/__init__.py b/tensorflow/contrib/skflow/python/skflow/ops/__init__.py
index 5a68995462..090cabf3dc 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/__init__.py
@@ -12,7 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from tensorflow.contrib.skflow.python.skflow.ops.array_ops import *
from tensorflow.contrib.skflow.python.skflow.ops.conv_ops import *
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/array_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/array_ops.py
index a342387bd9..4c16afb589 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/array_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/array_ops.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/batch_norm_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/batch_norm_ops.py
index e4cf5d8e0b..3379b59886 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/batch_norm_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/batch_norm_ops.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/conv_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/conv_ops.py
index aa741526ba..99f1068418 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/conv_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/conv_ops.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
from .batch_norm_ops import batch_normalize
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/dnn_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/dnn_ops.py
index aebadf2ecd..e5b6ea767d 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/dnn_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/dnn_ops.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/dropout_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/dropout_ops.py
index 35f295010e..d4d1227d02 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/dropout_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/dropout_ops.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/embeddings_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/embeddings_ops.py
index fa4c632606..a344b8550d 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/embeddings_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/embeddings_ops.py
@@ -16,8 +16,9 @@ For example, in case of words.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/losses_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/losses_ops.py
index 64c2d7b49c..3b4a5ade4d 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/losses_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/losses_ops.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/seq2seq_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/seq2seq_ops.py
index e337a3a3be..482b91c270 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/seq2seq_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/seq2seq_ops.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/tests/__init__.py b/tensorflow/contrib/skflow/python/skflow/ops/tests/__init__.py
index d5daa96572..3882a359a6 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/tests/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/tests/__init__.py
@@ -11,4 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/tests/test_dropout_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/tests/test_dropout_ops.py
index 5516951701..1fe08626f0 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/tests/test_dropout_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/tests/test_dropout_ops.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/tests/test_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/tests/test_ops.py
index 17878905e5..b0f0ea10ff 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/tests/test_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/tests/test_ops.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/ops/tests/test_seq2seq_ops.py b/tensorflow/contrib/skflow/python/skflow/ops/tests/test_seq2seq_ops.py
index 34797cebca..9be1ad8168 100644
--- a/tensorflow/contrib/skflow/python/skflow/ops/tests/test_seq2seq_ops.py
+++ b/tensorflow/contrib/skflow/python/skflow/ops/tests/test_seq2seq_ops.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/__init__.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/__init__.py
index ea4d97ea6f..279331c8be 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/__init__.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from tensorflow.contrib.skflow.python.skflow.preprocessing.text import *
from tensorflow.contrib.skflow.python.skflow.preprocessing.categorical import *
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical.py
index b32683e18b..9adff65c48 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import math
import numpy as np
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical_vocabulary.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical_vocabulary.py
index cf0503bda9..9db66dbc02 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical_vocabulary.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/categorical_vocabulary.py
@@ -16,8 +16,9 @@ Can be used for categorical variables, sparse variables and words.
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import collections
import six
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/__init__.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/__init__.py
index d5daa96572..3882a359a6 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/__init__.py
@@ -11,4 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical.py
index 72fbee26ae..462d35a007 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical.py
@@ -13,8 +13,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical_vocabulary.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical_vocabulary.py
index 96c9204994..50759c8d4c 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical_vocabulary.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_categorical_vocabulary.py
@@ -13,8 +13,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_text.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_text.py
index 3dff6e1486..f8d4025c1b 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_text.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/tests/test_text.py
@@ -13,8 +13,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from __future__ import unicode_literals
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/preprocessing/text.py b/tensorflow/contrib/skflow/python/skflow/preprocessing/text.py
index 25f96ef5ba..54607929d9 100644
--- a/tensorflow/contrib/skflow/python/skflow/preprocessing/text.py
+++ b/tensorflow/contrib/skflow/python/skflow/preprocessing/text.py
@@ -12,8 +12,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import re
import six
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/__init__.py b/tensorflow/contrib/skflow/python/skflow/tests/__init__.py
index d5daa96572..3882a359a6 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/__init__.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/__init__.py
@@ -11,4 +11,6 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_base.py b/tensorflow/contrib/skflow/python/skflow/tests/test_base.py
index 88d89be0e2..aa4f566558 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_base.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_base.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import random
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_custom_decay.py b/tensorflow/contrib/skflow/python/skflow/tests/test_custom_decay.py
index bdad76d091..96cfb68bba 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_custom_decay.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_custom_decay.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_data_feeder.py b/tensorflow/contrib/skflow/python/skflow/tests/test_data_feeder.py
index 8a004ac48c..e9ba3b5510 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_data_feeder.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_data_feeder.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from struct import Struct
import numpy as np
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_early_stopping.py b/tensorflow/contrib/skflow/python/skflow/tests/test_early_stopping.py
index e6630a3464..8cbb6f1fbc 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_early_stopping.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_early_stopping.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_estimators.py b/tensorflow/contrib/skflow/python/skflow/tests/test_estimators.py
index c888186bc1..39e6d7e3b0 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_estimators.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_estimators.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import tensorflow as tf
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_grid_search.py b/tensorflow/contrib/skflow/python/skflow/tests/test_grid_search.py
index ed79627acd..5833e74009 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_grid_search.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_grid_search.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import random
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_io.py b/tensorflow/contrib/skflow/python/skflow/tests/test_io.py
index 58c5089764..b8c9cc3f94 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_io.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_io.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import random
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_multioutput.py b/tensorflow/contrib/skflow/python/skflow/tests/test_multioutput.py
index 69f61e73a1..f1e02321fd 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_multioutput.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_multioutput.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import random
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_nonlinear.py b/tensorflow/contrib/skflow/python/skflow/tests/test_nonlinear.py
index 83208e6fc7..520faeb1cb 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_nonlinear.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_nonlinear.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import random
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_regression.py b/tensorflow/contrib/skflow/python/skflow/tests/test_regression.py
index 183716c92b..cf08dc8925 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_regression.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_regression.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import random
diff --git a/tensorflow/contrib/skflow/python/skflow/tests/test_saver.py b/tensorflow/contrib/skflow/python/skflow/tests/test_saver.py
index 8f946cf3e2..ea5837f543 100644
--- a/tensorflow/contrib/skflow/python/skflow/tests/test_saver.py
+++ b/tensorflow/contrib/skflow/python/skflow/tests/test_saver.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import os
import random
diff --git a/tensorflow/contrib/skflow/python/skflow/trainer.py b/tensorflow/contrib/skflow/python/skflow/trainer.py
index d5149d8843..c71182e284 100644
--- a/tensorflow/contrib/skflow/python/skflow/trainer.py
+++ b/tensorflow/contrib/skflow/python/skflow/trainer.py
@@ -13,7 +13,9 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from six.moves import xrange # pylint: disable=redefined-builtin
diff --git a/tensorflow/examples/skflow/boston.py b/tensorflow/examples/skflow/boston.py
index 2f8ff80a74..f5c7e4e731 100644
--- a/tensorflow/examples/skflow/boston.py
+++ b/tensorflow/examples/skflow/boston.py
@@ -11,7 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, cross_validation, metrics
from sklearn import preprocessing
diff --git a/tensorflow/examples/skflow/digits.py b/tensorflow/examples/skflow/digits.py
index 167ac7cdab..da1bf75f1d 100644
--- a/tensorflow/examples/skflow/digits.py
+++ b/tensorflow/examples/skflow/digits.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, cross_validation, metrics
import tensorflow as tf
diff --git a/tensorflow/examples/skflow/iris.py b/tensorflow/examples/skflow/iris.py
index 054e6d4905..ee330e31f4 100644
--- a/tensorflow/examples/skflow/iris.py
+++ b/tensorflow/examples/skflow/iris.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, metrics, cross_validation
diff --git a/tensorflow/examples/skflow/iris_config_addon.py b/tensorflow/examples/skflow/iris_config_addon.py
index 6c053129f2..6bb11a924a 100644
--- a/tensorflow/examples/skflow/iris_config_addon.py
+++ b/tensorflow/examples/skflow/iris_config_addon.py
@@ -11,11 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-from __future__ import absolute_import
from sklearn import datasets, metrics, cross_validation
diff --git a/tensorflow/examples/skflow/iris_custom_decay_dnn.py b/tensorflow/examples/skflow/iris_custom_decay_dnn.py
index ae221255b1..9b0a60d337 100644
--- a/tensorflow/examples/skflow/iris_custom_decay_dnn.py
+++ b/tensorflow/examples/skflow/iris_custom_decay_dnn.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, metrics
from sklearn.cross_validation import train_test_split
diff --git a/tensorflow/examples/skflow/iris_custom_model.py b/tensorflow/examples/skflow/iris_custom_model.py
index 8aa02b4173..d0cbdbe1d9 100644
--- a/tensorflow/examples/skflow/iris_custom_model.py
+++ b/tensorflow/examples/skflow/iris_custom_model.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, metrics, cross_validation
from tensorflow.contrib import skflow
diff --git a/tensorflow/examples/skflow/iris_save_restore.py b/tensorflow/examples/skflow/iris_save_restore.py
index a93287ff39..f9613c96fe 100644
--- a/tensorflow/examples/skflow/iris_save_restore.py
+++ b/tensorflow/examples/skflow/iris_save_restore.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import shutil
diff --git a/tensorflow/examples/skflow/iris_val_based_early_stopping.py b/tensorflow/examples/skflow/iris_val_based_early_stopping.py
index 652ab1de06..5ee3cacd4b 100644
--- a/tensorflow/examples/skflow/iris_val_based_early_stopping.py
+++ b/tensorflow/examples/skflow/iris_val_based_early_stopping.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, metrics
from sklearn.cross_validation import train_test_split
diff --git a/tensorflow/examples/skflow/iris_with_pipeline.py b/tensorflow/examples/skflow/iris_with_pipeline.py
index c60f945c6f..08c5b2fe54 100644
--- a/tensorflow/examples/skflow/iris_with_pipeline.py
+++ b/tensorflow/examples/skflow/iris_with_pipeline.py
@@ -11,11 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-from __future__ import absolute_import
from sklearn.pipeline import Pipeline
from sklearn.datasets import load_iris
diff --git a/tensorflow/examples/skflow/language_model.py b/tensorflow/examples/skflow/language_model.py
index b681b51e64..0e3c95aa19 100644
--- a/tensorflow/examples/skflow/language_model.py
+++ b/tensorflow/examples/skflow/language_model.py
@@ -13,8 +13,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import itertools
import math
diff --git a/tensorflow/examples/skflow/mnist.py b/tensorflow/examples/skflow/mnist.py
index 7e2c935608..814c6d29a4 100644
--- a/tensorflow/examples/skflow/mnist.py
+++ b/tensorflow/examples/skflow/mnist.py
@@ -18,7 +18,9 @@ It follows description from this TensorFlow tutorial:
https://www.tensorflow.org/versions/master/tutorials/mnist/pros/index.html#deep-mnist-for-experts
"""
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import metrics
import tensorflow as tf
diff --git a/tensorflow/examples/skflow/mnist_weights.py b/tensorflow/examples/skflow/mnist_weights.py
index c478018a01..8d9056b2a0 100644
--- a/tensorflow/examples/skflow/mnist_weights.py
+++ b/tensorflow/examples/skflow/mnist_weights.py
@@ -17,7 +17,9 @@ This example demonstrates one way to access the weights of a custom skflow
model. It is otherwise identical to the standard MNIST convolutional code.
"""
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import metrics
import tensorflow as tf
diff --git a/tensorflow/examples/skflow/multioutput_regression.py b/tensorflow/examples/skflow/multioutput_regression.py
index 5b5d2b135d..a4300a5508 100644
--- a/tensorflow/examples/skflow/multioutput_regression.py
+++ b/tensorflow/examples/skflow/multioutput_regression.py
@@ -11,15 +11,15 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
"""
This example uses the same data as one here:
http://scikit-learn.org/stable/auto_examples/tree/plot_tree_regression_multioutput.html
Instead of DecisionTree a 2-layer Deep Neural Network with RELU activations is used.
"""
-from __future__ import division, print_function, absolute_import
-
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
import matplotlib.pyplot as plt
diff --git a/tensorflow/examples/skflow/multiple_gpu.py b/tensorflow/examples/skflow/multiple_gpu.py
index 279bc5615f..c1a5f52e08 100644
--- a/tensorflow/examples/skflow/multiple_gpu.py
+++ b/tensorflow/examples/skflow/multiple_gpu.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, metrics, cross_validation
import tensorflow as tf
diff --git a/tensorflow/examples/skflow/neural_translation.py b/tensorflow/examples/skflow/neural_translation.py
index 4583a8b250..d0c8c33b93 100644
--- a/tensorflow/examples/skflow/neural_translation.py
+++ b/tensorflow/examples/skflow/neural_translation.py
@@ -13,8 +13,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import itertools
import os
diff --git a/tensorflow/examples/skflow/neural_translation_word.py b/tensorflow/examples/skflow/neural_translation_word.py
index 2fa5f897bb..4b76a8b83c 100644
--- a/tensorflow/examples/skflow/neural_translation_word.py
+++ b/tensorflow/examples/skflow/neural_translation_word.py
@@ -13,8 +13,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import cPickle
import itertools
diff --git a/tensorflow/examples/skflow/out_of_core_data_classification.py b/tensorflow/examples/skflow/out_of_core_data_classification.py
index d040738eb9..1df909305a 100644
--- a/tensorflow/examples/skflow/out_of_core_data_classification.py
+++ b/tensorflow/examples/skflow/out_of_core_data_classification.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
from sklearn import datasets, metrics, cross_validation
diff --git a/tensorflow/examples/skflow/resnet.py b/tensorflow/examples/skflow/resnet.py
index 7f02124a22..c9a95a331d 100644
--- a/tensorflow/examples/skflow/resnet.py
+++ b/tensorflow/examples/skflow/resnet.py
@@ -13,14 +13,15 @@
# limitations under the License.
"""
-This example builds deep residual network for mnist data.
+This example builds deep residual network for mnist data.
Reference Paper: http://arxiv.org/pdf/1512.03385.pdf
Note that this is still a work-in-progress. Feel free to submit a PR
-to make this better.
+to make this better.
"""
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import os
from collections import namedtuple
diff --git a/tensorflow/examples/skflow/text_classification.py b/tensorflow/examples/skflow/text_classification.py
index 9b553d850d..e40af87b16 100644
--- a/tensorflow/examples/skflow/text_classification.py
+++ b/tensorflow/examples/skflow/text_classification.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
from sklearn import metrics
diff --git a/tensorflow/examples/skflow/text_classification_builtin_rnn_model.py b/tensorflow/examples/skflow/text_classification_builtin_rnn_model.py
index 239aa48d9c..c872c3d8c9 100644
--- a/tensorflow/examples/skflow/text_classification_builtin_rnn_model.py
+++ b/tensorflow/examples/skflow/text_classification_builtin_rnn_model.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
from sklearn import metrics
diff --git a/tensorflow/examples/skflow/text_classification_character_cnn.py b/tensorflow/examples/skflow/text_classification_character_cnn.py
index caa2c88aa2..32a046cafd 100644
--- a/tensorflow/examples/skflow/text_classification_character_cnn.py
+++ b/tensorflow/examples/skflow/text_classification_character_cnn.py
@@ -23,7 +23,9 @@ This model is similar to one described in this paper:
and is somewhat alternative to the Lua code from here:
https://github.com/zhangxiangxiao/Crepe
"""
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
from sklearn import metrics
diff --git a/tensorflow/examples/skflow/text_classification_character_rnn.py b/tensorflow/examples/skflow/text_classification_character_rnn.py
index 6aef12046a..ba7d3c8428 100644
--- a/tensorflow/examples/skflow/text_classification_character_rnn.py
+++ b/tensorflow/examples/skflow/text_classification_character_rnn.py
@@ -23,7 +23,9 @@ This model is similar to one described in this paper:
and is somewhat alternative to the Lua code from here:
https://github.com/zhangxiangxiao/Crepe
"""
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
from sklearn import metrics
diff --git a/tensorflow/examples/skflow/text_classification_cnn.py b/tensorflow/examples/skflow/text_classification_cnn.py
index edf74f1560..22c6be838d 100644
--- a/tensorflow/examples/skflow/text_classification_cnn.py
+++ b/tensorflow/examples/skflow/text_classification_cnn.py
@@ -11,7 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import numpy as np
from sklearn import metrics
diff --git a/tensorflow/examples/skflow/text_classification_save_restore.py b/tensorflow/examples/skflow/text_classification_save_restore.py
index acbbc0c682..5195700361 100644
--- a/tensorflow/examples/skflow/text_classification_save_restore.py
+++ b/tensorflow/examples/skflow/text_classification_save_restore.py
@@ -11,8 +11,9 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
-
-from __future__ import division, print_function, absolute_import
+from __future__ import absolute_import
+from __future__ import division
+from __future__ import print_function
import os
import numpy as np