Sha256: c66a686969ee1b6e30ccc5d3f17e33d8827f085369af6b9cace9fc7c5448a173

Contents?: true

Size: 295 Bytes

Versions: 3

Compression:

Stored size: 295 Bytes

Contents

require 'aprendizaje_maquina'

load_data = AprendizajeMaquina::Cargar.new('clustering_data.csv')
dataset = load_data.to_matrix
clustering = AprendizajeMaquina::KmeansClustering.new(2,dataset)
clustering.fit(20)
p clustering.cluster(0)
p clustering.cluster(1)
p clustering.predict(Vector[63,190])

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aprendizaje_maquina-0.1.4 examples/clustering_example.rb
aprendizaje_maquina-0.1.4.beta1 examples/clustering_example.rb
aprendizaje_maquina-0.1.3a examples/clustering_example.rb