preview

Nt1330 Unit 1 Algorithm

Decent Essays

Brief: We were assigned to construct a software that utilizes a classification algorithm that is able to accurately decide a correct classification for a certain sequence of inputs that were provided by the user. The input is to be classified based on a known training set of records of the same attributes as the sequence provided by the user. Method used: We were instructed to use naive Bayes classifier for data classification but no certain variation was provided. Minding that the dataset that was provided contained continuous data, there was two obvious approaches available handle to the situation: 1- Use a variation of naive Bayes that handles continuous data which features Gaussian (normal) distribution or reconstructing the …show more content…

Because doing the later might sacrifice the accuracy that is intended to be as high as possible for this assignment. Also, the fact that the provided dataset’s data has a very narrow difference spectrum will make it difficult to discretize them based on their numeric values, as the limit of (for example) assigning a value with the descriptive value (high) or (medium) is really …show more content…

I extracted the testing set by taking the last 15 records of each class for testing. Division Programming languages: For implementation I used Java and used derby database to manipulate the dataset. Using derby database instead of using the file directly may seem irrelevant and irrational but it allowed me to use SQL code which is ideal with manipulating bulks of data. It also grants flexibility and maintainability to the dataset and allows it to be swiftly modified updated or altered. Using SQL and avoiding over complicating my code helped me to easily trace the code as mathematical equations was a big part of the assignment and each mean, variance (standard deviation) and normal distribution function had to be recalculated by hand to ensure that no logical or mathematical errors existed. Thus making my overall approach to the assignment much more

Get Access