You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Jun 5, 2025. It is now read-only.
Using Optuna optimisation with 50 trials Best parameters found via Optuna: {'hidden_dim': 170, 'learning_rate': 0.0014823754382745518, 'epochs': 83, 'test_size': 0.200317595018103, 'random_state': 42} Best validation accuracy: 0.9928516281300459
Using the MiniLM-L6 ANN with these parameters yields:
See the most up to date tuning notebook here, using the LlamaCPP MiniLM version for consistency with CodeGate - nn_hyperparameters-llamacpp.ipynb
Training on Linux and MacOS command data only (n=6087), and extending the test dataset size with further synthetic commands to n=699
Training set:
count
os
category
linux
bad
1529
good
437
macos
good
2494
bad
1627
Test set:
category
bad 419
good 280
Note: the test set is not labelled by OS, this is something I should do but for now treating all of them as Linux/MacOS should be a reasonable approximation due to their similarity.
The best trial hyperparameter were:
{'hidden_dim': 80, 'learning_rate': 0.000275870479272048, 'epochs': 62}
Final validation loss: 0.0978560414854679
We need to explore the dimensions and learning parameters of the ANN and optimise it.