You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/utils/validation.py:395: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
DeprecationWarning)
Traceback (most recent call last):
File "train_step3.py", line 34, in
Train()
File "train_step3.py", line 20, in init
self._train(self._modelA, self.classA_features, self.classA_labels, "A")
File "train_step3.py", line 24, in _train
model.train(features, labels)
File "/workspace/DL/rcnn/RCNN/models/models.py", line 248, in train
self.clf.fit(features, labels)
File "/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/svm/classes.py", line 207, in fit
dtype=np.float64, order="C")
File "/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/utils/validation.py", line 521, in check_X_y
ensure_min_features, warn_on_dtype, estimator)
File "/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/utils/validation.py", line 424, in check_array
context))
ValueError: Found array with 0 feature(s) (shape=(1, 0)) while a minimum of 1 is required.
我将 File "/workspace/DL/rcnn/RCNN/models/models.py", line 248, in train self.clf.fit(features, labels) 中的features的长度输出,发现长度为0
The text was updated successfully, but these errors were encountered:
/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/utils/validation.py:395: DeprecationWarning: Passing 1d arrays as data is deprecated in 0.17 and will raise ValueError in 0.19. Reshape your data either using X.reshape(-1, 1) if your data has a single feature or X.reshape(1, -1) if it contains a single sample.
DeprecationWarning)
Traceback (most recent call last):
File "train_step3.py", line 34, in
Train()
File "train_step3.py", line 20, in init
self._train(self._modelA, self.classA_features, self.classA_labels, "A")
File "train_step3.py", line 24, in _train
model.train(features, labels)
File "/workspace/DL/rcnn/RCNN/models/models.py", line 248, in train
self.clf.fit(features, labels)
File "/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/svm/classes.py", line 207, in fit
dtype=np.float64, order="C")
File "/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/utils/validation.py", line 521, in check_X_y
ensure_min_features, warn_on_dtype, estimator)
File "/root/anaconda3/envs/rcnn/lib/python3.5/site-packages/sklearn/utils/validation.py", line 424, in check_array
context))
ValueError: Found array with 0 feature(s) (shape=(1, 0)) while a minimum of 1 is required.
我将 File "/workspace/DL/rcnn/RCNN/models/models.py", line 248, in train self.clf.fit(features, labels) 中的features的长度输出,发现长度为0
The text was updated successfully, but these errors were encountered: