Back
Back
Back
Back
Back
Back
Back

Welcome to Live Chat

Welcome to LiveWebTutors Services, World's leading Academic solutions provider with Millions of Happy Students.

Call Back
logo

24x7 Support Available

To Get the Best Price Chat With Our Experts

chat now

In A Hurry? Get A Callback

logo

shopping cart 0

Subject Solutions Code Description Price Delete

Amount Payable : $0

continue shopping proceed to checkout

World's Leading Assignment Library

This lab involves the implementation of a naive Bayes classifier for the task of differentiating between utterances of the words “yes” and “no”, as discussed in the lecture notes. Directories containi

Question Preview:

This lab involves the implementation of a naive Bayes classifier for the task of differentiating between utterances of the words “yes” and “no”, as discussed in the lecture notes. Directories containing code and data can be found in the following directory /opt/info/courses/COMP14112/labs/lab2 Make a copy of this directory in ~/COMP14112/ex2 in your file space. Make sure your CLASSPATH variable is set to include it. 2 Getting started There are a number of classes in the naivebayes package that have main methods you can run to demonstrate some of the results from...

View Complete Question >>

Question Preview:

This lab involves the implementation of a naive Bayes classifier for the task of differentiating between utterances of the words “yes” and “no”, as discussed in the lecture notes. Directories containing code and data can be found in the following directory /opt/info/courses/COMP14112/labs/lab2 Make a copy of this directory in ~/COMP14112/ex2 in your file space. Make sure your CLASSPATH variable is set to include it. 2 Getting started There are a number of classes in the naivebayes package that have main methods you can run to demonstrate some of the results from the lectures. The command > java naivebayes.PlotSound 12 will plot the sound wave for the 12th example from the data set. The other plot produced when you run this method shows the 1st MFCC for each segment of the same signal and the 1st MFCC averaged over time. We will be using the time-averaged MFCCs as features in order to build a classifier. The examples are “yes” from 1–82 and “no” from 83–165. Try a few different examples and you will see how variable the sound waves are for different people saying the same word. The command > java naivebayes.PlotHistogram will plot histograms of the time-averaged 1st MFCC for all the examples of each class. This is the same plot as on the left of Figure 4 in the lecture notes. The command > java naivebayes.PlotFittedNormal will plot two normal densities fitted to the same data. These are the same lines as shown on the left of Figure 5 in the lecture notes. Finally, the command > java naivebayes.YesNoClassifier uses a single feature in order to a classify the first example in the data set. The example is a yes and the classifier is quite confident that this is the correct classification, assigning a probability of over 0.9 to this class. 3 Guide to the code You can look at the html documentation for the naivebayes package to see what the various classes do. In this lab you will be adapting two classes: YesNoClassifier and Classifier, so you should look at the code for these in particular. The javagently package is a very basic plotting program which you don’t have to worry about. 4 The tasks You have three tasks. 1. (4 marks) Modify the code in the main method of YesNoClassifier in order to return the percentage of errors that the classifier makes on all 165 examples in the data set. 2. (4 marks) Complete the code in the classify (double[] featureVector) method of the Classifier class. This should implement a naive Bayes classifier that uses all of the feature vector components. Once you have implemented this method, evaluate its performance in comparison to the single feature approach. 3. (2 marks) Create a new constructor method for the Classifier class which estimates the priors p(C1) and p(C2) from the data. 5 Evaluation You will get 7 marks for a correct working implementation and 3 marks for a full understanding of what you have done. You should submit your modified files: YesNoClassifier.java and Classifier.java. You should also run labprint. Notes Task 1 is achieved by trying to classify all the “yes” samples using a “yes” classifier and all the “no” samples using a “no” classifier. Count the number of samples that are classified incorrectly. Although you know that there are 82 yes samples and 83 no samples, don’t put these numbers in your code. You should use the method that returns the number of samples. Task 2 is achieved by implementing the equations in the notes. Task 3 is deceptively simple. You have methods that return the number of samples of each class, just use these to estimate the priors.

View Less >>

Solution Preview

Solution in attached

question Get solution

$20

Orginal Price : $26.0

Pay Now

Upload Assignments

250 words

side

Get Your Assignment

Don’t delay more, place your order now. Quick assignment help will be offered to you.

Order Now

CUSTOMER REVIEWS

Excellent

logo

Based on 702 reviews See all reviews here

One of the Best Service

I trust LiveWebTutors for my assignments because of their ability to deliver the perfect assignments time and again. Only a few of my assignments required minor revisions. The rest assured it is the best assignment writing service in the market.

Elizabeth
Sydney

Great Service and on time

I felt so exhausted and burdened with the large number of assignments I had to write and desperately needed someone to help me with all the writing and there was LiveWebTutors company on the internet. They finished my assignments before the due date and also offered me a first-timer discount.

Christina
Perth

One of the Best Assignment Provider

I ordered my Mathematics and Marketing assignments from them last month. I received the content on the set date. Most importantly, the assignments were well-written and plagiarism free. I scored a top grade for the assignment written by them. They are a reliable company.

Oli
Brisbane

Very Helpful Customer Service

I was quite unsure about getting my assignment written online but after coming across LiveWebTutors.com, all my worries have vanished. The quality of the assignments written by their writers is just invincible. Their customer support is very polite and helpful. You should try their service at least once

Kabir
Adelaide