Neuroglycerin / neukrill-net-tools

Tools coded as part of the NDSB competition.
MIT License
0 stars 0 forks source link

Prediction with Pylearn2 #65

Closed gngdb closed 9 years ago

gngdb commented 9 years ago

Need a function that will run Pylearn2 for prediction based on supplied run settings. Should be in test.py.

gngdb commented 9 years ago

There may be some hint for how this could be done in Pylearn2's own predict scripts.

Also, there will be a problem with decoding the prediction numbers; as they are encoded into integers in the Dataset class we've written and I don't know if this is something that's saved in the pickle file (I'm guessing it's not). Won't be clear how to fix this problem until we know more about how the prediction script should be written.

gngdb commented 9 years ago

To make this work there are a few things to do. First part is to produce a submission csv with integer labels (ie in the encoding that the model already knows):

Then, once that works we can start worrying about matching the labels to the integer labels the model already knows; ie the problem described above.

gngdb commented 9 years ago

Fixed it so the order of the labels the model will know will be correct. However, note that any models trained on the old code will be using the wrong map!