Skip to content

Star type classification problem using KNN, NearestCentroid, Neural Network etc. Written in Python.

Notifications You must be signed in to change notification settings

konradmaciejczyk/star-type-classification

Repository files navigation

Star type classification

This is a classifier comparison for problem of star types classification.
You can learn more about dataset I used in this project: https://www.kaggle.com/deepu1109/star-dataset

About dataset

This dataset consist of 240 examples of stars that can be classified as:
Brown Dwarf, Red Dwarf, White Dwarf, Main Sequence, Supergiant or Hypergiant.

Each star is described by:
Temperature (K), Luminosity(L/Lo), Radius(R/Ro), Absolute magnitude(Mv), Star type, Star color, Spectral Class.
Star Color and Spectral Class are categorical features.

Classifiers

  • My implementation of KNN
  • My implementation of NearestCentroid
  • Neural Network

Running code

First of all make sure you have all needed python modules installed on your host.
The code requires: numpy, matplotlib, pandas, sklearn and tensorflow.

Run:

    pip3 install -r requirements.txt

to install all needed modules.

  • main.py - this is a driver file that consists of all code required for loading, handling data and running tests;
  • algorithms.py - here I've written my implementations of some clasifiers I'm using in this project

About

Star type classification problem using KNN, NearestCentroid, Neural Network etc. Written in Python.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages