代写Artificial Intelligence-ECS759P代写-AI代写
代写Artificial Intelligenc

代写Artificial Intelligence-ECS759P代写-AI代写

ECS759P Artificial Intelligence: Coursework 2

代写Artificial Intelligence You are encouraged to ask any question and discuss via Student Forum on the module QMPlus page.

You are encouraged to ask any question and discuss via Student Forum on the module QMPlus page. You can also come during the office hours of Dr. Julia Ive (Wednesdays 2pm-4pm, CS 409) or email her at [email protected] but using the QMPlus forum for discussion is preferable.

1 Introduction

The coursework is composed of two questions. The first is a writing exercise about logic and reasoning.The second exercise is on classification and involves programming.

  • Crystal clear (Logic problem): 50%
  • Lost in the closet (Classification): 50%

2 Crystal clear (Logic problem)  代写Artificial Intelligence

Although you are looking for it everywhere, you cannot find your true love. A bit desperate, you decide to see Madame Irma, the most famous (and serious) fortune teller of the city. On the entrance you see a sign stating: Everything that I say must be proved to be believed. More perplexed than ever,you still go inside. After glaring at you for some time, she looks into her crystal ball, which has a strange glow, and says in a mysterious voice:

  • You have a dog.
  • The person you are looking for buys carrots by the bushel.
  • Anyone who owns a rabbit hates anything that chases any rabbit.
  • Every dog chases some rabbit.
  • Anyone who buys carrots by the bushel owns either a rabbit or a grocery store.
  • Someone who hates something owned by another person will not date that person.

The sentences you just heard reminds you of a person: Robin. But before you leave, she challenges you with a conclusion:

  • If the person you are looking for does not own a grocery, she will not date you.

Remembering the sentence at the entrance, you realise that what she has told you is true only if you can prove her challenging conclusion. Since you do not want any awkward situation, you decide to provide a proof for her conclusion before going to see Robin.

  1. Express Madame Irma’s six statements into First Order Logic (FOL). Note: You can use two constants: YOU and ROBIN.This question carries 10% of the mark for this coursework.
  1. Translate the obtained expressions to Conjunctive Normal Forms (CNFs, Steps 1-6 of Lecture 9: Logic). Show and explain your work.This question carries 10% of the mark for this coursework.   代写Artificial Intelligence
  1. Transform Madame Irma’s conclusion into FOL, negate it and convert it to CNF (Steps 1-6 of Lecture 9: Logic). Show and explain your work.This question carries 10% of the mark for this coursework.
  1. Based on all the previously created clauses (you should have at least 7 depending on how you split them), finalise the conversion to CNF (Steps 7-8 of Lecture 9: Logic) and provide a proof by resolution that Madame Irma is right that you should go to see Robin to declare to her your (logic) love. Show and explain your work, provide unifiers.

This question carries 20% of the mark for this coursework.

Note: Make sure to follow the order of steps for the CNF conversion as given in Lecture 9 and report all the steps (state “nothing to do” for the steps where this is the case).

代写Artificial Intelligenc
代写Artificial Intelligenc

3 Lost in the closet (Classification)

You are an artist who secluded yourself for years to come up with the perfect design for a new brand of clothes. However, your time off from civilisation was not so beneficial since you cannot distinguish a T-shirt from a dress or a sneaker from a sandal any more. In order to address that issue, you choose to train a Convolutional Neural Network (using PyTorch) that will help you identify each cloth to match the perfect design you created. In order to train it, you decide to rely on the dataset fashion MNIST (https://github.com/zalandoresearch/fashion-mnist).

You can access the data using the following lines:

代写Artificial Intelligence
代写Artificial Intelligence
  1. Given the problem, what is the most appropriate loss function to use? Provide the name of the loss, its formula and the formula interpretation in your report.

This question carries 10% of the mark for this coursework.

2.Create and train a Convolutional Neural Network corresponding to the following architecture(also see the diagram below):

  1. Input image size: 28 × 28 × 1 (height × width × number of channels).
  2. First convolutional layer: Kernel size (5 × 5), Stride size (1 × 1) and 32 output channels.

Activation function.

3.Max pooling layer: Kernel size (2 × 2) and Stride size (2 × 2).

4.Second convolutional layer: Kernel size (5×5), Stride size (1 × 1) and 64 output channels.   代写artificial-intelligence

Activation function.

5.Max pooling layer: Kernel size (2 × 2) and Stride size (2 × 2).

6.First fully-connected layer with input size being the output size of max pooling layer in 5.

(flattened, i.e. 1024) and output size 1024. Activation function.

7.Second fully-connected layer with input size being the output size of fully connected layer in 6.(i.e. 1024) and output size 256. Activation function.

8.Output layer with input size being the output size of fully-connected layer in 7. (i.e. 256)and output size 10.

For training, initialise your weights using the Xavier Uniform initialisation, use ReLU as the activation function, a learning rate of 0.1 with the SGD optimiser. You will train your neural network for 30 epochs. In your report, provide the following: (a) final (train and test) accuracy obtained; (b) plot of the accuracy on the training and test sets per each epoch, comment on the speed of performance changes across epochs; (c) plot of the train loss per epoch (total sum of per batch losses for each epoch) and comment on the speed of decrease.

This question carries 15% of the mark for this coursework.

  1. Run three experiments each time changing all the current activation functions to one of the following: Tanh, Sigmoid and ELU. In your report, provide only the final classification accuracy values (train and test) per activation function and comment on the result.

This question carries 6% of the mark for this coursework.

  1. Keeping ReLU, use 5 different learning rates: 0.001, 0.1, 0.5, 1, 10. In your report, provide the train loss, as well as the accuracy values for both train and test for each learning rate and comment on the trade-offs between speed and stability of convergence. Comment on why you get the Nan loss if any.

This question carries 9% of the mark for this coursework.

  1. Add a dropout of 0.3 rate on the second fully connected layer (keeping ReLU and learning rate 0.1). In your report, provide the train and test accuracy values and explain how does the dropout affect the performance.

This question carries 10% of the mark for this coursework.

4 Submission   代写Artificial Intelligence

Submit your coursework to QMPlus as a single zip file (filename ending in <yourStudentNumber>.zip) containing:

  • Report (a single PDF format for both parts, no more than 5 pages of 10 point). The PDF can include scans of handwritten material as long as it is legible but a typewritten version is encouraged.
  • Commented source code in Python 3.7 (extension .py, Jupiter Notebook file with the extension.ipynb). Comments are important as they indicate your understanding of the code. The source code must contain a readme.txt file that includes instructions on how to run your code.

Note: A human will be reading the code and cases of plagiarism will be reported. Code and report quality will be also assessed.

 

更多代写:美国宏观经济代考  线上考试怎么防止作弊  马来西亚作业代写  理工科论文代写  课程论文作业代写  paper写不出来怎么办

合作平台:essay代写 论文代写 写手招聘 英国留学生代写

paper写不出来怎么办

发表回复