I use machine learning algorithm in Malware analysis. When I input some features, I get strange training time. For example:
- 4 feature(A,B,C,D), model training time is 3 seconds.
- 3 Features(A,B,C), training time is 5 seconds.
- 2 features(A, B), training time is 8 seconds.
- 1 feature(A), training time is 4 seconds. This kind of result happens on both MLP and Random Forest. In my opinion, the training time should be faster if I use less features, but the result is complete different.
In KNN, the result will be like these:
- If I using 6,5,4,3 features(A,B,C,D,E,F), model testing time is about 1.1 seconds, almost the same.
- 2 features(A,B), model testing time is 3 seconds.
- 1 feature (A), model testing time is 5 seconds.
My dataset has 17K records and using 10-Fold cross-validation. The feature is sort by their entropy, feature A have highest entropy and feature F is lowest. Using Google Colab with sklearn for the testing. I tried several times in different date, and the trend is the same. The feature of my dataset has total 79 features, the appearance only happens with few features.
Thanks for anyone who reply me, I have no idea about it.