Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • W Wiki Home
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Jobs
  • Issue Boards
Collapse sidebar
  • SDK4ED WikiSDK4ED Wiki
  • Wiki Home
  • Wiki
  • Forecaster Toolbox Usage

Forecaster Toolbox Usage · Changes

Page history
Update Forecaster Toolbox Usage authored May 06, 2020 by Dimitris Tsoukalas's avatar Dimitris Tsoukalas
Hide whitespace changes
Inline Side-by-side
Forecaster-Toolbox-Usage.md
View page @ d9abaf44
...@@ -67,7 +67,7 @@ The response of the submitted command is a JSON object containing the forecasted ...@@ -67,7 +67,7 @@ The response of the submitted command is a JSON object containing the forecasted
## Energy Forecasting Example ## Energy Forecasting Example
In this example we want to predict Energy Consumption of the [Sbeamer Gapbs](https://github.com/sbeamer/gapbs) test project for 5 steps ahead. Sbeamer Gapbs dataset contains 60 versions, so we expect the response to contain predicted TD values for versions 61 to 65. Again, we set the *horizon* parameter to *5* and the *regressor* parameter to *auto*, in order to allow the Energy Forecaster to choose the best model based on training error minimization. In this example we want to predict Energy Consumption of the [Sbeamer Gapbs](https://github.com/sbeamer/gapbs) test project for 5 steps ahead. Sbeamer Gapbs dataset contains 60 versions, so we expect the response to contain predicted Energy values for versions 61 to 65. Again, we set the *horizon* parameter to *5* and the *regressor* parameter to *auto*, in order to allow the Energy Forecaster to choose the best model based on training error minimization.
Once the server is running, open your web browser and navigate to the following URL: Once the server is running, open your web browser and navigate to the following URL:
...@@ -110,4 +110,71 @@ The response of the submitted command is a JSON object containing the forecasted ...@@ -110,4 +110,71 @@ The response of the submitted command is a JSON object containing the forecasted
}, },
"status": 200 "status": 200
} }
```
## Dependability Forecasting Example
In this example we want to predict Security Index of the [Square Retrofit](https://github.com/square/retrofit) test project for 10 steps ahead. Square Retrofit dataset contains 100 versions, so we expect the response to contain predicted Security Index values for versions 101 to 110. Again, we set the *horizon* parameter to 10 and the *regressor* parameter to *auto*, in order to allow the Dependability Forecaster to choose the best model based on training error minimization.
Once the server is running, open your web browser and navigate to the following URL:
http://127.0.0.1:5000/ForecasterToolbox/DependabilityForecasting?horizon=10&project=square_retrofit_security_measures&regressor=auto&ground_truth=no&test=no
The response of the submitted command is a JSON object containing the forecasted Security Index values of the Square Retrofit test project for versions 101 to 110 (10 steps) ahead, using the Ridge regressor, which the back-end selected as the most appropriate model for this occasion. This JSON object is illustrated below:
```json
{
"message": "The request was fulfilled.",
"results": {
"forecasts": [{
"value": 0.5873630344782443,
"version": 101
},
{
"value": 0.5873872305014517,
"version": 102
},
{
"value": 0.5873851825549331,
"version": 103
},
{
"value": 0.5873899738434318,
"version": 104
},
{
"value": 0.5873912182152962,
"version": 105
},
{
"value": 0.5873911908894475,
"version": 106
},
{
"value": 0.5873845169066217,
"version": 107
},
{
"value": 0.5874247533300624,
"version": 108
},
{
"value": 0.5874660119523348,
"version": 109
},
{
"value": 0.5875627761835703,
"version": 110
}
],
"parameters": {
"ground_truth": "no",
"horizon": 10,
"project": "square_retrofit_security_measures",
"regressor": "ridge",
"test": "no"
}
},
"status": 200
}
``` ```
\ No newline at end of file
Clone repository
  • Advanced
  • Architectural Toolbox Description
  • Architectural Toolbox Front End
  • Architectural Toolbox Home
  • Architectural Toolbox Installation
  • Architectural Toolbox Usage
  • Decision Support Toolbox Description
  • Decision Support Toolbox Front end
  • Decision Support Toolbox Installation
  • Decision Support Toolbox Usage
  • Decision Support Toolbox
  • Energy Toolbox Description
  • Energy Toolbox Front end
  • Energy Toolbox Installation
  • Energy Toolbox Usage
View All Pages