Kaggle competition: Airbus Ship Detection Challenge
<SOS> metric: IntersectionOverUnionObjectSegmentationBeta Kaggle data source: airbus-ship-detection<feature_engineering>
ship_dir = '.. /input'
train_image_dir = os.path.join(ship_dir, 'train')
 test_image_dir = os.path.join(ship_dir, 'test' )
fix_unknown_gender_col(col_name)
 genders = [x[0] for x in get_names_counter(col_name, "gender" ).most_common(2)]
for gender in genders:
c = "cast_gender_" + str(gender)
 all_data[c] = all_data[col_name].apply(lambda x: [cast_member for cast_member in x if cast_member["gender"]==gender])
 ",gender,"
-------------")
 EDA_dict(c)
 feature_engineer_dict(c)
 drop_column(col_name )<count_values>
test_files =[f for f in os.listdir(test_image_dir)]
submission_df = pd.DataFrame({'ImageId':test_files})
 submission_df['EncodedPixels']=None
print(f"There are {len(test_files)} images in the test dataset")
 submission_df.head()
<feature_engineering><EOS> 
submission_df.to_csv('submission.csv',index=False )