GithubHelp home page GithubHelp logo

lexijess / machine-learning-challenge Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 40 KB

Machine learning exercise examining the eligibility of celestial bodies to be named as exoplanets. Using pandas, python, Jupyter Notebooks, TensorFlow, keras, neural networks, etc.

Jupyter Notebook 100.00%

machine-learning-challenge's Introduction

This project explores a dataset that represents celestial bodies that may or may not be appropriately classified as exoplanets. The three categories are Confirmed, False Positive, and Candidate. The models train and then test the dataset and make their predictions about which celestial body most likely belongs to each category.

Model_1 uses MinMaxScaler to scale the data, then uses the model LogisticRegression. Tuning is done with GridSearchCV. Even with tuning and fitting, the model, the accuracy returns at just 61%.

Model_2 uses the same style of data cleaning and processing, but switches to a neural network model with TensorFlow and keras. The model includes multiple layers and is optimized with keras' Adam optimizer. The model is fitted and trained and yields an accuracy of 87%, which is much better than Model_1.

Model_2 is then used to predict the category of celestial bodies (the "new_data" variable that is fed into the model is the prediction data). Because we needed to transform the categories (False Positive, Candidate, or Confirmed) into integers in order to make them work in the model, we need to identify which integers correspond to which categories. This is done using df.value_counts() and comparing the ranked order of each category to the frequency of 0's, 1's, and 2's.

2's are False Positives

1's are Confirmed

0's are Candidates

machine-learning-challenge's People

Contributors

lexijess avatar

Watchers

 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.