forked from corradodebari/OML
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Outbreak_prediction.json
1 lines (1 loc) · 48.7 KB
/
Outbreak_prediction.json
1
{"paragraphs":[{"text":"%md\n## Forecasting 2019 Novel Coronavirus (2019-nCoV) outbreak using Exponential Smoothing Algorithm for Time Series Data\n\n#### Oracle Machine Learning supports time series forecasting via the Exponential Smoothing algorithm inside the Oracle Autonomous Database (ADB). This outbreak forecasting example is based on dataset available here: <https://www.kaggle.com/sudalairajkumar/novel-corona-virus-2019-dataset>.\nUpdated by February 2020 by Corrado De Bari\nUpdated August 2019 by Charlie Berger , Dhvani Sheth, Siddesh C Prabhu Dev Ujjni, Mark Hornick, Marcos Arancibia\nCopyright (c) 2019 Oracle and/or its affiliates. All rights reserved.","user":"MLUSER","dateUpdated":"2020-02-04T11:04:22+0000","config":{"colWidth":10,"graph":{"mode":"table","height":300,"optionOpen":false,"keys":[],"values":[],"groups":[],"scatter":{}},"enabled":true,"editorMode":"ace/mode/markdown","results":{},"editorSetting":{"language":"md","editOnDblClick":false},"editorHide":true,"tableHide":false,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-556796599","id":"20200204-110030_1739103087","dateCreated":"2019-01-14T22:00:57+0000","dateStarted":"2020-02-04T11:04:19+0000","dateFinished":"2020-02-04T11:04:20+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"focus":true,"$$hashKey":"object:146"},{"text":"%md\n<dl>\n<img src=\"http://www.oracle.com/technetwork/database/options/advanced-analytics/timeseries-5663161.jpg\" alt=\"OML Notebooks\" width=\"300\"/>\n</dl>\n\n","user":"MARCOS","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":2,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":114.028,"optionOpen":false}}},"editorSetting":{"language":"md","editOnDblClick":false},"editorMode":"ace/mode/markdown","editorHide":false,"tableHide":false,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_1206882024","id":"20200204-110030_2019671909","dateCreated":"2019-04-14T23:12:39+0000","dateStarted":"2019-08-12T06:31:40+0000","dateFinished":"2019-08-12T06:31:40+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:147"},{"text":"%md\n\n##### \nFor more information, check the Oracle ADW Documentation <https://docs.oracle.com/en/cloud/paas/autonomous-data-warehouse-cloud/index.html>\nOracle Machine Learning folder on Oracle on Github <https://github.com/oracle/oracle-db-examples/tree/master/machine-learning>\nOracle Machine Learning web page: <https://www.oracle.com/database/technologies/datawarehouse-bigdata/machine-learning.html>\nIntroducing Oracle Machine Learning blog post: <https://blogs.oracle.com/datamining/introducing-oracle-machine-learning-sql-notebooks-for-the-oracle-autonomous-data-warehouse-cloud>","user":"MLUSER","dateUpdated":"2020-02-04T10:58:48+0000","config":{"colWidth":12,"enabled":true,"results":{},"editorSetting":{"language":"md","editOnDblClick":false},"editorMode":"ace/mode/markdown","editorHide":true,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_1879930329","id":"20200204-110030_365313126","dateCreated":"2019-08-05T18:18:24+0000","dateStarted":"2020-02-03T15:04:02+0000","dateFinished":"2020-02-03T15:04:02+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:148"},{"title":"Create credentials","text":"%script\nBEGIN\n DBMS_CLOUD.DROP_CREDENTIAL(credential_name => 'CRED_COR');\n DBMS_CLOUD.CREATE_CREDENTIAL(\n credential_name => 'CRED_COR', -- Credential Token\n username => 'oracleidentitycloudservice/[email protected]', -- Username\n password => '***************' -- Auth Token\n );\nEND;","user":"MLUSER","dateUpdated":"2020-02-04T11:01:34+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-541428389","id":"20200204-110030_2016494957","dateCreated":"2020-02-03T09:12:30+0000","dateStarted":"2020-02-04T10:39:28+0000","dateFinished":"2020-02-04T10:39:28+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:149"},{"title":"Clean Dataset table","text":"%script\nDROP TABLE cor_train;","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-167965678","id":"20200204-110030_1533135591","dateCreated":"2020-02-03T09:33:56+0000","dateStarted":"2020-02-04T10:39:31+0000","dateFinished":"2020-02-04T10:39:31+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:150"},{"title":"Create Dataset table","text":"%sql\ncreate table cor_train (\n Sno NUMBER,\n EventDate_ VARCHAR2(4000),\n Province_State VARCHAR2(4000),\n Country VARCHAR2(4000),\n Last_Update_ VARCHAR2(4000),\n Confirmed NUMBER,\n Deaths NUMBER,\n Recovered NUMBER\n);\n--Sno,Date,Province/State,Country,Last Update,Confirmed,Deaths,Recovered\n--1,1/22/2020 12:00,Anhui,China,1/22/2020 12:00,1.0,0.0,0.0","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-846082064","id":"20200204-110030_772725881","dateCreated":"2020-02-03T09:13:03+0000","dateStarted":"2020-02-04T10:39:35+0000","dateFinished":"2020-02-04T10:39:35+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:151"},{"title":"Import Dataset from Object Storage","text":"%script\nBEGIN\nDBMS_CLOUD.COPY_DATA(\n table_name =>'cor_train',\n credential_name =>'CRED_COR',\n file_uri_list =>'https://objectstorage.oracle.com/n/mytenant/b/bucket-1/o/2019_nCoV_data.csv',\n format => json_object('delimiter' value ',','recorddelimiter' value 'newline', 'skipheaders' value '1','dateformat' value 'MM/DD/YYYY HH:MI','quote' value '\"')\n );\nEND;\n\n--dateformat YYYYMMDD HHMISS 1/31/2020 19:00\n--quote","user":"MLUSER","dateUpdated":"2020-02-04T11:02:23+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1614263309","id":"20200204-110030_177205458","dateCreated":"2020-02-03T09:14:06+0000","dateStarted":"2020-02-04T10:39:39+0000","dateFinished":"2020-02-04T10:39:42+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:152"},{"title":"Show dataset imported","text":"%sql\nselect * from cor_train\n","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{"columns":[{"name":"SNO","visible":true,"width":"*","sort":{"priority":0,"direction":"asc"},"filters":[{}],"pinned":""},{"name":"EVENTDATE_","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"PROVINCE_STATE","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"COUNTRY","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"LAST_UPDATE_","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"CONFIRMED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"DEATHS","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"RECOVERED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""}],"scrollFocus":{},"selection":[],"grouping":{"grouping":[],"aggregations":[],"rowExpandedStates":{}},"treeView":{},"pagination":{"paginationCurrentPage":1,"paginationPageSize":250}},"tableColumnTypeState":{"names":{"SNO":"number","EVENTDATE_":"string","PROVINCE_STATE":"string","COUNTRY":"string","LAST_UPDATE_":"string","CONFIRMED":"string","DEATHS":"string","RECOVERED":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_1259192498","id":"20200204-110030_2028459715","dateCreated":"2020-02-03T09:30:38+0000","dateStarted":"2020-02-04T10:39:46+0000","dateFinished":"2020-02-04T10:39:46+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:153"},{"text":"%md\n## Dataset Cleaning Section","user":"MLUSER","dateUpdated":"2020-02-04T10:59:01+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"md","editOnDblClick":false},"editorMode":"ace/mode/markdown","editorHide":true},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1545366326","id":"20200204-110030_755240394","dateCreated":"2020-02-04T10:23:19+0000","dateStarted":"2020-02-04T10:40:11+0000","dateFinished":"2020-02-04T10:40:11+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:154"},{"text":"%sql\nUPDATE cor_train\nSET EVENTDATE_ = concat( concat(concat(concat( SUBSTR(EVENTDATE_,9,2),'/'),SUBSTR(EVENTDATE_,6,2)),'/'),SUBSTR(EVENTDATE_,1,4) )\nWHERE sno >= 498 and sno <=631\n--2020-02-02 21:00:00\n--M/DD/YYYY","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_1687785442","id":"20200204-110030_1974595847","dateCreated":"2020-02-03T10:49:01+0000","dateStarted":"2020-02-04T10:40:16+0000","dateFinished":"2020-02-04T10:40:16+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:155"},{"text":"%sql\nUPDATE cor_train\nSET EVENTDATE_ = concat (SUBSTR(EVENTDATE_,1,7),'20')\nWHERE sno >= 39 and sno <=83","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-977717836","id":"20200204-110030_5084675","dateCreated":"2020-02-03T10:32:02+0000","dateStarted":"2020-02-04T10:40:20+0000","dateFinished":"2020-02-04T10:40:20+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:156"},{"text":"%sql\nUPDATE cor_train\nSET EVENTDATE_ = SUBSTR(EVENTDATE_,1,9)\nWHERE sno >= 1 and sno <=38","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_133878595","id":"20200204-110030_1188698375","dateCreated":"2020-02-03T10:44:30+0000","dateStarted":"2020-02-04T10:40:22+0000","dateFinished":"2020-02-04T10:40:22+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:157"},{"text":"%sql\nUPDATE cor_train\nSET EVENTDATE_ = SUBSTR(EVENTDATE_,1,9)\nWHERE sno >= 84 and sno <=497\n","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1630247066","id":"20200204-110030_1270687307","dateCreated":"2020-02-03T10:47:24+0000","dateStarted":"2020-02-04T10:40:25+0000","dateFinished":"2020-02-04T10:40:25+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:158"},{"text":"%script\nALTER TABLE cor_train ADD eventdate date;\nUPDATE cor_train SET eventdate = to_date(eventdate_, 'mm/dd/yyyy');\nALTER TABLE cor_train DROP COLUMN eventdate_","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1830447820","id":"20200204-110030_830398450","dateCreated":"2020-02-03T12:56:25+0000","dateStarted":"2020-02-04T10:40:28+0000","dateFinished":"2020-02-04T10:40:28+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:159"},{"title":"Dataset cleaned","text":"%sql\nselect * from cor_train ","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{"columns":[{"name":"SNO","visible":true,"width":"*","sort":{"priority":0,"direction":"asc"},"filters":[{}],"pinned":""},{"name":"PROVINCE_STATE","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"COUNTRY","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"LAST_UPDATE_","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"CONFIRMED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"DEATHS","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"RECOVERED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"EVENTDATE","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""}],"scrollFocus":{},"selection":[],"grouping":{"grouping":[],"aggregations":[],"rowExpandedStates":{}},"treeView":{},"pagination":{"paginationCurrentPage":1,"paginationPageSize":250}},"tableColumnTypeState":{"names":{"SNO":"number","PROVINCE_STATE":"string","COUNTRY":"string","LAST_UPDATE_":"string","CONFIRMED":"string","DEATHS":"string","RECOVERED":"string","EVENTDATE":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_917488790","id":"20200204-110030_1567603280","dateCreated":"2020-02-03T13:23:42+0000","dateStarted":"2020-02-04T10:40:32+0000","dateFinished":"2020-02-04T10:40:32+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:160"},{"text":"%sql\nselect eventdate,sum(CONFIRMED) as Case, sum(DEATHS) as DeathS from cor_train group by eventdate order by eventdate","user":"MLUSER","dateUpdated":"2020-02-06T14:53:23+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"lineChart","height":298,"optionOpen":false,"setting":{"table":{"tableGridState":{"columns":[{"name":"SNO","visible":true,"width":"*","sort":{"priority":0,"direction":"asc"},"filters":[{}],"pinned":""},{"name":"EVENTDATE_","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"PROVINCE_STATE","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"COUNTRY","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"LAST_UPDATE_","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"CONFIRMED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"DEATHS","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"RECOVERED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"EVENTDATE","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""}],"scrollFocus":{},"selection":[],"grouping":{"grouping":[],"aggregations":[],"rowExpandedStates":{}},"treeView":{},"pagination":{"paginationCurrentPage":1,"paginationPageSize":250}},"tableColumnTypeState":{"names":{"EVENTDATE":"string","CASE":"string","DEATH":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false},"lineChart":{"rotate":{"degree":"-45"},"xLabelStatus":"rotate","isDateFormat":true,"dateFormat":"MM-DD"},"stackedAreaChart":{"rotate":{"degree":"-45"},"xLabelStatus":"default"}},"commonSetting":{},"keys":[{"name":"EVENTDATE","index":0,"aggr":"sum"}],"groups":[],"values":[{"name":"CASE","index":1,"aggr":"sum"},{"name":"DEATHS","index":2,"aggr":"sum"}]},"helium":{}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1471987911","id":"20200204-110030_1273725659","dateCreated":"2020-02-03T10:38:21+0000","dateStarted":"2020-02-04T10:40:36+0000","dateFinished":"2020-02-04T10:40:36+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:161"},{"title":"Create final training Dataset","text":"%sql\n-- Create input time series\nCREATE OR REPLACE VIEW CORONA_CONFIRMED \n AS SELECT Eventdate, Confirmed \n FROM cor_train;","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_2053406581","id":"20200204-110030_1774611091","dateCreated":"2020-02-03T14:01:18+0000","dateStarted":"2020-02-04T10:40:40+0000","dateFinished":"2020-02-04T10:40:40+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:162"},{"title":"Drop previous models, model settings and create a new forecast base model (EXSM_SIMPLE) to predict CASES","text":"%script\n\n-- Cleanup old settings table\nBEGIN EXECUTE IMMEDIATE 'DROP TABLE CORONA_CONFIRMED_settings';\nEXCEPTION WHEN OTHERS THEN NULL; END;\n/\n\n-- Cleanup old model with the same name\nBEGIN DBMS_DATA_MINING.DROP_MODEL('CORONA_CONFIRMED_SAMPLE');\nEXCEPTION WHEN OTHERS THEN NULL; END;\n/\n\n\nCREATE TABLE CORONA_CONFIRMED_SETTINGS(SETTING_NAME VARCHAR2(30), \n SETTING_VALUE VARCHAR2(128));\nBEGIN\n -- Select ESM as the algorithm\n INSERT INTO CORONA_CONFIRMED_SETTINGS \n VALUES(DBMS_DATA_MINING.ALGO_NAME,\n DBMS_DATA_MINING.ALGO_EXPONENTIAL_SMOOTHING);\n -- Set accumulation interval to be a day\n INSERT INTO CORONA_CONFIRMED_SETTINGS \n VALUES(DBMS_DATA_MINING.EXSM_INTERVAL,\n DBMS_DATA_MINING.EXSM_INTERVAL_DAY);\n -- Set prediction step to be 4 days \n INSERT INTO CORONA_CONFIRMED_SETTINGS \n VALUES(DBMS_DATA_MINING.EXSM_PREDICTION_STEP,'4');\n -- Set ESM model to be Simple\n INSERT INTO CORONA_CONFIRMED_SETTINGS \n VALUES(DBMS_DATA_MINING.EXSM_MODEL,\n DBMS_DATA_MINING.EXSM_SIMPLE);\n -- Set seasonal cycle to be 4 days\n --INSERT INTO ESM_SH_SETTINGS \n -- VALUES(DBMS_DATA_MINING.EXSM_SEASONALITY,'365');\nEND;\n/\n\n-- Build the Exponential Smotthing (ESM) model\nBEGIN\n DBMS_DATA_MINING.CREATE_MODEL(MODEL_NAME => 'CORONA_CONFIRMED_SAMPLE',\n MINING_FUNCTION => 'TIME_SERIES',\n DATA_TABLE_NAME => 'CORONA_CONFIRMED',\n CASE_ID_COLUMN_NAME => 'EVENTDATE',\n TARGET_COLUMN_NAME => 'CONFIRMED',\n SETTINGS_TABLE_NAME => 'CORONA_CONFIRMED_SETTINGS');\nEND;\n/","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","editorHide":false,"title":true,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1093789740","id":"20200204-110030_771795222","dateCreated":"2019-01-14T22:01:20+0000","dateStarted":"2020-02-04T10:40:43+0000","dateFinished":"2020-02-04T10:40:44+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:163"},{"title":"Review the settings of the forecast model","text":"%sql\n\n-- output setting table\nSELECT SETTING_NAME, SETTING_VALUE\n FROM USER_MINING_MODEL_SETTINGS\n WHERE MODEL_NAME = UPPER('CORONA_CONFIRMED_SAMPLE')\n ORDER BY SETTING_NAME;\n","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"SETTING_NAME":"string","SETTING_VALUE":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false,"title":true,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1647687147","id":"20200204-110030_245181372","dateCreated":"2019-08-08T01:17:09+0000","dateStarted":"2020-02-04T10:40:53+0000","dateFinished":"2020-02-04T10:40:53+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:164"},{"title":"Forecast table","text":"%sql\nselect * from DM$VPCORONA_CONFIRMED_SAMPLE\n","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"PARTITION_NAME":"string","CASE_ID":"string","VALUE":"string","PREDICTION":"string","LOWER":"string","UPPER":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-696342032","id":"20200204-110030_435654126","dateCreated":"2020-02-03T14:17:55+0000","dateStarted":"2020-02-04T10:40:57+0000","dateFinished":"2020-02-04T10:40:57+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:165"},{"title":"Review the model signature of forecast model","text":"%sql\n\n-- get signature\nSELECT ATTRIBUTE_NAME, ATTRIBUTE_TYPE\n FROM USER_MINING_MODEL_ATTRIBUTES\n WHERE MODEL_NAME=UPPER('CORONA_CONFIRMED_SAMPLE')\n ORDER BY attribute_name;\n","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":114,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"ATTRIBUTE_NAME":"string","ATTRIBUTE_TYPE":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false,"title":true,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1129475910","id":"20200204-110030_1128267441","dateCreated":"2019-08-08T01:18:51+0000","dateStarted":"2020-02-04T10:41:03+0000","dateFinished":"2020-02-04T10:41:03+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:166"},{"title":"Review the diagnostics and model quality for the forecast model","text":"%sql\n-- get global diagnostics\nSELECT NAME, \n NUMERIC_VALUE, \n STRING_VALUE \n FROM DM$VGCORONA_CONFIRMED_SAMPLE\n ORDER BY NAME;","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"NAME":"string","NUMERIC_VALUE":"string","STRING_VALUE":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false,"title":true,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1852769243","id":"20200204-110030_1750906841","dateCreated":"2019-08-08T01:19:13+0000","dateStarted":"2020-02-04T10:41:10+0000","dateFinished":"2020-02-04T10:41:10+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:167"},{"title":"Show forcasted CONFIRMED values","text":"%sql\n-- To help showing the predictions, use DESC in the ORDER BY statement so that the last points are shown first\n-- The predictions of 4 values into the Future of Confirmed Cases has the PREDICTION \n-- with intervals of confidence LOWER and UPPER, and does not have the actual VALUE \n-- (since it would not have happened yet)\n\nSelect TO_CHAR(CASE_ID,'YYYY-MON-DD') Day, VALUE CONFIRMED, round(PREDICTION,0) FORECAST_CONFIRMED, round(LOWER,2) LOWER_BOUNDS, round(UPPER,2) UPPER_BOUNDS\n FROM DM$VPCORONA_CONFIRMED_SAMPLE\n ORDER BY CASE_ID ASC;","user":"MLUSER","dateUpdated":"2020-02-06T14:53:23+0000","config":{"colWidth":12,"enabled":true,"results":{"0":{"graph":{"mode":"lineChart","height":398,"optionOpen":false,"setting":{"table":{"tableGridState":{"columns":[{"name":"DAY","visible":true,"width":"*","sort":{"priority":0,"direction":"asc"},"filters":[{}],"pinned":""},{"name":"CONFIRMED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"FORECAST_CONFIRMED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"LOWER_BOUNDS","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"UPPER_BOUNDS","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""}],"scrollFocus":{},"selection":[],"grouping":{"grouping":[],"aggregations":[],"rowExpandedStates":{}},"treeView":{},"pagination":{"paginationCurrentPage":1,"paginationPageSize":250}},"tableColumnTypeState":{"names":{"DAY":"date","CONFIRMED":"string","FORECAST_CONFIRMED":"string","LOWER_BOUNDS":"string","UPPER_BOUNDS":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false},"lineChart":{"rotate":{"degree":"-45"},"xLabelStatus":"rotate","isDateFormat":true,"dateFormat":"DD-MM","lineWithFocus":false}},"commonSetting":{},"keys":[{"name":"DAY","index":0,"aggr":"sum"}],"groups":[],"values":[{"name":"CONFIRMED","index":1,"aggr":"sum"},{"name":"FORECAST_CONFIRMED","index":2,"aggr":"sum"},{"name":"LOWER_BOUNDS","index":3,"aggr":"sum"},{"name":"UPPER_BOUNDS","index":4,"aggr":"sum"}]},"helium":{}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"fontSize":9,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_21008478","id":"20200204-110030_259760549","dateCreated":"2019-01-17T18:35:00+0000","dateStarted":"2020-02-04T10:41:17+0000","dateFinished":"2020-02-04T10:41:17+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:168"},{"text":"%md\n## Explore all Exponential Smoothing Models\n<https://docs.oracle.com/en/database/oracle/oracle-database/19/arpls/DBMS_DATA_MINING.html#GUID-91FC543B-24E4-4D93-9D79-E95B1846F3B7>","user":"MLUSER","dateUpdated":"2020-02-04T10:59:33+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"md","editOnDblClick":false},"editorMode":"ace/mode/markdown","editorHide":true},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-531814250","id":"20200204-110030_717669721","dateCreated":"2020-02-04T10:30:22+0000","dateStarted":"2020-02-04T10:41:23+0000","dateFinished":"2020-02-04T10:41:23+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:169"},{"title":"Setup available model","text":"%script\ndrop table timeseries_algo;\n/\n\nCREATE TABLE timeseries_algo(algotype VARCHAR2(4000), \n mae number);\nBEGIN\n -- Set ESM model to be Simple\n INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_SIMPLE,0);\n INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_SIMPLE_MULT,0);\n INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_HOLT,0);\n INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_HOLT_DMP,0);\n INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_MUL_TRND,0);\n INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_MULTRD_DMP,0);\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_SEAS_ADD,0); -- Excluded because takes into consideration seasonality\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_SEAS_MUL,0); -- Excluded because takes into consideration seasonality\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_HW,0); -- Excluded because takes into consideration seasonality\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_HW_DMP,0); -- Excluded because takes into consideration seasonality\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_HW_ADDSEA,0); -- Excluded because takes into consideration seasonality\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_DHW_ADDSEA,0); -- Excluded because takes into consideration seasonality\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_HWMT,0); -- Excluded because takes into consideration seasonality\n-- INSERT INTO timeseries_algo VALUES(DBMS_DATA_MINING.EXSM_HWMT_DMP,0); -- Excluded because takes into consideration seasonality\n\nEND;\n/\n\n\n\n","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","editorHide":false,"title":true},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1809133318","id":"20200204-110030_372276422","dateCreated":"2020-02-03T17:41:16+0000","dateStarted":"2020-02-04T10:41:27+0000","dateFinished":"2020-02-04T10:41:28+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:170"},{"title":"Drop previous models, model settings and create a new forecast model to predict CASES","text":"%script\n\n-- Cleanup old settings table\nBEGIN EXECUTE IMMEDIATE 'DROP TABLE CORONA_CONFIRMED_SETTINGS1';\nEXCEPTION WHEN OTHERS THEN NULL; END;\n/\n\n-- Cleanup old model with the same name\nBEGIN DBMS_DATA_MINING.DROP_MODEL('CORONA_CONFIRMED_SAMPLE1');\nEXCEPTION WHEN OTHERS THEN NULL; END;\n/\n\n\nCREATE TABLE CORONA_CONFIRMED_SETTINGS1(SETTING_NAME VARCHAR2(30), \n SETTING_VALUE VARCHAR2(128));\nBEGIN\n -- Select ESM as the algorithm\n INSERT INTO CORONA_CONFIRMED_SETTINGS1 \n VALUES(DBMS_DATA_MINING.ALGO_NAME,\n DBMS_DATA_MINING.ALGO_EXPONENTIAL_SMOOTHING);\n -- Set accumulation interval to be a day\n INSERT INTO CORONA_CONFIRMED_SETTINGS1 \n VALUES(DBMS_DATA_MINING.EXSM_INTERVAL,\n DBMS_DATA_MINING.EXSM_INTERVAL_DAY);\n -- Set prediction step to be 4 days \n INSERT INTO CORONA_CONFIRMED_SETTINGS1 \n VALUES(DBMS_DATA_MINING.EXSM_PREDICTION_STEP,'8');\n -- Set ESM model to be Simple\n INSERT INTO CORONA_CONFIRMED_SETTINGS1 \n VALUES(DBMS_DATA_MINING.EXSM_MODEL,\n DBMS_DATA_MINING.EXSM_SIMPLE);\n -- Set seasonal cycle to be 4 days\n --INSERT INTO ESM_SH_SETTINGS \n -- VALUES(DBMS_DATA_MINING.EXSM_SEASONALITY,'365');\nEND;\n/","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","editorHide":false,"title":true,"fontSize":9},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1424475577","id":"20200204-110030_467657638","dateCreated":"2020-02-03T15:05:35+0000","dateStarted":"2020-02-04T10:41:33+0000","dateFinished":"2020-02-04T10:41:33+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:171"},{"text":"%sql\nselect * from CORONA_CONFIRMED_SETTINGS1;","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{"columns":[{"name":"SETTING_NAME","visible":true,"width":"*","sort":{"priority":0,"direction":"asc"},"filters":[{}],"pinned":""},{"name":"SETTING_VALUE","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""}],"scrollFocus":{},"selection":[],"grouping":{"grouping":[],"aggregations":[],"rowExpandedStates":{}},"treeView":{},"pagination":{"paginationCurrentPage":1,"paginationPageSize":250}},"tableColumnTypeState":{"names":{"SETTING_NAME":"string","SETTING_VALUE":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1185617338","id":"20200204-110030_1232805873","dateCreated":"2020-02-03T16:26:01+0000","dateStarted":"2020-02-04T10:41:39+0000","dateFinished":"2020-02-04T10:41:39+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:172"},{"text":"%script\n-- Cleanup old model with the same name\nBEGIN DBMS_DATA_MINING.DROP_MODEL('CORONA_CONFIRMED_SAMPLE1');\nEXCEPTION WHEN OTHERS THEN NULL; END;\n/\nBEGIN\nDBMS_DATA_MINING.CREATE_MODEL(MODEL_NAME => 'CORONA_CONFIRMED_SAMPLE1',\n MINING_FUNCTION => 'TIME_SERIES',\n DATA_TABLE_NAME => 'CORONA_CONFIRMED',\n CASE_ID_COLUMN_NAME => 'EVENTDATE',\n TARGET_COLUMN_NAME => 'CONFIRMED',\n --data_schema_name => 'OUTPUT',\n SETTINGS_TABLE_NAME => 'CORONA_CONFIRMED_SETTINGS1');\nEND;","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1136639217","id":"20200204-110030_1435232138","dateCreated":"2020-02-03T20:55:32+0000","dateStarted":"2020-02-04T10:41:44+0000","dateFinished":"2020-02-04T10:41:44+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:173"},{"title":"Loop into all ESM models available collecting Mean Average Error (MAE)","text":"%script\nBEGIN\n\nFOR item IN ( select * from timeseries_algo ) \nLOOP\n \n UPDATE CORONA_CONFIRMED_SETTINGS1\n SET SETTING_VALUE = item.algotype\n WHERE SETTING_NAME='EXSM_MODEL';\n \n DBMS_DATA_MINING.DROP_MODEL('CORONA_CONFIRMED_SAMPLE1');\n \n DBMS_DATA_MINING.CREATE_MODEL(MODEL_NAME => 'CORONA_CONFIRMED_SAMPLE1',\n MINING_FUNCTION => 'TIME_SERIES',\n DATA_TABLE_NAME => 'CORONA_CONFIRMED',\n CASE_ID_COLUMN_NAME => 'EVENTDATE',\n TARGET_COLUMN_NAME => 'CONFIRMED',\n --data_schema_name => 'OUTPUT',\n SETTINGS_TABLE_NAME => 'CORONA_CONFIRMED_SETTINGS1');\n \n DBMS_OUTPUT.PUT_LINE('Model creation completed');\n DBMS_OUTPUT.PUT_LINE(item.algotype);\n\n \n UPDATE timeseries_algo\n SET MAE = (\n SELECT NUMERIC_VALUE\n FROM DM$VGCORONA_CONFIRMED_SAMPLE1\n WHERE \"NAME\"='MAE' )\n WHERE algotype=item.algotype;\n \n\nEND LOOP;\nEND;\n/","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_381160214","id":"20200204-110030_1086875569","dateCreated":"2020-02-03T16:50:50+0000","dateStarted":"2020-02-04T10:41:48+0000","dateFinished":"2020-02-04T10:41:51+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:174"},{"title":"MAE collected to choose proper algorithm","text":"%sql\nselect * from timeseries_algo","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":300,"optionOpen":false,"setting":{"table":{"tableGridState":{},"tableColumnTypeState":{"names":{"ALGOTYPE":"string","MAE":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false}},"commonSetting":{}}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_-1909918309","id":"20200204-110030_619609821","dateCreated":"2020-02-03T20:31:57+0000","dateStarted":"2020-02-04T10:41:56+0000","dateFinished":"2020-02-04T10:41:56+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:175"},{"title":"Re-Create a model chosen taking in consideration MAE","text":"%script\nBEGIN\n \n DBMS_DATA_MINING.DROP_MODEL('CORONA_CONFIRMED_SAMPLE1');\n \n UPDATE CORONA_CONFIRMED_SETTINGS1\n SET SETTING_VALUE = 'EXSM_HOLT'\n WHERE SETTING_NAME='EXSM_MODEL';\n \n DBMS_DATA_MINING.CREATE_MODEL(MODEL_NAME => 'CORONA_CONFIRMED_SAMPLE1',\n MINING_FUNCTION => 'TIME_SERIES',\n DATA_TABLE_NAME => 'CORONA_CONFIRMED',\n CASE_ID_COLUMN_NAME => 'EVENTDATE',\n TARGET_COLUMN_NAME => 'CONFIRMED',\n --data_schema_name => 'OUTPUT',\n SETTINGS_TABLE_NAME => 'CORONA_CONFIRMED_SETTINGS1');\n\nEND;\n/\n","user":"MLUSER","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"fontSize":9,"enabled":true,"results":{"0":{"graph":{"mode":"table","height":130,"optionOpen":false}}},"editorSetting":{"language":"plsql","editOnDblClick":false},"editorMode":"ace/mode/plsql","editorHide":false,"tableHide":false,"title":true},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_1966198397","id":"20200204-110030_897284390","dateCreated":"2020-02-03T20:33:44+0000","dateStarted":"2020-02-04T10:58:00+0000","dateFinished":"2020-02-04T10:58:00+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:176"},{"title":"EXSM_HOLT: Show forecasted CONFIRMED values","text":"%sql\n-- To help showing the predictions, use DESC in the ORDER BY statement so that the last points are shown first\n-- The predictions of 8 values into the Future of Confirmed Cases has the PREDICTION \n-- with intervals of confidence LOWER and UPPER, and does not have the actual VALUE \n-- (since it would not have happened yet)\n\nSelect TO_CHAR(CASE_ID,'YYYY-MON-DD') Day, VALUE CONFIRMED, round(PREDICTION,0) FORECAST_CONFIRMED, round(LOWER,2) LOWER_BOUNDS, round(UPPER,2) UPPER_BOUNDS\n FROM DM$VPCORONA_CONFIRMED_SAMPLE1\n ORDER BY CASE_ID ASC;","user":"MLUSER","dateUpdated":"2020-02-06T14:53:24+0000","config":{"colWidth":12,"enabled":true,"results":{"0":{"graph":{"mode":"lineChart","height":524.023,"optionOpen":false,"setting":{"table":{"tableGridState":{"columns":[{"name":"DAY","visible":true,"width":"*","sort":{"priority":0,"direction":"asc"},"filters":[{}],"pinned":""},{"name":"CONFIRMED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"FORECAST_CONFIRMED","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"LOWER_BOUNDS","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""},{"name":"UPPER_BOUNDS","visible":true,"width":"*","sort":{},"filters":[{}],"pinned":""}],"scrollFocus":{},"selection":[],"grouping":{"grouping":[],"aggregations":[],"rowExpandedStates":{}},"treeView":{},"pagination":{"paginationCurrentPage":1,"paginationPageSize":250}},"tableColumnTypeState":{"names":{"DAY":"date","CONFIRMED":"string","FORECAST_CONFIRMED":"string","LOWER_BOUNDS":"string","UPPER_BOUNDS":"string"},"updated":false},"tableOptionSpecHash":"[{\"name\":\"useFilter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable filter for columns\"},{\"name\":\"showPagination\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable pagination for better navigation\"},{\"name\":\"showAggregationFooter\",\"valueType\":\"boolean\",\"defaultValue\":false,\"widget\":\"checkbox\",\"description\":\"Enable a footer for displaying aggregated values\"}]","tableOptionValue":{"useFilter":false,"showPagination":false,"showAggregationFooter":false},"updated":false,"initialized":false},"lineChart":{"rotate":{"degree":"-45"},"xLabelStatus":"rotate","isDateFormat":true,"dateFormat":"DD-MM","lineWithFocus":false}},"commonSetting":{},"keys":[{"name":"DAY","index":0,"aggr":"sum"}],"groups":[],"values":[{"name":"CONFIRMED","index":1,"aggr":"sum"},{"name":"FORECAST_CONFIRMED","index":2,"aggr":"sum"},{"name":"LOWER_BOUNDS","index":3,"aggr":"sum"},{"name":"UPPER_BOUNDS","index":4,"aggr":"sum"}]},"helium":{}}},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","title":true,"fontSize":9,"editorHide":false},"settings":{"params":{},"forms":{}},"results":{"code":"SUCCESS","msg":"[]"},"jobName":"paragraph_1580814030884_1637269785","id":"20200204-110030_1061580724","dateCreated":"2020-02-03T15:07:46+0000","dateStarted":"2020-02-04T10:58:05+0000","dateFinished":"2020-02-04T10:58:05+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:177"},{"text":"%sql\n","user":"CHARLIE","dateUpdated":"2020-02-04T10:58:38+0000","config":{"colWidth":12,"enabled":true,"results":{},"editorSetting":{"language":"sql","editOnDblClick":false},"editorMode":"ace/mode/osql","fontSize":9,"editorHide":false},"settings":{"params":{},"forms":{}},"jobName":"paragraph_1580814030884_-1408872613","id":"20200204-110030_1018196482","dateCreated":"2019-04-14T23:01:11+0000","status":"FINISHED","progressUpdateIntervalMs":500,"commited":true,"$$hashKey":"object:178"}],"name":"Outbreak_prediction","id":"552570","noteParams":{},"noteForms":{},"angularObjects":{"MDW381939C745:shared_process":[],"ORA391D318D99:shared_process":[]},"config":{"looknfeel":"default","personalizedMode":"false"},"info":{}}