import os import sys import json from scripts.azure_utils import get_auth from contexts.rtscontext import RealTimeScoringContext from scripts.argument_utils import ExperimentType, loadConfiguration from scripts.general_utils import JobType, JobLog job_log = JobLog(JobType.real_time_scoring) try: ''' Get the program arguments and user authentication into the context ''' job_log.startStep("Setup") programargs = loadConfiguration(ExperimentType.real_time_scoring, sys.argv[1:]) userAuth = get_auth() program_context = RealTimeScoringContext(programargs, userAuth) job_log.endStep("Setup") ''' Get or create an AMLS workspace. If the settings identify an existing workspace, that workspace is retrieved. ''' job_log.startStep("Workspace") program_context.generateWorkspace() job_log.endStep("Workspace") ''' Get or create an AMLS experiment. ''' job_log.startStep("Experiment") program_context.generateExperiment()
import sys import json from scripts.azure_utils import get_auth from contexts.btchcontext import BatchScoringContext from scripts.argument_utils import ExperimentType, loadConfiguration from scripts.general_utils import JobType, JobLog job_log = JobLog(JobType.batch_scoring) try : ''' Get the program arguments and user authentication into the context ''' job_log.startStep("Setup") programargs = loadConfiguration(ExperimentType.batch_scoring,sys.argv[1:]) userAuth = get_auth() program_context = BatchScoringContext(programargs, userAuth, job_log) job_log.endStep("Setup") ''' Get or create an AMLS workspace. If the settings identify an existing workspace, that workspace is retrieved. ''' job_log.startStep("Workspace") program_context.generateWorkspace() job_log.endStep("Workspace") '''