Queensland University of Technology Project: CAB320 Artificial Intelligence, completed in Semester 1 of 2020 (Feb' - June).
The aim of this project was to build four different types of classifiers and present their performance in a report. The classification task was to predict whether a tumour would be malignant or benign, denoted by M and B, respectively.
Types of classifiers and pre-selected hyperparameter;
- Nearest Neighbour: number of neighbours,
- Decision Tree: maximum depth of the tree,
- Support Vector Machine: parameter C,
- Neural Network: number of neurons in the hidden layer.
The maths behind each classification algorithm was not the subject of this work, the implementation of each classifier using Scikit-learn libraries was.
The works was separated into two steps;
-
Pre-processing the data. Prepossessed data set to remove any anomalies and convert to NumPy arrays. Separate patient diagnosis and patient test results into response and feature variables, respectively.
-
Building the classifiers. Each classifier follows the below pseudo-code with the appropriate libraries and functions used.
- Initialise the classifier from the sklearn library,
- Execute the grid search for hyperparameter optimization,
- Fit the data to the estimator,
- Re-train the estimator using the optimized parameter,
- Re-fit the data to the estimator.
By Harry Akeroyd. [email protected]