Exemplo n.º 1
0
def main(job_id, params):
  print 'Anything printed here will end up in the output directory for job #:', str(job_id);
  print params;

  print os.environ['PYTHONPATH'].split(os.pathsep)
  # yaml template and base_config are expected to be in the same directory
  meta_job_path = os.path.dirname(__file__);
  yaml_template_file = os.path.join(meta_job_path,'_template.yaml');
  base_config_path = os.path.join(meta_job_path,'_base_config.properties');
  return spearmint_wrapper.run_job(job_id, meta_job_path, yaml_template_file, base_config_path, params);
Exemplo n.º 2
0
'''
Created on May 11, 2014

@author: sstober
'''
import os
import deepthought.spearmint.wrapper as spearmint_wrapper

if __name__ == '__main__':
    params = {
              'learning_rate' : [0.01]
              }
    
    job_id = 'job1';
#     meta_job_path = os.path.dirname(__file__);
    meta_job_path = '/Users/sstober/git/deepbeat/deepbeat/spearmint/audiomostly/h0_input_1bar_nophase/';
    yaml_template_file = os.path.join(meta_job_path,'_template.yaml');
    # yaml_template_file = '/Users/sstober/work/develop/code-repos/deepthought-dev.git/deepthought/experiments/rwanda2013scae/_template.yaml'
    base_config_path = os.path.join(meta_job_path,'_base_config.properties');
    result = spearmint_wrapper.run_job(
                                       job_id, 
                                       meta_job_path, 
                                       yaml_template_file, 
                                       base_config_path, 
                                       params,
                                       );
    
    print result;
Exemplo n.º 3
0
'''
Created on May 11, 2014

@author: sstober
'''
import os
import deepthought.spearmint.wrapper as spearmint_wrapper

if __name__ == '__main__':
    params = {'learning_rate': [0.01]}

    job_id = 'job1'
    #     meta_job_path = os.path.dirname(__file__);
    meta_job_path = '/Users/sstober/git/deepbeat/deepbeat/spearmint/audiomostly/h0_input_1bar_nophase/'
    yaml_template_file = os.path.join(meta_job_path, '_template.yaml')
    # yaml_template_file = '/Users/sstober/work/develop/code-repos/deepthought-dev.git/deepthought/experiments/rwanda2013scae/_template.yaml'
    base_config_path = os.path.join(meta_job_path, '_base_config.properties')
    result = spearmint_wrapper.run_job(
        job_id,
        meta_job_path,
        yaml_template_file,
        base_config_path,
        params,
    )

    print result