Code Monkey home page Code Monkey logo

fgcluster's Introduction

ForeGroundCluster

FGCluster is a python package aimed at running spectral clustering onto Healpix maps. The inputs are a map encoding the feature to cluster. In this case the pixel similarity is given by the geometrical affinity of each pixel in the sphere. However, if uncertainty map is provided as an input, the adjacency is modified in such a way that the pixel similarity accounts also for the statistical significance given by the pixel values in a map and the uncertainties. For further details on the methodology please see Puglisi et al. 2021 .

Requirements

numpy>=1.14
matplotlib>=2.0.0
scipy>=0.19.1
astropy>=1.2
scikit-learn>=0.2.4.1
healpy>=1.10.3
mpi4py>=3.0.3

Install

git clone https://github.com/giuspugl/fgcluster.git
cd fgcluster
python setup.py install

Test the installation

mpirun -np 4 python test_spectral_mpi.py

Notice that the whole package is implemented to work in parallel with mpi4py. For debugging runs please use -np 1 .

Tutorial Script

To learn how to use FGCluster we provided a tutorial notebook, available at this link

Maps of Cluster

Maps of Clusters are published through Dataverse :

fgcluster's People

Contributors

giuspugl avatar

Watchers

 avatar Omar Cusma Fait avatar

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.