-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c1d564a
commit 8e925c5
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# HowTo | ||
|
||
This folder contains additional code used for model testing and feature generation. We assume the experimenter has run an experiment using the WiSHFUL UPIs for WSNs that support TAISC (http://www.wishful-project.eu/software) and a global control program with event-based monitoring using the *RIME_appPerPacket_rxstats* event. | ||
|
||
The generic flow for modeling the MAC-level performance predictor is described below. | ||
|
||
## Data collection | ||
|
||
To generate experimental data for MAC statistics the following steps are involved: | ||
* Create WiSHFUL control program (configure network and radio parameters) | ||
* Register events for which data has to be collected (MAC statistics) | ||
* Define scenario | ||
* Define monitoring duration | ||
* Dump data for post-processing (SQLite, CSV, MySQL, OML...) | ||
|
||
 | ||
|
||
|
||
## Feature Generator | ||
|
||
### *Offline Feature Extraction* | ||
|
||
To extract MAC-level performance statistics from the collected the *MACperfFeatureGenerator.py* script is used. The script takes the path to the experimental data as input argument. | ||
``` | ||
python MACstatsFeatureGenerator.py -d “Path to data” | ||
``` | ||
 | ||
|
||
### *On-the-fly Feature Extraction* | ||
|
||
MAC-level performance statistics can be automatically extracted on-the-fly in the data collection phase. The framework extension module will be soon available. | ||
|
||
 | ||
|
||
|
||
## Create MAC-level performance predictor | ||
Train the MAC-level performance predictor: | ||
``` | ||
java -classpath weka.jar weka.classifiers.functions.MultilayerPerceptron -t “Path to dataset" -L 0.1 -N 2000 -H 10 -d “Path to model" | ||
``` | ||
 | ||
|
||
|
||
## Evaluate Model | ||
|
||
To evaluate the provided serialized neural network model with trace-based simulation, the testModel.py script can be used in the following way: | ||
``` | ||
python -p "Path to Weka application folder" -m "Path to Weka serialized model object" -d "Path to testing set" | ||
``` | ||
The script generates a performance graph showing the real vs. predicted instance. | ||
|
||
 |