Last active
August 25, 2021 16:46
-
-
Save shyamal18122000/35a14d2de75d704ac8943e19d7cab5ef to your computer and use it in GitHub Desktop.
This file contains 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
train_df = pd.read_csv('PM_test.txt', sep=" ", header=None) | |
train_df.drop(train_df.columns[[26, 27]], axis=1, inplace=True) | |
train_df.columns = ['id', 'cycle', 'setting1', 'setting2', 'setting3', 's1', 's2', 's3', | |
's4', 's5', 's6', 's7', 's8', 's9', 's10', 's11', 's12', 's13', 's14', | |
's15', 's16', 's17', 's18', 's19', 's20', 's21'] | |
train_df = train_df.sort_values(['id','cycle']) | |
# read test data - It is the aircraft engine operating data without failure events recorded. | |
test_df = pd.read_csv('PM_test.txt', sep=" ", header=None) | |
test_df.drop(test_df.columns[[26, 27]], axis=1, inplace=True) | |
test_df.columns = ['id', 'cycle', 'setting1', 'setting2', 'setting3', 's1', 's2', 's3', | |
's4', 's5', 's6', 's7', 's8', 's9', 's10', 's11', 's12', 's13', 's14', | |
's15', 's16', 's17', 's18', 's19', 's20', 's21'] | |
# read ground truth data - It contains the information of true remaining cycles for each engine in the testing data. | |
truth_df = pd.read_csv('PM_truth.txt', sep=" ", header=None) | |
truth_df.drop(truth_df.columns[[1]], axis=1, inplace=True) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment