GithubHelp home page GithubHelp logo

Comments (4)

JustGlowing avatar JustGlowing commented on July 22, 2024

hi @jiwon-j, SOM is a multivariate model and you can build your input as a matrix where each row corresponds to a year and contains values from all the variables that you have.

These numpy functions can help you reshape your original data:

from minisom.

jiwon-j avatar jiwon-j commented on July 22, 2024

hi @jiwon-j, SOM is a multivariate model and you can build your input as a matrix where each row corresponds to a year and contains values from all the variables that you have.

These numpy functions can help you reshape your original data:

thank you! i made a combined array, but do the two variables in here have to have the same shape?
Trying to run a SOM and getting broadcast issues

from minisom.

JustGlowing avatar JustGlowing commented on July 22, 2024

the input matrix needs to have only 2 dimensions, which means that you have to concatenate your data on the appropriate axis.

from minisom.

vwgeiser avatar vwgeiser commented on July 22, 2024

@jiwon-j I ran into a similar problem and flattening (vectorizing) the input data into a 1D vector is how I got mine to work. Then making your input_len the length of one sample. You can see the later parts of #187 where show how I do this.
Unless you've found a way around it I would imagine that inputs need to be the same length (minisom requires a square matrix). Imputation may help with this?

Adds quite a bit of dimensionality but MiniSOM is able to handle this sort of data at the cost of dimensionality.

from minisom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.