Skip to content

Commit 09bc395

Browse files
authored
Create a notebook to train a model using AutoML (kubeflow#130)
* Refactor some of the notebook setup into notebook_setup.py to make it reusable * For the kpt package to launch a notebook Add kpt setters to properly set most values. Add an application resource so that links show up in the application dashboard.
1 parent b4b9b4b commit 09bc395

File tree

11 files changed

+8976
-100
lines changed

11 files changed

+8976
-100
lines changed

Issue_Triage/notebooks/triage.ipynb

Lines changed: 10 additions & 70 deletions
Original file line numberDiff line numberDiff line change
@@ -7955,13 +7955,7 @@
79557955
"state:Issue needs triage:\n",
79567956
"\t Issue needs one of the priorities ['priority/p0', 'priority/p1', 'priority/p2', 'priority/p3']\n",
79577957
"\t Issue needs an area label\n",
7958-
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n"
7959-
]
7960-
},
7961-
{
7962-
"name": "stderr",
7963-
"output_type": "stream",
7964-
"text": [
7958+
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
79657959
"INFO|2020-04-20T13:40:49|Issue https://github.com/kubeflow/examples/issues/780 already in triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|751|\n",
79667960
"INFO|2020-04-20T13:40:49|Issue https://github.com/kubeflow/kubeflow/issues/4894:\n",
79677961
"state:Issue needs triage:\n",
@@ -8063,13 +8057,7 @@
80638057
"state:Issue needs triage:\n",
80648058
"\t Issue needs an area label\n",
80658059
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
8066-
"INFO|2020-04-20T13:40:49|Issue https://github.com/kubeflow/kfctl/issues/278 already in triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|751|\n"
8067-
]
8068-
},
8069-
{
8070-
"name": "stderr",
8071-
"output_type": "stream",
8072-
"text": [
8060+
"INFO|2020-04-20T13:40:49|Issue https://github.com/kubeflow/kfctl/issues/278 already in triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|751|\n",
80738061
"INFO|2020-04-20T13:40:49|Issue https://github.com/kubeflow/kubeflow/issues/4845:\n",
80748062
"state:Issue needs triage:\n",
80758063
"\t Issue needs one of the priorities ['priority/p0', 'priority/p1', 'priority/p2', 'priority/p3']\n",
@@ -8171,13 +8159,7 @@
81718159
"INFO|2020-04-20T13:40:51|Issue https://github.com/kubeflow/kfctl/issues/265:\n",
81728160
"state:Issue needs triage:\n",
81738161
"\t Issue needs an area label\n",
8174-
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n"
8175-
]
8176-
},
8177-
{
8178-
"name": "stderr",
8179-
"output_type": "stream",
8180-
"text": [
8162+
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
81818163
"INFO|2020-04-20T13:40:51|Issue https://github.com/kubeflow/kfctl/issues/265 already in triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|751|\n",
81828164
"INFO|2020-04-20T13:40:51|Issue https://github.com/kubeflow/kubeflow/issues/4820:\n",
81838165
"state:Issue needs triage:\n",
@@ -8281,13 +8263,7 @@
82818263
"INFO|2020-04-20T13:40:51|Issue https://github.com/kubeflow/website/issues/1643:\n",
82828264
"state:Issue needs triage:\n",
82838265
"\t Issue needs an area label\n",
8284-
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n"
8285-
]
8286-
},
8287-
{
8288-
"name": "stderr",
8289-
"output_type": "stream",
8290-
"text": [
8266+
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
82918267
"INFO|2020-04-20T13:40:51|Issue https://github.com/kubeflow/website/issues/1643 already in triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|751|\n",
82928268
"INFO|2020-04-20T13:40:51|Issue https://github.com/kubeflow/website/issues/1626:\n",
82938269
"state:Issue doesn't need attention.\n",
@@ -8377,13 +8353,7 @@
83778353
"INFO|2020-04-20T13:41:03|Issue https://github.com/kubeflow/kfserving/issues/546:\n",
83788354
"state:Issue doesn't need attention.\n",
83798355
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
8380-
"INFO|2020-04-20T13:41:03|Issue https://github.com/kubeflow/kfserving/issues/546 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n"
8381-
]
8382-
},
8383-
{
8384-
"name": "stderr",
8385-
"output_type": "stream",
8386-
"text": [
8356+
"INFO|2020-04-20T13:41:03|Issue https://github.com/kubeflow/kfserving/issues/546 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
83878357
"INFO|2020-04-20T13:41:04|Issue https://github.com/kubeflow/fairing/issues/417:\n",
83888358
"state:Issue doesn't need attention.\n",
83898359
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
@@ -8471,13 +8441,7 @@
84718441
"INFO|2020-04-20T13:41:26|Issue https://github.com/kubeflow/fairing/issues/380 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
84728442
"INFO|2020-04-20T13:41:26|Issue https://github.com/kubeflow/kfserving/issues/353:\n",
84738443
"state:Issue doesn't need attention.\n",
8474-
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n"
8475-
]
8476-
},
8477-
{
8478-
"name": "stderr",
8479-
"output_type": "stream",
8480-
"text": [
8444+
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
84818445
"INFO|2020-04-20T13:41:26|Issue https://github.com/kubeflow/kfserving/issues/353 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
84828446
"INFO|2020-04-20T13:41:27|Issue https://github.com/kubeflow/kfserving/issues/347:\n",
84838447
"state:Issue doesn't need attention.\n",
@@ -8563,13 +8527,7 @@
85638527
"INFO|2020-04-20T13:41:42|Issue https://github.com/kubeflow/metadata/issues/119 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
85648528
"INFO|2020-04-20T13:41:43|Issue https://github.com/kubeflow/kfserving/issues/310:\n",
85658529
"state:Issue doesn't need attention.\n",
8566-
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n"
8567-
]
8568-
},
8569-
{
8570-
"name": "stderr",
8571-
"output_type": "stream",
8572-
"text": [
8530+
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
85738531
"INFO|2020-04-20T13:41:43|Issue https://github.com/kubeflow/kfserving/issues/310 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
85748532
"INFO|2020-04-20T13:41:43|Issue https://github.com/kubeflow/metadata/issues/117:\n",
85758533
"state:Issue doesn't need attention.\n",
@@ -8659,13 +8617,7 @@
86598617
"INFO|2020-04-20T13:41:55|Issue https://github.com/kubeflow/pytorch-operator/issues/190 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
86608618
"INFO|2020-04-20T13:41:56|Issue https://github.com/kubeflow/fairing/issues/314:\n",
86618619
"state:Issue doesn't need attention.\n",
8662-
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n"
8663-
]
8664-
},
8665-
{
8666-
"name": "stderr",
8667-
"output_type": "stream",
8668-
"text": [
8620+
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
86698621
"INFO|2020-04-20T13:41:56|Issue https://github.com/kubeflow/fairing/issues/314 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
86708622
"INFO|2020-04-20T13:41:57|Issue https://github.com/kubeflow/metadata/issues/88:\n",
86718623
"state:Issue doesn't need attention.\n",
@@ -8751,13 +8703,7 @@
87518703
"INFO|2020-04-20T13:42:12|Issue https://github.com/kubeflow/website/issues/836:\n",
87528704
"state:Issue doesn't need attention.\n",
87538705
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
8754-
"INFO|2020-04-20T13:42:12|Issue https://github.com/kubeflow/website/issues/836 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n"
8755-
]
8756-
},
8757-
{
8758-
"name": "stderr",
8759-
"output_type": "stream",
8760-
"text": [
8706+
"INFO|2020-04-20T13:42:12|Issue https://github.com/kubeflow/website/issues/836 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
87618707
"INFO|2020-04-20T13:42:13|Issue https://github.com/kubeflow/tf-operator/issues/1033:\n",
87628708
"state:Issue doesn't need attention.\n",
87638709
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
@@ -8848,13 +8794,7 @@
88488794
"INFO|2020-04-20T13:42:24|Issue https://github.com/kubeflow/tf-operator/issues/999:\n",
88498795
"state:Issue doesn't need attention.\n",
88508796
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",
8851-
"INFO|2020-04-20T13:42:24|Issue https://github.com/kubeflow/tf-operator/issues/999 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n"
8852-
]
8853-
},
8854-
{
8855-
"name": "stderr",
8856-
"output_type": "stream",
8857-
"text": [
8797+
"INFO|2020-04-20T13:42:24|Issue https://github.com/kubeflow/tf-operator/issues/999 remove from triage project|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|734|\n",
88588798
"INFO|2020-04-20T13:42:25|Issue https://github.com/kubeflow/kfserving/issues/82:\n",
88598799
"state:Issue doesn't need attention.\n",
88608800
"|/home/jovyan/git_kubeflow-code-intelligence/py/issue_triage/triage.py|677|\n",

Label_Microservice/notebooks/Label_k8s_issues_with_MLP.ipynb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@
77
"## Background\n",
88
"In this notebook, we show how to feed the embeddings from the language model into the MLP classifier. Then, we take the github repo, `kubernetes/kubernetes`, as an example. We do transfer learning and show the results.\n",
99
"\n",
10-
"* TODO(jlewi): This notebook is duplicative with repo_mlp.ipynb. It looks like this might have contained\n",
11-
"the original training code which has been refactored in repo_mlp.ipynb. But unlike repo_mlp.ipynb this\n",
12-
"notebook contains code for model evaluation. We should probably combine them and remove duplication.\n",
13-
"\n",
1410
"## Data\n",
1511
"**combined_sig_df.pkl**\n",
1612
"https://storage.googleapis.com/issue_label_bot/notebook_files/combined_sig_df.pkl\n",
@@ -455,7 +451,6 @@
455451
"source": [
456452
"from sklearn.metrics import roc_auc_score\n",
457453
"\n",
458-
"# TODO(jlewi): I moved this into mlp.py\n",
459454
"def calculate_auc(predictions):\n",
460455
" auc_scores = []\n",
461456
" counts = []\n",
@@ -5659,9 +5654,9 @@
56595654
"name": "python",
56605655
"nbconvert_exporter": "python",
56615656
"pygments_lexer": "ipython3",
5662-
"version": "3.6.9"
5657+
"version": "3.6.6"
56635658
}
56645659
},
56655660
"nbformat": 4,
5666-
"nbformat_minor": 4
5661+
"nbformat_minor": 2
56675662
}

0 commit comments

Comments
 (0)