Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'RECOVERED VEHICLE',what's the small_sample.csv? #39

Open
EagleYing opened this issue Nov 10, 2018 · 0 comments
Open

KeyError: 'RECOVERED VEHICLE',what's the small_sample.csv? #39

EagleYing opened this issue Nov 10, 2018 · 0 comments

Comments

@EagleYing
Copy link

(tensorflow) F:\Postgraduate\KaggleLearning\multi-class-text-classification-cnn-rnn-master\multi-class-text-classification-cnn-rnn-master>python predict.py ./t
rained_results_1541818386/ ./data2/samples.csv
D:\Anaconda\anaconda\envs\tensorflow\lib\site-packages\gensim\utils.py:1212: UserWarning: detected Windows; aliasing chunkize to chunkize_serial
warnings.warn("detected Windows; aliasing chunkize to chunkize_serial")
Traceback (most recent call last):
File "predict.py", line 141, in
predict_unseen_data()
File "predict.py", line 68, in predict_unseen_data
x_, y_, df = load_test_data(test_file, labels)
File "predict.py", line 43, in load_test_data
y_ = df[select[1]].apply(lambda x: label_dict[x]).tolist()
File "D:\Anaconda\anaconda\envs\tensorflow\lib\site-packages\pandas\core\series.py", line 3194, in apply
mapped = lib.map_infer(values, f, convert=convert_dtype)
File "pandas/_libs/src\inference.pyx", line 1472, in pandas.libs.lib.map_infer
File "predict.py", line 43, in
y
= df[select[1]].apply(lambda x: label_dict[x]).tolist()
KeyError: 'RECOVERED VEHICLE'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant