Skip to content

Instantly share code, notes, and snippets.

@bwallace
Last active August 29, 2015 14:13
Show Gist options
  • Save bwallace/88abb3907a10e48279a4 to your computer and use it in GitHub Desktop.
Save bwallace/88abb3907a10e48279a4 to your computer and use it in GitHub Desktop.
pico SDS
import cochranenlp
cd cochranenlp # assuming you're in ipython-like environment...
from sds import pico_SDS
# this will take a long time, especially the first time
# because it should generate pickles of y_dict and the
# corresponding vectorizers. this will happen in
# experiments/pico_DS. these should be saved to disk
# in the sds subdirectory. therafter, you can elide the
# y_dict_pickle argument and use the default
pico_SDS.run_DS_PICO_experiments(y_dict_pickle=None)
# run the SDS strategy as currently implemented
pico_SDS.run_DS_PICO_experiments(strategy="sds")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment