예제 #1
0
def main():
    from time import time
    t0 = time()
    args = ap.parse_args()

    config = cfgutils.get_config(args.config)
    experiment = ExperimentJobs(config, verbose=args.verbose, debug=args.debug)
    experiment.start(n_jobs=args.njobs)
    t1 = time()
    print "\nElapsed time: %.3f secs (%.3f mins)" % ((t1-t0), (t1-t0)/60)
예제 #2
0
def main():
    from time import time
    t0 = time()
    args = ap.parse_args()
    print args.train
    config = cfgutils.get_config(args.config)
    experiment = Study(args.train, config, verbose=args.verbose, debug=args.debug)
    experiment.start()
    t1 = time()
    print "Elapsed time: %.3f secs (%.3f mins)" % ((t1-t0), (t1-t0)/60)
예제 #3
0
                action='store_true',
                help='to print progress of experiment')

ap.add_argument('--debug',
                action='store_true',
                help='to print query details of experiment')

ap.add_argument('--config',
                metavar='CONFIG_FILE',
                type=str,
                default='./default.cfg',
                help='Experiment configuration file')


args = ap.parse_args()
config = cfgutils.get_config(args.config)


def profile_experiment():
    experiment = Experiment(config, verbose=args.verbose, debug=args.debug)
    experiment.start()


def main():
    from time import time
    import cProfile
    t0 = time()


    print "=" * 80
    print "RUNNING - UTILITY BASED"