Giter Club home page Giter Club logo

felixriese / susi Goto Github PK

View Code? Open in Web Editor NEW
101.0 4.0 22.0 3.74 MB

SuSi: Python package for unsupervised, supervised and semi-supervised self-organizing maps (SOM)

Home Page: https://felixriese.github.io/susi

License: BSD 3-Clause "New" or "Revised" License

TeX 0.60% Python 98.19% JavaScript 1.21%
machine-learning data-science opensource self-organizing-map som python semi-supervised-learning supervised-learning unsupervised-learning pypi-package

susi's Issues

SOMClassifier object has no attribute 'predict_proba'

If I need to plot AUC-ROC curve as in other ML techniques in SKLEARN, is there any function like predict_proba() ? or manually has to calculate? Because it returns 'SOMClassifier' object has no attribute 'predict_proba'... Is there any function for the same?

ValueError: Found array with dim 3. None expected <=2.

Been bashing my head against this one. I have a hyperspectral cube from drill core scanning:

box.shape
(3590, 30, 249)

som = Susi.SOMClustering()
test = som.fit(box)

ValueError: Found array with dim 3. None expected <= 2.

Multi-output regression for SOMRegressor?

Hi Felix,

I noticed that the fit function for SOMRegressor only allows y to be a matrix of shape = [n_samples, 1]. Is there any way to allow for multi-output regression using SOMRegressor?

Thank you!

Why we need to save SOMRegressor.p?

In this notebook, why we need to save som to SOMRegressor.p in the local disk when the som has been trained?
Does anybody can explain this ?
Thank you.

wrong optional type hint?

Here it says that y is Optional which makes sense since for an unsupervised SOM it isn't necessary, however the check_estimation_input function does not allow y to be None.
Am I missing something?

Quantization Error

Hello,

I think there might be an issue with the Quantization calculation in Susi. The error seems to be much large then when I attempt the calculation myself. I believe the line below is missing the axis being specified, (axis=1):

    quantization_errors = np.linalg.norm(
        np.subtract(weights_per_datapoint, X)
    ) 

Thanks,

ImportError: cannot import name 'softmax'

ImportError Traceback (most recent call last) in () ----> 1 import susi ~\Anaconda3\lib\site-packages\susi_init_.py in () 6 import numpy as np 7 import scipy.spatial.distance as dist ----> 8 from scipy.special import softmax 9 from sklearn.base import BaseEstimator, RegressorMixin, ClassifierMixin 10 from sklearn.decomposition import PCA ImportError: cannot import name 'softmax'

Support for sparse matrix

Hi, thank you for the great package.
I just wanted to ask whether the support for sparse matrices is still on the roadmap?
Some comments in the code suggest that it was planned.

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.