Skip to content

Tian-Bai/selcf_paper

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

42 Commits
 
 
 
 
 
 
 
 

Repository files navigation

selcf_paper

This repository is forked from the original repository for the paper Selection by Prediction with Conformal p-values.

Folders

  • utils/: Python codes for the simulations.
    • gendata-model.py: generate csv data for specified model (currently only 'rf' and 'mlp' supported).
    • gendata-oracle.py: generate csv data for the oracle model
    • plot-model.py: plot FDP, power, number of selection (nsel) and out-of-sample R^2 for specified model. The csv data need to be present.
    • plot-oracle.py: plot FDP, power, number of selection (nsel) and out-of-sample R^2 for the oracle model. The csv data need to be present.
    • plot-trendcomparison.py: Compare the trend for out-of-sample R^2 and power/number of selection.

Sample arguments

python -u "d:\Github\selcf_paper\utils\gendata-model.py" -i 1000 -d 20 -n 100 mlp layers -r 1,21,1 hidden:8

python -u "d:\Github\selcf_paper\utils\plot-model.py" -i 1000 -d 10 -n 100 rf max_depth -r 1,51,1 n_estim:50,max_features:sqrt

python -u "d:\Github\selcf_paper\utils\plot-trendcomparison.py" -i 1000 -d 20 -n 100 mlp layers -r 1,11,1 hidden:8

python -u "d:\Github\selcf_paper\utils\gendata-oracle.py" -i 1000 -d 20 -n 100

About

A repository for reproducing the results in Selection by Prediction paper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 97.5%
  • Python 2.5%