Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nafisalawalidris/spacex-falcon-9-first-stage-landing-prediction
The project revolves around predicting the successful landing of the Falcon 9 first stage during SpaceX rocket launches. By leveraging the concepts and techniques learned in the specialization, we aim to develop a predictive model that can determine the likelihood of a successful landing.
https://github.com/nafisalawalidris/spacex-falcon-9-first-stage-landing-prediction
cost-estimation data-science exploratory-data-analysis interactive-visualizations modelling predictive-analytics predictive-modeling python wrangling-data
Last synced: 30 days ago
JSON representation
The project revolves around predicting the successful landing of the Falcon 9 first stage during SpaceX rocket launches. By leveraging the concepts and techniques learned in the specialization, we aim to develop a predictive model that can determine the likelihood of a successful landing.
- Host: GitHub
- URL: https://github.com/nafisalawalidris/spacex-falcon-9-first-stage-landing-prediction
- Owner: nafisalawalidris
- Created: 2023-05-24T01:43:27.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-05-29T13:42:21.000Z (over 1 year ago)
- Last Synced: 2023-10-07T00:25:19.352Z (about 1 year ago)
- Topics: cost-estimation, data-science, exploratory-data-analysis, interactive-visualizations, modelling, predictive-analytics, predictive-modeling, python, wrangling-data
- Language: Jupyter Notebook
- Homepage:
- Size: 945 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# **SpaceX Falcon 9 first stage Landing Prediction**
# Lab 1: Collecting the data
In this capstone, will predict if the Falcon 9 first stage will land successfully. SpaceX advertises Falcon 9 rocket launches on its website with a cost of 62 million dollars; other providers cost upward of 165 million dollars each, much of the savings is because SpaceX can reuse the first stage. Therefore if we can determine if the first stage will land, we can determine the cost of a launch. This information can be used if an alternate company wants to bid against SpaceX for a rocket launch. In this lab, will collect and make sure the data is in the correct format from an API. The following is an example of a successful and launch.Several examples of an unsuccessful landing are shown here:
![](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0701EN-SkillsNetwork/api/Images/crash.gif)
Most unsuccessful landings are planned. Space X performs a controlled landing in the oceans.
## Objectives
In this lab, will make a get request to the SpaceX API. You will also do some basic data wrangling and formating.
- Request to the SpaceX API
- Clean the requested data## Web scraping Falcon 9 and Falcon Heavy Launches Records from Wikipedia
In this lab, you will be performing web scraping to collect Falcon 9 historical launch records from a Wikipedia page titled `List of Falcon 9 and Falcon Heavy launches`https://en.wikipedia.org/wiki/List_of_Falcon_9_and_Falcon_Heavy_launches
![](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBM-DS0321EN-SkillsNetwork/labs/module_1_L2/images/Falcon9_rocket_family.svg)
Falcon 9 first stage will land successfully
![](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0701EN-SkillsNetwork/api/Images/landing_1.gif)
Several examples of an unsuccessful landing are shown here:
![](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0701EN-SkillsNetwork/api/Images/crash.gif)
More specifically, the launch records are stored in a HTML table shown below:
![](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBM-DS0321EN-SkillsNetwork/labs/module_1_L2/images/falcon9-launches-wiki.png)
## Objectives
Web scrap Falcon 9 launch records with `BeautifulSoup`:
- Extract a Falcon 9 launch records HTML table from Wikipedia
- Parse the table and convert it into a Pandas data frame## Lab 2: Data wrangling
In this lab, we will perform some Exploratory Data Analysis (EDA) to find some patterns in the data and determine what would be the label for training supervised models.In the data set, there are several different cases where the booster did not land successfully. Sometimes a landing was attempted but failed due to an accident; for example,
True Ocean
means the mission outcome was successfully landed to a specific region of the ocean whileFalse Ocean
means the mission outcome was unsuccessfully landed to a specific region of the ocean.True RTLS
means the mission outcome was successfully landed to a ground padFalse RTLS
means the mission outcome was unsuccessfully landed to a ground pad.True ASDS
means the mission outcome was successfully landed on a drone shipFalse ASDS
means the mission outcome was unsuccessfully landed on a drone ship.In this lab we will mainly convert those outcomes into Training Labels with `1` means the booster successfully landed `0` means it was unsuccessful.
Falcon 9 first stage will land successfully
![](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0701EN-SkillsNetwork/api/Images/landing_1.gif)
Several examples of an unsuccessful landing are shown here:
![](https://cf-courses-data.s3.us.cloud-object-storage.appdomain.cloud/IBMDeveloperSkillsNetwork-DS0701EN-SkillsNetwork/api/Images/crash.gif)
## SQL Notebook
### Introduction
Using this Python notebook you will:
1. Understand the Spacex DataSet
2. Load the dataset into the corresponding table in a Db2 database
3. Execute SQL queries to answer assignment questions## Overview of the DataSet
SpaceX has gained worldwide attention for a series of historic milestones.
It is the only private company ever to return a spacecraft from low-earth orbit, which it first accomplished in December 2010.
SpaceX advertises Falcon 9 rocket launches on its website with a cost of 62 million dollars wheras other providers cost upward of 165 million dollars each, much of the savings is because Space X can reuse the first stage.
- Therefore if we can determine if the first stage will land, we can determine the cost of a launch.
- This information can be used if an alternate company wants to bid against SpaceX for a rocket launch.
- This dataset includes a record for each payload carried during a SpaceX mission into outer space.### Download the datasets
This task requires to load the spacex dataset.
In many cases the dataset to be analyzed is available as a .CSV (comma separated values) file, perhaps on the internet. Click on the link below to download and save the dataset (.CSV file):
Spacex DataSet## Exploring and Preparing Data
In this task, i will predict if the Falcon 9 first stage will land successfully. SpaceX advertises Falcon 9 rocket launches on its website with a cost of 62 million dollars; other providers cost upward of 165 million dollars each, much of the savings is due to the fact that SpaceX can reuse the first stage.
In this lab, you will perform Exploratory Data Analysis and Feature Engineering.### Objectives
Perform exploratory Data Analysis and Feature Engineering using `Pandas` and `Matplotlib`
* Exploratory Data Analysis
* Preparing Data Feature Engineering## **Launch Sites Locations Analysis with Folium**
The launch success rate may depend on many factors such as payload mass, orbit type, and so on. It may also depend on the location and proximities of a launch site, i.e., the initial position of rocket trajectories. Finding an optimal location for building a launch site certainly involves many factors and hopefully we could discover some of the factors by analyzing the existing launch site locations.
In the previous exploratory data analysis labs, you have visualized the SpaceX launch dataset using `matplotlib` and `seaborn` and discovered some preliminary correlations between the launch site and success rates. In this lab, you will be performing more interactive visual analytics using `Folium`.## Objectives
This lab contains the following tasks:
* **TASK 1:** Mark all launch sites on a map
* **TASK 2:** Mark the success/failed launches for each site on the map
* **TASK 3:** Calculate the distances between a launch site to its proximitiesAfter completed the above tasks, you should be able to find some geographical patterns about launch sites.
## Machine Learning Prediction
Space X advertises Falcon 9 rocket launches on its website with a cost of 62 million dollars; other providers cost upward of 165 million dollars each, much of the savings is because Space X can reuse the first stage. Therefore if we can determine if the first stage will land, we can determine the cost of a launch. This information can be used if an alternate company wants to bid against space X for a rocket launch. In this lab, you will create a machine learning pipeline to predict if the first stage will land given the data from the preceding labs.## Objectives
Perform exploratory Data Analysis and determine Training Labels
* create a column for the class
* Standardize the data
* Split into training data and test data\-Find best Hyperparameter for SVM, Classification Trees and Logistic Regression
* Find the method performs best using test data