{"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'>>options(width = 120)\n</pre>\n<pre class='debug-source'>>svm.3 <- SupportVectorMachine(RefractiveIndex ~ Mg + Si + Ba, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, cost = formCost)\n</pre>\r\n<div class=\"debug-summarystatistics\">\r\n<table>\r\n<tr><th>Total time:</th><td>0.66s</td></tr>\r\n<tr><th>Time on R server:</th><td title=\"rApacheServe 0.49s (pre 0.01s, post 0.00s) httpget_code() setup for eval 0.00s session$eval 0.44s (pre 0.00s, post 0.18s) unexplained 0.05s apparmor forking (pre 0.03s, post 0.00s)\">0.49s</td></tr>\r\n<tr><th>Time evaluating code:</th><td>0.23s</td></tr>\r\n<tr><th>Bytes sent:</th><td>9,810</td></tr>\r\n<tr><th>Bytes received:</th><td>49,212</td></tr>\r\n</table>\r\n</div>","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-9a4783a4d7cf31662805\" style=\"width:960px;height:500px;\" class=\"rhtmlHeatmap html-widget\"></div>\n</div>\n<script type=\"application/json\" data-for=\"htmlwidget-9a4783a4d7cf31662805\">{\"x\":{\"rows\":null,\"cols\":null,\"matrix\":{\"data\":[\"0\",\"2\",\"2\",\"2\",\"0\",\"0\",\"0\",\"0\",\"0\",\"14\",\"48\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"90\",\"8\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"8\",\"22\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"3\",\"3\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"4\",\"2\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\"],\"dim\":[8,8],\"rows\":[\"1.514\",\"1.517\",\"1.52\",\"1.523\",\"1.525\",\"1.528\",\"1.531\",\"1.534\"],\"cols\":[\"1.514\",\"1.517\",\"1.52\",\"1.523\",\"1.525\",\"1.528\",\"1.531\",\"1.534\"],\"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],\"cellnote_in_cell\":[\"0\",\"2\",\"2\",\"2\",\"0\",\"0\",\"0\",\"0\",\"0\",\"14\",\"48\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"90\",\"8\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"8\",\"22\",\"1\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"3\",\"3\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"4\",\"2\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"1\",\"1\",\"0\",\"0\",\"0\",\"0\"]},\"image\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAd0lEQVQYlXWOMQrCQBRE335XE/AK6XMkbxGPkzq3CQRsLey3DAFJIWb3W2xWkkVf8/nMMDNG50lZ3nyxR7YIgLoHr+YCIuQIgKlqrt2APsffBuRA626Eew/B7wxG50mBKKQtpzJLWFNQH+8Gu/uK858NqSLrB/gAfbgkTkfgJskAAAAASUVORK5CYII=\",\"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: ”Refractive Index”\",\"title_font_size\":24,\"title_font_family\":\"sans-serif\",\"title_font_color\":\"#000000\",\"footer\":\"Fitted model : n = 214 cases used in estimation; 214 observed/predicted pairs with 60.28% accuracy;\",\"footer_font_size\":11,\"footer_font_family\":\"sans-serif\",\"footer_font_color\":\"#000000\",\"tip_font_size\":11,\"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,90],\"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\",\" 0.93% of all cases\",\" 0.93% of all cases\",\" 0.93% 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.54% of all cases\",\"22.43% of all cases\",\" 0.47% 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.47% of all cases\",\"42.06% of all cases\",\" 3.74% 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.74% of all cases\",\"10.28% of all cases\",\" 0.47% 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.47% of all cases\",\" 1.40% of all cases\",\" 1.40% 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.87% of all cases\",\" 0.93% 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.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.47% of all cases\",\" 0.47% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\"],\"% Predicted\":[\"-\",\"11.76% of Predicted class\",\" 1.33% of Predicted class\",\" 4.88% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"82.35% of Predicted class\",\"32.00% of Predicted class\",\" 2.44% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 5.88% of Predicted class\",\"60.00% of Predicted class\",\"19.51% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 5.33% of Predicted class\",\"53.66% of Predicted class\",\"16.67% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 0.67% of Predicted class\",\" 7.32% of Predicted class\",\"50.00% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 9.76% of Predicted class\",\"33.33% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 0.67% of Predicted class\",\" 2.44% of Predicted class\",\"-\",\"-\",\"-\",\"-\"],\"% Observed\":[\"-\",\"33.33% of Observed class\",\"33.33% of Observed class\",\"33.33% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"22.22% of Observed class\",\"76.19% of Observed class\",\" 1.59% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 1.01% of Observed class\",\"90.91% of Observed class\",\" 8.08% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"25.81% of Observed class\",\"70.97% of Observed class\",\" 3.23% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"14.29% of Observed class\",\"42.86% of Observed class\",\"42.86% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"66.67% of Observed class\",\"33.33% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"50.00% of Observed class\",\"50.00% of Observed class\",\"-\",\"-\",\"-\",\"-\"]},\"anim_duration\":500,\"yclust_width\":0,\"xclust_height\":0}},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-9a4783a4d7cf31662805\">{\"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-52fec512e96634cbdcb7f463d60b06e5.js\",\"https://rserverhtmlwidgetasset.azureedge.net/index-1868b419773570135e12157d84680fcc.js\",\"https://rserverhtmlwidgetasset.azureedge.net/rhtmlHeatmap-fce4de827a4fdb1bd7d1317d03394668.js\"],\"attachments\":[]}","message":"","warning":"","visible":"yes"},"secondsTaken":0.6630084,"updated":"2017-03-24T00:04:19.7124449Z","lastUpdatedMessage":null,"executedCode":"library(flipMultivariates)\noptions(width = 120)\nsvm.3 <- SupportVectorMachine(RefractiveIndex ~ Mg + Si + Ba, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, cost = formCost)","lastSavedCode":"library(flipMultivariates)\noptions(width = 120)\nsvm.3 <- SupportVectorMachine(RefractiveIndex ~ Mg + Si + Ba, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, cost = formCost)","highlightedCodeSpans":[{"start":78,"length":15,"index":0},{"start":96,"length":2,"index":1},{"start":101,"length":2,"index":1},{"start":106,"length":2,"index":1},{"start":120,"length":17,"index":6},{"start":148,"length":7,"index":6},{"start":185,"length":11,"index":4},{"start":207,"length":10,"index":4},{"start":234,"length":9,"index":4},{"start":252,"length":8,"index":4}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":true,"guiControls":{"Code":"form.setHeading('Support Vector Machine');\nform.dropBox({label: \"Outcome\", \n types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formOutcomeVariable\"})\nform.dropBox({label: \"Predictor(s)\",\n types:[\"Variable: Numeric, Date, Money, Categorical, OrderedCategorical\"], \n name: \"formPredictorVariables\", \n multi:true})\nform.comboBox({label: \"Output\", \n alternatives: [\"Accuracy\", \"Prediction-Accuracy Table\", \"Detail\"], name: \"formOutput\", default_value: \"Accuracy\"})\nform.comboBox({label: \"Missing data\", \n alternatives: [\"Error if missing data\", \"Exclude cases with missing data\"], name: \"formMissing\", default_value: \"Exclude cases with missing data\"})\nform.checkBox({label: \"Variable names\", name: \"formNames\", default_value: false});\nform.textBox({label: \"Cost\", name: \"formCost\", default_value: 1, type: \"number\"});","JSError":null,"JSErrorDetails":null,"ControlDefinitionErrors":null,"InputValidationErrors":null,"Controls":[{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Type":"Heading","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":"Support Vector Machine","Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formOutcomeVariable","Type":"DropBox","Label":"Outcome","Value":"81afa67c-4035-4bc1-b297-de8725dbd868","Allowed":["0cf4bbae-995f-4c08-80c6-98f2e4519cfb","81afa67c-4035-4bc1-b297-de8725dbd868","3eaa9c10-f781-4d93-a251-adc99716881a","bf133469-c096-441a-aeb5-034887be6243","2514c6ff-c7b2-4ba6-821e-90fe324fef6b","c581a035-d524-4028-96ba-f1e1c4e2cf18","aaa1d7be-4250-427a-81aa-72e9f81564f8","40368b24-6ac7-46ed-b364-0024185bdfea","0ec25301-8de7-4bec-b888-4033f84714c5","9a394935-14a1-4ae6-b9b1-34dc6c9b1f56","f3901c3f-72e7-4448-b4bb-1dddd333c77f"],"EmptyListMessage":null,"Multi":false,"Prompt":"Select an input which is of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","ErrorMessage":"Outcome: Outcome accepts only one input which is of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","Invalid":null,"Required":true,"AllowedTypes":["Variable: Numeric, Date, Money, Categorical, OrderedCategorical"],"MinInputs":1,"MaxInputs":1,"Height":1,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formPredictorVariables","Type":"DropBox","Label":"Predictor(s)","Value":null,"Allowed":["0cf4bbae-995f-4c08-80c6-98f2e4519cfb","81afa67c-4035-4bc1-b297-de8725dbd868","3eaa9c10-f781-4d93-a251-adc99716881a","bf133469-c096-441a-aeb5-034887be6243","2514c6ff-c7b2-4ba6-821e-90fe324fef6b","c581a035-d524-4028-96ba-f1e1c4e2cf18","aaa1d7be-4250-427a-81aa-72e9f81564f8","40368b24-6ac7-46ed-b364-0024185bdfea","0ec25301-8de7-4bec-b888-4033f84714c5","9a394935-14a1-4ae6-b9b1-34dc6c9b1f56","f3901c3f-72e7-4448-b4bb-1dddd333c77f"],"EmptyListMessage":null,"Multi":true,"Prompt":"Select at least one input which is of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","ErrorMessage":"Predictor(s): Predictor(s) accepts only inputs which are of type Variable (Numeric, Date, Money, Categorical or Orderedcategorical).","Invalid":null,"Required":true,"AllowedTypes":["Variable: Numeric, Date, Money, Categorical, OrderedCategorical"],"MinInputs":1,"MaxInputs":2147483647,"Height":4,"Duplicates":false,"Values":["bf133469-c096-441a-aeb5-034887be6243","c581a035-d524-4028-96ba-f1e1c4e2cf18","0ec25301-8de7-4bec-b888-4033f84714c5"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formOutput","Type":"ComboBox","Label":"Output","Value":"Prediction-Accuracy Table","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Accuracy","Prediction-Accuracy Table","Detail"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formMissing","Type":"ComboBox","Label":"Missing data","Value":"Exclude cases with missing data","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":true,"AllowedTypes":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":["Error if missing data","Exclude cases with missing data"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formNames","Type":"CheckBox","Label":"Variable names","Value":false,"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":"left","Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formCost","Type":"TextBox","Label":"Cost","Value":"1","Allowed":null,"EmptyListMessage":null,"Multi":false,"Prompt":"Enter a number.","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":null},{"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":512},"vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Manual","warnSlow":false,"outputSize":{"Width":576,"Height":512},"Options":{"debugconsole":false,"codeposition":"OutputOnly","size":{"width":576,"height":512},"splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Manual","warn slow":false}}