|
0 |
{
|
|
1 |
"cells": [
|
|
2 |
{
|
|
3 |
"cell_type": "code",
|
|
4 |
"execution_count": 1,
|
|
5 |
"metadata": {},
|
|
6 |
"outputs": [],
|
|
7 |
"source": [
|
|
8 |
"# You can use other public modules via our Client object with module's identifier\n",
|
|
9 |
"# and parameters.\n",
|
|
10 |
"# For more detailes, please see our online document - https://momodel.github.io/docs/#\n",
|
|
11 |
"\n",
|
|
12 |
"import os\n",
|
|
13 |
"import sys\n",
|
|
14 |
"\n",
|
|
15 |
"# Define root path\n",
|
|
16 |
"sys.path.append('../')\n",
|
|
17 |
"\n",
|
|
18 |
"# Import necessary packages\n",
|
|
19 |
"from modules import json_parser\n",
|
|
20 |
"from modules import Client\n",
|
|
21 |
"\n",
|
|
22 |
"# Initialise Client object\n",
|
|
23 |
"client = Client(api_key='33799e1c5d6fa05fdd7dec3aa7aad868445d1c737edcf9c37fa89cb3b39cb2d9',\n",
|
|
24 |
" project_id='5bfd118f1afd942b66b36b30', user_ID='yangsaisai',\n",
|
|
25 |
" project_type='app', source_file_path='Untitled.ipynb')\n",
|
|
26 |
"\n",
|
|
27 |
"# Make run/train/predict command alias for further use\n",
|
|
28 |
"run = client.run\n",
|
|
29 |
"train = client.train\n",
|
|
30 |
"predict = client.predict\n",
|
|
31 |
"\n",
|
|
32 |
"# Make controller alias for further use\n",
|
|
33 |
"controller = client.controller\n",
|
|
34 |
"\n"
|
|
35 |
]
|
|
36 |
},
|
|
37 |
{
|
|
38 |
"cell_type": "code",
|
|
39 |
"execution_count": null,
|
|
40 |
"metadata": {},
|
|
41 |
"outputs": [],
|
|
42 |
"source": []
|
|
43 |
}
|
|
44 |
],
|
|
45 |
"metadata": {
|
|
46 |
"kernelspec": {
|
|
47 |
"display_name": "Python 3",
|
|
48 |
"language": "python",
|
|
49 |
"name": "python3"
|
|
50 |
},
|
|
51 |
"language_info": {
|
|
52 |
"codemirror_mode": {
|
|
53 |
"name": "ipython",
|
|
54 |
"version": 3
|
|
55 |
},
|
|
56 |
"file_extension": ".py",
|
|
57 |
"mimetype": "text/x-python",
|
|
58 |
"name": "python",
|
|
59 |
"nbconvert_exporter": "python",
|
|
60 |
"pygments_lexer": "ipython3",
|
|
61 |
"version": "3.5.2"
|
|
62 |
}
|
|
63 |
},
|
|
64 |
"nbformat": 4,
|
|
65 |
"nbformat_minor": 2
|
|
66 |
}
|