Repository for the project of M1 data science students
pip install -r requirements.txtDownload from the official_APOGEE website the files:
- allStarLite-dr17-synspec_rev1.fits
Paste the file in the data folder.
Go to the official website and follow the instructions to install postgresql on your machine.
Edit or create src/database/connection.py file with the following content:
password = "XXXXXXX;"
username = "YYYYYYY" # default is "postgres"
database = "ZZZZZZZ" # default is "postgres"
host = "localhost"
port = 5432
DATABASE_URL = f"postgresql+psycopg2://{username}:{password}@{host}:{port}/{database}"python src/main.pyrun the following ipython notebook:
jupyter notebook notebooks/s2/resample.ipynbIt should generated a .csv with all of the features and rows neede for the data mining steps. Data is :
- normalised
- without missing values
- without outliers
- with the target classes inputed
- TODO : balances the classes or add weight to minority classes