Skip to content

Instantly share code, notes, and snippets.

@korkridake
Created May 29, 2020 12:59
Show Gist options
  • Save korkridake/beccb876e0553a0c45c641e53161d3f2 to your computer and use it in GitHub Desktop.
Save korkridake/beccb876e0553a0c45c641e53161d3f2 to your computer and use it in GitHub Desktop.
MLOps Ep.4 Productionizing Training Script (Import Libraries)
####################################################################
# Import Python Libaries
####################################################################
import os
import sys
import numpy as np
import pandas as pd
import argparse
import json
import urllib
import joblib
import logging
import json
import math
import shutil
####################################################################
# Import Scikit-Learn Libraries
####################################################################
from sklearn.preprocessing import LabelEncoder
from sklearn.model_selection import train_test_split
from sklearn.linear_model import Ridge
from sklearn.tree import DecisionTreeRegressor
from sklearn.ensemble import RandomForestRegressor
from sklearn.metrics import mean_squared_error
####################################################################
# Import Azure ML Libraries
####################################################################
# AzureML Cores
import azureml
import azureml.core
# AzureML Workspace
from azureml.core import Workspace, Datastore, Dataset
# AzureML Compute
from azureml.core.compute import ComputeTarget, AmlCompute
from azureml.core.compute_target import ComputeTargetException
# AzureML Experiments
from azureml.core import Experiment
# AzureML Runs
from azureml.core.run import Run
from azureml.core.model import Model
print("Azure SDK version:", azureml.core.VERSION)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment