qiyu3816 / MTFNN-CO

[IEEE TMC 2020] "Computation Offloading in Multi-Access Edge Computing: A Multi-Task Learning Approach" and [IEEE GlobeCom 2023] "A Multi-Head Ensemble Multi-Task Learning Approach for Dynamical Computation Offloading" by TensorFlow
62 stars 11 forks source link

ValueError: Found array with 0 feature(s) (shape=(2, 0)) while a minimum of 1 is required by MinMaxScaler. #3

Closed learnibg closed 8 months ago

learnibg commented 8 months ago

How can I resolve this error? It seems that I am unable to locate the dataset that needs to be accessed.

qiyu3816 commented 8 months ago

MinMaxScaler is only used in utils/dataset.py. If the error is reported in this line, I suggest you check whether the dataset of the input filepath is valid. If you are using the original dataset in this repository but still getting an error, please take detailed screenshots of the code and report.

learnibg commented 8 months ago

I have successfully resolved the issue by downloading the raw file from the datasets folder of the MTFNN-CO model and renaming the downloaded .txt file. Thank you very much!

qiyu3816 commented 8 months ago

OK. Good luck!