How to Run
Execute
process1.pyto convert thecsvfile into apklfile.Run one of the
process2scripts based on your requirements:Note: We use
-1000to represent the position of package loss. You can apply various interpolation methods to fill these gaps. We highly encourage you to try our CSI-BERT model to recover the lost packages. (CSI-BERT, CSI-BERT2)(1) If you want to process each record into a long sequence, run
process2.py. You can refer todataset.pyin CSI-BERT2 for guidance.(2) If you prefer to split each record into multiple fixed-length samples, run
process2-split.pyand modify thelengthparameter in the code to your desired length. You can refer todataset.pyin CSI-BERT, CrossFi, KNN-MMD, and LoFi for usage instructions.(3)
process2-squeeze-split.pyfunctions similarly toprocess2-split.py, but it excludes all lost packages.