{"size":{"Width":730,"Height":160},"appearance":{"background":null,"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'>>comparison.4 <- MachineLearningEnsemble(formModels,\n !formEnsemble,\n get0("formOutput", ifnotfound = "Comparison"),\n evaluation.filter = QFilter,\n evaluation.weights = QPopulationWeight)\n</pre>\r\n<div class=\"debug-summarystatistics\"><table>\r\n<tr><th>Started:</th><td class=utc-time>2018-09-10T05:09:51.743Z</td></tr>\r\n<tr><th>Finished:</th><td class=utc-time>2018-09-10T05:09:54.743Z</td></tr>\r\n<tr><th>Total time:</th><td>3.61s</td></tr>\r\n<tr><th>Time executing code:</th><td title=\"0.05s\">3.56s</td></tr>\r\n<tr><th>Other overhead on R server:</th><td>0.47s</td></tr>\r\n<tr><th>Time spent transferring data:</th><td>0.05s</td></tr>\r\n<tr><th>Data sent to R server:</th><td>4.5MB</td></tr>\r\n<tr><th>Data received from R server:</th><td>7.6KB</td></tr>\r\n</table></div>","htmlwidgets":"<div id=\"htmlwidget_container\">\n <div id=\"htmlwidget-efdde776d1db4b9433ee\" class=\"formattable_widget html-widget\" style=\"width:100%;height:500px;\" width=\"100%\" height=\"500\"></div>\n</div>\n<script type=\"application/json\" data-for=\"htmlwidget-efdde776d1db4b9433ee\">{\"x\":{\"html\":\"<table class = \\\"table table-condensed\\\"style = \\\"margin:0; border-bottom: 2px solid; border-top: 2px solid; font-size:90%;\\\">\\n<h3 class=\\\".h3\\\" style=\\\"color:#3E7DCC; text-align:left; margin-top:0px; margin-bottom:0\\\">Comparison of 3 models<\\/h3>\\n<caption style=\\\"caption-side:bottom;font-style:italic; font-size:90%;\\\"><\\/caption>\\n <thead>\\n <tr>\\n <th style=\\\"text-align:left;\\\"> <\\/th>\\n <th style=\\\"text-align:right;\\\"> Underlying model <\\/th>\\n <th style=\\\"text-align:right;\\\"> Model type <\\/th>\\n <th style=\\\"text-align:right;\\\"> Training RMSE <\\/th>\\n <th style=\\\"text-align:right;\\\"> Evaluation RMSE <\\/th>\\n <th style=\\\"text-align:right;\\\"> Training R^2 <\\/th>\\n <th style=\\\"text-align:right;\\\"> Evaluation R^2 <\\/th>\\n <\\/tr>\\n <\\/thead>\\n<tbody>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> Model 1 <\\/td>\\n <td style=\\\"text-align:right;\\\"> CART <\\/td>\\n <td style=\\\"text-align:right;\\\"> NA <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #80b4f4; width: 96.34%\\\">‎2.56<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #e8f1fd; width: 100.00%\\\">‎2.43<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #80b4f4; width: 100.00%\\\">‎0.3951<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #e8f1fd; width: 99.36%\\\">‎0.3694<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> Model 2 <\\/td>\\n <td style=\\\"text-align:right;\\\"> Regression <\\/td>\\n <td style=\\\"text-align:right;\\\"> Linear <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #e8f1fd; width: 100.00%\\\">‎2.66<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #80b4f4; width: 99.81%\\\">‎2.42<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #e8f1fd; width: 88.13%\\\">‎0.3482<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #80b4f4; width: 100.00%\\\">‎0.3718<\\/span> <\\/td>\\n <\\/tr>\\n <tr>\\n <td style=\\\"text-align:left;\\\"> Model 3 <\\/td>\\n <td style=\\\"text-align:right;\\\"> SupportVectorMachine <\\/td>\\n <td style=\\\"text-align:right;\\\"> cost = 1 <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #b4d3f8; width: 98.20%\\\">‎2.61<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #dceafb; width: 99.98%\\\">‎2.43<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #b4d2f8; width: 94.01%\\\">‎0.3715<\\/span> <\\/td>\\n <td style=\\\"text-align:right;\\\"> <span style=\\\"display: inline-block; direction: rtl; border-radius: 4px; padding-right: 0px; background-color: #dceafb; width: 99.43%\\\">‎0.3697<\\/span> <\\/td>\\n <\\/tr>\\n<\\/tbody>\\n<\\/table>\"},\"evals\":[],\"jsHooks\":[]}</script>\n<script type=\"application/htmlwidget-sizing\" data-for=\"htmlwidget-efdde776d1db4b9433ee\">{\"viewer\":{\"width\":\"100%\",\"height\":350,\"padding\":15,\"fill\":false},\"browser\":{\"width\":\"100%\",\"height\":500,\"padding\":0,\"fill\":false}}</script>","htmlwidget-head":"{\"stylesheets\":[\"https://rserverhtmlwidgetasset.azureedge.net/bootstrap.min-63e52244789ab8f6e3a78818886e7085.css\"],\"javascript\":[\"https://rserverhtmlwidgetasset.azureedge.net/jquery.min-91a24ea414e8c447d647cecab86866c2.js\",\"https://rserverhtmlwidgetasset.azureedge.net/bootstrap.min-326d184c3c13feede563e4adcb5ff2a0.js\",\"https://rserverhtmlwidgetasset.azureedge.net/html5shiv.min-e70767555a95c48c08833356d362ccef.js\",\"https://rserverhtmlwidgetasset.azureedge.net/respond.min-4255ee1a060b15cb2432d0a497a6d510.js\",\"https://rserverhtmlwidgetasset.azureedge.net/htmlwidgets-917a66c6e5036eb1bfd1fb672a82635a.js\",\"https://rserverhtmlwidgetasset.azureedge.net/formattable_widget-d2927ec9dec4a568bd3f4a62041c0ddb.js\"],\"attachments\":[],\"widget-cannot-re-render\":true}","message":"","warning":""},"secondsTaken":3.6114799000000004,"updated":"2018-09-10T05:09:54.743074Z","lastUpdatedMessage":null,"executedCode":"library(flipMultivariates)\ncomparison.4 <- MachineLearningEnsemble(formModels,\n !formEnsemble,\n get0(\"formOutput\", ifnotfound = \"Comparison\"),\n evaluation.filter = QFilter,\n evaluation.weights = QPopulationWeight)","lastSavedCode":"library(flipMultivariates)\ncomparison.4 <- MachineLearningEnsemble(formModels,\n !formEnsemble,\n get0(\"formOutput\", ifnotfound = \"Comparison\"),\n evaluation.filter = QFilter,\n evaluation.weights = QPopulationWeight)","highlightedCodeSpans":[{"start":67,"length":10,"index":4},{"start":118,"length":12,"index":4},{"start":275,"length":7,"index":6},{"start":343,"length":17,"index":6}],"tableTransformations":"<TabularTransformer>\r\n <TabularTransform type=\"Truncation\" truncationHeaderType=\"Column\" />\r\n <TabularTransform />\r\n</TabularTransformer>","tabularFilteringOptions":null,"hasGuiControls":true,"guiControls":{"Code":"var controls = [];\nvar modelsInput = form.dropBox({label: \"Input models\", types:[\"RItem:MachineLearning,Regression\"], name: \"formModels\",\n multi: true, required: true, min_inputs: 2,\n prompt: \"Select at least 2 Machine Learning or Regression models.\"});\ncontrols.push(modelsInput);\n\nvar ensemble = form.checkBox({label: \"Ensemble\", name: \"formEnsemble\", default_value: false,\n prompt: \"Whether to create an ensemble of the models.\"});\ncontrols.push(ensemble);\n\nif (ensemble.getValue()) {\n var output = form.comboBox({label: \"Output\", \n alternatives: [\"Comparison\", \"Ensemble\"], name: \"formOutput\", default_value: \"Comparison\",\n prompts: \"A table comparing the models, or a prediction-accuracy table for the ensemble.\"});\n controls.push(output);\n}\nform.setInputControls(controls);\n\nif (ensemble.getValue())\n form.setHeading('Ensemble of Machine Learning Models');\nelse\n form.setHeading('Compare Machine Learning Models');","JSError":null,"JSErrorDetails":null,"ControlDefinitionErrors":null,"InputValidationErrors":null,"Controls":[{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":null,"Page":null,"Group":null,"Type":"Heading","Label":null,"LabelEmphasised":false,"Value":null,"Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"OwnerRItemGuid":null,"MinInputs":0,"MaxInputs":0,"Height":0,"Duplicates":false,"Values":null,"CheckAlign":null,"Text":"Compare Machine Learning Models","Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formModels","Page":null,"Group":null,"Type":"DropBox","Label":"Input models","LabelEmphasised":false,"Value":null,"Allowed":null,"Multi":true,"Prompt":"Select at least 2 Machine Learning or Regression models.","ErrorMessage":"Input models: Input models accepts only inputs which are of type Ritem (Machinelearning or Regression).","Invalid":null,"Required":true,"AllowedTypes":["RItem:MachineLearning,Regression"],"OwnerRItemGuid":"5d7bbc15-ff07-46ae-b3b0-e9c0e9546923","MinInputs":2,"MaxInputs":2147483647,"Height":4,"Duplicates":false,"Values":["3ea446c2-2be7-4780-8e7a-2a88b945db6e","38682686-a99a-4613-92a8-9bebfb8dc16b","1b3124f8-c40f-4817-9481-78e8c34bcc5d"],"CheckAlign":null,"Text":null,"Increment":0.0,"Min":0.0,"Max":0.0,"Vertical":null},{"ItemGuid":"00000000-0000-0000-0000-000000000000","ControlName":"formEnsemble","Page":null,"Group":null,"Type":"CheckBox","Label":"Ensemble","LabelEmphasised":false,"Value":false,"Allowed":null,"Multi":false,"Prompt":"Whether to create an ensemble of the models.","ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"OwnerRItemGuid":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":null,"Page":null,"Group":null,"Type":null,"Label":null,"LabelEmphasised":false,"Value":null,"Allowed":null,"Multi":false,"Prompt":null,"ErrorMessage":null,"Invalid":null,"Required":false,"AllowedTypes":null,"OwnerRItemGuid":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":false}]},"calculating":"Idle","showDebug":false,"layout":"OutputOnly","vSplit":0.25,"hSplit":0.45,"updateWarnings":true,"updateMode":"Manual","warnSlow":false,"Options":{"debugconsole":false,"codeposition":"OutputOnly","splitH":0.45,"splitV":0.25,"update warnings":true,"updating":"Manual","warn slow":false}}