id_job = int(sys.argv[1]) #1606147964029 except: exit("ERROR: Please insert a valid numeric job id.") username = "******" is_remote = False try: is_remote = (sys.argv[2].lower() == 'true') print("REMOTE HOST") except: print("LOCAL HOST") # LOAD JOB url_job = US.get_url_job(is_remote) job_json = load_job(url_job, id_job) # LOAD MODEL TOPOLOGY url_topology = US.get_url_topology(job_json, is_remote) model_topology_key = job_json["topology"]["topology"] mymodel = load_model_topology_http(url_topology, model_topology_key, id_job, username) mymodel.summary() ### LOADING DATA X_train, Y_train, X_test, Y_test = loader(job_json) ################### ### LOAD MODEL OLD WEIGHTS ''' if (debug):
def load(self, id_job): print("ur_job " + self.url) return load_job(self.url, id_job)