Questions tagged [som]

A self-organizing map (SOM) is a type of artificial neural network that is trained using unsupervised learning to produce a map reprensenting the input space of the training samples.

A self-organizing map (SOM) is a type of artificial neural network that is trained using unsupervised learning to produce a map representing the input space of the training samples. Also, some supervised and semi-supervised SOMs exist.

187 questions
2
votes
0 answers

Fitting data into the Self Organizing Map model using R

I'm new to R and its the first time i'm using SOM. I want to predict survival using Self Organizing Map. The following is the code i used to ingest data: load raw data train <- read.csv("train.csv", header = TRUE) test <- read.csv("test.csv", header…
Dok Mbini
  • 21
  • 2
  • 8
2
votes
0 answers

Mapping data to an SOM in R

I am conducting a data analysis on some data in R. I discovered self-organizing maps (SOM) and it seems quite good to depict the link among the data. I tried both "kohonen" and "som" libraries. However, I am not able to map my data onto the created…
Dust009
  • 315
  • 2
  • 10
2
votes
2 answers

How do i check if a cost function is Concave or Convex?

How do i check if this cost function is concave or convex? I also want to find if this has a single or multiple minimums. Effort Made; function [w,pi,costvalue] = main_cost(inputdata, tmax, alpha_ini,somrow,somcol) %main cost function; To…
2
votes
2 answers

R kohonen : how big is maximum data size? Integer overflow error

I am using RStudio with a 8 GB RAM machine (MacBook Pro). I also use RStudio Server in AWS with 15 GB RAM. Both couldn't seem to finish som() with data size of 800,000+ records. 100,000 records seems to be never ending as well. I wonder if there's a…
ainunnajib
  • 41
  • 5
2
votes
0 answers

Error "NA/NaN/Inf in foreign function call (arg 1)" with SOM in R

I am trying to solve this problem: Each image is 28 pixels in height and 28 pixels in width, for a total of 784 pixels in total. Each pixel has a single pixel-value associated with it, indicating the lightness or darkness of that pixel, with higher…
filran
  • 103
  • 1
  • 9
2
votes
2 answers

Self organizing maps

I have question regarding the self organizing maps algorithm I know that we have an input vector and weight vectors. The calculation of the min distance between the weight and input is the best match unit which make the weight column that relates…
2
votes
1 answer

Compiling som_pak (97) with present gcc

I'm trying to use the original som implementation by Kohonen but I'm getting a segmentation fault error using vcal. It turns out that you can use an unofficial version which corrects this error found at http://cis.legacy.ics.tkk.fi/hynde/lvq/ but…
Sergio HL
  • 53
  • 7
2
votes
1 answer

Build a 2d map if each node only knows distances to a 3 closest nodes

I'm looking for a C++ library or a combination of libraries. the idea is that robots move around and they can only know distance between the closest 3. the problem is to find relative (x,y) location of all of the nodes. My solution would be to build…
kirill_igum
  • 3,953
  • 5
  • 47
  • 73
2
votes
0 answers

Extracting bin properties of a self organizing map in R

I am trying to cluster large amount of data with SOM in R programming. The sample code is here : > library("kohonen") > data("wines") > wines.sc <- scale(wines) > set.seed(7) > wine.som <- som(data = wines.sc, grid = somgrid(5, 4, "hexagonal")) >…
Amir
  • 625
  • 1
  • 11
  • 26
1
vote
1 answer

How does the number of iterations affect convergence in a self-organizing map?

I'm training a self-organizing map (SOM) using the kohonen library in R and I get some confusing results when I adjust the rlen parameter in the som call. According to the help file, rlen is the "the number of times the complete data set will be…
Riley381
  • 67
  • 2
  • 5
1
vote
1 answer

3D data with SUSI

I am trying to use SUSI on hyperspectral data, but I am getting errors. I am sure that I am the problem and not SUSI. import susi as su import spectral as sp import spectral.io.envi as envi import numpy as np import matplotlib.pyplot as plt import…
russj
  • 25
  • 1
  • 6
1
vote
1 answer

Is it possible to create a heatmap within a SOM-Cluster with the values of a dimension, which is not included in the cluster itself in R?

I have created a clustering with the help of the kohonen package in R. The cluster is defined by 6 different attributes, and results in a 15x15 matrix = 225 different clusters. Now I want to create some kind of legend, to fill every cluster…
lucas_0511
  • 11
  • 1
1
vote
1 answer

how to solve error : Error in storage.mode(x) <- "double" : 'list' object cannot be coerced to type 'double'

Hello Im trying to run som and kmeans analysis. But I can't solve it because there's an error code. Error in storage.mode(x) <- "double" : 'list' object cannot be coerced to type 'double' How can I solve this problem? cdata <-…
Sunghee
  • 17
  • 2
1
vote
1 answer

Library sompy for implementing self-organizing maps

I have installed the library sompy, but when I import it I have the next error: import sompy ImportErrorTraceback (most recent call last) in ----> 1 import sompy …
1
vote
1 answer

Find the cluster of an input pattern

Suppose that I performed clustering of iris.data using SOM Toolbox in Matlab. After clustering, I have an input vector and I want to see which cluster this input belongs to? Any tips please on how to map an input pattern into a trained SOM map.
1 2
3
12 13