Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.77 KB | None | 0 0
  1. documentclass{book}
  2.  
  3.  
  4. usepackage{caption}
  5. usepackage{subcaption}
  6. usepackage{epsfig}
  7. usepackage{contour}
  8.  
  9.  
  10.  
  11.  
  12. usepackage{bm}
  13. usepackage{colortbl}
  14. usepackage{enumitem}
  15. usepackage{makecell}
  16. usepackage[font=footnotesize]{caption}
  17. usepackage{forest}
  18. usetikzlibrary{shadows,arrows.meta}
  19. usepackage{pgfplotstable}
  20. %usepackage{filecontents}
  21. usepackage{graphicx}
  22. usepackage{pgfplots}
  23. %pgfplotsset{compat=newest}
  24. pgfplotsset{compat=1.16}
  25. usepackage{smartdiagram}
  26.  
  27.  
  28. usetikzlibrary{%
  29. arrows,%
  30. calc,%
  31. arrows.meta,
  32. fit,%
  33. patterns,%
  34. plotmarks,%
  35. shadows,
  36. shapes.geometric,%
  37. shapes.misc,%
  38. shapes.symbols,%
  39. shapes.arrows,%
  40. shapes.callouts,%
  41. shapes.multipart,%
  42. shapes.gates.logic.US,%
  43. shapes.gates.logic.IEC,%
  44. er,%
  45. automata,%
  46. backgrounds,%
  47. chains,%
  48. topaths,%
  49. trees,%
  50. petri,%
  51. mindmap,%
  52. matrix,%
  53. % calendar,%
  54. folding,%
  55. fadings,%
  56. through,%
  57. positioning,%
  58. scopes,%
  59. decorations.fractals,%
  60. decorations.shapes,%
  61. decorations.text,%
  62. decorations.pathmorphing,%
  63. decorations.pathreplacing,%
  64. decorations.footprints,%
  65. decorations.markings,%
  66. shadows}
  67. usetikzlibrary{arrows.meta,bending,positioning,calc}
  68.  
  69.  
  70. usepackage{listings}
  71. usepackage{color}
  72.  
  73. begin{document}
  74.  
  75. begin{figure}
  76.  
  77. begin{subfigure}[b]{0.5textwidth}
  78.  
  79. begin{tikzpicture}
  80. begin{axis}[
  81. width=linewidth,
  82. line width=0.5,
  83. grid=major, % Display a grid
  84. tick label style={font={tiny }},
  85. legend style={nodes={scale=0.6, transform shape}},
  86. label style={font={tiny }},
  87. legend image post style={},
  88. grid style={white},
  89. xlabel={Epochs},
  90. ylabel={RMSE},
  91. y tick label style={
  92. /pgf/number format/.cd,
  93. fixed,
  94. fixed zerofill,
  95. precision=2
  96. },
  97. legend style={at={(1,0.95)}, anchor=north east, line width=.3pt,mark size=.4pt, draw=none, fill=none}
  98. ]
  99. addplot[yellow!85!black,mark=diamond*] table[x expr=coordindex,y index=0] {
  100. 1.1256
  101. 0.9999
  102. 0.9737
  103. 0.9623
  104. 0.9558
  105. 0.9517
  106. 0.9487
  107. 0.9465
  108. 0.9451
  109. 0.9439
  110. 0.943
  111. 0.9425
  112. 0.9416
  113. 0.9411
  114. 0.941
  115. 0.9403
  116. 0.9401
  117. 0.94
  118. 0.9403
  119. 0.9395
  120. 0.94
  121. 0.94
  122. 0.9392
  123. 0.9395
  124. 0.9391
  125. 0.9399
  126. 0.9394
  127. 0.9396
  128. 0.9394
  129. 0.9393
  130. 0.939
  131. 0.939
  132. 0.9392
  133. 0.9393
  134. 0.9389
  135. 0.939
  136. 0.9389
  137. 0.9393
  138. 0.9396
  139. 0.9391
  140. 0.9393
  141. 0.939
  142. 0.9387
  143. 0.9394
  144. 0.9392
  145. 0.9393
  146. 0.9396
  147. 0.939
  148. 0.9388
  149. 0.9392
  150.  
  151.  
  152. };
  153. addlegendentry{Test error}
  154.  
  155. end{axis}
  156.  
  157. end{tikzpicture}
  158.  
  159. subcaption{ 100K}
  160. label{fig:sub11}
  161. end{subfigure}
  162. begin{subfigure}[b]{0.5textwidth}
  163. begin{tikzpicture}
  164. begin{axis}[
  165. width=linewidth,
  166. line width=0.5,
  167. grid=major, % Display a grid
  168. tick label style={font={tiny}},
  169. legend style={nodes={scale=0.6, transform shape}},
  170. label style={font={tiny }},
  171. legend image post style={},
  172. grid style={white},
  173. xlabel={Epochs},
  174. ylabel={RMSE},
  175. y tick label style={
  176. /pgf/number format/.cd,
  177. fixed,
  178. fixed zerofill,
  179. precision=2
  180. },
  181. legend style={at={(1,0.95)}, anchor=north east, draw=none, fill=none},
  182. ]
  183. addplot[blue,mark=*] table[x expr=coordindex,y index=0] {
  184. 1.1171
  185. 0.9368
  186. 0.9208
  187. 0.9154
  188. 0.9128
  189. 0.9116
  190. 0.9105
  191. 0.9098
  192. 0.9096
  193. 0.9094
  194. 0.909
  195. 0.9092
  196. 0.909
  197. 0.9089
  198. 0.9087
  199. 0.9088
  200. 0.909
  201. 0.909
  202. 0.9085
  203. 0.9088
  204. 0.9086
  205. 0.9087
  206. 0.9086
  207. 0.9088
  208. 0.9087
  209. 0.9088
  210. 0.9087
  211. 0.9089
  212. 0.9087
  213. 0.9086
  214. 0.9087
  215. 0.9086
  216. 0.9088
  217. 0.9088
  218. 0.9086
  219. 0.9087
  220. 0.9088
  221. 0.9087
  222. 0.9088
  223. 0.9086
  224. 0.9089
  225. 0.9088
  226. 0.9087
  227. 0.9088
  228. 0.9088
  229. 0.9087
  230. 0.9089
  231. 0.9088
  232. 0.9089
  233. 0.9087
  234.  
  235.  
  236.  
  237.  
  238. };
  239. addlegendentry{Test}
  240.  
  241. end{axis}
  242.  
  243. end{tikzpicture}
  244.  
  245.  
  246. subcaption{1M}
  247. label{fig:sub22}
  248.  
  249. end{subfigure}
  250.  
  251. caption{Performance.}
  252. label{tablex}
  253. end{figure}
  254.  
  255.  
  256. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement