Module Expr Str Import alias Import alias Import alias Import alias Import alias Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword Str FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr ListLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad AttributeLoad NameLoad attr keyword Lambda arguments args NameParam defaults Call AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Slice NameLoad If NameLoad body Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr orelse Assign NameStore Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Assign NameStore Num Assign NameStore Dict Str Str Str Str Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Call AttributeLoad AttributeLoad NameLoad attr attr keyword Num Assign NameStore Call SubscriptLoad NameLoad Index NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str NameLoad Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad Assign NameStore Call AttributeLoad Str attr NameLoad IfExp NameLoad Str Str Return ListLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults Num NameLoad body Expr Str Expr Call AttributeLoad NameLoad attr Str Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr FunctionDef arguments args defaults body For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr Str NameLoad Assign NameStore Call NameLoad SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call NameLoad NameLoad Num keyword Num keyword NameLoad Assign NameStore BinOpSub Call AttributeLoad NameLoad attr BinOpMult Num Call NameLoad NameLoad Num Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad SubscriptLoad AttributeLoad NameLoad attr Slice Num NameLoad Num For TupleStore NameStore NameStore NameLoad body For NameStore NameLoad body Expr Yield TupleLoad NameLoad ListLoad NameLoad SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str SubscriptLoad NameLoad Index Str NameLoad NameLoad NameLoad decorator_list With Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Str NameStore body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr ListLoad Str Str Str Str For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr decorator_list Call AttributeLoad NameLoad attr keyword Str keyword TupleLoad Str Str NameLoad AttributeLoad AttributeLoad NameLoad attr attr keyword TupleLoad Str Str Str NameLoad keyword TupleLoad Str Str If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr NameLoad
N/A N/A @author: Bryan Silverthorn <bcs@cargo-cult.org> N/A csv N/A numpy N/A sklearn N/A condor N/A borg N/A logger N/A N/A borg get_logger __name__ default_level INFO evaluate_split N/A N/A run_data model_name mixture independent instance_count train_mask test_mask N/A N/A N/A Evaluate a model on a train/test fold. N/A testing N/A N/A N/A N/A run_data masked test_mask collect_systematic N/A 4 N/A training_all N/A N/A run_data masked train_mask N/A training_ids N/A sorted N/A training_all ids key N/A N/A N/A _ N/A N/A N/A N/A numpy random rand N/A training_filtered N/A N/A training_all filter N/A training_ids N/A instance_count N/A independent N/A N/A training N/A N/A N/A N/A training_filtered collect_independent mixture only_nonempty N/A N/A training N/A N/A N/A N/A training_filtered collect_systematic mixture only_nonempty N/A bins 10 N/A estimators N/A mul_alpha=0.1 mul-dir mul-dirmix mul-dirmatmix N/A N/A N/A borg models MulEstimator alpha 0.02 N/A N/A N/A borg models MulDirEstimator N/A N/A N/A borg models MulDirMixEstimator K 4 N/A N/A N/A borg models MulDirMatMixEstimator K 32 N/A model N/A N/A estimators N/A model_name training bins training_all N/A N/A N/A logger info scoring model on %i instances N/A len testing N/A score N/A N/A numpy mean N/A N/A N/A borg models run_data_log_probabilities model testing N/A N/A N/A logger info score of model %s given %i runs from %i instances: %f model_name N/A N/A training get_run_count N/A len training score N/A description N/A N/A {0} ({1}) format mixture N/A independent Sep. Sys. N/A N/A model_name description instance_count score N/A main N/A N/A out_path experiments workers local N/A 0 False N/A N/A Run the specified model evaluations. N/A N/A N/A logger info running %i experiments N/A len experiments N/A get_run_data N/A N/A N/A borg util memoize N/A N/A N/A borg storage RunData from_bundle yield_jobs N/A N/A N/A N/A N/A experiment experiments N/A N/A N/A N/A logger info preparing experiment: %s experiment N/A run_data N/A get_run_data N/A experiment N/A run_data N/A validation N/A N/A N/A sklearn cross_validation ShuffleSplit N/A len run_data 32 test_fraction 0.1 indices False N/A max_instance_count N/A N/A N/A numpy floor N/A 0.9 N/A len run_data 10 N/A instance_counts N/A map int N/A map round N/A N/A numpy r_ N/A 10 max_instance_count 24j N/A N/A train_mask test_mask validation N/A N/A instance_count instance_counts N/A N/A N/A N/A evaluate_split N/A run_data N/A experiment N/A model_name N/A experiment N/A mixture N/A experiment N/A independent instance_count train_mask test_mask N/A N/A N/A N/A N/A borg util openz out_path wb out_file N/A N/A writer N/A N/A csv writer out_file N/A N/A N/A writer writerow N/A model_name sampling instances mean_log_probability N/A N/A _ row N/A N/A condor do N/A yield_jobs workers local N/A N/A N/A N/A writer writerow row N/A N/A N/A out_file flush N/A N/A N/A borg annotations out_path results output path experiments N/A path to experiments JSON positional None N/A N/A borg util load_json workers N/A submit jobs? option w int local N/A workers are local? flag N/A N/A __name__ __main__ N/A N/A N/A N/A borg script main