Git Product home page Git Product logo

spacemeerkat-cae's Introduction

MERLIN (Machine lEaRning kinematic pipeLINe) v1.0.0. An ALMA/SKA Machine Learning Pipeline Tool

This repository contains a set of Python scripts detailing a model for classifying galaxies as either kinematically disturbed, or disk-like and orderly rotating objects. The primary goal is that such a model can be used, or built upon, in order to maximise the number of irregular objects flagged by SKA in the future to ascertain cosmological truths (such as the merger rate of the universe at a given redshift) and aid current surveys involving kinematic modelling by returning fast predictions of galaxy properties.

Using a convolutional autoencoder to return the level of ordered rotation of a galaxy

Using the pre-trained convolutional autoencoder, users can quickly output the latent (CAE) positions of galaxies and recover the following information:

  1. The circularity- defined as the amount of kinetic enrgy invested in flat circular rotation of a galaxy and thus the degree of kinematic disorder.

  2. The galaxy position angle with an uncertainty of ~20 degrees (depending on the inclination).

Implementation information

The CAE has been created and trained using the PyTorch platform. In order to use the model, the user will be required to have PyTorch installed but the use of GPU capabilities is not a requirement.

Other dependencies:

Additional optional dependencies:

To install the dependencies simply run the following command from inside the repo folder destination:

$pip install -e .

To use the model, one should run python -m spacemerlin.scripts.run and can specify the following parameters:

  • --modelpath (-m): Should contain a string pointing to a file including the checkpoint to load. Per default this will point to the checkpoint we provide.

  • --datapath (-d): Should contain a string pointing to a directory including the files to predict. Per default this will point to the exemplaric FITS files included in this package.

  • --pcapath (-p): Should contain a string pointing to a file including the saved PCA (as pickle). Per default this will point to the provided PCA.

  • --boundary (-b): Should contain a float specifying the upper boundary for valid latent x values. Defaults to the value of 2.960960960960961

  • --savepath (-s): Should contain a string pointing to a (already existant) directory, where the dataframe should be saved. Defaults to the value of None, which results in no filedumping but only a returned dataframe.

The example script also outputs a pandas DataFrame to a .pkl file should the user wish to save their results.

The default output of run.py is a pandas DataFrame with all 3 latent positions of all input velocity maps as well as a prediction of the galaxies' circularity values. The DataFrame is pickled as "CAE_results.pkl" and provided within the repository.

                       L1           L2          L3 Circularity
Name                                                          
NGC1380        -4.2929926   -14.941876   12.846045         1.0
ESO359-G002     7.7088847    -9.553634   10.178327         0.0
NGC1436         10.838033    -7.580992    5.949612         1.0
NGC1387         2.8304605   -22.606302  -0.7115479         1.0
NGC1194         11.064097   -6.6387653   3.4034176         1.0
NGC0404         10.964644    -8.554581     8.61254         0.0

Breakdown of the repository structure

spacemeerkat-cae's People

Contributors

spacemeerkat avatar justusschock avatar 2lambda123 avatar

Watchers

 avatar

spacemeerkat-cae's Issues

๐Ÿงš๐Ÿค– Pixeebot Activity Dashboard

DashList

๐Ÿ‘‹ This dashboard summarizes my activity on the repository, including available improvement opportunities.

Recommendations

Last analysis: Jun 15 | Next scheduled analysis: Jun 22

Open

โœ… Nice work, you're all caught up!

Available

โœ… Nothing yet, but I'm continuing to monitor your PRs.

Metrics

What would you like to see here? Let us know!

Resources

๐Ÿ“š Quick links
Pixee Docs | Codemodder by Pixee

๐Ÿงฐ Tools I work with
Sonar, CodeQL, Semgrep

๐Ÿš€ Pixee CLI
The power of my codemods in your local development environment. Learn more

๐Ÿ’ฌ Reach out
Feedback | Support


โค๏ธ Follow, share, and engage with Pixee: GitHub | LinkedIn | Slack

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.