@datalayer/agent-runtimes 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (571) hide show
  1. package/LICENSE +32 -0
  2. package/README.md +56 -0
  3. package/lib/App.css +47 -0
  4. package/lib/App.d.ts +3 -0
  5. package/lib/App.js +18 -0
  6. package/lib/components/chat/components/AgentDetails.d.ts +19 -0
  7. package/lib/components/chat/components/AgentDetails.js +170 -0
  8. package/lib/components/chat/components/Chat.d.ts +105 -0
  9. package/lib/components/chat/components/Chat.js +275 -0
  10. package/lib/components/chat/components/ChatFloating.d.ts +146 -0
  11. package/lib/components/chat/components/ChatFloating.js +381 -0
  12. package/lib/components/chat/components/ChatInline.d.ts +42 -0
  13. package/lib/components/chat/components/ChatInline.js +327 -0
  14. package/lib/components/chat/components/ChatPopupStandalone.d.ts +110 -0
  15. package/lib/components/chat/components/ChatPopupStandalone.js +422 -0
  16. package/lib/components/chat/components/ChatSidebar.d.ts +78 -0
  17. package/lib/components/chat/components/ChatSidebar.js +224 -0
  18. package/lib/components/chat/components/ChatStandalone.d.ts +105 -0
  19. package/lib/components/chat/components/ChatStandalone.js +320 -0
  20. package/lib/components/chat/components/base/ChatBase.d.ts +285 -0
  21. package/lib/components/chat/components/base/ChatBase.js +1192 -0
  22. package/lib/components/chat/components/display/ToolCallDisplay.d.ts +26 -0
  23. package/lib/components/chat/components/display/ToolCallDisplay.js +225 -0
  24. package/lib/components/chat/components/display/index.d.ts +6 -0
  25. package/lib/components/chat/components/display/index.js +10 -0
  26. package/lib/components/chat/components/elements/ChatHeader.d.ts +43 -0
  27. package/lib/components/chat/components/elements/ChatHeader.js +67 -0
  28. package/lib/components/chat/components/elements/ChatInputPrompt.d.ts +26 -0
  29. package/lib/components/chat/components/elements/ChatInputPrompt.js +145 -0
  30. package/lib/components/chat/components/elements/ChatMessages.d.ts +36 -0
  31. package/lib/components/chat/components/elements/ChatMessages.js +195 -0
  32. package/lib/components/chat/components/elements/FloatingBrandButton.d.ts +34 -0
  33. package/lib/components/chat/components/elements/FloatingBrandButton.js +88 -0
  34. package/lib/components/chat/components/elements/MessagePart.d.ts +50 -0
  35. package/lib/components/chat/components/elements/MessagePart.js +48 -0
  36. package/lib/components/chat/components/elements/PoweredByTag.d.ts +26 -0
  37. package/lib/components/chat/components/elements/PoweredByTag.js +33 -0
  38. package/lib/components/chat/components/elements/ToolApprovalDialog.d.ts +42 -0
  39. package/lib/components/chat/components/elements/ToolApprovalDialog.js +96 -0
  40. package/lib/components/chat/components/index.d.ts +21 -0
  41. package/lib/components/chat/components/index.js +34 -0
  42. package/lib/components/chat/components/parts/DynamicToolPart.d.ts +20 -0
  43. package/lib/components/chat/components/parts/DynamicToolPart.js +13 -0
  44. package/lib/components/chat/components/parts/ReasoningPart.d.ts +17 -0
  45. package/lib/components/chat/components/parts/ReasoningPart.js +69 -0
  46. package/lib/components/chat/components/parts/TextPart.d.ts +28 -0
  47. package/lib/components/chat/components/parts/TextPart.js +103 -0
  48. package/lib/components/chat/components/parts/ToolPart.d.ts +17 -0
  49. package/lib/components/chat/components/parts/ToolPart.js +163 -0
  50. package/lib/components/chat/components/parts/index.d.ts +9 -0
  51. package/lib/components/chat/components/parts/index.js +13 -0
  52. package/lib/components/chat/extensions/A2UIExtension.d.ts +87 -0
  53. package/lib/components/chat/extensions/A2UIExtension.js +312 -0
  54. package/lib/components/chat/extensions/ExtensionRegistry.d.ts +66 -0
  55. package/lib/components/chat/extensions/ExtensionRegistry.js +128 -0
  56. package/lib/components/chat/extensions/MCPUIExtension.d.ts +77 -0
  57. package/lib/components/chat/extensions/MCPUIExtension.js +212 -0
  58. package/lib/components/chat/extensions/index.d.ts +9 -0
  59. package/lib/components/chat/extensions/index.js +12 -0
  60. package/lib/components/chat/handler.d.ts +20 -0
  61. package/lib/components/chat/handler.js +56 -0
  62. package/lib/components/chat/index.d.ts +61 -0
  63. package/lib/components/chat/index.js +76 -0
  64. package/lib/components/chat/inference/BaseInferenceProvider.d.ts +57 -0
  65. package/lib/components/chat/inference/BaseInferenceProvider.js +69 -0
  66. package/lib/components/chat/inference/DatalayerInferenceProvider.d.ts +83 -0
  67. package/lib/components/chat/inference/DatalayerInferenceProvider.js +305 -0
  68. package/lib/components/chat/inference/SelfHostedInferenceProvider.d.ts +54 -0
  69. package/lib/components/chat/inference/SelfHostedInferenceProvider.js +246 -0
  70. package/lib/components/chat/inference/index.d.ts +9 -0
  71. package/lib/components/chat/inference/index.js +12 -0
  72. package/lib/components/chat/middleware/MiddlewarePipeline.d.ts +118 -0
  73. package/lib/components/chat/middleware/MiddlewarePipeline.js +255 -0
  74. package/lib/components/chat/middleware/index.d.ts +7 -0
  75. package/lib/components/chat/middleware/index.js +10 -0
  76. package/lib/components/chat/protocols/A2AAdapter.d.ts +79 -0
  77. package/lib/components/chat/protocols/A2AAdapter.js +388 -0
  78. package/lib/components/chat/protocols/ACPAdapter.d.ts +161 -0
  79. package/lib/components/chat/protocols/ACPAdapter.js +504 -0
  80. package/lib/components/chat/protocols/AGUIAdapter.d.ts +82 -0
  81. package/lib/components/chat/protocols/AGUIAdapter.js +518 -0
  82. package/lib/components/chat/protocols/BaseProtocolAdapter.d.ts +75 -0
  83. package/lib/components/chat/protocols/BaseProtocolAdapter.js +119 -0
  84. package/lib/components/chat/protocols/VercelAIAdapter.d.ts +77 -0
  85. package/lib/components/chat/protocols/VercelAIAdapter.js +252 -0
  86. package/lib/components/chat/protocols/index.d.ts +11 -0
  87. package/lib/components/chat/protocols/index.js +14 -0
  88. package/lib/components/chat/store/chatStore.d.ts +158 -0
  89. package/lib/components/chat/store/chatStore.js +313 -0
  90. package/lib/components/chat/store/index.d.ts +6 -0
  91. package/lib/components/chat/store/index.js +10 -0
  92. package/lib/components/chat/tools/ToolExecutor.d.ts +49 -0
  93. package/lib/components/chat/tools/ToolExecutor.js +151 -0
  94. package/lib/components/chat/tools/index.d.ts +8 -0
  95. package/lib/components/chat/tools/index.js +11 -0
  96. package/lib/components/chat/types/extension.d.ts +181 -0
  97. package/lib/components/chat/types/extension.js +46 -0
  98. package/lib/components/chat/types/index.d.ts +11 -0
  99. package/lib/components/chat/types/index.js +16 -0
  100. package/lib/components/chat/types/inference.d.ts +117 -0
  101. package/lib/components/chat/types/inference.js +5 -0
  102. package/lib/components/chat/types/message.d.ts +117 -0
  103. package/lib/components/chat/types/message.js +50 -0
  104. package/lib/components/chat/types/middleware.d.ts +153 -0
  105. package/lib/components/chat/types/middleware.js +32 -0
  106. package/lib/components/chat/types/protocol.d.ts +209 -0
  107. package/lib/components/chat/types/protocol.js +5 -0
  108. package/lib/components/chat/types/tool.d.ts +140 -0
  109. package/lib/components/chat/types/tool.js +23 -0
  110. package/lib/components/index.d.ts +1 -0
  111. package/lib/components/index.js +6 -0
  112. package/lib/components/sparklines/Sparklines.d.ts +16 -0
  113. package/lib/components/sparklines/Sparklines.js +65 -0
  114. package/lib/components/sparklines/SparklinesLine.d.ts +8 -0
  115. package/lib/components/sparklines/SparklinesLine.js +37 -0
  116. package/lib/components/sparklines/dataProcessing.d.ts +25 -0
  117. package/lib/components/sparklines/dataProcessing.js +35 -0
  118. package/lib/components/sparklines/index.d.ts +4 -0
  119. package/lib/components/sparklines/index.js +7 -0
  120. package/lib/components/sparklines/types.d.ts +36 -0
  121. package/lib/components/sparklines/types.js +5 -0
  122. package/lib/components/ui/accordion.d.ts +7 -0
  123. package/lib/components/ui/accordion.js +22 -0
  124. package/lib/components/ui/alert-dialog.d.ts +14 -0
  125. package/lib/components/ui/alert-dialog.js +43 -0
  126. package/lib/components/ui/alert.d.ts +9 -0
  127. package/lib/components/ui/alert.js +24 -0
  128. package/lib/components/ui/aspect-ratio.d.ts +3 -0
  129. package/lib/components/ui/aspect-ratio.js +11 -0
  130. package/lib/components/ui/avatar.d.ts +6 -0
  131. package/lib/components/ui/avatar.js +18 -0
  132. package/lib/components/ui/badge.d.ts +9 -0
  133. package/lib/components/ui/badge.js +22 -0
  134. package/lib/components/ui/breadcrumb.d.ts +11 -0
  135. package/lib/components/ui/breadcrumb.js +27 -0
  136. package/lib/components/ui/button-group.d.ts +11 -0
  137. package/lib/components/ui/button-group.js +31 -0
  138. package/lib/components/ui/button.d.ts +13 -0
  139. package/lib/components/ui/button.js +39 -0
  140. package/lib/components/ui/calendar.d.ts +8 -0
  141. package/lib/components/ui/calendar.js +80 -0
  142. package/lib/components/ui/card.d.ts +9 -0
  143. package/lib/components/ui/card.js +24 -0
  144. package/lib/components/ui/carousel.d.ts +19 -0
  145. package/lib/components/ui/carousel.js +95 -0
  146. package/lib/components/ui/chart.d.ts +53 -0
  147. package/lib/components/ui/chart.js +136 -0
  148. package/lib/components/ui/checkbox.d.ts +4 -0
  149. package/lib/components/ui/checkbox.js +13 -0
  150. package/lib/components/ui/collapsible.d.ts +5 -0
  151. package/lib/components/ui/collapsible.js +17 -0
  152. package/lib/components/ui/command.d.ts +18 -0
  153. package/lib/components/ui/command.js +38 -0
  154. package/lib/components/ui/context-menu.d.ts +25 -0
  155. package/lib/components/ui/context-menu.js +55 -0
  156. package/lib/components/ui/dialog.d.ts +15 -0
  157. package/lib/components/ui/dialog.js +40 -0
  158. package/lib/components/ui/drawer.d.ts +13 -0
  159. package/lib/components/ui/drawer.js +39 -0
  160. package/lib/components/ui/dropdown-menu.d.ts +25 -0
  161. package/lib/components/ui/dropdown-menu.js +55 -0
  162. package/lib/components/ui/empty.d.ts +11 -0
  163. package/lib/components/ui/empty.js +37 -0
  164. package/lib/components/ui/field.d.ts +24 -0
  165. package/lib/components/ui/field.js +80 -0
  166. package/lib/components/ui/form.d.ts +24 -0
  167. package/lib/components/ui/form.js +63 -0
  168. package/lib/components/ui/hover-card.d.ts +6 -0
  169. package/lib/components/ui/hover-card.js +18 -0
  170. package/lib/components/ui/input-group.d.ts +19 -0
  171. package/lib/components/ui/input-group.js +69 -0
  172. package/lib/components/ui/input-otp.d.ts +11 -0
  173. package/lib/components/ui/input-otp.js +25 -0
  174. package/lib/components/ui/input.d.ts +3 -0
  175. package/lib/components/ui/input.js +6 -0
  176. package/lib/components/ui/item.d.ts +23 -0
  177. package/lib/components/ui/item.js +66 -0
  178. package/lib/components/ui/kbd.d.ts +3 -0
  179. package/lib/components/ui/kbd.js +13 -0
  180. package/lib/components/ui/label.d.ts +4 -0
  181. package/lib/components/ui/label.js +12 -0
  182. package/lib/components/ui/menubar.d.ts +26 -0
  183. package/lib/components/ui/menubar.js +58 -0
  184. package/lib/components/ui/navigation-menu.d.ts +14 -0
  185. package/lib/components/ui/navigation-menu.js +31 -0
  186. package/lib/components/ui/pagination.d.ts +13 -0
  187. package/lib/components/ui/pagination.js +29 -0
  188. package/lib/components/ui/popover.d.ts +7 -0
  189. package/lib/components/ui/popover.js +21 -0
  190. package/lib/components/ui/progress.d.ts +4 -0
  191. package/lib/components/ui/progress.js +12 -0
  192. package/lib/components/ui/radio-group.d.ts +5 -0
  193. package/lib/components/ui/radio-group.js +16 -0
  194. package/lib/components/ui/resizable.d.ts +8 -0
  195. package/lib/components/ui/resizable.js +19 -0
  196. package/lib/components/ui/scroll-area.d.ts +5 -0
  197. package/lib/components/ui/scroll-area.js +17 -0
  198. package/lib/components/ui/select.d.ts +15 -0
  199. package/lib/components/ui/select.js +42 -0
  200. package/lib/components/ui/separator.d.ts +4 -0
  201. package/lib/components/ui/separator.js +12 -0
  202. package/lib/components/ui/sheet.d.ts +13 -0
  203. package/lib/components/ui/sheet.js +44 -0
  204. package/lib/components/ui/sidebar.d.ts +69 -0
  205. package/lib/components/ui/sidebar.js +216 -0
  206. package/lib/components/ui/skeleton.d.ts +2 -0
  207. package/lib/components/ui/skeleton.js +10 -0
  208. package/lib/components/ui/slider.d.ts +4 -0
  209. package/lib/components/ui/slider.js +18 -0
  210. package/lib/components/ui/sonner.d.ts +3 -0
  211. package/lib/components/ui/sonner.js +25 -0
  212. package/lib/components/ui/spinner.d.ts +2 -0
  213. package/lib/components/ui/spinner.js +11 -0
  214. package/lib/components/ui/switch.d.ts +4 -0
  215. package/lib/components/ui/switch.js +12 -0
  216. package/lib/components/ui/table.d.ts +10 -0
  217. package/lib/components/ui/table.js +32 -0
  218. package/lib/components/ui/tabs.d.ts +7 -0
  219. package/lib/components/ui/tabs.js +21 -0
  220. package/lib/components/ui/textarea.d.ts +3 -0
  221. package/lib/components/ui/textarea.js +6 -0
  222. package/lib/components/ui/toast.d.ts +15 -0
  223. package/lib/components/ui/toast.js +38 -0
  224. package/lib/components/ui/toaster.d.ts +1 -0
  225. package/lib/components/ui/toaster.js +14 -0
  226. package/lib/components/ui/toggle-group.d.ts +9 -0
  227. package/lib/components/ui/toggle-group.js +26 -0
  228. package/lib/components/ui/toggle.d.ts +9 -0
  229. package/lib/components/ui/toggle.js +30 -0
  230. package/lib/components/ui/tooltip.d.ts +7 -0
  231. package/lib/components/ui/tooltip.js +21 -0
  232. package/lib/components/vercel-ai-elements/artifact.d.ts +23 -0
  233. package/lib/components/vercel-ai-elements/artifact.js +24 -0
  234. package/lib/components/vercel-ai-elements/code-block.d.ts +17 -0
  235. package/lib/components/vercel-ai-elements/code-block.js +94 -0
  236. package/lib/components/vercel-ai-elements/conversation.d.ts +15 -0
  237. package/lib/components/vercel-ai-elements/conversation.js +21 -0
  238. package/lib/components/vercel-ai-elements/loader.d.ts +5 -0
  239. package/lib/components/vercel-ai-elements/loader.js +8 -0
  240. package/lib/components/vercel-ai-elements/message.d.ts +46 -0
  241. package/lib/components/vercel-ai-elements/message.js +109 -0
  242. package/lib/components/vercel-ai-elements/model-selector.d.ts +35 -0
  243. package/lib/components/vercel-ai-elements/model-selector.js +22 -0
  244. package/lib/components/vercel-ai-elements/prompt-input.d.ts +195 -0
  245. package/lib/components/vercel-ai-elements/prompt-input.js +589 -0
  246. package/lib/components/vercel-ai-elements/reasoning.d.ts +26 -0
  247. package/lib/components/vercel-ai-elements/reasoning.js +80 -0
  248. package/lib/components/vercel-ai-elements/shimmer.d.ts +9 -0
  249. package/lib/components/vercel-ai-elements/shimmer.js +22 -0
  250. package/lib/components/vercel-ai-elements/sources.d.ts +12 -0
  251. package/lib/components/vercel-ai-elements/sources.js +13 -0
  252. package/lib/components/vercel-ai-elements/suggestion.d.ts +10 -0
  253. package/lib/components/vercel-ai-elements/suggestion.js +16 -0
  254. package/lib/components/vercel-ai-elements/tool.d.ts +23 -0
  255. package/lib/components/vercel-ai-elements/tool.js +52 -0
  256. package/lib/examples/A2UiRestaurantExample.d.ts +25 -0
  257. package/lib/examples/A2UiRestaurantExample.js +305 -0
  258. package/lib/examples/AgUiAgenticExample.d.ts +25 -0
  259. package/lib/examples/AgUiAgenticExample.js +63 -0
  260. package/lib/examples/AgUiBackendToolRenderingExample.d.ts +30 -0
  261. package/lib/examples/AgUiBackendToolRenderingExample.js +103 -0
  262. package/lib/examples/AgUiHaikuGenUIExample.d.ts +44 -0
  263. package/lib/examples/AgUiHaikuGenUIExample.js +151 -0
  264. package/lib/examples/AgUiHumanInTheLoopExample.d.ts +26 -0
  265. package/lib/examples/AgUiHumanInTheLoopExample.js +220 -0
  266. package/lib/examples/AgUiSharedStateExample.d.ts +25 -0
  267. package/lib/examples/AgUiSharedStateExample.js +181 -0
  268. package/lib/examples/AgUiToolsBasedGenUIExample.d.ts +25 -0
  269. package/lib/examples/AgUiToolsBasedGenUIExample.js +257 -0
  270. package/lib/examples/AgentRuntimeCustomExample.d.ts +9 -0
  271. package/lib/examples/AgentRuntimeCustomExample.js +68 -0
  272. package/lib/examples/AgentRuntimeLexical2Example.d.ts +42 -0
  273. package/lib/examples/AgentRuntimeLexical2Example.js +236 -0
  274. package/lib/examples/AgentRuntimeLexicalExample.d.ts +36 -0
  275. package/lib/examples/AgentRuntimeLexicalExample.js +260 -0
  276. package/lib/examples/AgentRuntimeLexicalSidebarExample.d.ts +41 -0
  277. package/lib/examples/AgentRuntimeLexicalSidebarExample.js +166 -0
  278. package/lib/examples/AgentRuntimeNotebookExample.d.ts +9 -0
  279. package/lib/examples/AgentRuntimeNotebookExample.js +148 -0
  280. package/lib/examples/AgentRuntimeNotebookSidebarExample.d.ts +13 -0
  281. package/lib/examples/AgentRuntimeNotebookSidebarExample.js +121 -0
  282. package/lib/examples/AgentRuntimeStandaloneExample.d.ts +21 -0
  283. package/lib/examples/AgentRuntimeStandaloneExample.js +158 -0
  284. package/lib/examples/AgentSpaceFormExample.d.ts +22 -0
  285. package/lib/examples/AgentSpaceFormExample.js +296 -0
  286. package/lib/examples/AgentSpaceHomeExample.d.ts +8 -0
  287. package/lib/examples/AgentSpaceHomeExample.js +171 -0
  288. package/lib/examples/CopilotKitLexicalExample.d.ts +38 -0
  289. package/lib/examples/CopilotKitLexicalExample.js +161 -0
  290. package/lib/examples/CopilotKitNotebookExample.d.ts +11 -0
  291. package/lib/examples/CopilotKitNotebookExample.js +70 -0
  292. package/lib/examples/DatalayerNotebookExample.d.ts +16 -0
  293. package/lib/examples/DatalayerNotebookExample.js +99 -0
  294. package/lib/examples/JupyterCellExample.d.ts +6 -0
  295. package/lib/examples/JupyterCellExample.js +19 -0
  296. package/lib/examples/JupyterNotebookExample.d.ts +6 -0
  297. package/lib/examples/JupyterNotebookExample.js +21 -0
  298. package/lib/examples/ag-ui/haiku/HaikuDisplay.d.ts +18 -0
  299. package/lib/examples/ag-ui/haiku/HaikuDisplay.js +110 -0
  300. package/lib/examples/ag-ui/haiku/InlineHaikuCard.d.ts +39 -0
  301. package/lib/examples/ag-ui/haiku/InlineHaikuCard.js +117 -0
  302. package/lib/examples/ag-ui/haiku/index.d.ts +11 -0
  303. package/lib/examples/ag-ui/haiku/index.js +15 -0
  304. package/lib/examples/ag-ui/index.d.ts +10 -0
  305. package/lib/examples/ag-ui/index.js +16 -0
  306. package/lib/examples/ag-ui/weather/InlineWeatherCard.d.ts +43 -0
  307. package/lib/examples/ag-ui/weather/InlineWeatherCard.js +180 -0
  308. package/lib/examples/ag-ui/weather/index.d.ts +9 -0
  309. package/lib/examples/ag-ui/weather/index.js +13 -0
  310. package/lib/examples/components/AgentConfiguration.d.ts +50 -0
  311. package/lib/examples/components/AgentConfiguration.js +115 -0
  312. package/lib/examples/components/AgentsDataTable.d.ts +13 -0
  313. package/lib/examples/components/AgentsDataTable.js +74 -0
  314. package/lib/examples/components/FooterMetrics.d.ts +12 -0
  315. package/lib/examples/components/FooterMetrics.js +17 -0
  316. package/lib/examples/components/Header.d.ts +27 -0
  317. package/lib/examples/components/Header.js +294 -0
  318. package/lib/examples/components/HeaderControls.d.ts +11 -0
  319. package/lib/examples/components/HeaderControls.js +24 -0
  320. package/lib/examples/components/LexicalEditor.d.ts +27 -0
  321. package/lib/examples/components/LexicalEditor.js +118 -0
  322. package/lib/examples/components/MainContent.d.ts +19 -0
  323. package/lib/examples/components/MainContent.js +68 -0
  324. package/lib/examples/components/MockFileBrowser.d.ts +12 -0
  325. package/lib/examples/components/MockFileBrowser.js +131 -0
  326. package/lib/examples/components/Rating.d.ts +14 -0
  327. package/lib/examples/components/Rating.js +12 -0
  328. package/lib/examples/components/SessionTabs.d.ts +21 -0
  329. package/lib/examples/components/SessionTabs.js +11 -0
  330. package/lib/examples/components/TimeTravel.d.ts +15 -0
  331. package/lib/examples/components/TimeTravel.js +23 -0
  332. package/lib/examples/components/index.d.ts +11 -0
  333. package/lib/examples/components/index.js +14 -0
  334. package/lib/examples/example-selector.d.ts +22 -0
  335. package/lib/examples/example-selector.js +62 -0
  336. package/lib/examples/index.d.ts +21 -0
  337. package/lib/examples/index.js +25 -0
  338. package/lib/examples/lexical/editorConfig.d.ts +76 -0
  339. package/lib/examples/lexical/editorConfig.js +55 -0
  340. package/lib/examples/lexical/lexical-theme.css +436 -0
  341. package/lib/examples/lexical/theme.d.ts +61 -0
  342. package/lib/examples/lexical/theme.js +72 -0
  343. package/lib/examples/main.d.ts +2 -0
  344. package/lib/examples/main.js +334 -0
  345. package/lib/examples/stores/agents/earthquake-detector.ipynb.json +111 -0
  346. package/lib/examples/stores/agents/earthquake-detector.json +13 -0
  347. package/lib/examples/stores/agents/earthquake-detector.lexical.json +2988 -0
  348. package/lib/examples/stores/agents/sales-forecaster.ipynb.json +111 -0
  349. package/lib/examples/stores/agents/sales-forecaster.json +13 -0
  350. package/lib/examples/stores/agents/sales-forecaster.lexical.json +2988 -0
  351. package/lib/examples/stores/agents/social-post-generator.ipynb.json +111 -0
  352. package/lib/examples/stores/agents/social-post-generator.json +13 -0
  353. package/lib/examples/stores/agents/social-post-generator.lexical.json +2988 -0
  354. package/lib/examples/stores/agents/stock-market.ipynb.json +56 -0
  355. package/lib/examples/stores/agents/stock-market.json +13 -0
  356. package/lib/examples/stores/agents/stock-market.lexical.json +1026 -0
  357. package/lib/examples/stores/examplesStore.d.ts +26 -0
  358. package/lib/examples/stores/examplesStore.js +60 -0
  359. package/lib/examples/stores/notebooks/Empty.ipynb.json +33 -0
  360. package/lib/examples/stores/notebooks/IPyWidgetsExample.ipynb.json +101 -0
  361. package/lib/examples/stores/notebooks/IPyWidgetsExampleWithState.ipynb.json +112 -0
  362. package/lib/examples/stores/notebooks/Lite.ipynb.json +128 -0
  363. package/lib/examples/stores/notebooks/Matplotlib.ipynb.json +137 -0
  364. package/lib/examples/stores/notebooks/NotebookExample1.ipynb.json +126 -0
  365. package/lib/examples/stores/notebooks/NotebookExample2.ipynb.json +48 -0
  366. package/lib/examples/stores/notebooks/NotebookOutputs.ipynb.json +49 -0
  367. package/lib/examples/stores/notebooks/NotebookToCExample.ipynb.json +102 -0
  368. package/lib/examples/stores/notebooks/OutputIPyWidgetsExample.d.ts +145 -0
  369. package/lib/examples/stores/notebooks/OutputIPyWidgetsExample.js +153 -0
  370. package/lib/examples/stores/notebooks/PyGWalker.ipynb.json +55 -0
  371. package/lib/examples/vercel-ai-elements/VercelAiElementsShowcase.d.ts +12 -0
  372. package/lib/examples/vercel-ai-elements/VercelAiElementsShowcase.js +69 -0
  373. package/lib/examples/vercel-ai-elements/components/ArtifactShowcase.d.ts +1 -0
  374. package/lib/examples/vercel-ai-elements/components/ArtifactShowcase.js +85 -0
  375. package/lib/examples/vercel-ai-elements/components/CodeBlockShowcase.d.ts +1 -0
  376. package/lib/examples/vercel-ai-elements/components/CodeBlockShowcase.js +62 -0
  377. package/lib/examples/vercel-ai-elements/components/ConversationShowcase.d.ts +1 -0
  378. package/lib/examples/vercel-ai-elements/components/ConversationShowcase.js +51 -0
  379. package/lib/examples/vercel-ai-elements/components/LoaderShowcase.d.ts +1 -0
  380. package/lib/examples/vercel-ai-elements/components/LoaderShowcase.js +9 -0
  381. package/lib/examples/vercel-ai-elements/components/MessageShowcase.d.ts +1 -0
  382. package/lib/examples/vercel-ai-elements/components/MessageShowcase.js +56 -0
  383. package/lib/examples/vercel-ai-elements/components/ModelSelectorShowcase.d.ts +1 -0
  384. package/lib/examples/vercel-ai-elements/components/ModelSelectorShowcase.js +50 -0
  385. package/lib/examples/vercel-ai-elements/components/PromptInputShowcase.d.ts +1 -0
  386. package/lib/examples/vercel-ai-elements/components/PromptInputShowcase.js +16 -0
  387. package/lib/examples/vercel-ai-elements/components/ReasoningShowcase.d.ts +1 -0
  388. package/lib/examples/vercel-ai-elements/components/ReasoningShowcase.js +72 -0
  389. package/lib/examples/vercel-ai-elements/components/ShimmerShowcase.d.ts +1 -0
  390. package/lib/examples/vercel-ai-elements/components/ShimmerShowcase.js +9 -0
  391. package/lib/examples/vercel-ai-elements/components/SourcesShowcase.d.ts +1 -0
  392. package/lib/examples/vercel-ai-elements/components/SourcesShowcase.js +43 -0
  393. package/lib/examples/vercel-ai-elements/components/SuggestionShowcase.d.ts +1 -0
  394. package/lib/examples/vercel-ai-elements/components/SuggestionShowcase.js +31 -0
  395. package/lib/examples/vercel-ai-elements/components/ToolShowcase.d.ts +1 -0
  396. package/lib/examples/vercel-ai-elements/components/ToolShowcase.js +54 -0
  397. package/lib/examples/vercel-ai-elements/index.d.ts +13 -0
  398. package/lib/examples/vercel-ai-elements/index.js +17 -0
  399. package/lib/examples/vercel-ai-elements/main.d.ts +1 -0
  400. package/lib/examples/vercel-ai-elements/main.js +9 -0
  401. package/lib/examples/vercel-ai-elements/showcase.css +128 -0
  402. package/lib/hooks/index.d.ts +68 -0
  403. package/lib/hooks/index.js +81 -0
  404. package/lib/hooks/useA2A.d.ts +75 -0
  405. package/lib/hooks/useA2A.js +368 -0
  406. package/lib/hooks/useAGUI.d.ts +63 -0
  407. package/lib/hooks/useAGUI.js +162 -0
  408. package/lib/hooks/useAcp.d.ts +121 -0
  409. package/lib/hooks/useAcp.js +459 -0
  410. package/lib/hooks/useAgents.d.ts +13 -0
  411. package/lib/hooks/useAgents.js +71 -0
  412. package/lib/hooks/useChat.d.ts +62 -0
  413. package/lib/hooks/useChat.js +363 -0
  414. package/lib/hooks/useKeyboardShortcuts.d.ts +47 -0
  415. package/lib/hooks/useKeyboardShortcuts.js +153 -0
  416. package/lib/hooks/useMobile.d.ts +1 -0
  417. package/lib/hooks/useMobile.js +19 -0
  418. package/lib/hooks/useNotebookAIAgent.d.ts +8 -0
  419. package/lib/hooks/useNotebookAIAgent.js +56 -0
  420. package/lib/hooks/useToast.d.ts +44 -0
  421. package/lib/hooks/useToast.js +128 -0
  422. package/lib/hooks/useTools.d.ts +107 -0
  423. package/lib/hooks/useTools.js +130 -0
  424. package/lib/hooks/useVercelChat.d.ts +45 -0
  425. package/lib/hooks/useVercelChat.js +62 -0
  426. package/lib/index.css +73 -0
  427. package/lib/index.d.ts +1 -0
  428. package/lib/index.js +5 -0
  429. package/lib/lexical/ChatInlinePlugin.d.ts +21 -0
  430. package/lib/lexical/ChatInlinePlugin.js +379 -0
  431. package/lib/lexical/index.d.ts +6 -0
  432. package/lib/lexical/index.js +10 -0
  433. package/lib/lib/utils.d.ts +2 -0
  434. package/lib/lib/utils.js +9 -0
  435. package/lib/main.d.ts +1 -0
  436. package/lib/main.js +12 -0
  437. package/lib/models/AIAgent.d.ts +17 -0
  438. package/lib/models/AIAgent.js +5 -0
  439. package/lib/models/index.d.ts +1 -0
  440. package/lib/models/index.js +5 -0
  441. package/lib/renderers/a2ui/components/A2UIRenderer.d.ts +7 -0
  442. package/lib/renderers/a2ui/components/A2UIRenderer.js +102 -0
  443. package/lib/renderers/a2ui/components/SurfaceRenderer.d.ts +7 -0
  444. package/lib/renderers/a2ui/components/SurfaceRenderer.js +101 -0
  445. package/lib/renderers/a2ui/components/content/AudioPlayer.d.ts +9 -0
  446. package/lib/renderers/a2ui/components/content/AudioPlayer.js +38 -0
  447. package/lib/renderers/a2ui/components/content/Divider.d.ts +9 -0
  448. package/lib/renderers/a2ui/components/content/Divider.js +35 -0
  449. package/lib/renderers/a2ui/components/content/Icon.d.ts +9 -0
  450. package/lib/renderers/a2ui/components/content/Icon.js +110 -0
  451. package/lib/renderers/a2ui/components/content/Image.d.ts +9 -0
  452. package/lib/renderers/a2ui/components/content/Image.js +61 -0
  453. package/lib/renderers/a2ui/components/content/Text.d.ts +9 -0
  454. package/lib/renderers/a2ui/components/content/Text.js +64 -0
  455. package/lib/renderers/a2ui/components/content/Video.d.ts +9 -0
  456. package/lib/renderers/a2ui/components/content/Video.js +37 -0
  457. package/lib/renderers/a2ui/components/content/index.d.ts +6 -0
  458. package/lib/renderers/a2ui/components/content/index.js +25 -0
  459. package/lib/renderers/a2ui/components/index.d.ts +5 -0
  460. package/lib/renderers/a2ui/components/index.js +24 -0
  461. package/lib/renderers/a2ui/components/interactive/Button.d.ts +11 -0
  462. package/lib/renderers/a2ui/components/interactive/Button.js +71 -0
  463. package/lib/renderers/a2ui/components/interactive/CheckBox.d.ts +9 -0
  464. package/lib/renderers/a2ui/components/interactive/CheckBox.js +48 -0
  465. package/lib/renderers/a2ui/components/interactive/DateTimeInput.d.ts +9 -0
  466. package/lib/renderers/a2ui/components/interactive/DateTimeInput.js +62 -0
  467. package/lib/renderers/a2ui/components/interactive/MultipleChoice.d.ts +9 -0
  468. package/lib/renderers/a2ui/components/interactive/MultipleChoice.js +73 -0
  469. package/lib/renderers/a2ui/components/interactive/Slider.d.ts +9 -0
  470. package/lib/renderers/a2ui/components/interactive/Slider.js +53 -0
  471. package/lib/renderers/a2ui/components/interactive/TextField.d.ts +9 -0
  472. package/lib/renderers/a2ui/components/interactive/TextField.js +72 -0
  473. package/lib/renderers/a2ui/components/interactive/index.d.ts +6 -0
  474. package/lib/renderers/a2ui/components/interactive/index.js +25 -0
  475. package/lib/renderers/a2ui/components/layout/Card.d.ts +11 -0
  476. package/lib/renderers/a2ui/components/layout/Card.js +30 -0
  477. package/lib/renderers/a2ui/components/layout/Column.d.ts +11 -0
  478. package/lib/renderers/a2ui/components/layout/Column.js +65 -0
  479. package/lib/renderers/a2ui/components/layout/List.d.ts +11 -0
  480. package/lib/renderers/a2ui/components/layout/List.js +55 -0
  481. package/lib/renderers/a2ui/components/layout/Modal.d.ts +11 -0
  482. package/lib/renderers/a2ui/components/layout/Modal.js +58 -0
  483. package/lib/renderers/a2ui/components/layout/Row.d.ts +11 -0
  484. package/lib/renderers/a2ui/components/layout/Row.js +65 -0
  485. package/lib/renderers/a2ui/components/layout/Tabs.d.ts +11 -0
  486. package/lib/renderers/a2ui/components/layout/Tabs.js +48 -0
  487. package/lib/renderers/a2ui/components/layout/index.d.ts +6 -0
  488. package/lib/renderers/a2ui/components/layout/index.js +25 -0
  489. package/lib/renderers/a2ui/context/A2UIContext.d.ts +17 -0
  490. package/lib/renderers/a2ui/context/A2UIContext.js +54 -0
  491. package/lib/renderers/a2ui/context/ThemeContext.d.ts +20 -0
  492. package/lib/renderers/a2ui/context/ThemeContext.js +333 -0
  493. package/lib/renderers/a2ui/hooks/useA2UI.d.ts +36 -0
  494. package/lib/renderers/a2ui/hooks/useA2UI.js +62 -0
  495. package/lib/renderers/a2ui/hooks/useDataBinding.d.ts +8 -0
  496. package/lib/renderers/a2ui/hooks/useDataBinding.js +83 -0
  497. package/lib/renderers/a2ui/index.d.ts +9 -0
  498. package/lib/renderers/a2ui/index.js +28 -0
  499. package/lib/renderers/a2ui/lib/utils.d.ts +11 -0
  500. package/lib/renderers/a2ui/lib/utils.js +38 -0
  501. package/lib/renderers/a2ui/types/index.d.ts +17 -0
  502. package/lib/renderers/a2ui/types/index.js +5 -0
  503. package/lib/renderers/index.d.ts +1 -0
  504. package/lib/renderers/index.js +5 -0
  505. package/lib/state/index.d.ts +1 -0
  506. package/lib/state/index.js +5 -0
  507. package/lib/state/substates/AIAgentState.d.ts +11 -0
  508. package/lib/state/substates/AIAgentState.js +42 -0
  509. package/lib/state/substates/index.d.ts +1 -0
  510. package/lib/state/substates/index.js +5 -0
  511. package/lib/stories/Button.d.ts +15 -0
  512. package/lib/stories/Button.js +13 -0
  513. package/lib/stories/Button.stories.d.ts +23 -0
  514. package/lib/stories/Button.stories.js +48 -0
  515. package/lib/stories/Cell.stories.d.ts +12 -0
  516. package/lib/stories/Cell.stories.js +123 -0
  517. package/lib/stories/Header.d.ts +12 -0
  518. package/lib/stories/Header.js +8 -0
  519. package/lib/stories/Header.stories.d.ts +18 -0
  520. package/lib/stories/Header.stories.js +30 -0
  521. package/lib/stories/Page.d.ts +3 -0
  522. package/lib/stories/Page.js +12 -0
  523. package/lib/stories/Page.stories.d.ts +12 -0
  524. package/lib/stories/Page.stories.js +28 -0
  525. package/lib/stories/assets/accessibility.png +0 -0
  526. package/lib/stories/assets/accessibility.svg +1 -0
  527. package/lib/stories/assets/addon-library.png +0 -0
  528. package/lib/stories/assets/assets.png +0 -0
  529. package/lib/stories/assets/context.png +0 -0
  530. package/lib/stories/assets/discord.svg +1 -0
  531. package/lib/stories/assets/docs.png +0 -0
  532. package/lib/stories/assets/figma-plugin.png +0 -0
  533. package/lib/stories/assets/github.svg +1 -0
  534. package/lib/stories/assets/share.png +0 -0
  535. package/lib/stories/assets/styling.png +0 -0
  536. package/lib/stories/assets/testing.png +0 -0
  537. package/lib/stories/assets/theming.png +0 -0
  538. package/lib/stories/assets/tutorials.svg +1 -0
  539. package/lib/stories/assets/youtube.svg +1 -0
  540. package/lib/stories/button.css +35 -0
  541. package/lib/stories/header.css +37 -0
  542. package/lib/stories/page.css +73 -0
  543. package/lib/test-setup.d.ts +1 -0
  544. package/lib/test-setup.js +80 -0
  545. package/lib/tools/adapters/agent-runtimes/AgentRuntimesToolAdapter.d.ts +40 -0
  546. package/lib/tools/adapters/agent-runtimes/AgentRuntimesToolAdapter.js +110 -0
  547. package/lib/tools/adapters/agent-runtimes/index.d.ts +9 -0
  548. package/lib/tools/adapters/agent-runtimes/index.js +13 -0
  549. package/lib/tools/adapters/agent-runtimes/lexicalHooks.d.ts +24 -0
  550. package/lib/tools/adapters/agent-runtimes/lexicalHooks.js +50 -0
  551. package/lib/tools/adapters/agent-runtimes/notebookHooks.d.ts +24 -0
  552. package/lib/tools/adapters/agent-runtimes/notebookHooks.js +51 -0
  553. package/lib/tools/adapters/copilotkit/CopilotKitToolAdapter.d.ts +73 -0
  554. package/lib/tools/adapters/copilotkit/CopilotKitToolAdapter.js +244 -0
  555. package/lib/tools/adapters/copilotkit/index.d.ts +10 -0
  556. package/lib/tools/adapters/copilotkit/index.js +14 -0
  557. package/lib/tools/adapters/copilotkit/lexicalHooks.d.ts +27 -0
  558. package/lib/tools/adapters/copilotkit/lexicalHooks.js +59 -0
  559. package/lib/tools/adapters/copilotkit/notebookHooks.d.ts +27 -0
  560. package/lib/tools/adapters/copilotkit/notebookHooks.js +58 -0
  561. package/lib/tools/adapters/index.d.ts +1 -0
  562. package/lib/tools/adapters/index.js +5 -0
  563. package/lib/tools/index.d.ts +6 -0
  564. package/lib/tools/index.js +18 -0
  565. package/lib/types.d.ts +5 -0
  566. package/lib/types.js +5 -0
  567. package/package.json +327 -0
  568. package/style/animation/Animation.module.css +174 -0
  569. package/style/base.css +204 -0
  570. package/style/index.css +6 -0
  571. package/style/showcase-vercel-ai.css +137 -0
