This commit is contained in:
Wolfgang Pauli 2020-06-06 19:36:14 +00:00
Родитель 73c42de1c0
Коммит ff15a2c112
2 изменённых файлов: 16 добавлений и 0 удалений

14
create_workspace.py Normal file
Просмотреть файл

@ -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)