rswc / ml-ids

Code for our bachelor's thesis, "Intusion Detection in Imbalanced and Evolving Data Streams"
MIT License
1 stars 0 forks source link

Fix SyntheticStream Interface #59

Closed desecnd closed 8 months ago

desecnd commented 8 months ago

This PR fixes SyntheticStream interface implementation - adding inheritence from River dataset, allowing for using river.datasets.base.Dataset methods.

Few differences:

In the current state SyntheticStream is a bit strange creation due to the fact it should be "flexible" but we kinda don't need it as flexible as it was designed for - as noted earlier @rswc so it is my overcomplicating mistake. The best approach would be probably to refactor it as some kind of rivers' SyntheticDataset-based class with init functions to modify class weights. But there currently no time to change it, and it does not really matter right now, so lets leave it as it is.