DATA MINING with MATLAB by Marvin L
Author:Marvin L. [L., Marvin]
Language: eng
Format: epub
Publisher: UNKNOWN
Published: 2016-10-22T23:00:00+00:00
Assign New Data to Clusters
In the previous example, fitting the mixture distribution to data using fit, and clustering those data using cluster, are separate steps. However, the same data are used in both steps. You can also use the cluster method to assign new data points to the clusters (mixture components) found in the original data.
1 Givenadataset X, first fit a Gaussian mixture distribution. The previous code has already done that.
gm
gm =
Gaussian mixture distribution with 2 components in 2 dimensions Component 1: Mixing proportion: 0.312592 Mean: -0.9082 -2.1109
Component 2:
Mixing proportion: 0.687408 Mean: 0.9532 1.8940
2 You can then use cluster to assign each point in a new data set, Y,toone of the clusters defined for the original data:
Y = [mvnrnd(mu1,sigma1,50);mvnrnd(mu2,sigma2,25)];
idx = cluster(gm,Y); cluster1 = (idx == 1); cluster2 = (idx == 2);
scatter(Y(cluster1,1),Y(cluster1,2),10,'r+'); hold on
scatter(Y(cluster2,1),Y(cluster2,2),10,'bo'); hold off
legend('Class 1','Class 2','Location','NW')
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(8309)
Azure Data and AI Architect Handbook by Olivier Mertens & Breght Van Baelen(6808)
Building Statistical Models in Python by Huy Hoang Nguyen & Paul N Adams & Stuart J Miller(6784)
Serverless Machine Learning with Amazon Redshift ML by Debu Panda & Phil Bates & Bhanu Pittampally & Sumeet Joshi(6672)
Data Wrangling on AWS by Navnit Shukla | Sankar M | Sam Palani(6458)
Driving Data Quality with Data Contracts by Andrew Jones(6403)
Machine Learning Model Serving Patterns and Best Practices by Md Johirul Islam(6161)
Learning SQL by Alan Beaulieu(6004)
Weapons of Math Destruction by Cathy O'Neil(5798)
Big Data Analysis with Python by Ivan Marin(5398)
Data Engineering with dbt by Roberto Zagni(4403)
Solidity Programming Essentials by Ritesh Modi(4051)
Time Series Analysis with Python Cookbook by Tarek A. Atwan(3911)
Pandas Cookbook by Theodore Petrou(3615)
Blockchain Basics by Daniel Drescher(3306)
Hands-On Machine Learning for Algorithmic Trading by Stefan Jansen(2914)
Feature Store for Machine Learning by Jayanth Kumar M J(2820)
Learn T-SQL Querying by Pam Lahoud & Pedro Lopes(2803)
Mastering Python for Finance by Unknown(2748)
