Perform full evaluation of the classification algorithms

Assignment Help Computer Engineering
Reference no: EM131904375

Exercise: Perceptron, SVM, ensemble methods, classifier evaluation, clustering, text classification

Part A: Perceptron

1. Implement a perceptron classifier for linear binary classification using R. The algorithm presented on slide 14 (Algorithm 7.1 in the Flach book) should be sufficient for your implementation. Create a dataset that only includes the versicolor and setosa species of iris. Use your binary perceptron to classify this new iris dataset. What if the data is presented in random order? What do you observe? Experiment with different learning rates η and a different value for the intercept b. Would your algorithm always converge? Report and comment on all of your experiments .

Part B: classifier evaluation, SVM, ensemble methods, clustering

1. Suppose that you have used some concept learning algorithm to learn a hypothesis h1 from some training data. You are interested in knowing the accuracy that the hypothesis can be expected to achieve on the underlying population. You assess the hypothesis on a set of test data consisting of 145 instances and you observe an error of 6.67%. Manually calculate the 95% interval for the expected error. Include your working in the submission.

2. You compare two supervised learning classification algorithms on a set of training data and you find out that 10-fold cross validation yields the following accuracies:

CN Fold

Algorithm 1

Algorithm 2

1

91.11

90.7

2

90.48

90.52

3

97.87

90.88

4

90.52

90.87

5

89.88

90.02

6

89.77

88.99

7

91.44

90.98

8

90.88

91.44

9

90.77

90.77

10

90.89

90.92

At what confidence level can you assume that algorithm 1 will outperform algorithm 2? Show your working in the report.

3. Ravensworth, Liakata and Clare [1] trained a classifier on predicting the type of a scientific article (e.g. Review, Research etc.) according to PlosOne categories ("type") and using as features the distribution of Core Scientific concepts within papers (e.g. Hypothesis, Methods, Conclusion etc.).

a. Ignore the target value "type" and use three clustering algorithms of your choice, selected from those discussed in lectures. You can select these from suitable R packages. Justify your choice of clustering algorithm. Provide and implement appropriate measures of cluster quality. Is there a correspondence between clusters and the original type labels?

Include all your working and code in your submission and clearly report what you have done and why.

[1] J. Ravenscroft, M. Liakata, A. Clare (2013). Partridge: An effective system for the automatic classification of the types of academic papers. In Proceedings of AI-2013.

Part C: Text classification

Objective - The objective of this exercise is to evaluate your understanding of representing documents as a set of features and performing classification on the documents, as discussed in lectures.

To do this exercise you will need to use the reuters.csv file from the website. This data set is one of the standard corpora used by text mining researchers to test their algorithm and in its original format it consists of 21 SGML files, each with multiple tags. To facilitate the task we present the files as one large .csv where each row represents a document and columns indicate which topics are relevant to a document, the title of the document and the actual text in the document. You can use either Python or R for this exercise as well as corresponding libraries. It is important to explain clearly what you have done and why and include appropriate results and table matrices.

Tasks -

1. Explore the data and undertake any cleaning/pre-processing that you deem necessary for the data to be analysed. Focus your efforts on the 10 most populous classes, namely: (earn, acquisitions, money-fx, grain, crude, trade, interest, ship, wheat, corn), so only consider documents belonging to these topics.

2. Obtain ngram features of the documents/news articles as discussed in the text mining lectures. Your final report must provide a summary of your assumptions regarding feature representation as well as an explanation of how you obtained the features.

3. Build classifiers, using either R or Python libraries to predict the TOPICS tags for documents. Use the training data for building the models and comparing their accuracy, precision and recall. You can reuse your code from Part B, exercise 3c. Explain whether you are using micro or macro averaging and why. Use the test set only to get an estimate of the accuracy, precision and recall of the "optimal" model based on your analysis using the training data.

You will be evaluated on the basis of the report, you will not have the chance to explain your work in person, so this has to be well written and clear. Include:

a. A description of the data, any pre-processing performed on it and why.

b. Explanation of feature representation and details on any feature selection implemented.

c. Details on which classification algorithms were used and why. What parameters were used in each case and why.

