Created
May 16, 2022 11:40
-
-
Save audhiaprilliant/5eac0f10408793e370872570c3b3544e to your computer and use it in GitHub Desktop.
End to end machine learning model deployment using flask
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -------------------- TRAINING SET -------------------- | |
| # Import the training set | |
| df_train = pd.read_csv( | |
| filepath_or_buffer = 'https://raw.githubusercontent.com/dphi-official/Datasets/master/Loan_Data/loan_train.csv', | |
| usecols = [i for i in range(1, 14)] | |
| ) | |
| # Data dimension | |
| print('Data dimension: {} rows and {} columns'.format(len(df_train), len(df_train.columns))) | |
| df_train.head() | |
| # -------------------- TESTING SET -------------------- | |
| # Import the testing set | |
| df_test = pd.read_csv( | |
| filepath_or_buffer = 'https://raw.githubusercontent.com/dphi-official/Datasets/master/Loan_Data/loan_test.csv' | |
| ) | |
| # Data dimension | |
| print('Data dimension: {} rows and {} columns'.format(len(df_test), len(df_test.columns))) | |
| df_test.head() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment