Showing content from http://reference.wolfram.com/language/ref/method/MeanShift.html below:
MeanShift—Wolfram Language Documentation
MeanShift—Wolfram Language Documentation WOLFRAM Products
More mobile apps
Core Technologies of Wolfram Products
Deployment Options
From the Community
Consulting & Solutions
We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
- Data & Computational Intelligence
- Model-Based Design
- Algorithm Development
- Wolfram|Alpha for Business
- Blockchain Technology
- Education Technology
- Quantum Computation
WolframConsulting.com
Wolfram Solutions
More Wolfram Solutions
Wolfram Solutions For Education
More Solutions for Education
Learning & Support Get Started
More Learning
Grow Your Skills
Tech Support
Company
Work with Us
Educational Programs for Adults
Educational Programs for Youth
Read
Educational Resources
Wolfram Initiatives
Events
Wolfram|Alpha Wolfram Cloud Your Account
Search Navigation Menu
- Products
More mobile apps
- Core Technologies
- Deployment Options
- From the Community
- Consulting & Solutions
We deliver solutions for the AI eraâcombining symbolic computation, data-driven insights and deep technology expertise.
WolframConsulting.com
Wolfram Solutions
More Wolfram Solutions
Wolfram Solutions For Education
More Solutions for Education
- Learning & Support Get Started
Grow Your Skills
- Tech Support
- More Learning
- Company
Work with Us
Educational Programs for Adults
Educational Programs for Youth
Read
- Educational Resources
- Wolfram Initiatives
- Events
Wolfram Language & System Documentation Center Wolfram Language Home Page » METHOD
"MeanShift" (Machine Learning Method)
Details & Suboptions
- "MeanShift" is a density-based clustering method where the density is estimated using a neighbor-based approach. "MeanShift" works for arbitrary cluster shapes and sizes; however, it can fail when clusters have different densities or are intertwined.
- The following plots show the results of the "MeanShift" method applied to toy datasets:
- The "MeanShift" method iteratively shifts data points toward higher-density regions. During this procedure, data points tend to collapse to different fixed points, each of them representing a cluster.
- Formally, at each step, each data point is set to with , defining an effective neighborhood radius. The difference is called mean shift. The algorithm repeats the mean-shift updates until points stop moving; all points belonging to a cluster are then collapsed (up to a tolerance). This algorithm is equivalent to the "NeighborhoodContraction" method but with a different neighborhood definition.
- The option DistanceFunction can be used to define which distance to use.
- The following suboption can be given:
- "NeighborhoodRadius" Automatic radius ϵ
Examplesopen allclose all Basic Examples (3)
Find clusters of nearby values using the "MeanShift" clustering method:
Train the ClassifierFunction on a list of colors using the "MeanShift" method:
Gather the elements by their class number:
Train a ClassifierFunction on a list of strings:
Find the cluster assignments and gather the elements by their cluster:
Options (3) DistanceFunction (1)
Cluster data using Manhattan distance:
"NeighborhoodRadius" (2)
Find clusters by specifying the "NeighborhoodRadius" suboption:
Generate a list of 100 random colors:
Cluster the colors using the "MeanShift" method:
Try different "NeighborhoodRadius" suboptions for clustering the colors:
See Also
FindClusters ClusterClassify ClusteringComponents ClusteringTree Dendrogram
Methods: Agglomerate GaussianMixture JarvisPatrick KMeans KMedoids NeighborhoodContraction SpanningTree Spectral
Tech Notes
Related Links
History
Introduced in 2020 (12.1)
Top
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4