-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcnn_evaluate.py
30 lines (24 loc) · 897 Bytes
/
cnn_evaluate.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
__author__ = 'NLP-PC'
from load_data import load_pickle
from file_name import get_file_path
from evaluate import evaluate
(Y_test, predict) = load_pickle('./data/corpus/vader/cnn_movie_news_articles.p')
print(Y_test)
print(predict)
evaluate(Y_test, predict, 'news_articles')
(Y_test, predict) = load_pickle('./data/corpus/vader/cnn_movie_news_articles1.p')
print(Y_test)
print(predict)
evaluate(Y_test, predict, 'news_articles')
(Y_test, predict) = load_pickle('./data/corpus/vader/cnn_movie_news_articles2.p')
print(Y_test)
print(predict)
evaluate(Y_test, predict, 'news_articles')
(Y_test, predict) = load_pickle('./data/corpus/vader/cnn_movie_news_articles3.p')
print(Y_test)
print(predict)
evaluate(Y_test, predict, 'news_articles')
(Y_test, predict) = load_pickle('./data/corpus/vader/cnn_movie_news_articles4.p')
print(Y_test)
print(predict)
evaluate(Y_test, predict, 'news_articles')