{"appearance":{"background":"white","padding":14,"font":{"family":"Courier New","size":10.0,"bold":false,"italic":false,"underline":false,"strikeout":false,"color":"rgb(0,72,168)"},"border":{"on":true,"size":0.0,"style":"solid","color":"#666"},"text":{"wrap":false,"hAlign":"left","vAlign":"top"}},"outputType":"WIDGET","widgetState":null,"outputs":{"console":"<pre class='debug-source'>>library(flipMultivariates)\n</pre>\n<pre class='debug-source'>>set.seed(23)\n</pre>\n<pre class='debug-source'>>y <- rep(1:3, rep(100,3))\n</pre>\n<pre class='debug-source'>>y <- y + rnorm(300, 0, 0.25)\n</pre>\n<pre class='debug-source'>>x0 <- y + rnorm(300, 0, .5)\n</pre>\n<pre class='debug-source'>>x1 <- x0\n</pre>\n<pre class='debug-source'>>x1[y == 2] <- x1[y == 2] - 1\n</pre>\n<pre class='debug-source'>>x2 <- y + rnorm(300,0, 1)\n</pre>\n<pre class='debug-source'>>x3 <- y + rnorm(300,0, 6)\n</pre>\n<pre class='debug-source'>>SupportVectorMachine(y ~ x1 + x2 + x3, output = "Prediction-Accuracy Table")\n</pre>\r\n<div class=\"debug-summarystatistics\">\r\n<table>\r\n<tr><th>Total time:</th><td>1.18s</td></tr>\r\n<tr><th>Time on R server:</th><td title=\"rApacheServe 1.15s (pre 0.00s, post 0.00s) httpget_code() setup for eval 0.00s session$eval 1.10s (pre 0.00s, post 0.20s) unexplained 0.05s apparmor forking (pre 0.05s, post 0.00s)\">1.15s</td></tr>\r\n<tr><th>Time evaluating code:</th><td>0.85s</td></tr>\r\n<tr><th>Bytes sent:</th><td>853</td></tr>\r\n<tr><th>Bytes received:</th><td>65,661</td></tr>\r\n</table>\r\n</div>","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-28f0f2294398ca2f33fe\" style=\"width:960px;height:500px;\" class=\"rhtmlHeatmap html-widget\"></div>\n</div>\n<script type=\"application/json\" data-for=\"htmlwidget-28f0f2294398ca2f33fe\">{\"x\":{\"rows\":null,\"cols\":null,\"matrix\":{\"data\":[\"0\",\"7\",\"6\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"19\",\"16\",\"5\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"10\",\"21\",\"7\",\"3\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"2\",\"2\",\"3\",\"3\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"7\",\"5\",\"8\",\"12\",\"7\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"1\",\"10\",\"19\",\"8\",\"2\",\"2\",\"0\",\"0\",\"0\",\"0\",\"1\",\"4\",\"1\",\"5\",\"5\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"3\",\"1\",\"11\",\"16\",\"7\",\"0\",\"0\",\"0\",\"0\",\"0\",\"2\",\"3\",\"2\",\"11\",\"22\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"2\",\"8\",\"4\"],\"dim\":[10,10],\"rows\":[\"0.715\",\"1.04\",\"1.36\",\"1.68\",\"1.99\",\"2.31\",\"2.63\",\"2.95\",\"3.27\",\"3.59\"],\"cols\":[\"0.715\",\"1.04\",\"1.36\",\"1.68\",\"1.99\",\"2.31\",\"2.63\",\"2.95\",\"3.27\",\"3.59\"],\"cells_to_hide\":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],\"cellnote_in_cell\":[\"0\",\"7\",\"6\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"19\",\"16\",\"5\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"10\",\"21\",\"7\",\"3\",\"0\",\"1\",\"0\",\"0\",\"0\",\"0\",\"2\",\"2\",\"3\",\"3\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"7\",\"5\",\"8\",\"12\",\"7\",\"1\",\"0\",\"0\",\"0\",\"1\",\"2\",\"1\",\"10\",\"19\",\"8\",\"2\",\"2\",\"0\",\"0\",\"0\",\"0\",\"1\",\"4\",\"1\",\"5\",\"5\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"3\",\"1\",\"11\",\"16\",\"7\",\"0\",\"0\",\"0\",\"0\",\"0\",\"2\",\"3\",\"2\",\"11\",\"22\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"2\",\"8\",\"4\"]},\"image\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAoAAAAKCAYAAACNMs+9AAAA9UlEQVQYlXWQoUtDURjFf/daBkO3lWGSVTGaxDTDglWDGKyiwei/smIQ0xSFZxA0CYLRICiDwSubDlnxPuTiE/Eew+PNPdEPTjgf3/c7cIy8U4jaqFJjqrnBvyPv1KnWdd9o6OvmRPLuT1mA9Z0VTp8SGMToJc4IqS8AjbyTklHm3t+yZXU286Xy+NACmEodXZ+h55hwdUy6t0m4PCpQbR5jmmvYhWUY9Dm/6KLkFX148jQj7zR+Sz3qdzFz84TH24y02Jog5lMqw0wNgNA55GFrnxC1f+qZVBj2FOI7hWFPn7ur2mZa8k7F6N8dJyNCdIBdavEN34uZCB8J8d0AAAAASUVORK5CYII=\",\"theme\":null,\"options\":{\"xaxis_height\":80,\"yaxis_width\":120,\"xaxis_font_size\":11.06,\"yaxis_font_size\":11,\"xaxis_location\":\"top\",\"yaxis_location\":\"left\",\"xaxis_title\":\"Predicted\",\"yaxis_title\":\"Observed\",\"xaxis_title_font_size\":14,\"yaxis_title_font_size\":14,\"xaxis_hidden\":false,\"yaxis_hidden\":false,\"xaxis_font_family\":\"sans-serif\",\"yaxis_font_family\":\"sans-serif\",\"title\":\"Prediction-Accuracy Table: y\",\"title_font_size\":24,\"title_font_family\":\"sans-serif\",\"title_font_color\":\"#000000\",\"subtitle\":null,\"subtitle_font_size\":18,\"subtitle_font_family\":\"sans-serif\",\"subtitle_font_color\":\"#000000\",\"footer\":\"Fitted model : n = 300 cases used in estimation; 300 observed/predicted pairs with 39% accuracy;\",\"footer_font_size\":11,\"footer_font_family\":\"sans-serif\",\"footer_font_color\":\"#000000\",\"tip_font_size\":11,\"tip_font_family\":\"sans-serif\",\"brush_color\":\"#0000FF\",\"show_grid\":true,\"legend_font_size\":11,\"x_is_factor\":false,\"legend_colors\":[\"#67000D\",\"#71010F\",\"#7B0310\",\"#850612\",\"#8F0813\",\"#990B14\",\"#A40F15\",\"#AA1016\",\"#B01217\",\"#B71319\",\"#BD151A\",\"#C3161B\",\"#C9181D\",\"#CF1D1F\",\"#D52421\",\"#DB2924\",\"#E12F26\",\"#E73429\",\"#ED392B\",\"#F0412F\",\"#F24934\",\"#F45139\",\"#F6593E\",\"#F86043\",\"#FA6748\",\"#FB6E4D\",\"#FC7454\",\"#FC7B5A\",\"#FC8261\",\"#FC8867\",\"#FC8E6E\",\"#FC9575\",\"#FD9B7C\",\"#FDA284\",\"#FDA98C\",\"#FDAF93\",\"#FCB69B\",\"#FCBDA3\",\"#FDC3AB\",\"#FDC9B3\",\"#FECFBB\",\"#FED5C3\",\"#FEDBCB\",\"#FEE0D3\",\"#FEE4D7\",\"#FFE7DC\",\"#FFEBE1\",\"#FFEEE6\",\"#FFF2EB\",\"#FFF5F0\"],\"legend_range\":[0,22],\"legend_width\":60,\"legend_digits\":1,\"shownote_in_cell\":true,\"cell_font_size\":11,\"left_columns\":null,\"left_columns_font_size\":11,\"right_columns\":null,\"right_columns_font_size\":11,\"extra_tooltip_info\":{\"% cases\":[\"0.00% of all cases\",\"2.33% of all cases\",\"2.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"6.33% of all cases\",\"5.33% of all cases\",\"1.67% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"3.33% of all cases\",\"7.00% of all cases\",\"2.33% of all cases\",\"1.00% of all cases\",\"0.00% of all cases\",\"0.33% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.67% of all cases\",\"0.67% of all cases\",\"1.00% of all cases\",\"1.00% of all cases\",\"0.33% of all cases\",\"0.33% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"2.33% of all cases\",\"1.67% of all cases\",\"2.67% of all cases\",\"4.00% of all cases\",\"2.33% of all cases\",\"0.33% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.33% of all cases\",\"0.67% of all cases\",\"0.33% of all cases\",\"3.33% of all cases\",\"6.33% of all cases\",\"2.67% of all cases\",\"0.67% of all cases\",\"0.67% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.33% of all cases\",\"1.33% of all cases\",\"0.33% of all cases\",\"1.67% of all cases\",\"1.67% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"1.00% of all cases\",\"0.33% of all cases\",\"3.67% of all cases\",\"5.33% of all cases\",\"2.33% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.67% of all cases\",\"1.00% of all cases\",\"0.67% of all cases\",\"3.67% of all cases\",\"7.33% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.00% of all cases\",\"0.67% of all cases\",\"2.67% of all cases\",\"1.33% of all cases\"],\"% Predicted\":[\"-\",\" 17.95% of Predicted class\",\" 11.11% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 48.72% of Predicted class\",\" 29.63% of Predicted class\",\" 22.73% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 25.64% of Predicted class\",\" 38.89% of Predicted class\",\" 31.82% of Predicted class\",\" 9.09% of Predicted class\",\"-\",\" 2.86% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\" 5.13% of Predicted class\",\" 3.70% of Predicted class\",\" 13.64% of Predicted class\",\" 9.09% of Predicted class\",\" 2.70% of Predicted class\",\" 2.86% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 12.96% of Predicted class\",\" 22.73% of Predicted class\",\" 24.24% of Predicted class\",\" 32.43% of Predicted class\",\" 20.00% of Predicted class\",\" 2.70% of Predicted class\",\"-\",\"-\",\"-\",\" 2.56% of Predicted class\",\" 3.70% of Predicted class\",\" 4.55% of Predicted class\",\" 30.30% of Predicted class\",\" 51.35% of Predicted class\",\" 22.86% of Predicted class\",\" 5.41% of Predicted class\",\" 5.13% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\" 4.55% of Predicted class\",\" 12.12% of Predicted class\",\" 2.70% of Predicted class\",\" 14.29% of Predicted class\",\" 13.51% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 9.09% of Predicted class\",\" 2.70% of Predicted class\",\" 31.43% of Predicted class\",\" 43.24% of Predicted class\",\" 17.95% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 6.06% of Predicted class\",\" 8.11% of Predicted class\",\" 5.71% of Predicted class\",\" 29.73% of Predicted class\",\" 56.41% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 5.41% of Predicted class\",\" 20.51% of Predicted class\",\"100.00% of Predicted class\"],\"% Observed\":[\"-\",\"53.85% of Observed class\",\"46.15% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"47.50% of Observed class\",\"40.00% of Observed class\",\"12.50% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"23.81% of Observed class\",\"50.00% of Observed class\",\"16.67% of Observed class\",\" 7.14% of Observed class\",\"-\",\" 2.38% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"16.67% of Observed class\",\"16.67% of Observed class\",\"25.00% of Observed class\",\"25.00% of Observed class\",\" 8.33% of Observed class\",\" 8.33% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"17.50% of Observed class\",\"12.50% of Observed class\",\"20.00% of Observed class\",\"30.00% of Observed class\",\"17.50% of Observed class\",\" 2.50% of Observed class\",\"-\",\"-\",\"-\",\" 2.22% of Observed class\",\" 4.44% of Observed class\",\" 2.22% of Observed class\",\"22.22% of Observed class\",\"42.22% of Observed class\",\"17.78% of Observed class\",\" 4.44% of Observed class\",\" 4.44% of Observed class\",\"-\",\"-\",\"-\",\"-\",\" 6.25% of Observed class\",\"25.00% of Observed class\",\" 6.25% of Observed class\",\"31.25% of Observed class\",\"31.25% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 7.89% of Observed class\",\" 2.63% of Observed class\",\"28.95% of Observed class\",\"42.11% of Observed class\",\"18.42% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 5.00% of Observed class\",\" 7.50% of Observed class\",\" 5.00% of Observed class\",\"27.50% of Observed class\",\"55.00% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"14.29% of Observed class\",\"57.14% of Observed class\",\"28.57% of Observed class\"]},\"anim_duration\":500,\"yclust_width\":0,\"xclust_height\":0}},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-28f0f2294398ca2f33fe\">{\"viewer\":{\"width\":450,\"height\":350,\"padding\":5,\"fill\":true},\"browser\":{\"width\":960,\"height\":500,\"padding\":5,\"fill\":true}}</script>","htmlwidget-head":"{\"stylesheets\":[\"https://rserverhtmlwidgetasset.azureedge.net/heatmapcore-0b0c3c977a3de18d1ff639e311c1249c.css\"],\"javascript\":[\"https://rserverhtmlwidgetasset.azureedge.net/htmlwidgets-d2ab507a7e7d3e3d7c2178bda9d4c762.js\",\"https://rserverhtmlwidgetasset.azureedge.net/d3.min-fe2151217025e25f119e69ca126390f4.js\",\"https://rserverhtmlwidgetasset.azureedge.net/heatmapcore-e2f210a7754f3fcbeddce04d2f73b348.js\",\"https://rserverhtmlwidgetasset.azureedge.net/index-1868b419773570135e12157d84680fcc.js\",\"https://rserverhtmlwidgetasset.azureedge.net/rhtmlHeatmap-fce4de827a4fdb1bd7d1317d03394668.js\"],\"attachments\":[]}","message":"","warning":"","visible":"yes"},"secondsTaken":1.1818108999999999,"updated":"2017-05-19T04:28:48.6081766Z","lastUpdatedMessage":null,"executedCode":"library(flipMultivariates)\nset.seed(23)\ny <- rep(1:3, rep(100,3))\ny <- y + rnorm(300, 0, 0.25)\nx0 <- y + rnorm(300, 0, .5)\nx1 <- x0\nx1[y == 2] <- x1[y == 2] - 1\nx2 <- y + rnorm(300,0, 1)\nx3 <- y + rnorm(300,0, 6)\nSupportVectorMachine(y ~ x1 + x2 + x3, output = \"Prediction-Accuracy Table\")\n","lastSavedCode":"library(flipMultivariates)\nset.seed(23)\ny <- rep(1:3, rep(100,3))\ny <- y + rnorm(300, 0, 0.25)\nx0 <- y + rnorm(300, 0, .5)\nx1 <- x0\nx1[y == 2] <- x1[y == 2] - 1\nx2 <- y + rnorm(300,0, 1)\nx3 <- y + rnorm(300,0, 6)\nSupportVectorMachine(y ~ x1 + x2 + x3, output = \"Prediction-Accuracy Table\")\n","highlightedCodeSpans":[],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":false,"guiControls":{"Code":"","JSError":null,"JSErrorDetails":null,"ControlDefinitionErrors":null,"InputValidationErrors":null,"Controls":[{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Type":null,"Label":null,"Value":null,"Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":true}]},"calculating":"Idle","showDebug":false,"layout":"OutputOnly","size":{"Width":576,"Height":396},"vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Automatic","warnSlow":true,"outputSize":{"Width":576,"Height":395},"Options":{"debugconsole":false,"codeposition":"OutputOnly","size":{"width":576,"height":396},"splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Automatic","warn slow":true}}