当前位置:天才代写 > Python代写,python代做代考-价格便宜,0时差服务 > jupyter notebook代写 > Artificial Intelligence代写 classification models代写 Python code代写

Artificial Intelligence代写 classification models代写 Python code代写

2020-11-05 17:38 星期四 所属: jupyter notebook代写 浏览:699

Artificial Intelligence代写

School of Computer Science The University of Adelaide

Artificial Intelligence代写 In this assignment, you will develop several classification models to classify noisy input images into

Artificial Intelligence Assignment 2

Semester 1, 2018

due 11:55pm, Monday 14th May 2018

Introduction Artificial Intelligence代写

In this assignment, you will develop several classification models to classify noisy input images into the classes square or circle, as shown in Fig. 1

Artificial Intelligence代写
Artificial Intelligence代写

Figure 1: Samples of noisy images labelled as square (left) and circle (right).

Your classification models will use the training and testing sets (that are available with this assignment) containing many image samples labelled as square or circle. Your task is to write a Python code that can be run on a Jupyter Notebook session, which will train and validate the following classification models:Artificial Intelligence代写

1)K Nearest neighbour (KNN) classifier [35 marks]. For the KNN classifier, you can only use standard Python libraries (e.g., numpy) in order to implement all aspects of the training and testing algorithms. You will need to implement two functions: a) one to build a K-d tree from the training set (this function takes the training samples and labels as its parameters), and b) another to test the KNN classifier and compute the classification accuracy, where the parameters are K and the test images and labels. Using matplotlib, plot a graph of the evolution of classification accuracy for the training and testing sets as a function of K, where K = 1 to 10. Clearly identify the value of K, where generalisation is best.

2)Decision tree classifier [35 marks].Artificial Intelligence代写

For the decision tree classifier, you can only use standard Python libraries (e.g., numpy) in order to implement all aspects of the training and testing algorithms. Essentially you will need to implement two functions: a) one to train the decision tree using the training samples and labels plus a pre-pruning parameter indicating theminimum information content before stop splitting, and b) another to test the decision tree and compute the classification accuracy (similarly to the KNN classifier, the test function takes as one of its parameters the test images and labels and returns the classification accuracy). Using matplotlib, plot a graph of the evolution of classification accuracy for the training and testing sets as a function of the information content, where information content = 0 to 0.5 bits. Clearly identify the value of information content, where generalisation is best.

Artificial Intelligence代写
Artificial Intelligence代写
3)Convolutional neural network (CNN) classifier [20 marks].

For the convolutional neural network, you are allowed to use Keras using TensorFlow backend, similar to the example shown in the code provided. The CNN structure is the lenet structure used in lecture. Using matplotlib, please plot a graph of the evolution of accuracy for the training and testing sets as a function of the number of epochs, where the max number of epochs is 200. Clearly identify the value of information content, where generalisation is best.Artificial Intelligence代写

A sample code that trains and tests a multi-layer perceptron classifier that can run on a Jupyter Notebook session is provided, and it is expected that the submitted code can run on a Jupyter Notebook session in a similar manner. A held-out test set will be used to test the generalisation of the implemented classification models, but this held-out set will only be available after the assignment deadline – please note that this held-out set will contain samples obtained from the same distributions used to generate the training and testing sets.Artificial Intelligence代写

You must write the program yourself in Python, and the code must be a single file that can run on a Jupyter Notebook session (file type .ipynb). You will only get marks for the parts that you implemented yourself. If you use a library package or language function call for training or testing a KNN or a Decision Tree classifier, then you will be limited to 50% of the available marks (noting that this assignment is a hurdle for the course). If there is evidence you have simply copied code from the web, you will be awarded no marks and referred for plagiarism

Submission Artificial Intelligence代写

You must submit, by the due date, two files:

  1. ipynb file containing your code with the three classifiers and all implementations describedabove
  2. pdf file with a short written report detailing your implementation in no more than 1 page, and the followingresults:

a)The training and testing accuracies at the best generalisation operating point for each type of classifier, using a table [5marks]:

  Training Accuracy Testing Accuracy
K=1 NN   Artificial Intelligence代写

 

   
K=10 NN Artificial Intelligence代写  
DT (IC = 0 bits)    
   
DT (IC = 0.5 bits)   Artificial Intelligence代写
CNN    

 

b)Running time for training and testing algorithms accuracies of each type of classifier, using a table [5marks]:

  Training Time Testing Time
K=1 NN    
   
K=10 NN Artificial Intelligence代写  
DT (IC = 0 bits)    
Artificial Intelligence代写  
DT (IC = 0.5 bits)    
CNN    

c)Bonus question: How can the classification accuracy of the decision tree classifier be improved? Please implement your idea (hint: dimensionality reduction) [10marks].

Total number of marks: 100 + 10 bonus marks Artificial Intelligence代写

This assignment is due 11.55pm on Monday 14th May, 2018. If your submission is late, the maximum mark you can obtain will be reduced by 25% per day (or part thereof) past the due date or any extension you are granted.Artificial Intelligence代写

This assignment relates to the following ACS CBOK areas: abstraction, design, hardware and software, data and information, HCI and programming.

Artificial Intelligence代写
Artificial Intelligence代写

其他更多:C++代写 r代写 代码代写 金融代写  考试助攻 C语言代写 finance代写 lab代写 计算机代写 code代写 data代写 report代写 代写CS matlab代写

合作平台:天才代写 幽灵代写 写手招聘 Essay代写

 

天才代写-代写联系方式