Skip to content

Commit

Permalink
Update to monitors and tutorial (tensorflow#11920)
Browse files Browse the repository at this point in the history
* Update wide.md

Removing unnecessary slash

* Update monitors.py

Removed tf.learn.SessionRunHook in favor of tf.train.SessionRunHook.

* Update wide.md

Remove bad practice of sudo pip

* Update wide.md

Replace OS X with macOS

* Update bigquery_reader_ops.py

Fixed error in example code

* Update tensor_util.py

Spaced import statements according to PEP 8

* Update tensor_util_test.py

Spaced the import statements according to PEP 8
  • Loading branch information
alanyee authored and rmlarsen committed Aug 9, 2017
1 parent c4e8bef commit e24d60f
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
2 changes: 2 additions & 0 deletions tensorflow/contrib/framework/python/framework/tensor_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function

import numpy as np

from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import sparse_tensor
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
from __future__ import print_function

import re

import numpy as np

from tensorflow.contrib.framework.python.framework import tensor_util
from tensorflow.contrib.framework.python.ops import variables as variables_lib2
from tensorflow.python.framework import constant_op
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/contrib/learn/python/learn/monitors.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@

from tensorflow.contrib.framework import deprecated
from tensorflow.contrib.framework.python.ops import variables as contrib_variables
from tensorflow.contrib.learn.python.learn import session_run_hook
from tensorflow.contrib.learn.python.learn.summary_writer_cache import SummaryWriterCache
from tensorflow.core.framework.summary_pb2 import Summary
from tensorflow.core.util.event_pb2 import SessionLog
from tensorflow.python.estimator import estimator as core_estimator
from tensorflow.python.framework import ops
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.training import saver as saver_lib
from tensorflow.python.training import session_run_hook
from tensorflow.python.training import summary_io
from tensorflow.python.util import deprecation
from tensorflow.python.util import tf_inspect
Expand Down
6 changes: 3 additions & 3 deletions tensorflow/docs_src/tutorials/wide.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ To try the code for this tutorial:
# Ubuntu/Linux 64-bit
$ sudo apt-get install python-pip python-dev

# Mac OS X
# macOS
$ sudo easy_install pip
$ sudo easy_install --upgrade six

b. Use `pip` to install pandas:

$ sudo pip install pandas
$ pip install -U pandas

If you have trouble installing pandas, consult the
[instructions](http://pandas.pydata.org/pandas-docs/stable/install.html)
Expand Down Expand Up @@ -127,7 +127,7 @@ Here's a list of columns available in the Census Income dataset:
: : : individual. :
| income | Categorical | ">50K" or "<=50K", meaning |
: : : whether the person makes more :
: : : than \$50,000 annually. :
: : : than $50,000 annually. :

## Converting Data into Tensors

Expand Down

0 comments on commit e24d60f

Please sign in to comment.