質問編集履歴

1

プログラムとエラー内容の追記

2019/10/25 08:49

投稿

Rondon7251
Rondon7251

スコア89

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,44 @@
1
1
  機械学習で次のエラーが出ます。
2
2
 
3
- could not broadcast input array from shape (2,1) into shape (2)
3
+ /Users/idaryuunosuke/.pyenv/versions/anaconda3-5.3.1/envs/py35/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.6 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.5
4
+
5
+ return f(*args, **kwds)
6
+
7
+ WARNING:tensorflow:From /Users/idaryuunosuke/.pyenv/versions/anaconda3-5.3.1/envs/py35/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/backend.py:3086: calling reduce_sum (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
8
+
9
+ Instructions for updating:
10
+
11
+ keep_dims is deprecated, use keepdims instead
12
+
13
+ WARNING:tensorflow:From /Users/idaryuunosuke/.pyenv/versions/anaconda3-5.3.1/envs/py35/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/backend.py:1557: calling reduce_mean (from tensorflow.python.ops.math_ops) with keep_dims is deprecated and will be removed in a future version.
14
+
15
+ Instructions for updating:
16
+
17
+ keep_dims is deprecated, use keepdims instead
18
+
19
+ Traceback (most recent call last):
20
+
21
+ File "deep2.py", line 33, in <module>
22
+
23
+ epochs=300)
24
+
25
+ File "/Users/idaryuunosuke/.pyenv/versions/anaconda3-5.3.1/envs/py35/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/models.py", line 920, in fit
26
+
27
+ validation_steps=validation_steps)
28
+
29
+ File "/Users/idaryuunosuke/.pyenv/versions/anaconda3-5.3.1/envs/py35/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/engine/training.py", line 1592, in fit
30
+
31
+ batch_size=batch_size)
32
+
33
+ File "/Users/idaryuunosuke/.pyenv/versions/anaconda3-5.3.1/envs/py35/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/engine/training.py", line 1431, in _standardize_user_data
34
+
35
+ exception_prefix='input')
36
+
37
+ File "/Users/idaryuunosuke/.pyenv/versions/anaconda3-5.3.1/envs/py35/lib/python3.5/site-packages/tensorflow/python/keras/_impl/keras/engine/training.py", line 132, in _standardize_input_data
38
+
39
+ arrays[i] = array
40
+
41
+ ValueError: could not broadcast input array from shape (2,1) into shape (2)
4
42
 
5
43
 
6
44