Module If CompareEq NameLoad Str body Import alias Import alias Import alias Import alias identifier Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore Call NameLoad BinOpDiv NameLoad Num Call NameLoad Num FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad CompareIsNot NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Return NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore ListComp Call NameLoad NameLoad comprehension NameStore NameLoad CompareIsNot NameLoad NameLoad If CompareEq Call NameLoad NameLoad Num body Return NameLoad Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults Str body Expr Str Assign NameStore Call NameLoad For NameStore Call AttributeLoad NameLoad attr NameLoad body If CompareIn Str NameLoad body Continue TryExcept body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Assign TupleStore NameStore NameStore Call AttributeLoad NameLoad attr BinOpAdd NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad handlers ExceptHandler type NameLoad name NameStore body Print NameLoad Print Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad ListLoad Str body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad NameLoad For NameStore NameLoad body Assign TupleStore NameStore NameStore SubscriptLoad NameLoad Index NameLoad For NameStore NameLoad body Assign NameStore NameLoad Assign NameStore NameLoad If CompareEq NameLoad Str body Assign NameStore ListLoad Num orelse If CompareEq NameLoad Str body Assign NameStore ListLoad Num Assign NameStore NameLoad orelse If CompareEq NameLoad Str body Assign NameStore Call NameLoad Num Num Assign NameStore ListComp ListLoad comprehension NameStore Call NameLoad Call NameLoad NameLoad Assign NameStore ListLoad For NameStore SubscriptLoad NameLoad Slice Num body Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Num For NameStore Call NameLoad Num Call NameLoad NameLoad body Expr Call AttributeLoad SubscriptLoad NameLoad Index NameLoad attr Call NameLoad SubscriptLoad NameLoad Index SubscriptLoad NameLoad Index NameLoad Assign NameStore ListLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr keyword BinOpMod Str TupleLoad NameLoad NameLoad NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad If CompareIsNot NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr keyword Str Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr If BoolOpOr UnaryOpNot AttributeLoad NameLoad attr CompareEq AttributeLoad NameLoad attr Str body Return NameLoad Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore NameLoad Assign NameStore Num Assign NameStore ListComp Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad comprehension TupleStore NameStore NameStore NameLoad Assign NameStore Call NameLoad Call NameLoad NameLoad NameLoad Assign NameStore ListComp BinOpLShift BinOpLShift Call NameLoad NameLoad Call NameLoad SubscriptLoad NameLoad Index Num BinOpSub NameLoad Call NameLoad NameLoad comprehension NameStore NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Slice Assign NameStore Num FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For TupleStore NameStore NameStore Call NameLoad NameLoad body Assign NameStore BinOpMult NameLoad NameLoad Expr Call AttributeLoad NameLoad attr BinOpAdd ListLoad NameLoad Call NameLoad NameLoad Return NameLoad decorator_list Assign NameStore Call NameLoad Lambda arguments args NameParam defaults ListLoad Call NameLoad NameLoad Call NameLoad NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Return BinOpAdd ListComp SubscriptLoad NameLoad Index Call NameLoad Call NameLoad BinOpMult NameLoad BinOpSub Call NameLoad NameLoad Num comprehension NameStore NameLoad ListLoad Call NameLoad NameLoad decorator_list Assign NameStore Call NameLoad NameLoad Return TupleLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults NameLoad body Expr Str Assign NameStore ListLoad NameLoad Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword NameLoad keyword NameLoad keyword Str Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr AttributeLoad AttributeLoad NameLoad attr attr attr CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Str CompareEq AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr Call AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Assign NameStore NameLoad For NameStore NameLoad body If CompareIs NameLoad NameLoad body Assign NameStore AttributeLoad NameLoad attr Assign NameStore BinOpSub AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpAdd AttributeLoad NameLoad attr BinOpMult BinOpMult AttributeLoad NameLoad attr Num Num Assign NameStore NameLoad Assign NameStore Num If NameLoad body Assign NameStore BinOpSub AttributeLoad NameLoad attr NameLoad orelse Assign NameStore Call NameLoad BinOpDiv NameLoad NameLoad While CompareLtE Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Num If CompareIs SubscriptLoad NameLoad Index Num NameLoad body Assign SubscriptStore NameLoad Index Num Call NameLoad NameLoad orelse Assign SubscriptStore NameLoad Index Num Call NameLoad SubscriptLoad NameLoad Index Num Call NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr keyword Str attr attr Assign NameStore ListComp Call NameLoad SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call NameLoad Call AttributeLoad NameLoad attr Assign NameStore Call NameLoad Lambda arguments args defaults Call NameLoad NameLoad For NameStore NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr keyword Str attr Str If NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad For NameStore NameLoad body Expr Call AttributeLoad SubscriptLoad SubscriptLoad NameLoad Index Call NameLoad NameLoad Index Call NameLoad NameLoad attr TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad Assign NameStore Dict For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body Assign NameStore Call NameLoad AttributeLoad SubscriptLoad NameLoad Index Num attr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num Index Num Assign NameStore AttributeLoad SubscriptLoad SubscriptLoad SubscriptLoad Call AttributeLoad NameLoad attr Index Num Index Num Index Num attr Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr Call AttributeLoad AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr attr NameLoad attr CompareLt AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr Call NameLoad Str attr keyword NameLoad keyword Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr Num attr Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr BinOpSub NameLoad Num attr Num attr For TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr body Assign TupleStore NameStore NameStore Call NameLoad NameLoad NameLoad NameLoad NameLoad NameLoad Assign SubscriptStore NameLoad Index NameLoad TupleLoad NameLoad NameLoad Assign NameStore Call NameLoad For TupleStore NameStore NameStore NameLoad body TryExcept body Assign NameStore Call AttributeLoad Call AttributeLoad Call AttributeLoad Call AttributeLoad NameLoad attr AttributeLoad AttributeLoad NameLoad attr attr attr keyword NameLoad keyword AttributeLoad NameLoad attr attr Num attr handlers ExceptHandler type AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr body Continue Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list If CompareEq NameLoad Str body Assign NameStore ListLoad Str Str Str Str Expr Call NameLoad NameLoad Print Call NameLoad
N/A N/A N/A __name__ __main__ N/A N/A adddeps N/A itertools N/A math N/A matplotlib.pyplot plt N/A numpy N/A os N/A sqlalchemy N/A sqlalchemy.orm.exc collections defaultdict fn _ fn Stream fn.iters repeat opentuner resultsdb N/A PCTSTEPS N/A map N/A _ 20.0 N/A xrange 21 mean N/A N/A vals N/A N/A N/A 
  Arguments,
    vals: List of floating point numbers
  Returns,
    The mean of the numbers in the input list
    None if all values in the list are None
   N/A filtered_values N/A N/A float x N/A x vals N/A x None N/A N/A N/A len filtered_values 0 N/A N/A None N/A N/A N/A numpy mean N/A N/A numpy array filtered_values N/A stddev N/A N/A vals N/A N/A N/A 
  Arguments,
    vals: List of floating point numbers
  Returns,
    The standard deviation of numbers in the input list
    None if all values in the list are None
   N/A filtered_values N/A N/A float x N/A x vals N/A x None N/A N/A N/A len filtered_values 0 N/A N/A None N/A N/A N/A math sqrt N/A N/A numpy var N/A N/A numpy array filtered_values N/A get_dbs N/A N/A path db_type N/A sqlite:/// N/A N/A 
  Arguments,
    path: Path of directory containing .db files
  Returns,
    A list of (engine, session) pairs to the dbs pointed to by
    the db files
   N/A dbs N/A list N/A f N/A N/A os listdir path N/A N/A N/A journal f N/A N/A N/A N/A N/A db_path N/A N/A N/A os path join path f N/A N/A e sm N/A N/A resultsdb connect N/A db_type db_path N/A N/A N/A dbs append N/A sm N/A N/A N/A Exception N/A e N/A N/A e N/A Error encountered while connecting to db N/A dbs N/A matplotlibplot_file N/A N/A labels xlim ylim disp_types N/A None None N/A median N/A N/A 
  Arguments,
    labels: List of labels that need to be included in the plot
    xlim: Integer denoting the maximum X-coordinate in the plot
    ylim: Integer denoting the maximum Y-coordinate in the plot
    disp_types: List of measures that are to be displayed in the plot
  Returns,
    A figure object representing the required plot
   N/A figure N/A N/A plt figure N/A values N/A get_values labels N/A label values N/A N/A N/A mean_values percentile_values N/A values N/A label N/A disp_type disp_types N/A N/A cols None N/A data percentile_values N/A N/A disp_type median N/A N/A cols N/A 11 N/A N/A N/A disp_type mean N/A N/A cols N/A 1 N/A data mean_values N/A N/A N/A disp_type all_percentiles N/A N/A cols N/A range 1 22 N/A plotted_data N/A N/A N/A x N/A xrange N/A len cols N/A x_indices N/A N/A data_point N/A data N/A 1 N/A N/A N/A N/A x_indices append N/A int N/A data_point N/A 0 N/A i N/A range 0 N/A len cols N/A N/A N/A N/A N/A plotted_data N/A i append N/A float N/A data_point N/A N/A cols N/A i N/A args N/A N/A to_plot plotted_data N/A N/A N/A N/A args append x_indices N/A N/A N/A args append to_plot N/A N/A N/A plt plot label N/A %s(%s) N/A label disp_type args N/A N/A xlim None N/A N/A N/A N/A plt xlim xlim N/A N/A ylim None N/A N/A N/A N/A plt ylim ylim N/A N/A N/A plt xlabel Autotuning Time (seconds) N/A N/A N/A plt ylabel Execution Time (seconds) N/A N/A N/A plt legend loc upper right N/A figure N/A run_label N/A N/A tr N/A N/A N/A techniques N/A N/A , join N/A N/A tr args technique N/A N/A N/A N/A tr name N/A N/A tr name unnamed N/A N/A techniques N/A N/A tr name N/A combined_stats_over_time N/A N/A label runs objective worst best N/A N/A N/A 
  combine stats_over_time() vectors for multiple runs
   N/A extract_fn N/A N/A _ result time N/A combine_fn min N/A no_data 999 N/A by_run N/A N/A stats_over_time session run extract_fn combine_fn no_data N/A N/A run session runs N/A max_len N/A max N/A map len by_run N/A by_run_streams N/A N/A N/A N/A Stream x N/A repeat N/A x N/A -1 N/A max_len N/A len x N/A x by_run N/A by_quanta N/A zip N/A by_run_streams N/A N/A stats_quanta 10 get_data N/A N/A value_function N/A N/A N/A final_values N/A N/A N/A quanta values N/A enumerate by_quanta N/A N/A sec N/A quanta stats_quanta N/A N/A N/A final_values append N/A N/A sec N/A value_function values N/A final_values N/A N/A mean_values N/A get_data N/A N/A N/A values N/A N/A N/A mean values N/A stddev values extract_percentiles N/A N/A values N/A N/A N/A values N/A sorted values N/A N/A N/A N/A values N/A N/A int N/A round N/A p N/A N/A len values 1 N/A p PCTSTEPS N/A N/A mean values N/A N/A percentile_values N/A get_data extract_percentiles N/A N/A mean_values percentile_values N/A stats_over_time N/A N/A session run extract_fn combine_fn no_data N/A None N/A N/A 
  return reduce(combine_fn, map(extract_fn, data)) for each quanta of the
  tuning run
   N/A value_by_quanta N/A no_data N/A start_date N/A run start_date N/A subq N/A N/A N/A N/A session query N/A N/A N/A resultsdb models Result id filter_by tuning_run run was_new_best True state OK N/A q N/A N/A N/A N/A N/A N/A N/A N/A session query N/A N/A resultsdb models DesiredResult join N/A N/A resultsdb models Result filter N/A N/A N/A N/A resultsdb models DesiredResult state COMPLETE N/A N/A N/A N/A resultsdb models DesiredResult tuning_run run N/A N/A N/A N/A N/A resultsdb models DesiredResult result_id in_ N/A N/A subq subquery order_by N/A N/A N/A resultsdb models DesiredResult request_date N/A first_id None N/A dr q N/A N/A N/A first_id None N/A N/A first_id N/A dr id N/A td N/A N/A dr request_date start_date N/A duration N/A N/A td seconds N/A N/A N/A td days 24 3600.0 N/A by_request_count True N/A stats_quanta 10 N/A by_request_count N/A N/A quanta N/A N/A dr id first_id N/A N/A quanta N/A int N/A duration stats_quanta N/A N/A N/A len value_by_quanta quanta N/A N/A N/A N/A value_by_quanta append N/A value_by_quanta N/A -1 N/A N/A N/A value_by_quanta N/A -1 no_data N/A N/A N/A value_by_quanta N/A -1 N/A extract_fn dr N/A N/A N/A value_by_quanta N/A -1 N/A combine_fn N/A value_by_quanta N/A -1 N/A extract_fn dr N/A value_by_quanta N/A get_all_labels N/A N/A N/A N/A N/A 
  Returns,
    List of labels that are in the complete state
   N/A dbs N/A get_dbs N/A N/A os getcwd N/A all_labels N/A list N/A db dbs N/A N/A N/A N/A all_labels extend N/A N/A N/A N/A N/A N/A N/A N/A db query N/A N/A N/A resultsdb models TuningRun name filter_by state COMPLETE distinct all N/A all_labels N/A N/A str N/A element N/A 0 N/A element all_labels N/A all_labels N/A get_values N/A N/A labels N/A N/A N/A 
  Arguments,
    labels: List of labels whose values are of interest
  Returns,
    A list of (mean, percentile) tuples, corresponding to the
    provided list of labels
   N/A dbs N/A get_dbs N/A N/A os getcwd N/A dir_label_runs N/A defaultdict N/A N/A N/A N/A N/A defaultdict list N/A db dbs N/A N/A q N/A N/A N/A N/A N/A N/A db query N/A N/A resultsdb models TuningRun filter_by state COMPLETE order_by name N/A labels N/A N/A q N/A N/A q filter N/A N/A N/A N/A N/A resultsdb models TuningRun name in_ labels N/A tr q N/A N/A N/A N/A N/A N/A dir_label_runs N/A N/A run_label tr N/A N/A run_label tr append N/A tr db N/A all_run_ids N/A list N/A returned_values N/A N/A N/A d label_runs N/A N/A dir_label_runs iteritems N/A N/A all_run_ids N/A map N/A N/A _ N/A 0 id N/A N/A itertools chain N/A N/A label_runs values N/A session N/A N/A N/A N/A N/A label_runs values N/A 0 N/A 0 N/A 1 N/A objective N/A N/A N/A N/A N/A N/A label_runs values N/A 0 N/A 0 N/A 0 objective N/A q N/A N/A N/A N/A N/A N/A N/A N/A session query N/A N/A resultsdb models Result filter N/A N/A N/A N/A N/A resultsdb models Result tuning_run_id in_ all_run_ids filter N/A N/A N/A N/A resultsdb models Result time N/A float inf filter_by was_new_best True state OK N/A total N/A N/A q count N/A q N/A N/A objective filter_acceptable q N/A acceptable N/A N/A q count N/A q N/A N/A q order_by N/A N/A objective result_order_by_terms N/A best N/A N/A N/A N/A q limit 1 one N/A worst N/A N/A N/A N/A N/A N/A q offset N/A acceptable 1 limit 1 one N/A N/A label runs N/A sorted N/A N/A label_runs items N/A N/A N/A mean_values percentile_values N/A combined_stats_over_time label runs objective worst best N/A N/A returned_values N/A label N/A mean_values percentile_values N/A final_scores N/A list N/A N/A run session runs N/A N/A N/A N/A final N/A N/A N/A N/A N/A N/A N/A N/A session query N/A N/A resultsdb models Result filter_by tuning_run run configuration N/A run final_config limit 1 one N/A N/A N/A N/A N/A N/A sqlalchemy orm exc NoResultFound N/A N/A N/A N/A N/A final_scores append N/A N/A objective stats_quality_score final worst best N/A N/A N/A final_scores sort N/A returned_values N/A N/A N/A __name__ __main__ N/A N/A labels N/A timeouts always_reorder add_store_at all_options N/A N/A get_values labels N/A N/A get_all_labels