Functions | Variables
get_rocintegrals Namespace Reference

Functions

def roc_from_file (filename_base, rocstring)
 

Variables

 ntrees_range = range(100, 1000+1, 50)
 
list tree_depths = [1,2,3,4,5]
 
list min_node_sizes = [2.5,1,0.1,0.01,0.001]
 
string grad_filename = "train_grad.csv"
 
 grad_file = open(grad_filename, "w")
 
string ada_filename = "train_ada.csv"
 
 ada_file = open(ada_filename, "w")
 
string bagged_filename = "train_bagged.csv"
 
 bagged_file = open(bagged_filename, "w")
 
string filename_base = "optimize_grad_"
 
 roc = roc_from_file(filename_base, " muonid_training_set BDTG_GradBoost : ")
 

Function Documentation

def get_rocintegrals.roc_from_file (   filename_base,
  rocstring 
)

Definition at line 10 of file get_rocintegrals.py.

10 def roc_from_file(filename_base, rocstring):
11  read_file = subprocess.Popen(["cat", filename_base + ".out"], stdout=subprocess.PIPE)
12  grep_line = subprocess.check_output(["grep", rocstring], stdin=read_file.stdout)
13  roc_match = re.search(rocstring + "(.*)$", grep_line)
14  return roc_match.group(1)
15 
16 # args=parser.parse_args()
17 
18 # gradboost logic
def roc_from_file(filename_base, rocstring)

Variable Documentation

get_rocintegrals.ada_file = open(ada_filename, "w")

Definition at line 24 of file get_rocintegrals.py.

string get_rocintegrals.ada_filename = "train_ada.csv"

Definition at line 23 of file get_rocintegrals.py.

get_rocintegrals.bagged_file = open(bagged_filename, "w")

Definition at line 28 of file get_rocintegrals.py.

string get_rocintegrals.bagged_filename = "train_bagged.csv"

Definition at line 27 of file get_rocintegrals.py.

string get_rocintegrals.filename_base = "optimize_grad_"

Definition at line 34 of file get_rocintegrals.py.

get_rocintegrals.grad_file = open(grad_filename, "w")

Definition at line 20 of file get_rocintegrals.py.

string get_rocintegrals.grad_filename = "train_grad.csv"

Definition at line 19 of file get_rocintegrals.py.

list get_rocintegrals.min_node_sizes = [2.5,1,0.1,0.01,0.001]

Definition at line 8 of file get_rocintegrals.py.

get_rocintegrals.ntrees_range = range(100, 1000+1, 50)

Definition at line 6 of file get_rocintegrals.py.

get_rocintegrals.roc = roc_from_file(filename_base, " muonid_training_set BDTG_GradBoost : ")

Definition at line 35 of file get_rocintegrals.py.

list get_rocintegrals.tree_depths = [1,2,3,4,5]

Definition at line 7 of file get_rocintegrals.py.