KevinHoarau / BML

https://kevinhoarau.github.io/BML/
MIT License
14 stars 3 forks source link

What is the function of the “NbSnapshots” parameter? #5

Open ljy278 opened 11 months ago

ljy278 commented 11 months ago

datTran = DatasetTransformation(folder, "HeterogeneousGraph", "HeterogeneousGraph")

datTran.setParams({ "global":{ "Name": "HeterogeneousGraph", "Period": 2, "relabel_nodes": True,

"NbSnapshots": 30,

        "SkipIfExist": False,
    }
})
KevinHoarau commented 11 months ago

It allows setting the maximum number of HeterogeneousGraph extracted in a period of interest. I recommend you to use it if you want to have exactly the same number of HeterogeneousGraph for each period of interest. Indeed, if you collect BGP data for 60 minutes and extract HeterogeneousGraph with a period of 1, you should get 60 graphs. However, if no BGP data has been collected between t+59 minutes and t+60, you may get 59 graphs. There is probably a way to fix this, but a workaround is to collect BGP data for let's say 62 minutes and fix the nb snapshots to 60.