added create workspace
This commit is contained in:
Родитель
73c42de1c0
Коммит
ff15a2c112
|
@ -0,0 +1,14 @@
|
|||
from azureml.core import Workspace
|
||||
import json
|
||||
|
||||
with open('config.json', 'r') as f:
|
||||
config = json.load(f)
|
||||
|
||||
subscription_id = config['subscription_id']
|
||||
resource_group = config['resource_group']
|
||||
workspace_name = config['workspace_name']
|
||||
workspace_region = config['workspace_region']
|
||||
|
||||
ws = Workspace.create(workspace_name, subscription_id = subscription_id, resource_group = resource_group, exist_ok=True)
|
||||
|
||||
ws.write_config()
|
|
@ -33,6 +33,8 @@ y_test_file = os.path.join('.', 'deployment', 'test_data', 'y_test.hkl')
|
|||
X_test = hkl.load(X_test_file)
|
||||
y_test = hkl.load(y_test_file)
|
||||
|
||||
X_test = X_test[:10]
|
||||
y_test = y_test[:10]
|
||||
# anoms = np.where(y_test == 1)[0]
|
||||
# random_anom = np.random.choice(anoms)
|
||||
# print(random_anom)
|
||||
|
|
Загрузка…
Ссылка в новой задаче