@@ -0,0 +1,2988 @@
1
+ {
2
+ "root": {
3
+ "children": [
4
+ {
5
+ "children": [
6
+ {
7
+ "detail": 0,
8
+ "format": 0,
9
+ "mode": "normal",
10
+ "style": "",
11
+ "text": "Earthquake Detector",
12
+ "type": "text",
13
+ "version": 1
14
+ }
15
+ ],
16
+ "direction": "ltr",
17
+ "format": "",
18
+ "indent": 0,
19
+ "type": "heading",
20
+ "version": 1,
21
+ "tag": "h1"
22
+ },
23
+ {
24
+ "children": [
25
+ {
26
+ "detail": 0,
27
+ "format": 0,
28
+ "mode": "normal",
29
+ "style": "",
30
+ "text": "Imports",
31
+ "type": "text",
32
+ "version": 1
33
+ }
34
+ ],
35
+ "direction": null,
36
+ "format": "",
37
+ "indent": 0,
38
+ "type": "heading",
39
+ "version": 1,
40
+ "tag": "h2"
41
+ },
42
+ {
43
+ "children": [
44
+ {
45
+ "detail": 0,
46
+ "format": 0,
47
+ "mode": "normal",
48
+ "style": "",
49
+ "text": "from",
50
+ "type": "jupyter-input-highlight",
51
+ "version": 1,
52
+ "highlightType": "keyword"
53
+ },
54
+ {
55
+ "detail": 0,
56
+ "format": 0,
57
+ "mode": "normal",
58
+ "style": "",
59
+ "text": " fastai",
60
+ "type": "jupyter-input-highlight",
61
+ "version": 1
62
+ },
63
+ {
64
+ "detail": 0,
65
+ "format": 0,
66
+ "mode": "normal",
67
+ "style": "",
68
+ "text": ".",
69
+ "type": "jupyter-input-highlight",
70
+ "version": 1,
71
+ "highlightType": "punctuation"
72
+ },
73
+ {
74
+ "detail": 0,
75
+ "format": 0,
76
+ "mode": "normal",
77
+ "style": "",
78
+ "text": "vision",
79
+ "type": "jupyter-input-highlight",
80
+ "version": 1
81
+ },
82
+ {
83
+ "detail": 0,
84
+ "format": 0,
85
+ "mode": "normal",
86
+ "style": "",
87
+ "text": ".",
88
+ "type": "jupyter-input-highlight",
89
+ "version": 1,
90
+ "highlightType": "punctuation"
91
+ },
92
+ {
93
+ "detail": 0,
94
+ "format": 0,
95
+ "mode": "normal",
96
+ "style": "",
97
+ "text": "all",
98
+ "type": "jupyter-input-highlight",
99
+ "version": 1,
100
+ "highlightType": "builtin"
101
+ },
102
+ {
103
+ "detail": 0,
104
+ "format": 0,
105
+ "mode": "normal",
106
+ "style": "",
107
+ "text": " ",
108
+ "type": "jupyter-input-highlight",
109
+ "version": 1
110
+ },
111
+ {
112
+ "detail": 0,
113
+ "format": 0,
114
+ "mode": "normal",
115
+ "style": "",
116
+ "text": "import",
117
+ "type": "jupyter-input-highlight",
118
+ "version": 1,
119
+ "highlightType": "keyword"
120
+ },
121
+ {
122
+ "detail": 0,
123
+ "format": 0,
124
+ "mode": "normal",
125
+ "style": "",
126
+ "text": " ",
127
+ "type": "jupyter-input-highlight",
128
+ "version": 1
129
+ },
130
+ {
131
+ "detail": 0,
132
+ "format": 0,
133
+ "mode": "normal",
134
+ "style": "",
135
+ "text": "*",
136
+ "type": "jupyter-input-highlight",
137
+ "version": 1,
138
+ "highlightType": "operator"
139
+ },
140
+ {
141
+ "type": "linebreak",
142
+ "version": 1
143
+ },
144
+ {
145
+ "detail": 0,
146
+ "format": 0,
147
+ "mode": "normal",
148
+ "style": "",
149
+ "text": "import",
150
+ "type": "jupyter-input-highlight",
151
+ "version": 1,
152
+ "highlightType": "keyword"
153
+ },
154
+ {
155
+ "detail": 0,
156
+ "format": 0,
157
+ "mode": "normal",
158
+ "style": "",
159
+ "text": " geopandas ",
160
+ "type": "jupyter-input-highlight",
161
+ "version": 1
162
+ },
163
+ {
164
+ "detail": 0,
165
+ "format": 0,
166
+ "mode": "normal",
167
+ "style": "",
168
+ "text": "as",
169
+ "type": "jupyter-input-highlight",
170
+ "version": 1,
171
+ "highlightType": "keyword"
172
+ },
173
+ {
174
+ "detail": 0,
175
+ "format": 0,
176
+ "mode": "normal",
177
+ "style": "",
178
+ "text": " gpd",
179
+ "type": "jupyter-input-highlight",
180
+ "version": 1
181
+ },
182
+ {
183
+ "type": "linebreak",
184
+ "version": 1
185
+ },
186
+ {
187
+ "detail": 0,
188
+ "format": 0,
189
+ "mode": "normal",
190
+ "style": "",
191
+ "text": "from",
192
+ "type": "jupyter-input-highlight",
193
+ "version": 1,
194
+ "highlightType": "keyword"
195
+ },
196
+ {
197
+ "detail": 0,
198
+ "format": 0,
199
+ "mode": "normal",
200
+ "style": "",
201
+ "text": " tqdm ",
202
+ "type": "jupyter-input-highlight",
203
+ "version": 1
204
+ },
205
+ {
206
+ "detail": 0,
207
+ "format": 0,
208
+ "mode": "normal",
209
+ "style": "",
210
+ "text": "import",
211
+ "type": "jupyter-input-highlight",
212
+ "version": 1,
213
+ "highlightType": "keyword"
214
+ },
215
+ {
216
+ "detail": 0,
217
+ "format": 0,
218
+ "mode": "normal",
219
+ "style": "",
220
+ "text": " tqdm",
221
+ "type": "jupyter-input-highlight",
222
+ "version": 1
223
+ },
224
+ {
225
+ "type": "linebreak",
226
+ "version": 1
227
+ },
228
+ {
229
+ "detail": 0,
230
+ "format": 0,
231
+ "mode": "normal",
232
+ "style": "",
233
+ "text": "import",
234
+ "type": "jupyter-input-highlight",
235
+ "version": 1,
236
+ "highlightType": "keyword"
237
+ },
238
+ {
239
+ "detail": 0,
240
+ "format": 0,
241
+ "mode": "normal",
242
+ "style": "",
243
+ "text": " matplotlib",
244
+ "type": "jupyter-input-highlight",
245
+ "version": 1
246
+ },
247
+ {
248
+ "detail": 0,
249
+ "format": 0,
250
+ "mode": "normal",
251
+ "style": "",
252
+ "text": ".",
253
+ "type": "jupyter-input-highlight",
254
+ "version": 1,
255
+ "highlightType": "punctuation"
256
+ },
257
+ {
258
+ "detail": 0,
259
+ "format": 0,
260
+ "mode": "normal",
261
+ "style": "",
262
+ "text": "pyplot ",
263
+ "type": "jupyter-input-highlight",
264
+ "version": 1
265
+ },
266
+ {
267
+ "detail": 0,
268
+ "format": 0,
269
+ "mode": "normal",
270
+ "style": "",
271
+ "text": "as",
272
+ "type": "jupyter-input-highlight",
273
+ "version": 1,
274
+ "highlightType": "keyword"
275
+ },
276
+ {
277
+ "detail": 0,
278
+ "format": 0,
279
+ "mode": "normal",
280
+ "style": "",
281
+ "text": " plt",
282
+ "type": "jupyter-input-highlight",
283
+ "version": 1
284
+ },
285
+ {
286
+ "type": "linebreak",
287
+ "version": 1
288
+ },
289
+ {
290
+ "detail": 0,
291
+ "format": 0,
292
+ "mode": "normal",
293
+ "style": "",
294
+ "text": "from",
295
+ "type": "jupyter-input-highlight",
296
+ "version": 1,
297
+ "highlightType": "keyword"
298
+ },
299
+ {
300
+ "detail": 0,
301
+ "format": 0,
302
+ "mode": "normal",
303
+ "style": "",
304
+ "text": " collections ",
305
+ "type": "jupyter-input-highlight",
306
+ "version": 1
307
+ },
308
+ {
309
+ "detail": 0,
310
+ "format": 0,
311
+ "mode": "normal",
312
+ "style": "",
313
+ "text": "import",
314
+ "type": "jupyter-input-highlight",
315
+ "version": 1,
316
+ "highlightType": "keyword"
317
+ },
318
+ {
319
+ "detail": 0,
320
+ "format": 0,
321
+ "mode": "normal",
322
+ "style": "",
323
+ "text": " Counter",
324
+ "type": "jupyter-input-highlight",
325
+ "version": 1
326
+ }
327
+ ],
328
+ "direction": null,
329
+ "format": "",
330
+ "indent": 0,
331
+ "type": "jupyter-input",
332
+ "version": 1,
333
+ "language": "python",
334
+ "jupyterInputNodeUuid": "2f462cfe-5836-41b6-a61b-2bc4d45c701f"
335
+ },
336
+ {
337
+ "type": "jupyter-output",
338
+ "source": "",
339
+ "outputs": [],
340
+ "jupyterInputNodeUuid": "2f462cfe-5836-41b6-a61b-2bc4d45c701f",
341
+ "jupyterOutputNodeUuid": "e1859f34-507b-4555-9663-fc89696b85bc",
342
+ "version": 1
343
+ },
344
+ {
345
+ "children": [
346
+ {
347
+ "detail": 0,
348
+ "format": 0,
349
+ "mode": "normal",
350
+ "style": "",
351
+ "text": "Training",
352
+ "type": "text",
353
+ "version": 1
354
+ }
355
+ ],
356
+ "direction": null,
357
+ "format": "",
358
+ "indent": 0,
359
+ "type": "heading",
360
+ "version": 1,
361
+ "tag": "h2"
362
+ },
363
+ {
364
+ "children": [
365
+ {
366
+ "detail": 0,
367
+ "format": 0,
368
+ "mode": "normal",
369
+ "style": "",
370
+ "text": "dls ",
371
+ "type": "jupyter-input-highlight",
372
+ "version": 1
373
+ },
374
+ {
375
+ "detail": 0,
376
+ "format": 0,
377
+ "mode": "normal",
378
+ "style": "",
379
+ "text": "=",
380
+ "type": "jupyter-input-highlight",
381
+ "version": 1,
382
+ "highlightType": "operator"
383
+ },
384
+ {
385
+ "detail": 0,
386
+ "format": 0,
387
+ "mode": "normal",
388
+ "style": "",
389
+ "text": " ImageDataLoaders",
390
+ "type": "jupyter-input-highlight",
391
+ "version": 1
392
+ },
393
+ {
394
+ "detail": 0,
395
+ "format": 0,
396
+ "mode": "normal",
397
+ "style": "",
398
+ "text": ".",
399
+ "type": "jupyter-input-highlight",
400
+ "version": 1,
401
+ "highlightType": "punctuation"
402
+ },
403
+ {
404
+ "detail": 0,
405
+ "format": 0,
406
+ "mode": "normal",
407
+ "style": "",
408
+ "text": "from_name_func",
409
+ "type": "jupyter-input-highlight",
410
+ "version": 1
411
+ },
412
+ {
413
+ "detail": 0,
414
+ "format": 0,
415
+ "mode": "normal",
416
+ "style": "",
417
+ "text": "(",
418
+ "type": "jupyter-input-highlight",
419
+ "version": 1,
420
+ "highlightType": "punctuation"
421
+ },
422
+ {
423
+ "type": "linebreak",
424
+ "version": 1
425
+ },
426
+ {
427
+ "detail": 0,
428
+ "format": 0,
429
+ "mode": "normal",
430
+ "style": "",
431
+ "text": " path",
432
+ "type": "jupyter-input-highlight",
433
+ "version": 1
434
+ },
435
+ {
436
+ "detail": 0,
437
+ "format": 0,
438
+ "mode": "normal",
439
+ "style": "",
440
+ "text": "=",
441
+ "type": "jupyter-input-highlight",
442
+ "version": 1,
443
+ "highlightType": "operator"
444
+ },
445
+ {
446
+ "detail": 0,
447
+ "format": 0,
448
+ "mode": "normal",
449
+ "style": "",
450
+ "text": "\"/home/jovyan/home/training7\"",
451
+ "type": "jupyter-input-highlight",
452
+ "version": 1,
453
+ "highlightType": "string"
454
+ },
455
+ {
456
+ "detail": 0,
457
+ "format": 0,
458
+ "mode": "normal",
459
+ "style": "",
460
+ "text": ",",
461
+ "type": "jupyter-input-highlight",
462
+ "version": 1,
463
+ "highlightType": "punctuation"
464
+ },
465
+ {
466
+ "type": "linebreak",
467
+ "version": 1
468
+ },
469
+ {
470
+ "detail": 0,
471
+ "format": 0,
472
+ "mode": "normal",
473
+ "style": "",
474
+ "text": " fnames",
475
+ "type": "jupyter-input-highlight",
476
+ "version": 1
477
+ },
478
+ {
479
+ "detail": 0,
480
+ "format": 0,
481
+ "mode": "normal",
482
+ "style": "",
483
+ "text": "=",
484
+ "type": "jupyter-input-highlight",
485
+ "version": 1,
486
+ "highlightType": "operator"
487
+ },
488
+ {
489
+ "detail": 0,
490
+ "format": 0,
491
+ "mode": "normal",
492
+ "style": "",
493
+ "text": "files",
494
+ "type": "jupyter-input-highlight",
495
+ "version": 1
496
+ },
497
+ {
498
+ "detail": 0,
499
+ "format": 0,
500
+ "mode": "normal",
501
+ "style": "",
502
+ "text": ",",
503
+ "type": "jupyter-input-highlight",
504
+ "version": 1,
505
+ "highlightType": "punctuation"
506
+ },
507
+ {
508
+ "detail": 0,
509
+ "format": 0,
510
+ "mode": "normal",
511
+ "style": "",
512
+ "text": " ",
513
+ "type": "jupyter-input-highlight",
514
+ "version": 1
515
+ },
516
+ {
517
+ "type": "linebreak",
518
+ "version": 1
519
+ },
520
+ {
521
+ "detail": 0,
522
+ "format": 0,
523
+ "mode": "normal",
524
+ "style": "",
525
+ "text": " label_func",
526
+ "type": "jupyter-input-highlight",
527
+ "version": 1
528
+ },
529
+ {
530
+ "detail": 0,
531
+ "format": 0,
532
+ "mode": "normal",
533
+ "style": "",
534
+ "text": "=",
535
+ "type": "jupyter-input-highlight",
536
+ "version": 1,
537
+ "highlightType": "operator"
538
+ },
539
+ {
540
+ "detail": 0,
541
+ "format": 0,
542
+ "mode": "normal",
543
+ "style": "",
544
+ "text": "label_func",
545
+ "type": "jupyter-input-highlight",
546
+ "version": 1
547
+ },
548
+ {
549
+ "detail": 0,
550
+ "format": 0,
551
+ "mode": "normal",
552
+ "style": "",
553
+ "text": ",",
554
+ "type": "jupyter-input-highlight",
555
+ "version": 1,
556
+ "highlightType": "punctuation"
557
+ },
558
+ {
559
+ "detail": 0,
560
+ "format": 0,
561
+ "mode": "normal",
562
+ "style": "",
563
+ "text": " ",
564
+ "type": "jupyter-input-highlight",
565
+ "version": 1
566
+ },
567
+ {
568
+ "type": "linebreak",
569
+ "version": 1
570
+ },
571
+ {
572
+ "detail": 0,
573
+ "format": 0,
574
+ "mode": "normal",
575
+ "style": "",
576
+ "text": " item_tfms",
577
+ "type": "jupyter-input-highlight",
578
+ "version": 1
579
+ },
580
+ {
581
+ "detail": 0,
582
+ "format": 0,
583
+ "mode": "normal",
584
+ "style": "",
585
+ "text": "=",
586
+ "type": "jupyter-input-highlight",
587
+ "version": 1,
588
+ "highlightType": "operator"
589
+ },
590
+ {
591
+ "detail": 0,
592
+ "format": 0,
593
+ "mode": "normal",
594
+ "style": "",
595
+ "text": "Resize",
596
+ "type": "jupyter-input-highlight",
597
+ "version": 1
598
+ },
599
+ {
600
+ "detail": 0,
601
+ "format": 0,
602
+ "mode": "normal",
603
+ "style": "",
604
+ "text": "(",
605
+ "type": "jupyter-input-highlight",
606
+ "version": 1,
607
+ "highlightType": "punctuation"
608
+ },
609
+ {
610
+ "detail": 0,
611
+ "format": 0,
612
+ "mode": "normal",
613
+ "style": "",
614
+ "text": "224",
615
+ "type": "jupyter-input-highlight",
616
+ "version": 1,
617
+ "highlightType": "number"
618
+ },
619
+ {
620
+ "detail": 0,
621
+ "format": 0,
622
+ "mode": "normal",
623
+ "style": "",
624
+ "text": ")",
625
+ "type": "jupyter-input-highlight",
626
+ "version": 1,
627
+ "highlightType": "punctuation"
628
+ },
629
+ {
630
+ "detail": 0,
631
+ "format": 0,
632
+ "mode": "normal",
633
+ "style": "",
634
+ "text": ",",
635
+ "type": "jupyter-input-highlight",
636
+ "version": 1,
637
+ "highlightType": "punctuation"
638
+ },
639
+ {
640
+ "detail": 0,
641
+ "format": 0,
642
+ "mode": "normal",
643
+ "style": "",
644
+ "text": " ",
645
+ "type": "jupyter-input-highlight",
646
+ "version": 1
647
+ },
648
+ {
649
+ "type": "linebreak",
650
+ "version": 1
651
+ },
652
+ {
653
+ "detail": 0,
654
+ "format": 0,
655
+ "mode": "normal",
656
+ "style": "",
657
+ "text": " batch_tfms",
658
+ "type": "jupyter-input-highlight",
659
+ "version": 1
660
+ },
661
+ {
662
+ "detail": 0,
663
+ "format": 0,
664
+ "mode": "normal",
665
+ "style": "",
666
+ "text": "=",
667
+ "type": "jupyter-input-highlight",
668
+ "version": 1,
669
+ "highlightType": "operator"
670
+ },
671
+ {
672
+ "detail": 0,
673
+ "format": 0,
674
+ "mode": "normal",
675
+ "style": "",
676
+ "text": "[",
677
+ "type": "jupyter-input-highlight",
678
+ "version": 1,
679
+ "highlightType": "punctuation"
680
+ },
681
+ {
682
+ "detail": 0,
683
+ "format": 0,
684
+ "mode": "normal",
685
+ "style": "",
686
+ "text": "*",
687
+ "type": "jupyter-input-highlight",
688
+ "version": 1,
689
+ "highlightType": "operator"
690
+ },
691
+ {
692
+ "detail": 0,
693
+ "format": 0,
694
+ "mode": "normal",
695
+ "style": "",
696
+ "text": "aug_transforms",
697
+ "type": "jupyter-input-highlight",
698
+ "version": 1
699
+ },
700
+ {
701
+ "detail": 0,
702
+ "format": 0,
703
+ "mode": "normal",
704
+ "style": "",
705
+ "text": "(",
706
+ "type": "jupyter-input-highlight",
707
+ "version": 1,
708
+ "highlightType": "punctuation"
709
+ },
710
+ {
711
+ "detail": 0,
712
+ "format": 0,
713
+ "mode": "normal",
714
+ "style": "",
715
+ "text": "xtra_tfms",
716
+ "type": "jupyter-input-highlight",
717
+ "version": 1
718
+ },
719
+ {
720
+ "detail": 0,
721
+ "format": 0,
722
+ "mode": "normal",
723
+ "style": "",
724
+ "text": "=",
725
+ "type": "jupyter-input-highlight",
726
+ "version": 1,
727
+ "highlightType": "operator"
728
+ },
729
+ {
730
+ "detail": 0,
731
+ "format": 0,
732
+ "mode": "normal",
733
+ "style": "",
734
+ "text": "None",
735
+ "type": "jupyter-input-highlight",
736
+ "version": 1,
737
+ "highlightType": "boolean"
738
+ },
739
+ {
740
+ "detail": 0,
741
+ "format": 0,
742
+ "mode": "normal",
743
+ "style": "",
744
+ "text": ")",
745
+ "type": "jupyter-input-highlight",
746
+ "version": 1,
747
+ "highlightType": "punctuation"
748
+ },
749
+ {
750
+ "detail": 0,
751
+ "format": 0,
752
+ "mode": "normal",
753
+ "style": "",
754
+ "text": "]",
755
+ "type": "jupyter-input-highlight",
756
+ "version": 1,
757
+ "highlightType": "punctuation"
758
+ },
759
+ {
760
+ "detail": 0,
761
+ "format": 0,
762
+ "mode": "normal",
763
+ "style": "",
764
+ "text": ",",
765
+ "type": "jupyter-input-highlight",
766
+ "version": 1,
767
+ "highlightType": "punctuation"
768
+ },
769
+ {
770
+ "detail": 0,
771
+ "format": 0,
772
+ "mode": "normal",
773
+ "style": "",
774
+ "text": " ",
775
+ "type": "jupyter-input-highlight",
776
+ "version": 1
777
+ },
778
+ {
779
+ "type": "linebreak",
780
+ "version": 1
781
+ },
782
+ {
783
+ "detail": 0,
784
+ "format": 0,
785
+ "mode": "normal",
786
+ "style": "",
787
+ "text": " splitter",
788
+ "type": "jupyter-input-highlight",
789
+ "version": 1
790
+ },
791
+ {
792
+ "detail": 0,
793
+ "format": 0,
794
+ "mode": "normal",
795
+ "style": "",
796
+ "text": "=",
797
+ "type": "jupyter-input-highlight",
798
+ "version": 1,
799
+ "highlightType": "operator"
800
+ },
801
+ {
802
+ "detail": 0,
803
+ "format": 0,
804
+ "mode": "normal",
805
+ "style": "",
806
+ "text": "my_splitter",
807
+ "type": "jupyter-input-highlight",
808
+ "version": 1
809
+ },
810
+ {
811
+ "detail": 0,
812
+ "format": 0,
813
+ "mode": "normal",
814
+ "style": "",
815
+ "text": ")",
816
+ "type": "jupyter-input-highlight",
817
+ "version": 1,
818
+ "highlightType": "punctuation"
819
+ }
820
+ ],
821
+ "direction": null,
822
+ "format": "",
823
+ "indent": 0,
824
+ "type": "jupyter-input",
825
+ "version": 1,
826
+ "language": "python",
827
+ "jupyterInputNodeUuid": "bb2dc32b-0b0c-4a37-b1bf-85de7649fbbe"
828
+ },
829
+ {
830
+ "type": "jupyter-output",
831
+ "source": "",
832
+ "outputs": [],
833
+ "jupyterInputNodeUuid": "bb2dc32b-0b0c-4a37-b1bf-85de7649fbbe",
834
+ "jupyterOutputNodeUuid": "efd918a4-0ec4-4ad3-b55f-3a29d34a4eb4",
835
+ "version": 1
836
+ },
837
+ {
838
+ "children": [
839
+ {
840
+ "detail": 0,
841
+ "format": 0,
842
+ "mode": "normal",
843
+ "style": "",
844
+ "text": "# Get labels for training and validation",
845
+ "type": "jupyter-input-highlight",
846
+ "version": 1,
847
+ "highlightType": "comment"
848
+ },
849
+ {
850
+ "type": "linebreak",
851
+ "version": 1
852
+ },
853
+ {
854
+ "detail": 0,
855
+ "format": 0,
856
+ "mode": "normal",
857
+ "style": "",
858
+ "text": "train_labels ",
859
+ "type": "jupyter-input-highlight",
860
+ "version": 1
861
+ },
862
+ {
863
+ "detail": 0,
864
+ "format": 0,
865
+ "mode": "normal",
866
+ "style": "",
867
+ "text": "=",
868
+ "type": "jupyter-input-highlight",
869
+ "version": 1,
870
+ "highlightType": "operator"
871
+ },
872
+ {
873
+ "detail": 0,
874
+ "format": 0,
875
+ "mode": "normal",
876
+ "style": "",
877
+ "text": " ",
878
+ "type": "jupyter-input-highlight",
879
+ "version": 1
880
+ },
881
+ {
882
+ "detail": 0,
883
+ "format": 0,
884
+ "mode": "normal",
885
+ "style": "",
886
+ "text": "[",
887
+ "type": "jupyter-input-highlight",
888
+ "version": 1,
889
+ "highlightType": "punctuation"
890
+ },
891
+ {
892
+ "detail": 0,
893
+ "format": 0,
894
+ "mode": "normal",
895
+ "style": "",
896
+ "text": "dls",
897
+ "type": "jupyter-input-highlight",
898
+ "version": 1
899
+ },
900
+ {
901
+ "detail": 0,
902
+ "format": 0,
903
+ "mode": "normal",
904
+ "style": "",
905
+ "text": ".",
906
+ "type": "jupyter-input-highlight",
907
+ "version": 1,
908
+ "highlightType": "punctuation"
909
+ },
910
+ {
911
+ "detail": 0,
912
+ "format": 0,
913
+ "mode": "normal",
914
+ "style": "",
915
+ "text": "vocab",
916
+ "type": "jupyter-input-highlight",
917
+ "version": 1
918
+ },
919
+ {
920
+ "detail": 0,
921
+ "format": 0,
922
+ "mode": "normal",
923
+ "style": "",
924
+ "text": "[",
925
+ "type": "jupyter-input-highlight",
926
+ "version": 1,
927
+ "highlightType": "punctuation"
928
+ },
929
+ {
930
+ "detail": 0,
931
+ "format": 0,
932
+ "mode": "normal",
933
+ "style": "",
934
+ "text": "o",
935
+ "type": "jupyter-input-highlight",
936
+ "version": 1
937
+ },
938
+ {
939
+ "detail": 0,
940
+ "format": 0,
941
+ "mode": "normal",
942
+ "style": "",
943
+ "text": "[",
944
+ "type": "jupyter-input-highlight",
945
+ "version": 1,
946
+ "highlightType": "punctuation"
947
+ },
948
+ {
949
+ "detail": 0,
950
+ "format": 0,
951
+ "mode": "normal",
952
+ "style": "",
953
+ "text": "1",
954
+ "type": "jupyter-input-highlight",
955
+ "version": 1,
956
+ "highlightType": "number"
957
+ },
958
+ {
959
+ "detail": 0,
960
+ "format": 0,
961
+ "mode": "normal",
962
+ "style": "",
963
+ "text": "]",
964
+ "type": "jupyter-input-highlight",
965
+ "version": 1,
966
+ "highlightType": "punctuation"
967
+ },
968
+ {
969
+ "detail": 0,
970
+ "format": 0,
971
+ "mode": "normal",
972
+ "style": "",
973
+ "text": "]",
974
+ "type": "jupyter-input-highlight",
975
+ "version": 1,
976
+ "highlightType": "punctuation"
977
+ },
978
+ {
979
+ "detail": 0,
980
+ "format": 0,
981
+ "mode": "normal",
982
+ "style": "",
983
+ "text": " ",
984
+ "type": "jupyter-input-highlight",
985
+ "version": 1
986
+ },
987
+ {
988
+ "detail": 0,
989
+ "format": 0,
990
+ "mode": "normal",
991
+ "style": "",
992
+ "text": "for",
993
+ "type": "jupyter-input-highlight",
994
+ "version": 1,
995
+ "highlightType": "keyword"
996
+ },
997
+ {
998
+ "detail": 0,
999
+ "format": 0,
1000
+ "mode": "normal",
1001
+ "style": "",
1002
+ "text": " o ",
1003
+ "type": "jupyter-input-highlight",
1004
+ "version": 1
1005
+ },
1006
+ {
1007
+ "detail": 0,
1008
+ "format": 0,
1009
+ "mode": "normal",
1010
+ "style": "",
1011
+ "text": "in",
1012
+ "type": "jupyter-input-highlight",
1013
+ "version": 1,
1014
+ "highlightType": "keyword"
1015
+ },
1016
+ {
1017
+ "detail": 0,
1018
+ "format": 0,
1019
+ "mode": "normal",
1020
+ "style": "",
1021
+ "text": " dls",
1022
+ "type": "jupyter-input-highlight",
1023
+ "version": 1
1024
+ },
1025
+ {
1026
+ "detail": 0,
1027
+ "format": 0,
1028
+ "mode": "normal",
1029
+ "style": "",
1030
+ "text": ".",
1031
+ "type": "jupyter-input-highlight",
1032
+ "version": 1,
1033
+ "highlightType": "punctuation"
1034
+ },
1035
+ {
1036
+ "detail": 0,
1037
+ "format": 0,
1038
+ "mode": "normal",
1039
+ "style": "",
1040
+ "text": "train_ds",
1041
+ "type": "jupyter-input-highlight",
1042
+ "version": 1
1043
+ },
1044
+ {
1045
+ "detail": 0,
1046
+ "format": 0,
1047
+ "mode": "normal",
1048
+ "style": "",
1049
+ "text": "]",
1050
+ "type": "jupyter-input-highlight",
1051
+ "version": 1,
1052
+ "highlightType": "punctuation"
1053
+ },
1054
+ {
1055
+ "type": "linebreak",
1056
+ "version": 1
1057
+ },
1058
+ {
1059
+ "detail": 0,
1060
+ "format": 0,
1061
+ "mode": "normal",
1062
+ "style": "",
1063
+ "text": "valid_labels ",
1064
+ "type": "jupyter-input-highlight",
1065
+ "version": 1
1066
+ },
1067
+ {
1068
+ "detail": 0,
1069
+ "format": 0,
1070
+ "mode": "normal",
1071
+ "style": "",
1072
+ "text": "=",
1073
+ "type": "jupyter-input-highlight",
1074
+ "version": 1,
1075
+ "highlightType": "operator"
1076
+ },
1077
+ {
1078
+ "detail": 0,
1079
+ "format": 0,
1080
+ "mode": "normal",
1081
+ "style": "",
1082
+ "text": " ",
1083
+ "type": "jupyter-input-highlight",
1084
+ "version": 1
1085
+ },
1086
+ {
1087
+ "detail": 0,
1088
+ "format": 0,
1089
+ "mode": "normal",
1090
+ "style": "",
1091
+ "text": "[",
1092
+ "type": "jupyter-input-highlight",
1093
+ "version": 1,
1094
+ "highlightType": "punctuation"
1095
+ },
1096
+ {
1097
+ "detail": 0,
1098
+ "format": 0,
1099
+ "mode": "normal",
1100
+ "style": "",
1101
+ "text": "dls",
1102
+ "type": "jupyter-input-highlight",
1103
+ "version": 1
1104
+ },
1105
+ {
1106
+ "detail": 0,
1107
+ "format": 0,
1108
+ "mode": "normal",
1109
+ "style": "",
1110
+ "text": ".",
1111
+ "type": "jupyter-input-highlight",
1112
+ "version": 1,
1113
+ "highlightType": "punctuation"
1114
+ },
1115
+ {
1116
+ "detail": 0,
1117
+ "format": 0,
1118
+ "mode": "normal",
1119
+ "style": "",
1120
+ "text": "vocab",
1121
+ "type": "jupyter-input-highlight",
1122
+ "version": 1
1123
+ },
1124
+ {
1125
+ "detail": 0,
1126
+ "format": 0,
1127
+ "mode": "normal",
1128
+ "style": "",
1129
+ "text": "[",
1130
+ "type": "jupyter-input-highlight",
1131
+ "version": 1,
1132
+ "highlightType": "punctuation"
1133
+ },
1134
+ {
1135
+ "detail": 0,
1136
+ "format": 0,
1137
+ "mode": "normal",
1138
+ "style": "",
1139
+ "text": "o",
1140
+ "type": "jupyter-input-highlight",
1141
+ "version": 1
1142
+ },
1143
+ {
1144
+ "detail": 0,
1145
+ "format": 0,
1146
+ "mode": "normal",
1147
+ "style": "",
1148
+ "text": "[",
1149
+ "type": "jupyter-input-highlight",
1150
+ "version": 1,
1151
+ "highlightType": "punctuation"
1152
+ },
1153
+ {
1154
+ "detail": 0,
1155
+ "format": 0,
1156
+ "mode": "normal",
1157
+ "style": "",
1158
+ "text": "1",
1159
+ "type": "jupyter-input-highlight",
1160
+ "version": 1,
1161
+ "highlightType": "number"
1162
+ },
1163
+ {
1164
+ "detail": 0,
1165
+ "format": 0,
1166
+ "mode": "normal",
1167
+ "style": "",
1168
+ "text": "]",
1169
+ "type": "jupyter-input-highlight",
1170
+ "version": 1,
1171
+ "highlightType": "punctuation"
1172
+ },
1173
+ {
1174
+ "detail": 0,
1175
+ "format": 0,
1176
+ "mode": "normal",
1177
+ "style": "",
1178
+ "text": "]",
1179
+ "type": "jupyter-input-highlight",
1180
+ "version": 1,
1181
+ "highlightType": "punctuation"
1182
+ },
1183
+ {
1184
+ "detail": 0,
1185
+ "format": 0,
1186
+ "mode": "normal",
1187
+ "style": "",
1188
+ "text": " ",
1189
+ "type": "jupyter-input-highlight",
1190
+ "version": 1
1191
+ },
1192
+ {
1193
+ "detail": 0,
1194
+ "format": 0,
1195
+ "mode": "normal",
1196
+ "style": "",
1197
+ "text": "for",
1198
+ "type": "jupyter-input-highlight",
1199
+ "version": 1,
1200
+ "highlightType": "keyword"
1201
+ },
1202
+ {
1203
+ "detail": 0,
1204
+ "format": 0,
1205
+ "mode": "normal",
1206
+ "style": "",
1207
+ "text": " o ",
1208
+ "type": "jupyter-input-highlight",
1209
+ "version": 1
1210
+ },
1211
+ {
1212
+ "detail": 0,
1213
+ "format": 0,
1214
+ "mode": "normal",
1215
+ "style": "",
1216
+ "text": "in",
1217
+ "type": "jupyter-input-highlight",
1218
+ "version": 1,
1219
+ "highlightType": "keyword"
1220
+ },
1221
+ {
1222
+ "detail": 0,
1223
+ "format": 0,
1224
+ "mode": "normal",
1225
+ "style": "",
1226
+ "text": " dls",
1227
+ "type": "jupyter-input-highlight",
1228
+ "version": 1
1229
+ },
1230
+ {
1231
+ "detail": 0,
1232
+ "format": 0,
1233
+ "mode": "normal",
1234
+ "style": "",
1235
+ "text": ".",
1236
+ "type": "jupyter-input-highlight",
1237
+ "version": 1,
1238
+ "highlightType": "punctuation"
1239
+ },
1240
+ {
1241
+ "detail": 0,
1242
+ "format": 0,
1243
+ "mode": "normal",
1244
+ "style": "",
1245
+ "text": "valid_ds",
1246
+ "type": "jupyter-input-highlight",
1247
+ "version": 1
1248
+ },
1249
+ {
1250
+ "detail": 0,
1251
+ "format": 0,
1252
+ "mode": "normal",
1253
+ "style": "",
1254
+ "text": "]",
1255
+ "type": "jupyter-input-highlight",
1256
+ "version": 1,
1257
+ "highlightType": "punctuation"
1258
+ },
1259
+ {
1260
+ "type": "linebreak",
1261
+ "version": 1
1262
+ },
1263
+ {
1264
+ "type": "linebreak",
1265
+ "version": 1
1266
+ },
1267
+ {
1268
+ "detail": 0,
1269
+ "format": 0,
1270
+ "mode": "normal",
1271
+ "style": "",
1272
+ "text": "# Count occurrences",
1273
+ "type": "jupyter-input-highlight",
1274
+ "version": 1,
1275
+ "highlightType": "comment"
1276
+ },
1277
+ {
1278
+ "type": "linebreak",
1279
+ "version": 1
1280
+ },
1281
+ {
1282
+ "detail": 0,
1283
+ "format": 0,
1284
+ "mode": "normal",
1285
+ "style": "",
1286
+ "text": "train_counts ",
1287
+ "type": "jupyter-input-highlight",
1288
+ "version": 1
1289
+ },
1290
+ {
1291
+ "detail": 0,
1292
+ "format": 0,
1293
+ "mode": "normal",
1294
+ "style": "",
1295
+ "text": "=",
1296
+ "type": "jupyter-input-highlight",
1297
+ "version": 1,
1298
+ "highlightType": "operator"
1299
+ },
1300
+ {
1301
+ "detail": 0,
1302
+ "format": 0,
1303
+ "mode": "normal",
1304
+ "style": "",
1305
+ "text": " Counter",
1306
+ "type": "jupyter-input-highlight",
1307
+ "version": 1
1308
+ },
1309
+ {
1310
+ "detail": 0,
1311
+ "format": 0,
1312
+ "mode": "normal",
1313
+ "style": "",
1314
+ "text": "(",
1315
+ "type": "jupyter-input-highlight",
1316
+ "version": 1,
1317
+ "highlightType": "punctuation"
1318
+ },
1319
+ {
1320
+ "detail": 0,
1321
+ "format": 0,
1322
+ "mode": "normal",
1323
+ "style": "",
1324
+ "text": "train_labels",
1325
+ "type": "jupyter-input-highlight",
1326
+ "version": 1
1327
+ },
1328
+ {
1329
+ "detail": 0,
1330
+ "format": 0,
1331
+ "mode": "normal",
1332
+ "style": "",
1333
+ "text": ")",
1334
+ "type": "jupyter-input-highlight",
1335
+ "version": 1,
1336
+ "highlightType": "punctuation"
1337
+ },
1338
+ {
1339
+ "type": "linebreak",
1340
+ "version": 1
1341
+ },
1342
+ {
1343
+ "detail": 0,
1344
+ "format": 0,
1345
+ "mode": "normal",
1346
+ "style": "",
1347
+ "text": "valid_counts ",
1348
+ "type": "jupyter-input-highlight",
1349
+ "version": 1
1350
+ },
1351
+ {
1352
+ "detail": 0,
1353
+ "format": 0,
1354
+ "mode": "normal",
1355
+ "style": "",
1356
+ "text": "=",
1357
+ "type": "jupyter-input-highlight",
1358
+ "version": 1,
1359
+ "highlightType": "operator"
1360
+ },
1361
+ {
1362
+ "detail": 0,
1363
+ "format": 0,
1364
+ "mode": "normal",
1365
+ "style": "",
1366
+ "text": " Counter",
1367
+ "type": "jupyter-input-highlight",
1368
+ "version": 1
1369
+ },
1370
+ {
1371
+ "detail": 0,
1372
+ "format": 0,
1373
+ "mode": "normal",
1374
+ "style": "",
1375
+ "text": "(",
1376
+ "type": "jupyter-input-highlight",
1377
+ "version": 1,
1378
+ "highlightType": "punctuation"
1379
+ },
1380
+ {
1381
+ "detail": 0,
1382
+ "format": 0,
1383
+ "mode": "normal",
1384
+ "style": "",
1385
+ "text": "valid_labels",
1386
+ "type": "jupyter-input-highlight",
1387
+ "version": 1
1388
+ },
1389
+ {
1390
+ "detail": 0,
1391
+ "format": 0,
1392
+ "mode": "normal",
1393
+ "style": "",
1394
+ "text": ")",
1395
+ "type": "jupyter-input-highlight",
1396
+ "version": 1,
1397
+ "highlightType": "punctuation"
1398
+ },
1399
+ {
1400
+ "type": "linebreak",
1401
+ "version": 1
1402
+ },
1403
+ {
1404
+ "type": "linebreak",
1405
+ "version": 1
1406
+ },
1407
+ {
1408
+ "detail": 0,
1409
+ "format": 0,
1410
+ "mode": "normal",
1411
+ "style": "",
1412
+ "text": "# Prepare data for plotting",
1413
+ "type": "jupyter-input-highlight",
1414
+ "version": 1,
1415
+ "highlightType": "comment"
1416
+ },
1417
+ {
1418
+ "type": "linebreak",
1419
+ "version": 1
1420
+ },
1421
+ {
1422
+ "detail": 0,
1423
+ "format": 0,
1424
+ "mode": "normal",
1425
+ "style": "",
1426
+ "text": "labels ",
1427
+ "type": "jupyter-input-highlight",
1428
+ "version": 1
1429
+ },
1430
+ {
1431
+ "detail": 0,
1432
+ "format": 0,
1433
+ "mode": "normal",
1434
+ "style": "",
1435
+ "text": "=",
1436
+ "type": "jupyter-input-highlight",
1437
+ "version": 1,
1438
+ "highlightType": "operator"
1439
+ },
1440
+ {
1441
+ "detail": 0,
1442
+ "format": 0,
1443
+ "mode": "normal",
1444
+ "style": "",
1445
+ "text": " dls",
1446
+ "type": "jupyter-input-highlight",
1447
+ "version": 1
1448
+ },
1449
+ {
1450
+ "detail": 0,
1451
+ "format": 0,
1452
+ "mode": "normal",
1453
+ "style": "",
1454
+ "text": ".",
1455
+ "type": "jupyter-input-highlight",
1456
+ "version": 1,
1457
+ "highlightType": "punctuation"
1458
+ },
1459
+ {
1460
+ "detail": 0,
1461
+ "format": 0,
1462
+ "mode": "normal",
1463
+ "style": "",
1464
+ "text": "vocabtrain_vals ",
1465
+ "type": "jupyter-input-highlight",
1466
+ "version": 1
1467
+ },
1468
+ {
1469
+ "detail": 0,
1470
+ "format": 0,
1471
+ "mode": "normal",
1472
+ "style": "",
1473
+ "text": "=",
1474
+ "type": "jupyter-input-highlight",
1475
+ "version": 1,
1476
+ "highlightType": "operator"
1477
+ },
1478
+ {
1479
+ "detail": 0,
1480
+ "format": 0,
1481
+ "mode": "normal",
1482
+ "style": "",
1483
+ "text": " ",
1484
+ "type": "jupyter-input-highlight",
1485
+ "version": 1
1486
+ },
1487
+ {
1488
+ "detail": 0,
1489
+ "format": 0,
1490
+ "mode": "normal",
1491
+ "style": "",
1492
+ "text": "[",
1493
+ "type": "jupyter-input-highlight",
1494
+ "version": 1,
1495
+ "highlightType": "punctuation"
1496
+ },
1497
+ {
1498
+ "detail": 0,
1499
+ "format": 0,
1500
+ "mode": "normal",
1501
+ "style": "",
1502
+ "text": "train_counts",
1503
+ "type": "jupyter-input-highlight",
1504
+ "version": 1
1505
+ },
1506
+ {
1507
+ "detail": 0,
1508
+ "format": 0,
1509
+ "mode": "normal",
1510
+ "style": "",
1511
+ "text": ".",
1512
+ "type": "jupyter-input-highlight",
1513
+ "version": 1,
1514
+ "highlightType": "punctuation"
1515
+ },
1516
+ {
1517
+ "detail": 0,
1518
+ "format": 0,
1519
+ "mode": "normal",
1520
+ "style": "",
1521
+ "text": "get",
1522
+ "type": "jupyter-input-highlight",
1523
+ "version": 1
1524
+ },
1525
+ {
1526
+ "detail": 0,
1527
+ "format": 0,
1528
+ "mode": "normal",
1529
+ "style": "",
1530
+ "text": "(",
1531
+ "type": "jupyter-input-highlight",
1532
+ "version": 1,
1533
+ "highlightType": "punctuation"
1534
+ },
1535
+ {
1536
+ "detail": 0,
1537
+ "format": 0,
1538
+ "mode": "normal",
1539
+ "style": "",
1540
+ "text": "lbl",
1541
+ "type": "jupyter-input-highlight",
1542
+ "version": 1
1543
+ },
1544
+ {
1545
+ "detail": 0,
1546
+ "format": 0,
1547
+ "mode": "normal",
1548
+ "style": "",
1549
+ "text": ",",
1550
+ "type": "jupyter-input-highlight",
1551
+ "version": 1,
1552
+ "highlightType": "punctuation"
1553
+ },
1554
+ {
1555
+ "detail": 0,
1556
+ "format": 0,
1557
+ "mode": "normal",
1558
+ "style": "",
1559
+ "text": " ",
1560
+ "type": "jupyter-input-highlight",
1561
+ "version": 1
1562
+ },
1563
+ {
1564
+ "detail": 0,
1565
+ "format": 0,
1566
+ "mode": "normal",
1567
+ "style": "",
1568
+ "text": "0",
1569
+ "type": "jupyter-input-highlight",
1570
+ "version": 1,
1571
+ "highlightType": "number"
1572
+ },
1573
+ {
1574
+ "detail": 0,
1575
+ "format": 0,
1576
+ "mode": "normal",
1577
+ "style": "",
1578
+ "text": ")",
1579
+ "type": "jupyter-input-highlight",
1580
+ "version": 1,
1581
+ "highlightType": "punctuation"
1582
+ },
1583
+ {
1584
+ "detail": 0,
1585
+ "format": 0,
1586
+ "mode": "normal",
1587
+ "style": "",
1588
+ "text": " ",
1589
+ "type": "jupyter-input-highlight",
1590
+ "version": 1
1591
+ },
1592
+ {
1593
+ "detail": 0,
1594
+ "format": 0,
1595
+ "mode": "normal",
1596
+ "style": "",
1597
+ "text": "for",
1598
+ "type": "jupyter-input-highlight",
1599
+ "version": 1,
1600
+ "highlightType": "keyword"
1601
+ },
1602
+ {
1603
+ "detail": 0,
1604
+ "format": 0,
1605
+ "mode": "normal",
1606
+ "style": "",
1607
+ "text": " lbl ",
1608
+ "type": "jupyter-input-highlight",
1609
+ "version": 1
1610
+ },
1611
+ {
1612
+ "detail": 0,
1613
+ "format": 0,
1614
+ "mode": "normal",
1615
+ "style": "",
1616
+ "text": "in",
1617
+ "type": "jupyter-input-highlight",
1618
+ "version": 1,
1619
+ "highlightType": "keyword"
1620
+ },
1621
+ {
1622
+ "detail": 0,
1623
+ "format": 0,
1624
+ "mode": "normal",
1625
+ "style": "",
1626
+ "text": " labels",
1627
+ "type": "jupyter-input-highlight",
1628
+ "version": 1
1629
+ },
1630
+ {
1631
+ "detail": 0,
1632
+ "format": 0,
1633
+ "mode": "normal",
1634
+ "style": "",
1635
+ "text": "]",
1636
+ "type": "jupyter-input-highlight",
1637
+ "version": 1,
1638
+ "highlightType": "punctuation"
1639
+ },
1640
+ {
1641
+ "type": "linebreak",
1642
+ "version": 1
1643
+ },
1644
+ {
1645
+ "detail": 0,
1646
+ "format": 0,
1647
+ "mode": "normal",
1648
+ "style": "",
1649
+ "text": "valid_vals ",
1650
+ "type": "jupyter-input-highlight",
1651
+ "version": 1
1652
+ },
1653
+ {
1654
+ "detail": 0,
1655
+ "format": 0,
1656
+ "mode": "normal",
1657
+ "style": "",
1658
+ "text": "=",
1659
+ "type": "jupyter-input-highlight",
1660
+ "version": 1,
1661
+ "highlightType": "operator"
1662
+ },
1663
+ {
1664
+ "detail": 0,
1665
+ "format": 0,
1666
+ "mode": "normal",
1667
+ "style": "",
1668
+ "text": " ",
1669
+ "type": "jupyter-input-highlight",
1670
+ "version": 1
1671
+ },
1672
+ {
1673
+ "detail": 0,
1674
+ "format": 0,
1675
+ "mode": "normal",
1676
+ "style": "",
1677
+ "text": "[",
1678
+ "type": "jupyter-input-highlight",
1679
+ "version": 1,
1680
+ "highlightType": "punctuation"
1681
+ },
1682
+ {
1683
+ "detail": 0,
1684
+ "format": 0,
1685
+ "mode": "normal",
1686
+ "style": "",
1687
+ "text": "valid_counts",
1688
+ "type": "jupyter-input-highlight",
1689
+ "version": 1
1690
+ },
1691
+ {
1692
+ "detail": 0,
1693
+ "format": 0,
1694
+ "mode": "normal",
1695
+ "style": "",
1696
+ "text": ".",
1697
+ "type": "jupyter-input-highlight",
1698
+ "version": 1,
1699
+ "highlightType": "punctuation"
1700
+ },
1701
+ {
1702
+ "detail": 0,
1703
+ "format": 0,
1704
+ "mode": "normal",
1705
+ "style": "",
1706
+ "text": "get",
1707
+ "type": "jupyter-input-highlight",
1708
+ "version": 1
1709
+ },
1710
+ {
1711
+ "detail": 0,
1712
+ "format": 0,
1713
+ "mode": "normal",
1714
+ "style": "",
1715
+ "text": "(",
1716
+ "type": "jupyter-input-highlight",
1717
+ "version": 1,
1718
+ "highlightType": "punctuation"
1719
+ },
1720
+ {
1721
+ "detail": 0,
1722
+ "format": 0,
1723
+ "mode": "normal",
1724
+ "style": "",
1725
+ "text": "lbl",
1726
+ "type": "jupyter-input-highlight",
1727
+ "version": 1
1728
+ },
1729
+ {
1730
+ "detail": 0,
1731
+ "format": 0,
1732
+ "mode": "normal",
1733
+ "style": "",
1734
+ "text": ",",
1735
+ "type": "jupyter-input-highlight",
1736
+ "version": 1,
1737
+ "highlightType": "punctuation"
1738
+ },
1739
+ {
1740
+ "detail": 0,
1741
+ "format": 0,
1742
+ "mode": "normal",
1743
+ "style": "",
1744
+ "text": " ",
1745
+ "type": "jupyter-input-highlight",
1746
+ "version": 1
1747
+ },
1748
+ {
1749
+ "detail": 0,
1750
+ "format": 0,
1751
+ "mode": "normal",
1752
+ "style": "",
1753
+ "text": "0",
1754
+ "type": "jupyter-input-highlight",
1755
+ "version": 1,
1756
+ "highlightType": "number"
1757
+ },
1758
+ {
1759
+ "detail": 0,
1760
+ "format": 0,
1761
+ "mode": "normal",
1762
+ "style": "",
1763
+ "text": ")",
1764
+ "type": "jupyter-input-highlight",
1765
+ "version": 1,
1766
+ "highlightType": "punctuation"
1767
+ },
1768
+ {
1769
+ "detail": 0,
1770
+ "format": 0,
1771
+ "mode": "normal",
1772
+ "style": "",
1773
+ "text": " ",
1774
+ "type": "jupyter-input-highlight",
1775
+ "version": 1
1776
+ },
1777
+ {
1778
+ "detail": 0,
1779
+ "format": 0,
1780
+ "mode": "normal",
1781
+ "style": "",
1782
+ "text": "for",
1783
+ "type": "jupyter-input-highlight",
1784
+ "version": 1,
1785
+ "highlightType": "keyword"
1786
+ },
1787
+ {
1788
+ "detail": 0,
1789
+ "format": 0,
1790
+ "mode": "normal",
1791
+ "style": "",
1792
+ "text": " lbl ",
1793
+ "type": "jupyter-input-highlight",
1794
+ "version": 1
1795
+ },
1796
+ {
1797
+ "detail": 0,
1798
+ "format": 0,
1799
+ "mode": "normal",
1800
+ "style": "",
1801
+ "text": "in",
1802
+ "type": "jupyter-input-highlight",
1803
+ "version": 1,
1804
+ "highlightType": "keyword"
1805
+ },
1806
+ {
1807
+ "detail": 0,
1808
+ "format": 0,
1809
+ "mode": "normal",
1810
+ "style": "",
1811
+ "text": " labels",
1812
+ "type": "jupyter-input-highlight",
1813
+ "version": 1
1814
+ },
1815
+ {
1816
+ "detail": 0,
1817
+ "format": 0,
1818
+ "mode": "normal",
1819
+ "style": "",
1820
+ "text": "]",
1821
+ "type": "jupyter-input-highlight",
1822
+ "version": 1,
1823
+ "highlightType": "punctuation"
1824
+ },
1825
+ {
1826
+ "type": "linebreak",
1827
+ "version": 1
1828
+ },
1829
+ {
1830
+ "type": "linebreak",
1831
+ "version": 1
1832
+ },
1833
+ {
1834
+ "detail": 0,
1835
+ "format": 0,
1836
+ "mode": "normal",
1837
+ "style": "",
1838
+ "text": "# Plot",
1839
+ "type": "jupyter-input-highlight",
1840
+ "version": 1,
1841
+ "highlightType": "comment"
1842
+ },
1843
+ {
1844
+ "type": "linebreak",
1845
+ "version": 1
1846
+ },
1847
+ {
1848
+ "detail": 0,
1849
+ "format": 0,
1850
+ "mode": "normal",
1851
+ "style": "",
1852
+ "text": "x ",
1853
+ "type": "jupyter-input-highlight",
1854
+ "version": 1
1855
+ },
1856
+ {
1857
+ "detail": 0,
1858
+ "format": 0,
1859
+ "mode": "normal",
1860
+ "style": "",
1861
+ "text": "=",
1862
+ "type": "jupyter-input-highlight",
1863
+ "version": 1,
1864
+ "highlightType": "operator"
1865
+ },
1866
+ {
1867
+ "detail": 0,
1868
+ "format": 0,
1869
+ "mode": "normal",
1870
+ "style": "",
1871
+ "text": " ",
1872
+ "type": "jupyter-input-highlight",
1873
+ "version": 1
1874
+ },
1875
+ {
1876
+ "detail": 0,
1877
+ "format": 0,
1878
+ "mode": "normal",
1879
+ "style": "",
1880
+ "text": "range",
1881
+ "type": "jupyter-input-highlight",
1882
+ "version": 1,
1883
+ "highlightType": "builtin"
1884
+ },
1885
+ {
1886
+ "detail": 0,
1887
+ "format": 0,
1888
+ "mode": "normal",
1889
+ "style": "",
1890
+ "text": "(",
1891
+ "type": "jupyter-input-highlight",
1892
+ "version": 1,
1893
+ "highlightType": "punctuation"
1894
+ },
1895
+ {
1896
+ "detail": 0,
1897
+ "format": 0,
1898
+ "mode": "normal",
1899
+ "style": "",
1900
+ "text": "len",
1901
+ "type": "jupyter-input-highlight",
1902
+ "version": 1,
1903
+ "highlightType": "builtin"
1904
+ },
1905
+ {
1906
+ "detail": 0,
1907
+ "format": 0,
1908
+ "mode": "normal",
1909
+ "style": "",
1910
+ "text": "(",
1911
+ "type": "jupyter-input-highlight",
1912
+ "version": 1,
1913
+ "highlightType": "punctuation"
1914
+ },
1915
+ {
1916
+ "detail": 0,
1917
+ "format": 0,
1918
+ "mode": "normal",
1919
+ "style": "",
1920
+ "text": "labels",
1921
+ "type": "jupyter-input-highlight",
1922
+ "version": 1
1923
+ },
1924
+ {
1925
+ "detail": 0,
1926
+ "format": 0,
1927
+ "mode": "normal",
1928
+ "style": "",
1929
+ "text": ")",
1930
+ "type": "jupyter-input-highlight",
1931
+ "version": 1,
1932
+ "highlightType": "punctuation"
1933
+ },
1934
+ {
1935
+ "detail": 0,
1936
+ "format": 0,
1937
+ "mode": "normal",
1938
+ "style": "",
1939
+ "text": ")",
1940
+ "type": "jupyter-input-highlight",
1941
+ "version": 1,
1942
+ "highlightType": "punctuation"
1943
+ },
1944
+ {
1945
+ "type": "linebreak",
1946
+ "version": 1
1947
+ },
1948
+ {
1949
+ "detail": 0,
1950
+ "format": 0,
1951
+ "mode": "normal",
1952
+ "style": "",
1953
+ "text": "plt",
1954
+ "type": "jupyter-input-highlight",
1955
+ "version": 1
1956
+ },
1957
+ {
1958
+ "detail": 0,
1959
+ "format": 0,
1960
+ "mode": "normal",
1961
+ "style": "",
1962
+ "text": ".",
1963
+ "type": "jupyter-input-highlight",
1964
+ "version": 1,
1965
+ "highlightType": "punctuation"
1966
+ },
1967
+ {
1968
+ "detail": 0,
1969
+ "format": 0,
1970
+ "mode": "normal",
1971
+ "style": "",
1972
+ "text": "figure",
1973
+ "type": "jupyter-input-highlight",
1974
+ "version": 1
1975
+ },
1976
+ {
1977
+ "detail": 0,
1978
+ "format": 0,
1979
+ "mode": "normal",
1980
+ "style": "",
1981
+ "text": "(",
1982
+ "type": "jupyter-input-highlight",
1983
+ "version": 1,
1984
+ "highlightType": "punctuation"
1985
+ },
1986
+ {
1987
+ "detail": 0,
1988
+ "format": 0,
1989
+ "mode": "normal",
1990
+ "style": "",
1991
+ "text": "figsize",
1992
+ "type": "jupyter-input-highlight",
1993
+ "version": 1
1994
+ },
1995
+ {
1996
+ "detail": 0,
1997
+ "format": 0,
1998
+ "mode": "normal",
1999
+ "style": "",
2000
+ "text": "=",
2001
+ "type": "jupyter-input-highlight",
2002
+ "version": 1,
2003
+ "highlightType": "operator"
2004
+ },
2005
+ {
2006
+ "detail": 0,
2007
+ "format": 0,
2008
+ "mode": "normal",
2009
+ "style": "",
2010
+ "text": "(",
2011
+ "type": "jupyter-input-highlight",
2012
+ "version": 1,
2013
+ "highlightType": "punctuation"
2014
+ },
2015
+ {
2016
+ "detail": 0,
2017
+ "format": 0,
2018
+ "mode": "normal",
2019
+ "style": "",
2020
+ "text": "10",
2021
+ "type": "jupyter-input-highlight",
2022
+ "version": 1,
2023
+ "highlightType": "number"
2024
+ },
2025
+ {
2026
+ "detail": 0,
2027
+ "format": 0,
2028
+ "mode": "normal",
2029
+ "style": "",
2030
+ "text": ",",
2031
+ "type": "jupyter-input-highlight",
2032
+ "version": 1,
2033
+ "highlightType": "punctuation"
2034
+ },
2035
+ {
2036
+ "detail": 0,
2037
+ "format": 0,
2038
+ "mode": "normal",
2039
+ "style": "",
2040
+ "text": "5",
2041
+ "type": "jupyter-input-highlight",
2042
+ "version": 1,
2043
+ "highlightType": "number"
2044
+ },
2045
+ {
2046
+ "detail": 0,
2047
+ "format": 0,
2048
+ "mode": "normal",
2049
+ "style": "",
2050
+ "text": ")",
2051
+ "type": "jupyter-input-highlight",
2052
+ "version": 1,
2053
+ "highlightType": "punctuation"
2054
+ },
2055
+ {
2056
+ "detail": 0,
2057
+ "format": 0,
2058
+ "mode": "normal",
2059
+ "style": "",
2060
+ "text": ")",
2061
+ "type": "jupyter-input-highlight",
2062
+ "version": 1,
2063
+ "highlightType": "punctuation"
2064
+ },
2065
+ {
2066
+ "type": "linebreak",
2067
+ "version": 1
2068
+ },
2069
+ {
2070
+ "detail": 0,
2071
+ "format": 0,
2072
+ "mode": "normal",
2073
+ "style": "",
2074
+ "text": "plt",
2075
+ "type": "jupyter-input-highlight",
2076
+ "version": 1
2077
+ },
2078
+ {
2079
+ "detail": 0,
2080
+ "format": 0,
2081
+ "mode": "normal",
2082
+ "style": "",
2083
+ "text": ".",
2084
+ "type": "jupyter-input-highlight",
2085
+ "version": 1,
2086
+ "highlightType": "punctuation"
2087
+ },
2088
+ {
2089
+ "detail": 0,
2090
+ "format": 0,
2091
+ "mode": "normal",
2092
+ "style": "",
2093
+ "text": "bar",
2094
+ "type": "jupyter-input-highlight",
2095
+ "version": 1
2096
+ },
2097
+ {
2098
+ "detail": 0,
2099
+ "format": 0,
2100
+ "mode": "normal",
2101
+ "style": "",
2102
+ "text": "(",
2103
+ "type": "jupyter-input-highlight",
2104
+ "version": 1,
2105
+ "highlightType": "punctuation"
2106
+ },
2107
+ {
2108
+ "detail": 0,
2109
+ "format": 0,
2110
+ "mode": "normal",
2111
+ "style": "",
2112
+ "text": "x",
2113
+ "type": "jupyter-input-highlight",
2114
+ "version": 1
2115
+ },
2116
+ {
2117
+ "detail": 0,
2118
+ "format": 0,
2119
+ "mode": "normal",
2120
+ "style": "",
2121
+ "text": ",",
2122
+ "type": "jupyter-input-highlight",
2123
+ "version": 1,
2124
+ "highlightType": "punctuation"
2125
+ },
2126
+ {
2127
+ "detail": 0,
2128
+ "format": 0,
2129
+ "mode": "normal",
2130
+ "style": "",
2131
+ "text": " train_vals",
2132
+ "type": "jupyter-input-highlight",
2133
+ "version": 1
2134
+ },
2135
+ {
2136
+ "detail": 0,
2137
+ "format": 0,
2138
+ "mode": "normal",
2139
+ "style": "",
2140
+ "text": ",",
2141
+ "type": "jupyter-input-highlight",
2142
+ "version": 1,
2143
+ "highlightType": "punctuation"
2144
+ },
2145
+ {
2146
+ "detail": 0,
2147
+ "format": 0,
2148
+ "mode": "normal",
2149
+ "style": "",
2150
+ "text": " width",
2151
+ "type": "jupyter-input-highlight",
2152
+ "version": 1
2153
+ },
2154
+ {
2155
+ "detail": 0,
2156
+ "format": 0,
2157
+ "mode": "normal",
2158
+ "style": "",
2159
+ "text": "=",
2160
+ "type": "jupyter-input-highlight",
2161
+ "version": 1,
2162
+ "highlightType": "operator"
2163
+ },
2164
+ {
2165
+ "detail": 0,
2166
+ "format": 0,
2167
+ "mode": "normal",
2168
+ "style": "",
2169
+ "text": "0.4",
2170
+ "type": "jupyter-input-highlight",
2171
+ "version": 1,
2172
+ "highlightType": "number"
2173
+ },
2174
+ {
2175
+ "detail": 0,
2176
+ "format": 0,
2177
+ "mode": "normal",
2178
+ "style": "",
2179
+ "text": ",",
2180
+ "type": "jupyter-input-highlight",
2181
+ "version": 1,
2182
+ "highlightType": "punctuation"
2183
+ },
2184
+ {
2185
+ "detail": 0,
2186
+ "format": 0,
2187
+ "mode": "normal",
2188
+ "style": "",
2189
+ "text": " label",
2190
+ "type": "jupyter-input-highlight",
2191
+ "version": 1
2192
+ },
2193
+ {
2194
+ "detail": 0,
2195
+ "format": 0,
2196
+ "mode": "normal",
2197
+ "style": "",
2198
+ "text": "=",
2199
+ "type": "jupyter-input-highlight",
2200
+ "version": 1,
2201
+ "highlightType": "operator"
2202
+ },
2203
+ {
2204
+ "detail": 0,
2205
+ "format": 0,
2206
+ "mode": "normal",
2207
+ "style": "",
2208
+ "text": "\"Train\"",
2209
+ "type": "jupyter-input-highlight",
2210
+ "version": 1,
2211
+ "highlightType": "string"
2212
+ },
2213
+ {
2214
+ "detail": 0,
2215
+ "format": 0,
2216
+ "mode": "normal",
2217
+ "style": "",
2218
+ "text": ")",
2219
+ "type": "jupyter-input-highlight",
2220
+ "version": 1,
2221
+ "highlightType": "punctuation"
2222
+ },
2223
+ {
2224
+ "type": "linebreak",
2225
+ "version": 1
2226
+ },
2227
+ {
2228
+ "detail": 0,
2229
+ "format": 0,
2230
+ "mode": "normal",
2231
+ "style": "",
2232
+ "text": "plt",
2233
+ "type": "jupyter-input-highlight",
2234
+ "version": 1
2235
+ },
2236
+ {
2237
+ "detail": 0,
2238
+ "format": 0,
2239
+ "mode": "normal",
2240
+ "style": "",
2241
+ "text": ".",
2242
+ "type": "jupyter-input-highlight",
2243
+ "version": 1,
2244
+ "highlightType": "punctuation"
2245
+ },
2246
+ {
2247
+ "detail": 0,
2248
+ "format": 0,
2249
+ "mode": "normal",
2250
+ "style": "",
2251
+ "text": "bar",
2252
+ "type": "jupyter-input-highlight",
2253
+ "version": 1
2254
+ },
2255
+ {
2256
+ "detail": 0,
2257
+ "format": 0,
2258
+ "mode": "normal",
2259
+ "style": "",
2260
+ "text": "(",
2261
+ "type": "jupyter-input-highlight",
2262
+ "version": 1,
2263
+ "highlightType": "punctuation"
2264
+ },
2265
+ {
2266
+ "detail": 0,
2267
+ "format": 0,
2268
+ "mode": "normal",
2269
+ "style": "",
2270
+ "text": "[",
2271
+ "type": "jupyter-input-highlight",
2272
+ "version": 1,
2273
+ "highlightType": "punctuation"
2274
+ },
2275
+ {
2276
+ "detail": 0,
2277
+ "format": 0,
2278
+ "mode": "normal",
2279
+ "style": "",
2280
+ "text": "i",
2281
+ "type": "jupyter-input-highlight",
2282
+ "version": 1
2283
+ },
2284
+ {
2285
+ "detail": 0,
2286
+ "format": 0,
2287
+ "mode": "normal",
2288
+ "style": "",
2289
+ "text": "+",
2290
+ "type": "jupyter-input-highlight",
2291
+ "version": 1,
2292
+ "highlightType": "operator"
2293
+ },
2294
+ {
2295
+ "detail": 0,
2296
+ "format": 0,
2297
+ "mode": "normal",
2298
+ "style": "",
2299
+ "text": "0.4",
2300
+ "type": "jupyter-input-highlight",
2301
+ "version": 1,
2302
+ "highlightType": "number"
2303
+ },
2304
+ {
2305
+ "detail": 0,
2306
+ "format": 0,
2307
+ "mode": "normal",
2308
+ "style": "",
2309
+ "text": " ",
2310
+ "type": "jupyter-input-highlight",
2311
+ "version": 1
2312
+ },
2313
+ {
2314
+ "detail": 0,
2315
+ "format": 0,
2316
+ "mode": "normal",
2317
+ "style": "",
2318
+ "text": "for",
2319
+ "type": "jupyter-input-highlight",
2320
+ "version": 1,
2321
+ "highlightType": "keyword"
2322
+ },
2323
+ {
2324
+ "detail": 0,
2325
+ "format": 0,
2326
+ "mode": "normal",
2327
+ "style": "",
2328
+ "text": " i ",
2329
+ "type": "jupyter-input-highlight",
2330
+ "version": 1
2331
+ },
2332
+ {
2333
+ "detail": 0,
2334
+ "format": 0,
2335
+ "mode": "normal",
2336
+ "style": "",
2337
+ "text": "in",
2338
+ "type": "jupyter-input-highlight",
2339
+ "version": 1,
2340
+ "highlightType": "keyword"
2341
+ },
2342
+ {
2343
+ "detail": 0,
2344
+ "format": 0,
2345
+ "mode": "normal",
2346
+ "style": "",
2347
+ "text": " x",
2348
+ "type": "jupyter-input-highlight",
2349
+ "version": 1
2350
+ },
2351
+ {
2352
+ "detail": 0,
2353
+ "format": 0,
2354
+ "mode": "normal",
2355
+ "style": "",
2356
+ "text": "]",
2357
+ "type": "jupyter-input-highlight",
2358
+ "version": 1,
2359
+ "highlightType": "punctuation"
2360
+ },
2361
+ {
2362
+ "detail": 0,
2363
+ "format": 0,
2364
+ "mode": "normal",
2365
+ "style": "",
2366
+ "text": ",",
2367
+ "type": "jupyter-input-highlight",
2368
+ "version": 1,
2369
+ "highlightType": "punctuation"
2370
+ },
2371
+ {
2372
+ "detail": 0,
2373
+ "format": 0,
2374
+ "mode": "normal",
2375
+ "style": "",
2376
+ "text": " valid_vals",
2377
+ "type": "jupyter-input-highlight",
2378
+ "version": 1
2379
+ },
2380
+ {
2381
+ "detail": 0,
2382
+ "format": 0,
2383
+ "mode": "normal",
2384
+ "style": "",
2385
+ "text": ",",
2386
+ "type": "jupyter-input-highlight",
2387
+ "version": 1,
2388
+ "highlightType": "punctuation"
2389
+ },
2390
+ {
2391
+ "detail": 0,
2392
+ "format": 0,
2393
+ "mode": "normal",
2394
+ "style": "",
2395
+ "text": " width",
2396
+ "type": "jupyter-input-highlight",
2397
+ "version": 1
2398
+ },
2399
+ {
2400
+ "detail": 0,
2401
+ "format": 0,
2402
+ "mode": "normal",
2403
+ "style": "",
2404
+ "text": "=",
2405
+ "type": "jupyter-input-highlight",
2406
+ "version": 1,
2407
+ "highlightType": "operator"
2408
+ },
2409
+ {
2410
+ "detail": 0,
2411
+ "format": 0,
2412
+ "mode": "normal",
2413
+ "style": "",
2414
+ "text": "0.4",
2415
+ "type": "jupyter-input-highlight",
2416
+ "version": 1,
2417
+ "highlightType": "number"
2418
+ },
2419
+ {
2420
+ "detail": 0,
2421
+ "format": 0,
2422
+ "mode": "normal",
2423
+ "style": "",
2424
+ "text": ",",
2425
+ "type": "jupyter-input-highlight",
2426
+ "version": 1,
2427
+ "highlightType": "punctuation"
2428
+ },
2429
+ {
2430
+ "detail": 0,
2431
+ "format": 0,
2432
+ "mode": "normal",
2433
+ "style": "",
2434
+ "text": " label",
2435
+ "type": "jupyter-input-highlight",
2436
+ "version": 1
2437
+ },
2438
+ {
2439
+ "detail": 0,
2440
+ "format": 0,
2441
+ "mode": "normal",
2442
+ "style": "",
2443
+ "text": "=",
2444
+ "type": "jupyter-input-highlight",
2445
+ "version": 1,
2446
+ "highlightType": "operator"
2447
+ },
2448
+ {
2449
+ "detail": 0,
2450
+ "format": 0,
2451
+ "mode": "normal",
2452
+ "style": "",
2453
+ "text": "\"Valid\"",
2454
+ "type": "jupyter-input-highlight",
2455
+ "version": 1,
2456
+ "highlightType": "string"
2457
+ },
2458
+ {
2459
+ "detail": 0,
2460
+ "format": 0,
2461
+ "mode": "normal",
2462
+ "style": "",
2463
+ "text": ")",
2464
+ "type": "jupyter-input-highlight",
2465
+ "version": 1,
2466
+ "highlightType": "punctuation"
2467
+ },
2468
+ {
2469
+ "type": "linebreak",
2470
+ "version": 1
2471
+ },
2472
+ {
2473
+ "detail": 0,
2474
+ "format": 0,
2475
+ "mode": "normal",
2476
+ "style": "",
2477
+ "text": "plt",
2478
+ "type": "jupyter-input-highlight",
2479
+ "version": 1
2480
+ },
2481
+ {
2482
+ "detail": 0,
2483
+ "format": 0,
2484
+ "mode": "normal",
2485
+ "style": "",
2486
+ "text": ".",
2487
+ "type": "jupyter-input-highlight",
2488
+ "version": 1,
2489
+ "highlightType": "punctuation"
2490
+ },
2491
+ {
2492
+ "detail": 0,
2493
+ "format": 0,
2494
+ "mode": "normal",
2495
+ "style": "",
2496
+ "text": "xticks",
2497
+ "type": "jupyter-input-highlight",
2498
+ "version": 1
2499
+ },
2500
+ {
2501
+ "detail": 0,
2502
+ "format": 0,
2503
+ "mode": "normal",
2504
+ "style": "",
2505
+ "text": "(",
2506
+ "type": "jupyter-input-highlight",
2507
+ "version": 1,
2508
+ "highlightType": "punctuation"
2509
+ },
2510
+ {
2511
+ "detail": 0,
2512
+ "format": 0,
2513
+ "mode": "normal",
2514
+ "style": "",
2515
+ "text": "[",
2516
+ "type": "jupyter-input-highlight",
2517
+ "version": 1,
2518
+ "highlightType": "punctuation"
2519
+ },
2520
+ {
2521
+ "detail": 0,
2522
+ "format": 0,
2523
+ "mode": "normal",
2524
+ "style": "",
2525
+ "text": "i",
2526
+ "type": "jupyter-input-highlight",
2527
+ "version": 1
2528
+ },
2529
+ {
2530
+ "detail": 0,
2531
+ "format": 0,
2532
+ "mode": "normal",
2533
+ "style": "",
2534
+ "text": "+",
2535
+ "type": "jupyter-input-highlight",
2536
+ "version": 1,
2537
+ "highlightType": "operator"
2538
+ },
2539
+ {
2540
+ "detail": 0,
2541
+ "format": 0,
2542
+ "mode": "normal",
2543
+ "style": "",
2544
+ "text": "0.2",
2545
+ "type": "jupyter-input-highlight",
2546
+ "version": 1,
2547
+ "highlightType": "number"
2548
+ },
2549
+ {
2550
+ "detail": 0,
2551
+ "format": 0,
2552
+ "mode": "normal",
2553
+ "style": "",
2554
+ "text": " ",
2555
+ "type": "jupyter-input-highlight",
2556
+ "version": 1
2557
+ },
2558
+ {
2559
+ "detail": 0,
2560
+ "format": 0,
2561
+ "mode": "normal",
2562
+ "style": "",
2563
+ "text": "for",
2564
+ "type": "jupyter-input-highlight",
2565
+ "version": 1,
2566
+ "highlightType": "keyword"
2567
+ },
2568
+ {
2569
+ "detail": 0,
2570
+ "format": 0,
2571
+ "mode": "normal",
2572
+ "style": "",
2573
+ "text": " i ",
2574
+ "type": "jupyter-input-highlight",
2575
+ "version": 1
2576
+ },
2577
+ {
2578
+ "detail": 0,
2579
+ "format": 0,
2580
+ "mode": "normal",
2581
+ "style": "",
2582
+ "text": "in",
2583
+ "type": "jupyter-input-highlight",
2584
+ "version": 1,
2585
+ "highlightType": "keyword"
2586
+ },
2587
+ {
2588
+ "detail": 0,
2589
+ "format": 0,
2590
+ "mode": "normal",
2591
+ "style": "",
2592
+ "text": " x",
2593
+ "type": "jupyter-input-highlight",
2594
+ "version": 1
2595
+ },
2596
+ {
2597
+ "detail": 0,
2598
+ "format": 0,
2599
+ "mode": "normal",
2600
+ "style": "",
2601
+ "text": "]",
2602
+ "type": "jupyter-input-highlight",
2603
+ "version": 1,
2604
+ "highlightType": "punctuation"
2605
+ },
2606
+ {
2607
+ "detail": 0,
2608
+ "format": 0,
2609
+ "mode": "normal",
2610
+ "style": "",
2611
+ "text": ",",
2612
+ "type": "jupyter-input-highlight",
2613
+ "version": 1,
2614
+ "highlightType": "punctuation"
2615
+ },
2616
+ {
2617
+ "detail": 0,
2618
+ "format": 0,
2619
+ "mode": "normal",
2620
+ "style": "",
2621
+ "text": " labels",
2622
+ "type": "jupyter-input-highlight",
2623
+ "version": 1
2624
+ },
2625
+ {
2626
+ "detail": 0,
2627
+ "format": 0,
2628
+ "mode": "normal",
2629
+ "style": "",
2630
+ "text": ",",
2631
+ "type": "jupyter-input-highlight",
2632
+ "version": 1,
2633
+ "highlightType": "punctuation"
2634
+ },
2635
+ {
2636
+ "detail": 0,
2637
+ "format": 0,
2638
+ "mode": "normal",
2639
+ "style": "",
2640
+ "text": " rotation",
2641
+ "type": "jupyter-input-highlight",
2642
+ "version": 1
2643
+ },
2644
+ {
2645
+ "detail": 0,
2646
+ "format": 0,
2647
+ "mode": "normal",
2648
+ "style": "",
2649
+ "text": "=",
2650
+ "type": "jupyter-input-highlight",
2651
+ "version": 1,
2652
+ "highlightType": "operator"
2653
+ },
2654
+ {
2655
+ "detail": 0,
2656
+ "format": 0,
2657
+ "mode": "normal",
2658
+ "style": "",
2659
+ "text": "45",
2660
+ "type": "jupyter-input-highlight",
2661
+ "version": 1,
2662
+ "highlightType": "number"
2663
+ },
2664
+ {
2665
+ "detail": 0,
2666
+ "format": 0,
2667
+ "mode": "normal",
2668
+ "style": "",
2669
+ "text": ")",
2670
+ "type": "jupyter-input-highlight",
2671
+ "version": 1,
2672
+ "highlightType": "punctuation"
2673
+ },
2674
+ {
2675
+ "type": "linebreak",
2676
+ "version": 1
2677
+ },
2678
+ {
2679
+ "detail": 0,
2680
+ "format": 0,
2681
+ "mode": "normal",
2682
+ "style": "",
2683
+ "text": "plt",
2684
+ "type": "jupyter-input-highlight",
2685
+ "version": 1
2686
+ },
2687
+ {
2688
+ "detail": 0,
2689
+ "format": 0,
2690
+ "mode": "normal",
2691
+ "style": "",
2692
+ "text": ".",
2693
+ "type": "jupyter-input-highlight",
2694
+ "version": 1,
2695
+ "highlightType": "punctuation"
2696
+ },
2697
+ {
2698
+ "detail": 0,
2699
+ "format": 0,
2700
+ "mode": "normal",
2701
+ "style": "",
2702
+ "text": "xlabel",
2703
+ "type": "jupyter-input-highlight",
2704
+ "version": 1
2705
+ },
2706
+ {
2707
+ "detail": 0,
2708
+ "format": 0,
2709
+ "mode": "normal",
2710
+ "style": "",
2711
+ "text": "(",
2712
+ "type": "jupyter-input-highlight",
2713
+ "version": 1,
2714
+ "highlightType": "punctuation"
2715
+ },
2716
+ {
2717
+ "detail": 0,
2718
+ "format": 0,
2719
+ "mode": "normal",
2720
+ "style": "",
2721
+ "text": "\"Labels\"",
2722
+ "type": "jupyter-input-highlight",
2723
+ "version": 1,
2724
+ "highlightType": "string"
2725
+ },
2726
+ {
2727
+ "detail": 0,
2728
+ "format": 0,
2729
+ "mode": "normal",
2730
+ "style": "",
2731
+ "text": ")",
2732
+ "type": "jupyter-input-highlight",
2733
+ "version": 1,
2734
+ "highlightType": "punctuation"
2735
+ },
2736
+ {
2737
+ "type": "linebreak",
2738
+ "version": 1
2739
+ },
2740
+ {
2741
+ "detail": 0,
2742
+ "format": 0,
2743
+ "mode": "normal",
2744
+ "style": "",
2745
+ "text": "plt",
2746
+ "type": "jupyter-input-highlight",
2747
+ "version": 1
2748
+ },
2749
+ {
2750
+ "detail": 0,
2751
+ "format": 0,
2752
+ "mode": "normal",
2753
+ "style": "",
2754
+ "text": ".",
2755
+ "type": "jupyter-input-highlight",
2756
+ "version": 1,
2757
+ "highlightType": "punctuation"
2758
+ },
2759
+ {
2760
+ "detail": 0,
2761
+ "format": 0,
2762
+ "mode": "normal",
2763
+ "style": "",
2764
+ "text": "ylabel",
2765
+ "type": "jupyter-input-highlight",
2766
+ "version": 1
2767
+ },
2768
+ {
2769
+ "detail": 0,
2770
+ "format": 0,
2771
+ "mode": "normal",
2772
+ "style": "",
2773
+ "text": "(",
2774
+ "type": "jupyter-input-highlight",
2775
+ "version": 1,
2776
+ "highlightType": "punctuation"
2777
+ },
2778
+ {
2779
+ "detail": 0,
2780
+ "format": 0,
2781
+ "mode": "normal",
2782
+ "style": "",
2783
+ "text": "\"Count\"",
2784
+ "type": "jupyter-input-highlight",
2785
+ "version": 1,
2786
+ "highlightType": "string"
2787
+ },
2788
+ {
2789
+ "detail": 0,
2790
+ "format": 0,
2791
+ "mode": "normal",
2792
+ "style": "",
2793
+ "text": ")",
2794
+ "type": "jupyter-input-highlight",
2795
+ "version": 1,
2796
+ "highlightType": "punctuation"
2797
+ },
2798
+ {
2799
+ "type": "linebreak",
2800
+ "version": 1
2801
+ },
2802
+ {
2803
+ "detail": 0,
2804
+ "format": 0,
2805
+ "mode": "normal",
2806
+ "style": "",
2807
+ "text": "plt",
2808
+ "type": "jupyter-input-highlight",
2809
+ "version": 1
2810
+ },
2811
+ {
2812
+ "detail": 0,
2813
+ "format": 0,
2814
+ "mode": "normal",
2815
+ "style": "",
2816
+ "text": ".",
2817
+ "type": "jupyter-input-highlight",
2818
+ "version": 1,
2819
+ "highlightType": "punctuation"
2820
+ },
2821
+ {
2822
+ "detail": 0,
2823
+ "format": 0,
2824
+ "mode": "normal",
2825
+ "style": "",
2826
+ "text": "title",
2827
+ "type": "jupyter-input-highlight",
2828
+ "version": 1
2829
+ },
2830
+ {
2831
+ "detail": 0,
2832
+ "format": 0,
2833
+ "mode": "normal",
2834
+ "style": "",
2835
+ "text": "(",
2836
+ "type": "jupyter-input-highlight",
2837
+ "version": 1,
2838
+ "highlightType": "punctuation"
2839
+ },
2840
+ {
2841
+ "detail": 0,
2842
+ "format": 0,
2843
+ "mode": "normal",
2844
+ "style": "",
2845
+ "text": "\"Label repartition in Train vs Validation\"",
2846
+ "type": "jupyter-input-highlight",
2847
+ "version": 1,
2848
+ "highlightType": "string"
2849
+ },
2850
+ {
2851
+ "detail": 0,
2852
+ "format": 0,
2853
+ "mode": "normal",
2854
+ "style": "",
2855
+ "text": ")",
2856
+ "type": "jupyter-input-highlight",
2857
+ "version": 1,
2858
+ "highlightType": "punctuation"
2859
+ },
2860
+ {
2861
+ "type": "linebreak",
2862
+ "version": 1
2863
+ },
2864
+ {
2865
+ "detail": 0,
2866
+ "format": 0,
2867
+ "mode": "normal",
2868
+ "style": "",
2869
+ "text": "plt",
2870
+ "type": "jupyter-input-highlight",
2871
+ "version": 1
2872
+ },
2873
+ {
2874
+ "detail": 0,
2875
+ "format": 0,
2876
+ "mode": "normal",
2877
+ "style": "",
2878
+ "text": ".",
2879
+ "type": "jupyter-input-highlight",
2880
+ "version": 1,
2881
+ "highlightType": "punctuation"
2882
+ },
2883
+ {
2884
+ "detail": 0,
2885
+ "format": 0,
2886
+ "mode": "normal",
2887
+ "style": "",
2888
+ "text": "legend",
2889
+ "type": "jupyter-input-highlight",
2890
+ "version": 1
2891
+ },
2892
+ {
2893
+ "detail": 0,
2894
+ "format": 0,
2895
+ "mode": "normal",
2896
+ "style": "",
2897
+ "text": "(",
2898
+ "type": "jupyter-input-highlight",
2899
+ "version": 1,
2900
+ "highlightType": "punctuation"
2901
+ },
2902
+ {
2903
+ "detail": 0,
2904
+ "format": 0,
2905
+ "mode": "normal",
2906
+ "style": "",
2907
+ "text": ")",
2908
+ "type": "jupyter-input-highlight",
2909
+ "version": 1,
2910
+ "highlightType": "punctuation"
2911
+ },
2912
+ {
2913
+ "type": "linebreak",
2914
+ "version": 1
2915
+ },
2916
+ {
2917
+ "detail": 0,
2918
+ "format": 0,
2919
+ "mode": "normal",
2920
+ "style": "",
2921
+ "text": "plt",
2922
+ "type": "jupyter-input-highlight",
2923
+ "version": 1
2924
+ },
2925
+ {
2926
+ "detail": 0,
2927
+ "format": 0,
2928
+ "mode": "normal",
2929
+ "style": "",
2930
+ "text": ".",
2931
+ "type": "jupyter-input-highlight",
2932
+ "version": 1,
2933
+ "highlightType": "punctuation"
2934
+ },
2935
+ {
2936
+ "detail": 0,
2937
+ "format": 0,
2938
+ "mode": "normal",
2939
+ "style": "",
2940
+ "text": "show",
2941
+ "type": "jupyter-input-highlight",
2942
+ "version": 1
2943
+ },
2944
+ {
2945
+ "detail": 0,
2946
+ "format": 0,
2947
+ "mode": "normal",
2948
+ "style": "",
2949
+ "text": "(",
2950
+ "type": "jupyter-input-highlight",
2951
+ "version": 1,
2952
+ "highlightType": "punctuation"
2953
+ },
2954
+ {
2955
+ "detail": 0,
2956
+ "format": 0,
2957
+ "mode": "normal",
2958
+ "style": "",
2959
+ "text": ")",
2960
+ "type": "jupyter-input-highlight",
2961
+ "version": 1,
2962
+ "highlightType": "punctuation"
2963
+ }
2964
+ ],
2965
+ "direction": null,
2966
+ "format": "",
2967
+ "indent": 0,
2968
+ "type": "jupyter-input",
2969
+ "version": 1,
2970
+ "language": "python",
2971
+ "jupyterInputNodeUuid": "517924ed-cb8b-496a-ba9a-3acbcff2d03a"
2972
+ },
2973
+ {
2974
+ "type": "jupyter-output",
2975
+ "source": "",
2976
+ "outputs": [],
2977
+ "jupyterInputNodeUuid": "517924ed-cb8b-496a-ba9a-3acbcff2d03a",
2978
+ "jupyterOutputNodeUuid": "9bdc5ae0-9340-4a0b-91c4-3e84fa613548",
2979
+ "version": 1
2980
+ }
2981
+ ],
2982
+ "direction": "ltr",
2983
+ "format": "",
2984
+ "indent": 0,
2985
+ "type": "root",
2986
+ "version": 1
2987
+ }
2988
+ }