Kaggle competition: Severstal: Steel Defect Detection
<SOS> metric: Dice Kaggle data source: severstal:-steel-defect-detection<merge>
import numpy as np
import pandas as pd
<data_type_conversions><EOS> 
df = pd.read_csv('.. /input/severstal-steel-defect-detection/sample_submission.csv')
 df['EncodedPixels']=['' for i in range(len(df)) ]
df_submit = pd.read_csv(".. /input/severstal-final-test-preds-0111-3/severstal_final_test_preds_0111_3.csv" ).fillna('')
 if df.columns[0]=='ImageId_ClassId':
df.set_index('ImageId_ClassId', inplace=True)
 df_submit.set_index('ImageId_ClassId', inplace=True)
 for name, row in df_submit.iterrows() :
df.loc[name] = row
df.reset_index(inplace=True)
 df.to_csv('submission.csv', index=False )