Skip to content
This repository was archived by the owner on Sep 7, 2024. It is now read-only.

Using JWST-NIRISS F115 & F120W grism spectroscop to identify quiescent galaxies, selected on morphology via supervised machine-learning trained upon SDSS imaging and validate with independent JWST

License

IT-Guy007/JWST-passage-Quiescent-galaxies

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

JWST-passage-Quiescent-galaxies

Using JWST-NIRISS F115 & F120W grism spectroscop to identify quiescent galaxies, selected on morphology via supervised machine-learning trained upon SDSS imaging and validate with independent JWST

Project setup

Prerequisites

  • Python 3
  • Git
  1. Clone the repository
git clone https://github.com/it-guy007/JWST-passage-Quiescent-galaxies.git
cd JWST-passage-Quiescent-galaxies
  1. Create a virtual environment
python -m venv venv
source venv/bin/activate   # On Windows use `venv\Scripts\activate`
  1. Install the requirements
pip install -r requirements.txt
  1. Create the folder structure:
JWST-passage-Quiescent-galaxies
├── data
│   ├── images_training_rev1
│   ├── training_solutions_rev1.csv
│   └── converted
│
├── tf_data
└── models
  1. Download the data from the Kaggle competition Galaxy Zoo - The Galaxy Challenge and place it in the data folder

Alternatively, you can use the Kaggle API to download the data:

kaggle competitions download -c galaxy-zoo-the-galaxy-challenge -p data/
unzip data/galaxy-zoo-the-galaxy-challenge.zip -d data/

Model creation

The notebook has all the logic required for creating the model. Modify the needed variables for needed extra configuration.

Model analytics

The notebook has all the logic for evaluating the model and creating the needed plots for analysis.

Running predictions

The notebook has all the logic for using the model to create predictions of fits files. It generates a csv with the predictions stored for further analysis and if activated a separate directory with the images desired above a certain accuracy.

Analytics of the predictions

The notebook has all the logic for evaluating the predictions and creating the needed plots for analysis.

Downloading model

It is also possible to download a pre-trained model for this project, which are the steps done in the builder notebook. The model is available at Hugging Face. Move both files in data to the local model folder of the project.

License

This project is licensed under the MIT License see the LICENSE file for details.

About

Using JWST-NIRISS F115 & F120W grism spectroscop to identify quiescent galaxies, selected on morphology via supervised machine-learning trained upon SDSS imaging and validate with independent JWST

Topics

Resources

License

Stars

Watchers

Forks