To optimise hyperparameter of ML Model using F1
Version 1.0.4 (359 KB) by
Kevin Chng
To optimise hypeparameter of ML Model based on different evaluation metrics (Accuracy, Recall, Precision, F1, F2, F0.5)
Grid search, Random search and Bayesian optimization are popular approaches to find the best combinations of parameter of Machine Learning model, cross validate each and determine which one gives the best performance.
This example will also discuss about how to fine tune the hyperparameter based on different evaluation metrics (Accuracy, Recall, Precision, F1, F2, F0.5)
Cite As
Kevin Chng (2026). To optimise hyperparameter of ML Model using F1 (https://ch.mathworks.com/matlabcentral/fileexchange/71000-to-optimise-hyperparameter-of-ml-model-using-f1), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R2019a
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Statistics and Machine Learning Toolbox in Help Center and MATLAB Answers
Tags
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
