14 Mar Discuss machine learning, the fundamentals of the algorithms mentioned in the attachment below and others you can find o
Discuss machine learning, the fundamentals of the algorithms mentioned in the attachment below and others you can find out about or recall from your own previous experience.
Discuss how to evaluate a ML approach, what is a confusion matrix, what measures are used?
1 page, APA format, in-text citation, references include
What is machine learning (ML)?
Machine learning is the process of providing data to an algorithm in order to obtain a prediction or an optimization applicable not to the data provided, but to a new example of the same kind of data. The way this is different to using a computer to calculate a number, say a mean or a standard deviation, is that in that case the solution provided applies to that data, but in the ML, the “learned” process is applied to a new set of data and not to the original set.
There are two major steps in ML, the first one data gathering (everything from collecting data, transforming it and preparing it for modeling) and the second will be the inference step ( the one where the algorithm actually makes a prediction or estimate)
There are two major types of ML approaches supervised and unsupervised learning. In the supervised approach, the outcome is determined, say it is a number, a label or a set of numbers, there is an expected output. In the unsupervised learning, the output is not determined, basically the model runs, and the information is extracted after the process ends, but there is no specific output expected (Larrañaga et al., 2006).
Supervised models:
As described above these are model that have an expected output type, the value is no known, but the class of output is defined.
1. Bayesian classifier: This is a basic classification scheme, in which the Bayesian theorem is applied to the data on hand (the prior probability) and the posterior probability is calculated for a particular classification, the highest posterior probability is labeled as the best classification. An approach of Bayesian classifier is naïve bayes, it is called “naïve” because it assumes total independence on the predictive variables (the available data), this is probably not a very realistic assumption ergo the name. This is the classifier we will use for our practical example below.
2. Classification tree: This also an intuitive solution in which the training data is taken through a series of decisions and the decision points as stored, as shown below.
Those decision points can then be used for new data.
3. Neural networks: it is based on the idea of representing the network of neurons in a human
brain, so an input is placed to series of artificial neurons which classify the input by using an assigned threshold. Neural networks can be multilayered and more complex classification schemes can be assigned to each neuron.
4. Support Vector Machines: in this algorithm the data is classified by partitioning it according to a plane, if a simple plane is used, say two dimensions, this is very clear how the partition is done, whatever is above the plane gets one label and whatever is below gets a different label. The problem is that a classification problem may require multiple labels, this approach solves that problem by introducing a partition in many dimensions, this is called a hyperplane. Since humans are trapped in three dimensions is hard to visualize these hyperplanes, but SVM have very high-performance ratings and they are a powerful classification tool.
Unsupervised models
In the unsupervised model, the approach to discovers new patterns with no specific output expected. Classification algorithms are examples of unsupervised models. The nearest neighbor approach can be made unsupervised if no specific labels are provided and it can assign labels to the data. If the labels are provided to the system, it is a supervised approached.
Nearest neighbor: in this approach, the label for a particular data point is assigned based on the label already assigned to its closest neighbor. This is also extended to k-nearest neighbors, in which the labels are assigned based on the label of its k closest neighbors.
R HANDS ON
Follow the steps to produce predictions with the naïve bayes method. The datasets will be provided for you in the class portal.
>install.packages("e1071")
>library(e1071)
>credit_training <- read.csv("credit_training.csv", stringsAsfactors=T)
> credit_test<-read.csv("credit_test.csv"", stringsAsfactors=T)
>history_test<- read.csv("history_test.csv"", stringsAsfactors=T)
> history_training<- read.csv("history_training.csv"", stringsAsfactors=T)
# NOTE that myuniquenumber is an interger between 300 & 600
# you must pick the value and set that variable
> training<-credit_training[1:myuniquenumber,]
> history<-history_training[1:myuniquenumber,]
> clsf<-naiveBayes(training,history,0)
> predictions<-predict(clsf,credit_test)
> table(predictions)
#copy and paste the output
> table(history_test)
#copy and paste output
REFERENCES
Larrañaga, P., Calvo, B., Santana, R., Bielza, C., Galdiano, J., Inza, I., Lozano, J. A., Armañanzas, R., Santafé, G., Pérez, A., & Robles, V. (2006). Machine learning in bioinformatics. Briefings in Bioinformatics, 7(1), 86–112. https://doi.org/10.1093/bib/bbk007
Our website has a team of professional writers who can help you write any of your homework. They will write your papers from scratch. We also have a team of editors just to make sure all papers are of HIGH QUALITY & PLAGIARISM FREE. To make an Order you only need to click Ask A Question and we will direct you to our Order Page at WriteDemy. Then fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Fill in all the assignment paper details that are required in the order form with the standard information being the page count, deadline, academic level and type of paper. It is advisable to have this information at hand so that you can quickly fill in the necessary information needed in the form for the essay writer to be immediately assigned to your writing project. Make payment for the custom essay order to enable us to assign a suitable writer to your order. Payments are made through Paypal on a secured billing page. Finally, sit back and relax.
About Wridemy
We are a professional paper writing website. If you have searched a question and bumped into our website just know you are in the right place to get help in your coursework. We offer HIGH QUALITY & PLAGIARISM FREE Papers.
How It Works
To make an Order you only need to click on “Order Now” and we will direct you to our Order Page. Fill Our Order Form with all your assignment instructions. Select your deadline and pay for your paper. You will get it few hours before your set deadline.
Are there Discounts?
All new clients are eligible for 20% off in their first Order. Our payment method is safe and secure.