Skip to content
Joshua Cook edited this page Aug 26, 2016 · 3 revisions

Welcome to the tcsl wiki!

Wrangling Data

Use this make command to create the numpy pickle objects using the built-in data wrangler:

$ make wrangle_data

Run the Comparison

Use this make command to create run the comparison app:

$ make all_classifiers

Debugging

Debugging in docker can be a bit tricky. To make it easier, we will use ipdb, the interactive ipython debugger.

To debug, execute the following make task:

$ COMMAND=#COMMNAND_TO_DEBUG# make debug 

The syntax is a bit tricky. Basically, the command you wish to debug gets passed as an environment variable so must be set first.

To debug the app, run

$ COMMAND='python -m app' make debug

The next step is to add the debugger. Simply insert this line of code above the statement you wish to debug.

import ipdb; ipdb.set_trace()

More on ipdb here

Clone this wiki locally