d. Perform full evaluation of the classification algorithms. Compare classifier performance using 10-fold cross-validation (which you should implement yourself) and report appropriate measures (you should also implement the measures). Give confidence levels for the accuracy of the best performing classifier.

Include your code in the submission. Where appropriate in the report provide references to your code. Some of the code can go in the appendix.

Reference no: EM131904375

Questions Cloud

Was Eddie Bauer guilty of breach of contract : Was Eddie Bauer guilty of breach of contract? Explain fully providing any assumptions or facts you think are necessary to answer.
Explain the customer satisfaction is our primary goal : Write a series of objectives(2-3maximum)for each of the following mission statements; We will be a leader in product innovation?
Calculate the return on invested capital : Calculate the return on invested capital (ROIC) for each firm and Calculate the return on equity (ROE) for each firm - calculate the expected value for Firm Cs
What are the three major components of DSS : What are the three major components of DSSs, and what do they do? How do DSSs help in tax planning? How do DSSs help in website planning and adjustment?
Perform full evaluation of the classification algorithms : CS909: Exercise: Perceptron, SVM, ensemble methods, classifier evaluation, clustering, text classification. Perform full evaluation of classification algorithms
What types of problems are most difficult to handle : Introduction: Managers often find themselves playing the role of formal or informal leader when participating in a planned meeting.
How to evaluate physician performance : "Memorial Care is part of a movement by hospitals around the U.S. to change how doctors practice by monitoring their progress toward goals, such as giving.
How would you implement your preferred solution : In this chapter we learned there are four steps in the rational model of decision making. The third step involves evaluating alternatives and selecting.
Examine how derivatives are bought and sold : Nothing should be done to change how derivatives are bought and sold. If buyers and sellers don't like the lack of dealer transparency.

Reviews

len1904375

3/17/2018 12:19:25 AM

Exercise two: Perceptron, SVM, ensemble methods, classifier evaluation, clustering, text classification. Submission: 12 pm (midday) Wednesday 25th. Notes: (a) The use of libraries is not allowed as part of this exercise, unless explicitly permitted. (b) Your submission should consist of both code and a report explaining what you have done. (c) This assignment will contribute to 35% of your overall mark.

Write a Review

Computer Engineering Questions & Answers

  1 explain a minimum of three 3 heuristics to optimize

your supervisors and customers are very impressed with the database you have put together. however there is still that

  The response to eachnbspessay itemnbspshould not exceed two

the response to eachnbspessay itemnbspshould not exceed two 2 paragraphnbspusing double-line spacing and 1-in. page

  Identify the drawbacks for using cloud computing in your bcp

Identify the drawbacks for using cloud computing in your BCP. Identify an area that you initially struggled in and describe how you overcame it.

  Design microcontroller-based string matching detector

Draw a block diagram how you would design this microcontroller-based string matching detector. Which peripherals would you be using? What considerations would you take into account?

  Find an instance method whenever the method is called

A ____ reference is an automatically created variable that holds the address of an object and passes it to an instance method whenever the method is known.

  Evaluate the multiplication and addition table

Evaluate the multiplication and addition table for the prime field GF(7).

  What is the drive s storage capacity

What is this drive s storage capacity? How long will it take to read the drives entire contents sequentially? What is this drive s serial access time?

  Application showing sizes of two files and their ratio

Build a file which consists of your favourite movie quote. Make a use of a text editor like Notepad and save file as Quote.txt. Copy contents of the file and paste them into the word-processing program like Word. Save file as Quote.doc. Write down..

  Describe the role of the information technology

as a software engineer you have been asked to write a paper that describes the use of current technologies with regard

  Identify the phases in the object-oriented life cycle model

Explain the primary focus of object-oriented methods. Identify the benefits and advantages of obect oriented methods. Identify the phases in the object-oriented life cycle model.

  Questionthere are eight cars in every team called chevy and

questionthere are eight cars in every team called chevy and ford. one car from each team races its opponent on drag

  Question1 why is it significant to control changes to asset

question1. why is it significant to control changes to asset baselines?2. why is the labelling process approached

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd