Training and testing data in machine learning

0 votes
I want to train data using K-means algorithm and then test it over another similar kind of data removing only one column. I am new to machine learning, Need to know that we are just giving data and testing the accuracy. How can we apply the algorithm on test data (which obviously will be different) to predict the value of the missing attribute?
Mar 2 in Machine Learning by Nandini
• 5,480 points
34 views

1 answer to this question.

0 votes
Unsupervised learning is used with the K-means clustering technique. Because you are not attempting to predict something, unsupervised learning does not employ labels. Instead, you're looking for a mechanism to arrange your data into clusters based on similar traits.
In Supervised learning, we use a test or validation set to verify the generalization properties of the model in order to avoid over-fitting. However, because you don't know the real clusters of the data in unsupervised learning, you can't evaluate this. As a result, there's no purpose in using a test set.
answered Mar 2 by Dev
• 6,000 points

Related Questions In Machine Learning

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Use different distance formula other than euclidean distance in k means

K-means is based on variance minimization. The sum-of-variance formula ...READ MORE

answered Jun 21, 2018 in Data Analytics by Sahiti
• 6,380 points
923 views
0 votes
1 answer

Overfitting vs Underfitting

In statistics and machine learning, one of ...READ MORE

answered Jul 11, 2018 in Data Analytics by CodingByHeart77
• 3,720 points
393 views
+1 vote
1 answer

How to handle Nominal Data?

Nominal data is basically data which can ...READ MORE

answered Jul 24, 2018 in Data Analytics by Abhi
• 3,720 points
231 views
+2 votes
2 answers

How to handle outliers

There are multiple ways to handle outliers ...READ MORE

answered Jul 24, 2018 in Data Analytics by Abhi
• 3,720 points
259 views
0 votes
1 answer

Training and testing data in machine learning

Unsupervised learning is used with the K-means ...READ MORE

answered Feb 23 in Machine Learning by Dev
• 6,000 points
45 views
0 votes
1 answer

What is difference between loss function and RMSE in Machine Learning?

The loss function is a function of ...READ MORE

answered Feb 23 in Machine Learning by Dev
• 6,000 points
125 views
webinar REGISTER FOR FREE WEBINAR X
Send OTP
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP