-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcnn_plot_commands.txt
189 lines (156 loc) · 7.65 KB
/
cnn_plot_commands.txt
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
========== Words vs Frequency ===================
set terminal postscript eps enhanced color
set xlabel 'Top 50 Most Frequent Words'
set ylabel 'Frequency'
set style data histogram
set style histogram cluster gap 1
set style fill solid border -1
set boxwidth 0.9
set xtic scale 0
set key off
set xtic rotate by 270
# 2, 3, 4, 5 are the indexes of the columns; 'fc' stands for 'fillcolor'
plot 'Output/wordFreqInAllArticles.txt' using 2:xtic(1) ti col fc rgb "blue" fillstyle pattern 1
set output 'Plots/wordFreq_allArticles.eps'
replot
plot for [col=1:50] 'Output/wordFreqInAllArticles.txt' using col:xticlabels(1) ti col fc rgb "blue" fillstyle pattern 1
#plot 'Output/wordFreqInAllArticles.txt' using 2:xtic(1) ti col fc rgb "blue" fillstyle pattern 1, '' u 3 ti col fc rgb "red" fillstyle pattern 3, '' u 4 ti col fc rgb "yellow" fillstyle pattern 4, '' u 5 ti col fc rgb "cyan" fillstyle pattern 5, '' u 6 ti col fc rgb "grey" fillstyle pattern 6, '' u 7 ti col fc rgb "orange" fillstyle pattern 7, '' u 8 ti col fc rgb "pink" fillstyle pattern 8, '' u 9 ti col fc rgb "cyan" fillstyle pattern 9, '' u 10 ti col fc rgb "blue" fillstyle pattern 10
#================ Similarity in All metrics ===================
set terminal postscript eps enhanced color
set ylabel'Similarity Score'
set xlabel 'Sequence Number'
plot 'Output/euclidSimilarity.txt' u 4:1 w p t'Euclidean', 'Output/cosineSimilarity.txt' u 4:1 w p t'Cosine', 'Output/jaccardSimilarity.txt' u 4:1 w p t'Jaccard'
set output 'Plots/similarityUsecase.eps'
replot
#========== Jaccard Similar ===================
set terminal postscript eps enhanced color
set style line 1 lc rgb "blue" lt 7 lw 2 ps 2
set style line 2 lc rgb "black" lt 8 lw 2 ps 2
set style line 3 lc rgb "green" lt 4 lw 2 ps 2
set style line 4 lc rgb "red" lt 4 lw 2 ps 2
set style line 5 lc rgb "blue" lt 8 lw 2 ps 2
set style line 6 lc rgb "red" lt 8 lw 2 ps 2
set xlabel 'Top 20 most Frequent Words'
set ylabel 'Frequency'
set yrange[-20:160]
plot 'Output2/jaccard_least_1.0.txt' u 2:xticlabels(1) w p ls 1 t'Jaccard Least Similar Article 1', 'Output2/jaccard_least_1.0.txt' u 3:xticlabels(1) w p ls 1 t'Jaccard Least Similar Article 2', 'Output2/jaccard_most_0.0.txt' u 2:xticlabels(1) w p ls 2 t'Jaccard Most Similar Article 1', 'Output2/jaccard_most_0.0.txt' u 3:xticlabels(1) w p ls 2 t'Jaccard Most Similar Article 2'
set output 'Plots2/jaccardSimilarity.eps'
replot
set terminal postscript eps enhanced color
set xlabel 'Article Id'
set ylabel 'Article Id'
set view map
set size ratio .9
set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back
set object 1 rect fc rgb "black" fillstyle solid 1.0
splot 'Output/unsortedEuclidSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
splot 'Output/unsortedEuclidSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/unsortedEuclideanSimilarity2D.eps'
replot
set terminal postscript eps enhanced color
set xlabel 'Article Id'
set ylabel 'Article Id'
set view map
set size ratio .9
set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back
set object 1 rect fc rgb "black" fillstyle solid 1.0
splot 'Output/unsortedCosineSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/unsortedCosineSimilarity2D.eps'
replot
set terminal postscript eps enhanced color
set xlabel 'Article Id'
set ylabel 'Article Id'
set view map
set size ratio .9
set object 1 rect from graph 0, graph 0 to graph 1, graph 1 back
set object 1 rect fc rgb "black" fillstyle solid 1.0
splot 'Output/unsortedJaccardSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/unsortedJaccardSimilarity2D.eps'
replot
================ Unsorted Similarity =======================
set terminal postscript eps enhanced color
set ticslevel 0
set zlabel 'Euclidean Similarity' rotate by 90
set xlabel 'Article Id'
set ylabel 'Article Id'
set key off
splot 'Output/unsortedEuclidSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/unsortedEuclideanSimilarity.eps'
replot
set terminal postscript eps enhanced color
set ticslevel 0
set zlabel 'Cosine Similarity' rotate by 90
set xlabel 'Article Id'
set ylabel 'Article Id'
set key off
splot 'Output/unsortedCosineSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/unsortedCosineSimilarity.eps'
replot
set terminal postscript eps enhanced color
set ticslevel 0
set zlabel 'Jaccard Similarity' rotate by 90
set xlabel 'Article Id'
set ylabel 'Article Id'
set key off
splot 'Output/unsortedJaccardSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/unsortedJaccardSimilarity.eps'
replot
============= Sorted Similarity ====================
set terminal postscript eps enhanced color
set ticslevel 0
set zlabel 'Euclidean Similarity' rotate by 90
set xlabel 'Article Id'
set ylabel 'Article Id'
set key off
splot 'Output/euclidSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/sortedEuclideanSimilarity.eps'
replot
set terminal postscript eps enhanced color
set ticslevel 0
set zlabel 'Cosine Similarity' rotate by 90
set xlabel 'Article Id'
set ylabel 'Article Id'
set key off
splot 'Output/cosineSimilarity.txt' u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/sortedCosineSimilarity.eps'
replot
set terminal postscript eps enhanced color
set ticslevel 0
set zlabel 'Jaccard Similarity' rotate by 90
set xlabel 'Article Id'
set ylabel 'Article Id'
set key off
splot 'Output/jaccardSimilarity.txt' every :2 u 2:3:1 with points palette pointsize 2 pointtype 7
set output 'Plots/sortedJaccardSimilarity.eps'
replot
#========== Euclidean Similar ===================
set terminal postscript eps enhanced color
set style line 1 lc rgb "blue" lt 7 lw 2 ps 2
set style line 2 lc rgb "black" lt 8 lw 2 ps 2
set style line 3 lc rgb "green" lt 4 lw 2 ps 2
set style line 4 lc rgb "red" lt 4 lw 2 ps 2
set style line 5 lc rgb "blue" lt 8 lw 2 ps 2
set style line 6 lc rgb "red" lt 8 lw 2 ps 2
set xlabel 'Top 20 most Frequent Words'
set ylabel 'Frequency'
#set yrange[-20:160]
plot 'Output2/euclidean_least_0.00351.txt' u 2:xticlabels(1) w p ls 1 t'Euclidean Least Similar Article 1', 'Output2/euclidean_least_0.00351.txt' u 3:xticlabels(1) w p ls 1 t'Euclidean Least Similar Article 2', 'Output2/euclidean_most_1.0.txt' u 2:xticlabels(1) w p ls 2 t'Euclidean Most Similar Article 1', 'Output2/euclidean_most_1.0.txt' u 3:xticlabels(1) w p ls 2 t'Euclidean Most Similar Article 2'
set output 'Plots2/euclideanSimilarity.eps'
replot
#========== Cosine Similar ===================
set terminal postscript eps enhanced color
set style line 1 lc rgb "blue" lt 7 lw 2 ps 2
set style line 2 lc rgb "black" lt 8 lw 2 ps 2
set style line 3 lc rgb "green" lt 4 lw 2 ps 2
set style line 4 lc rgb "red" lt 4 lw 2 ps 2
set style line 5 lc rgb "blue" lt 8 lw 2 ps 2
set style line 6 lc rgb "red" lt 8 lw 2 ps 2
set xlabel 'Top 20 most Frequent Words'
set ylabel 'Frequency'
#set yrange[-20:160]
plot 'Output2/cosine_least_inf.txt' u 2:xticlabels(1) w p ls 1 t'Cosine Least Similar Article 1', 'Output2/cosine_least_inf.txt' u 3:xticlabels(1) w p ls 1 t'Cosine Least Similar Article 2', 'Output2/cosine_most_0.0.txt' u 2:xticlabels(1) w p ls 2 t'Cosine Most Similar Article 1', 'Output2/cosine_most_0.0.txt' u 3:xticlabels(1) w p ls 2 t'Cosine Most Similar Article 2'
set output 'Plots2/cosineSimilarity.eps'
replot
plot 'transmitPower_freq.txt' every ::0::25 u 1:4 w p ls 1 t'TV Band', 'transmitPower_freq.txt' every ::25::50 u 1:4 w p ls 2 t'LTE Band', 'transmitPower_freq.txt' every ::50::75 u 1:4 w p ls 3 t'ISM Band', 'transmitPower_freq.txt' every ::75::100 u 1:4 w p ls 4 t'CBRS Band'
set output 'transmitPower_Freq.eps'
replot