__author__ = "Lukas Leufen" __date__ = '2020-06-29' import argparse from mlair.workflows import DefaultWorkflow from mlair.helpers import remove_items from mlair.configuration.defaults import DEFAULT_PLOT_LIST import os def load_stations(): import json try: filename = 'supplement/station_list_north_german_plain_rural.json' with open(filename, 'r') as jfile: stations = json.load(jfile) except FileNotFoundError: stations = None return stations def main(parser_args): plots = remove_items(DEFAULT_PLOT_LIST, "PlotConditionalQuantiles") workflow = DefaultWorkflow( # stations=load_stations(), # stations=["DEBW087","DEBW013", "DEBW107", "DEBW076"], stations=["DEBW013", "DEBW087", "DEBW107", "DEBW076"], train_model=False, create_new_model=True, network="UBA", oversampling_method="bin_oversampling", oversampling_bins=10, oversampling_rates_cap=100, window_lead_time=2, evaluate_bootstraps=False, # plot_list=["PlotCompetitiveSkillScore"], competitors=["test_model", "test_model2"], competitor_path=os.path.join(os.getcwd(), "data", "comp_test"), **parser_args.__dict__) workflow.run() if __name__ == "__main__": parser = argparse.ArgumentParser() parser.add_argument('--experiment_date', metavar='--exp_date', type=str, default="testrun", help="set experiment date as string") args = parser.parse_args() main(args)