Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def path(self):
return os.path.join(
config.get_deployment_path(),
'submissions',
'submission_' + '{0:09d}'.format(self.id))
def get_train_data(self):
path = os.path.join(config.get_deployment_path(),
'ramp-data',
self.name)
return self.module.get_train_data(path=path)
def get_test_data(self):
path = os.path.join(config.get_deployment_path(),
'ramp-data',
self.name)
return self.module.get_test_data(path=path)
def module(self):
return imp.load_source(
'', os.path.join(config.get_deployment_path(),
'ramp-kits',
self.name,
'problem.py'))