Skip to content

Instantly share code, notes, and snippets.

@MercyMarkus
Created April 18, 2019 16:56
Show Gist options
  • Save MercyMarkus/3e8eff1af70acce47611bf0bfef04806 to your computer and use it in GitHub Desktop.
Save MercyMarkus/3e8eff1af70acce47611bf0bfef04806 to your computer and use it in GitHub Desktop.
p,t = learn.get_preds(ds_type=DatasetType.Test)
p = to_np(p);
p.shape
ids = np.array([f.name for f in (combined_test)]);
ids.shape
sample_sub = Path('data/SampleSubmission.csv')
df_sample = pd.read_csv(sample_sub)
sub = pd.DataFrame(np.stack([ids, p[:,1]], axis=1), columns=df_sample.columns)
sub.to_csv(path/'wids-notebook.csv', index=False)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment