Skip to content

Latest commit

 

History

History

control_tasks

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Description Length and Control Tasks

Our code is a modified version of the original code for the control tasks paper.

Warning! We used code from the codalab worksheets and NOT from the repo, because we used the code referred to in the paper. We do not know if the code is different from the one in the repo.

Loading data

Download data and ELMo vectors using our link or from the original codalab worksheets: the data is the same.

Experiments

Change config

Folder ./mdl_configs contains examples of config files for variational and online codings.

You have to change the lines marked by the # CHANGE THIS: ... comment:

  • path to the ptb data,

  • path to the elmo vectors,

  • layer number,

  • output directory with checkpoints and logs.

If you want, you can also change the lines marked by the # CHANGE THIS (IF YOU REALLY WANT) comment:

  • number of probe layers

  • size of the probe hidden layer.

Run experiment

How to run an experiment:

python /path_to_this_repo/control_tasks/run_experiment.py /path_to_this_repo/mdl_configs/bayes_l0.yml

Getting results and Evaluating MDL

Folder ./mdl_eval_notebooks contains notebooks shoing how to evaluate online and variational codelength from the logs, and how to get pruned probe architecture for the variational probe.