class

Stochasta::MeanShift::Model

Inherits Reference < Object

Constructors

new(bandwidth : Float64, max_iter : Int32 = 300, tolerance : Float64 = 1e-3)
Source

Instance methods

assignments
Source
assignments=(assignments : Array(Int32))
Source
bandwidth
Source
bandwidth=(bandwidth : Float64)
Source
centroids
Source
centroids=(centroids : Array(Array(Float64)))
Source
fit(data : Array(Array(Float64))) : self

Fits the Mean Shift clustering model

Source
max_iter
Source
max_iter=(max_iter : Int32)
Source
predict(point : Array(Float64)) : Int32

Predict cluster of a new point

Source
tolerance
Source
tolerance=(tolerance : Float64)
Source