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0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0]
INFO:tensorflow:Using default config.
INFO:tensorflow:Using config: {'save_summary_steps': 100, '_num_ps_replicas': 0, '_task_type': None, '_environment': 'local', '_is_chief': True, 'save_checkpoints_secs': 600, '_cluster_spec': <tensorflow.python.training.server_lib.ClusterSpec object at 0x10f3da310>, 'tf_config': gpu_options {
per_process_gpu_memory_fraction: 1
}
, '_task_id': 0, 'tf_random_seed': None, 'keep_checkpoint_every_n_hours': 10000, '_evaluation_master': '', 'save_checkpoints_steps': None, '_master': '', 'keep_checkpoint_max': 5}
WARNING:tensorflow:From <ipython-input-25-8d770778e503>:29 in main.: calling fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with x is deprecated and will be removed after 2016-12-01.
Instructions for updating:
Estimator is decoupled from Scikit Learn interface by moving into
separate class SKCompat. Arguments x, y and batch_size are only
available in the SKCompat class, Estimator will only accept input_fn.
Example conversion:
est = Estimator(...) -> est = SKCompat(Estimator(...))
WARNING:tensorflow:From <ipython-input-25-8d770778e503>:29 in main.: calling fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with y is deprecated and will be removed after 2016-12-01.
Instructions for updating:
Estimator is decoupled from Scikit Learn interface by moving into
separate class SKCompat. Arguments x, y and batch_size are only
available in the SKCompat class, Estimator will only accept input_fn.
Example conversion:
est = Estimator(...) -> est = SKCompat(Estimator(...))
WARNING:tensorflow:From <ipython-input-25-8d770778e503>:29 in main.: calling fit (from tensorflow.contrib.learn.python.learn.estimators.estimator) with batch_size is deprecated and will be removed after 2016-12-01.
Instructions for updating:
Estimator is decoupled from Scikit Learn interface by moving into
separate class SKCompat. Arguments x, y and batch_size are only
available in the SKCompat class, Estimator will only accept input_fn.
Example conversion:
est = Estimator(...) -> est = SKCompat(Estimator(...))
---------------------------------------------------------------------------
AttributeError Traceback (most recent call last)
<ipython-input-25-8d770778e503> in <module>()
39
40 if __name__ == "__main__":
---> 41 tf.app.run()
/usr/local/lib/python2.7/site-packages/tensorflow/python/platform/app.pyc in run(main, argv)
41
42 # Call the main function, passing through any arguments
---> 43 # to the final program.
44 _sys.exit(main(_sys.argv[:1] + flags_passthrough))
45
<ipython-input-25-8d770778e503> in main(unused_argv)
27 batch_size=100,
28 steps=20000,
---> 29 monitors=[logging_hook])
30 # Configure the accuracy metric for evaluation
31 metrics = {"accuracy":
/usr/local/lib/python2.7/site-packages/tensorflow/python/util/deprecation.pyc in new_func(*args, **kwargs)
189 names_to_ok_vals: dict from string arg_name to a list of values,
190 possibly empty, which should not elicit a warning.
--> 191 arg_spec: Output from inspect.getargspec on the called function.
192
193 Returns:
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.pyc in fit(self, x, y, input_fn, steps, batch_size, monitors, max_steps)
348
349 # Note that for Google users, this is overriden with
--> 350 # learn_runner.EstimatorConfig.
351 # TODO(wicke): Remove this once launcher takes over config functionality
352 _Config = run_config.RunConfig # pylint: disable=invalid-name
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/estimators/estimator.pyc in _get_input_fn(x, y, input_fn, feed_fn, batch_size, shuffle, epochs)
108
109 def _get_input_fn(x, y, input_fn, feed_fn, batch_size, shuffle=False, epochs=1):
--> 110 """Make inputs into input and feed functions.
111
112 Args:
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/learn_io/data_feeder.pyc in setup_train_data_feeder(x, y, n_classes, batch_size, shuffle, epochs)
116 supports iterables.
117 y: numpy, pandas or Dask array or dictionary of aforementioned. Also
--> 118 supports
119 iterables.
120 n_classes: number of classes. Must be None or same type as y. In case, `y`
/usr/local/lib/python2.7/site-packages/tensorflow/contrib/learn/python/learn/learn_io/data_feeder.pyc in __init__(self, x, y, n_classes, batch_size, shuffle, random_state, epochs)
248 if isinstance(array, (np.ndarray, list)):
249 array = np.array(array, dtype=dtype, order=None, copy=False)
--> 250 return array
251
252
AttributeError: 'list' object has no attribute 'dtype'