Compare commits

...

5 Commits

Author SHA1 Message Date
vizhur
828a976907 update samples - test 2019-10-15 22:01:55 +00:00
vizhur
1a373f11a0 Merge pull request #621 from Azure/ak/revert-db-overwrite
Revert automatic overwrite of databricks content
2019-10-15 16:07:37 -04:00
Akshaya Annavajhala (AK)
60de701207 revert overwrites 2019-10-15 12:33:31 -07:00
Akshaya Annavajhala (AK)
5841fa4a42 revert overwrites 2019-10-15 12:27:56 -07:00
Shané Winner
659fb7abc3 Merge pull request #619 from Azure/release_update/Release-153
update samples from Release-153 as a part of 1.0.69 SDK release
2019-10-14 15:39:40 -07:00
2 changed files with 13 additions and 16 deletions

View File

@@ -361,7 +361,7 @@
"outputs": [],
"source": [
"myenv = CondaDependencies.create(conda_packages=['numpy','scikit-learn', 'joblib', 'lightgbm', 'pandas'],\n",
" pip_packages=['azureml-monitoring', 'azureml-sdk[automl]'])\n",
" pip_packages=['azureml-monitoring', 'azureml-defaults'])\n",
"\n",
"with open(\"myenv.yml\",\"w\") as f:\n",
" f.write(myenv.serialize_to_string())"
@@ -626,7 +626,8 @@
"metadata": {},
"outputs": [],
"source": [
"target_date = datetime.today()\n",
"now = datetime.utcnow()\n",
"target_date = datetime(now.year, now.month, now.day)\n",
"run = datadrift.run(target_date, services, feature_list=feature_list, create_compute_target=True)"
]
},
@@ -655,7 +656,7 @@
"source": [
"child_run.wait_for_completion(wait_post_processing=True)\n",
"\n",
"drift_metrics = datadrift.get_output(start_time=start, end_time=end)\n",
"drift_metrics = datadrift.get_output(run_id=run.id)\n",
"drift_metrics"
]
},
@@ -668,7 +669,7 @@
"# Show all drift figures, one per serivice.\n",
"# If setting with_details is False (by default), only drift will be shown; if it's True, all details will be shown.\n",
"\n",
"drift_figures = datadrift.show(with_details=True)"
"drift_figures = datadrift.show()"
]
},
{
@@ -691,7 +692,7 @@
"metadata": {
"authors": [
{
"name": "rafarmah"
"name": "dmdatadrift"
}
],
"kernelspec": {

View File

@@ -1,14 +1,10 @@
import pickle
import json
import numpy
import azureml.train.automl
from sklearn.externals import joblib
from sklearn.linear_model import Ridge
from azureml.core.model import Model
from azureml.core.run import Run
from azureml.monitoring import ModelDataCollector
import time
import pandas as pd
from azureml.core.model import Model
from azureml.monitoring import ModelDataCollector
from sklearn.externals import joblib
def init():
@@ -25,11 +21,11 @@ def init():
categorical_features = ["usaf", "wban", "p_k", "station_name"]
inputs_dc = ModelDataCollector(model_name="driftmodel",
identifier="inputs",
designation="inputs",
feature_names=feature_names)
prediction_dc = ModelDataCollector("driftmodel",
identifier="predictions",
prediction_dc = ModelDataCollector(model_name="driftmodel",
designation="predictions",
feature_names=["temperature"])