質問編集履歴
1
情報の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
Tracebackには、
|
5
5
|
```ここに言語を入力
|
6
6
|
Traceback (most recent call last):
|
7
|
-
File "cnn.py", line
|
7
|
+
File "cnn.py", line 16, in <module>
|
8
8
|
model.fit(trainDataSet, trainLabel, n_epoch=100, batch_size=32, validation_set=0.1, show_metric=True)
|
9
9
|
File "/Users/xxx/anaconda/xxx/lib/python2.7/site-packages/tflearn/models/dnn.py", line 216, in fit
|
10
10
|
callbacks=callbacks)
|
@@ -20,6 +20,19 @@
|
|
20
20
|
```
|
21
21
|
とでます。全文は
|
22
22
|
```ここに言語を入力
|
23
|
+
# coding: utf-8
|
24
|
+
import tensorflow as tf
|
25
|
+
import tflearn
|
26
|
+
|
27
|
+
from tflearn.layers.core import input_data,dropout,fully_connected
|
28
|
+
from tflearn.layers.conv import conv_2d, max_pool_2d
|
29
|
+
from tflearn.layers.normalization import local_response_normalization
|
30
|
+
from tflearn.layers.estimator import regression
|
31
|
+
|
32
|
+
import pandas as pd
|
33
|
+
import numpy as np
|
34
|
+
from sklearn import metrics
|
35
|
+
|
23
36
|
tf.reset_default_graph()
|
24
37
|
net = input_data(shape=[2, 4, 104])
|
25
38
|
net = conv_2d(net, 4, 16, activation='relu')
|