This project is a neural network model designed to predict airline profitability based on multiple factors. In the airline industry, maximizing profitability is a complex challenge influenced by multiple operational and financial factors. Given historical flight performance data, your task is to develop a machine learning model that accurately predicts profit (USD) for each flight based on features.
1. Objective
The objective of this project is to create a machine learning model, a Neural Network in this case, to forecast flight profitability (USD) from different operational and financial parameters. The model must provide high accuracy, generalizability, and explainability to facilitate better decision-making for airline operators.
2. Data Preprocessing
2.1 Data Cleaning
Created new features like delay.
2.2 Data Scaling
Applied Standard Scaler to normalize numerical features for improved neural network convergence.
3. Model Architecture
The model is a fully connected feedforward neural network (FNN) implemented using TensorFlow/Keras.
3.1 Neural Network Design
3.2 Regularization & Optimization
L2 Regularization (λ = 0.001): Avoids overfitting.
Adam Optimizer: Learning rate that adapts with each step for quicker convergence.
Early Stopping: Trains until validation loss no longer improves.
4. Model Training & Evaluation
4.1 Training
epochs = 75
batch_size = 64
4.2 Evaluation Metrics
Mean Absolute Error (MAE): Measures average absolute prediction error.
R² Score: Measures how well predictions fit actual values.
6. Visualization
Training Visualisation graphs
Important features for the model
It predicts profit by taking a single record as input by using one of the trained model (comma seperated)

App link (after running app.py)
tensorflow==2.13.0
flask
pandas
numpy
scikit-learn
seaborn
matplotlib
- Open the notebook at Training_Neural_Network_airline
- Import your data to dataframe named df
- Run the code in the Notebook.
- Open the notebook at Test_Models
- Also download both the models.
- Import your data to dataframe named df.
- Run the code in the Notebook.
.png)


