Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
37 views

I am implementing a Kohonen Self-Organizing Map (SOM) in Python. My goal is to train the SOM on scaled input data (X_scaled) and iteratively update the weights over several epochs. However, I am ...
Anhar Alsaeed 's user avatar
0 votes
0 answers
45 views

For example there are two classes C1 and C2, distance1 and distance2, The rule tells which class is: If distance1 > distance2 than class C1 (Node1) else class C2 (Node2) Here are some data examples:...
darieem's user avatar
-1 votes
1 answer
217 views

I'm trying to use a Self-Organizing map (SOM) as a clustering method on the Iris dataset. % Load dataset load iris.dat X = iris(:,1:end-1); true_labels = iris(:,end); % Train SOM net = newsom(X',[10,...
CodeGuy's user avatar
  • 29
0 votes
0 answers
93 views

I want to create a custom keras layer that compute the "predict" of a Self Organizing Map. Here is my implementation of the layer ` class SOMLayer(keras.layers.Layer): def __init__(self, ...
Giacomo Vallasciani's user avatar
1 vote
1 answer
574 views

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 "...
Riley381's user avatar
0 votes
1 answer
207 views

I am looking for any example code for implementing Kohonen SOM using the apache.commons.math3.neuralnet.sofm classes. To make the question less ambiguous, I'll share that I plan to explore using it to ...
Robert Hamilton's user avatar
-1 votes
1 answer
345 views

I'm trying to understand self-organising map neural network with Python. Here's a code: import numpy as np from numpy.ma.core import ceil from scipy.spatial import distance from sklearn.preprocessing ...
Silentpig's user avatar
0 votes
0 answers
385 views

I am evaluating an SOM/Kohonen Map as a regressor for a dataset. Unfortunately it performs extremely bad - so bad, that I think I might have an error in my code. While the R2 score for the training ...
LGR's user avatar
  • 482
0 votes
0 answers
202 views

I'm trying to implement a bi-dimensional SOM with shrinking neighborhoods, but to avoid computing the neighborhood function to each neuron for every input, I want to define the neighbors for each ...
xandor19's user avatar
0 votes
0 answers
97 views

I'm trying to calculate the distance between a random datapoint in the dataset and the center for the centroid. However, I get an error. dist= math.sqrt((W[k][0]-dataset[0])**2 + (W[k][1]-dataset[1]**...
dg123's user avatar
  • 65
1 vote
1 answer
182 views

So, it's my first time trying to make my own data visualization, and what I want to do is something like a heat map or highlighted table like the original Kohonen (but using squares rather than ...
Yosafat Coronel's user avatar
1 vote
1 answer
465 views

How to create a daily numeric matrix from a data frame with x, y, date, and value columns. I am trying to implement the SOM function from the Kohonen package in R for my data frame dtt. It requires a ...
Lily Nature's user avatar
1 vote
1 answer
2k views

I have installed the library sompy, but when I import it I have the next error: import sompy ImportErrorTraceback (most recent call last) <ipython-input-86-97d518356b3c> in <module&...
student-data-scientist's user avatar
0 votes
0 answers
553 views

I have around 5 different cases where I extract around 13/14 statistical features from each case. I wanted to create like anomaly detection where I reduce the feature matrix using Principal Component ...
WDpad159's user avatar
  • 428
0 votes
0 answers
123 views

I've been implementing the SOM algorithm and trying to now change out functions I've used from sklearn. For a particular SOM problem, I've set a neighborhoodmap to np.array( [[[a, b] for b in range(...
Cookie's user avatar
  • 464

15 30 50 per page
1
2 3 4 5
9