GithubHelp home page GithubHelp logo

Nodes difference MNIST about simpsom HOT 1 CLOSED

fcomitani avatar fcomitani commented on May 14, 2024
Nodes difference MNIST

from simpsom.

Comments (1)

fcomitani avatar fcomitani commented on May 14, 2024

Hi @PARODBE,

thanks for checking out the library.

The nodes differences plot can be printed with the differences=net.diff_graph(), which is a function of your map object net. It gives as output (differences in this example) a list with the difference values calculated for each node. I know that there are different ways of calculating it, so if you want the freedom to define your own difference function you can just use node.get_distance(), which is an attribute of each node and calculates its Euclidean distance to any other node.

Regarding your last question, yes, reduced=net.project(input_data) actually can project any kind of data (assuming it's in the right format) and can be used for prediction. Once you have trained your map net you can just give your new samples in input to this function and it will project them onto the map. It gives in output (reduced in the example ) the position of your data points in the reduced map space. You can then run any kind of clustering/classification function you wish on the projected data. If you want to try and run one of the internal clustering methods just use net.cluster(input_data, type='qthresh'). As clustering type it takes 'qthresh' for quality threshold, 'dpeak' for density peak, 'MeanShift' , 'DBSCAN', and 'KMeans' as directly taken from scikit-learn.
Once you have the coordinates on the data you can calculate centroids and their distances.

Hope this answers your questions, let me know if you have any doubt.

from simpsom.

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.