Skip to content
Snippets Groups Projects
Select Git revision
  • d413d5c17e59ae9ddc5fbdd730376e446145cbee
  • main default protected
  • da-retest-hostnames
  • portals4
  • testReleases
  • issue-125
  • fixMissingMoveConstructors
  • 2.1.19-dev
  • 2.1.19
9 results

memory_cuda.cc

Blame
  • run_hourly.py 1.29 KiB
    __author__ = "Lukas Leufen"
    __date__ = '2019-11-14'
    
    
    import argparse
    import logging
    
    from src.run_modules.experiment_setup import ExperimentSetup
    from src.run_modules.model_setup import ModelSetup
    from src.run_modules.post_processing import PostProcessing
    from src.run_modules.pre_processing import PreProcessing
    from src.run_modules.run_environment import RunEnvironment
    from src.run_modules.training import Training
    
    
    def main(parser_args):
    
        with RunEnvironment():
            ExperimentSetup(parser_args, stations=['DEBW107', 'DEBY081', 'DEBW013', 'DEBW076', 'DEBW087', 'DEBW001'],
                            station_type='background', trainable=True, sampling="hourly", window_history_size=48)
            PreProcessing()
    
            ModelSetup()
    
            Training()
    
            PostProcessing()
    
    
    if __name__ == "__main__":
    
        formatter = '%(asctime)s - %(levelname)s: %(message)s  [%(filename)s:%(funcName)s:%(lineno)s]'
        logging.basicConfig(format=formatter, level=logging.INFO)
        # logging.basicConfig(format=formatter, level=logging.DEBUG)
    
        parser = argparse.ArgumentParser()
        parser.add_argument('--experiment_date', metavar='--exp_date', type=str, default=None,
                            help="set experiment date as string")
        args = parser.parse_args(["--experiment_date", "testrun"])
    
        main(args)