dhammack / DSB2017

Code for 2nd place solution to the 2017 National Data Science Bowl
346 stars 156 forks source link

about the file DSB2017-master\scoring_code\create_preds_from_model_outputs.py??? #11

Open HarryPotter2017 opened 7 years ago

HarryPotter2017 commented 7 years ago

Hi Daniel,

When I run the file DSB2017-master\scoring_code\create_preds_from_model_outputs.py, I find the line 264:

labels = pd.read_csv(r"F:\Flung\stage2\stage1plus2_labels.csv")

In the DSB2017-master \ scoring_code folder I can not find this file stage1plus2_labels.csv, I can only find stage1plus2_masses_predictions.csv. When I use stage1plus2_masses_predictions.csv instead of the stage1plus2_labels.csv, code produces an error. The error should come from the file format is wrong, so I guess stage1plus2_masses_predictions.csv file can not replace the above documents.

I hope you can give me some advice, thanks

ysamsonov commented 6 years ago

Hi! I have the same problem at startup. Did you find this file or method of generating it?

dhammack commented 6 years ago

I believe this file is created by concatenating the stage1 and stage2 label files. I may have done this manually. Try appending stage1_labels.csv and stage2_labels.csv

ysamsonov commented 6 years ago

Thank you! I already found a solution to the problem.