In train.py:
run.tag('run_type', value='training')
In later step:
#Retrieve associated run, workspace and experiment
run = Run.get_context()
import requests | |
import json | |
import pandas as pd | |
import matplotlib.pyplot as plt | |
subscription_key = "xxxxxxx" | |
endpoint = "https://westeurope.api.cognitive.microsoft.com" | |
batch_detection_url = "/anomalydetector/v1.0/timeseries/entire/detect" | |
latest_point_detection_url = "/anomalydetector/v1.0/timeseries/last/detect" |
System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Mvc; | |
using Microsoft.Azure.Management.Fluent; | |
using Microsoft.Azure.Management.ResourceManager.Fluent; | |
using Microsoft.Azure.Management.ResourceManager.Fluent.Authentication; | |
using Microsoft.Azure.Services.AppAuthentication; | |
using Microsoft.Rest; |
import logging | |
import json | |
import azure.functions as func | |
def main(req: func.HttpRequest) -> func.HttpResponse: | |
products = [ | |
{ | |
"name": "Azure DevOps", | |
"price": 4.99 |
{ | |
"version": "2.0", | |
"extensionBundle": { | |
"id": "Microsoft.Azure.Functions.ExtensionBundle", | |
"version": "[1.*, 2.0.0)" | |
} | |
} |
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg | |
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg | |
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-$(lsb_release -cs)-prod $(lsb_release -cs) main" > /etc/apt/sources.list.d/dotnetdev.list' | |
sudo apt-get update | |
sudo apt-get install azure-functions-core-tools |
cd python-functions | |
func azure functionapp publish functions-python-test --python --build-native-deps |
import os | |
import sys | |
import argparse | |
import joblib | |
import pandas as pd | |
from azureml.core import Run | |
from azureml.core.run import Run | |
from sklearn.compose import ColumnTransformer |
import json | |
import os | |
import numpy as np | |
import pandas as pd | |
import joblib | |
# Your imports go here | |
# Update to your model's filename | |
model_filename = "model.pkl" |
In train.py:
run.tag('run_type', value='training')
In later step:
#Retrieve associated run, workspace and experiment
run = Run.get_context()
In train.py:
run.tag('run_type', value='training')
In later step:
#Retrieve associated run, workspace and experiment
run = Run.get_context()