質問編集履歴
1
今気が付きました ありがとうございます。
test
CHANGED
File without changes
|
test
CHANGED
@@ -12,8 +12,32 @@
|
|
12
12
|
|
13
13
|
```
|
14
14
|
|
15
|
+
File "C:/Users/hoge/PycharmProjects/resarch372/20191029/self/顔-個人認証.py", line 48, in <module>
|
16
|
+
|
17
|
+
pred_y = clf.predict([img_data])
|
18
|
+
|
19
|
+
File "C:\Users\hoge\PycharmProjects\resarch372\venv\lib\site-packages\sklearn\ensemble\forest.py", line 545, in predict
|
20
|
+
|
21
|
+
proba = self.predict_proba(X)
|
22
|
+
|
23
|
+
顔の座標= 15 167 169 169
|
24
|
+
|
25
|
+
File "C:\Users\hoge\PycharmProjects\resarch372\venv\lib\site-packages\sklearn\ensemble\forest.py", line 588, in predict_proba
|
26
|
+
|
27
|
+
X = self._validate_X_predict(X)
|
28
|
+
|
29
|
+
File "C:\Users\hoge\PycharmProjects\resarch372\venv\lib\site-packages\sklearn\ensemble\forest.py", line 359, in _validate_X_predict
|
30
|
+
|
31
|
+
return self.estimators_[0]._validate_X_predict(X, check_input=True)
|
32
|
+
|
33
|
+
File "C:\Users\hoge\PycharmProjects\resarch372\venv\lib\site-packages\sklearn\tree\tree.py", line 402, in _validate_X_predict
|
34
|
+
|
35
|
+
% (self.n_features_, n_features))
|
36
|
+
|
15
37
|
ValueError: Number of features of the model must match the input. Model n_features is 10000 and input n_features is 30000
|
16
38
|
|
39
|
+
|
40
|
+
|
17
41
|
```
|
18
42
|
|
19
43
|
|