{"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.2 <- SupportVectorMachine(Type ~ Ca + K + Al, 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.52s</td></tr>\r\n<tr><th>Time on R server:</th><td title=\"rApacheServe 0.50s (pre 0.01s, post 0.00s) httpget_code() setup for eval 0.01s session$eval 0.43s (pre 0.00s, post 0.16s) unexplained 0.07s apparmor forking (pre 0.03s, post 0.00s)\">0.50s</td></tr>\r\n<tr><th>Time evaluating code:</th><td>0.24s</td></tr>\r\n<tr><th>Bytes sent:</th><td>8,296</td></tr>\r\n<tr><th>Bytes received:</th><td>67,425</td></tr>\r\n</table>\r\n</div>","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-bcb22e46889eb1622657\" style=\"width:960px;height:500px;\" class=\"rhtmlHeatmap html-widget\"></div>\n</div>\n<script type=\"application/json\" data-for=\"htmlwidget-bcb22e46889eb1622657\">{\"x\":{\"rows\":null,\"cols\":null,\"matrix\":{\"data\":[\"61\",\"9\",\"0\",\"0\",\"0\",\"0\",\"23\",\"51\",\"0\",\"2\",\"0\",\"0\",\"13\",\"4\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"13\",\"0\",\"0\",\"1\",\"2\",\"0\",\"0\",\"6\",\"0\",\"2\",\"0\",\"0\",\"1\",\"0\",\"26\"],\"dim\":[6,6],\"rows\":[\"1\",\"2\",\"3\",\"5\",\"6\",\"7\"],\"cols\":[\"1\",\"2\",\"3\",\"5\",\"6\",\"7\"],\"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],\"cellnote_in_cell\":[\"61\",\"9\",\"0\",\"0\",\"0\",\"0\",\"23\",\"51\",\"0\",\"2\",\"0\",\"0\",\"13\",\"4\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"0\",\"13\",\"0\",\"0\",\"1\",\"2\",\"0\",\"0\",\"6\",\"0\",\"2\",\"0\",\"0\",\"1\",\"0\",\"26\"]},\"image\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAGCAYAAADgzO9IAAAAaUlEQVQImWNIZ+D9/+/myf//v35AwQx/Jhb+3ygkDhF4/wIuwfj32Pr/TCqGDAzcAgzIgIlJ3xEu+O/ifrgE4/9Pb/4z/P3DwMDGwcDAwMDw//0LBkZBCQYmZEGGv38YGAUlGP72FjIAAMlkPv9WjuB+AAAAAElFTkSuQmCC\",\"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: Type\",\"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 73.36% 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,61],\"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\":[\"28.50% of all cases\",\" 4.21% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\"10.75% of all cases\",\"23.83% of all cases\",\" 0.00% of all cases\",\" 0.93% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 6.07% of all cases\",\" 1.87% 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.07% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 0.47% of all cases\",\" 0.93% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 2.80% of all cases\",\" 0.00% of all cases\",\" 0.93% of all cases\",\" 0.00% of all cases\",\" 0.00% of all cases\",\" 0.47% of all cases\",\" 0.00% of all cases\",\"12.15% of all cases\"],\"% Predicted\":[\" 61.00% of Predicted class\",\" 13.64% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\" 23.00% of Predicted class\",\" 77.27% of Predicted class\",\"-\",\" 12.50% of Predicted class\",\"-\",\"-\",\" 13.00% of Predicted class\",\" 6.06% of Predicted class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\" 81.25% of Predicted class\",\"-\",\"-\",\" 1.00% of Predicted class\",\" 3.03% of Predicted class\",\"-\",\"-\",\"100.00% of Predicted class\",\"-\",\" 2.00% of Predicted class\",\"-\",\"-\",\" 6.25% of Predicted class\",\"-\",\"100.00% of Predicted class\"],\"% Observed\":[\" 87.14% of Observed class\",\" 12.86% of Observed class\",\"-\",\"-\",\"-\",\"-\",\" 30.26% of Observed class\",\" 67.11% of Observed class\",\"-\",\" 2.63% of Observed class\",\"-\",\"-\",\" 76.47% of Observed class\",\" 23.53% of Observed class\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"-\",\"100.00% of Observed class\",\"-\",\"-\",\" 11.11% of Observed class\",\" 22.22% of Observed class\",\"-\",\"-\",\" 66.67% of Observed class\",\"-\",\" 6.90% of Observed class\",\"-\",\"-\",\" 3.45% of Observed class\",\"-\",\" 89.66% of Observed class\"]},\"anim_duration\":500,\"yclust_width\":0,\"xclust_height\":0}},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-bcb22e46889eb1622657\">{\"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.5187207,"updated":"2017-03-24T00:05:50.2318952Z","lastUpdatedMessage":null,"executedCode":"library(flipMultivariates)\noptions(width = 120)\nsvm.2 <- SupportVectorMachine(Type ~ Ca + K + Al, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, cost = formCost)","lastSavedCode":"library(flipMultivariates)\noptions(width = 120)\nsvm.2 <- SupportVectorMachine(Type ~ Ca + K + Al, weights = QPopulationWeight, subset = QFilter,\n missing = formMissing, output = formOutput, show.labels = !formNames, cost = formCost)","highlightedCodeSpans":[{"start":78,"length":4,"index":1},{"start":85,"length":2,"index":1},{"start":90,"length":1,"index":1},{"start":94,"length":2,"index":1},{"start":108,"length":17,"index":6},{"start":136,"length":7,"index":6},{"start":173,"length":11,"index":4},{"start":195,"length":10,"index":4},{"start":222,"length":9,"index":4},{"start":240,"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":"f3901c3f-72e7-4448-b4bb-1dddd333c77f","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":["40368b24-6ac7-46ed-b364-0024185bdfea","aaa1d7be-4250-427a-81aa-72e9f81564f8","2514c6ff-c7b2-4ba6-821e-90fe324fef6b"],"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}}