mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
[tune] Support RESTful API for the Web Server (#4080)
Change the client/server API to RESTful design. This includes resource modeling, model URI's, and correct HTTP methods.
This commit is contained in:
committed by
Richard Liaw
parent
33663bef94
commit
5cf388f29d
@@ -8,7 +8,7 @@
|
||||
"source": [
|
||||
"from ray.tune.web_server import TuneClient\n",
|
||||
"\n",
|
||||
"manager = TuneClient(tune_address=\"localhost:4321\")\n",
|
||||
"manager = TuneClient(tune_address=\"localhost\", port_forward=4321)\n",
|
||||
"\n",
|
||||
"x = manager.get_all_trials()\n",
|
||||
"\n",
|
||||
@@ -19,7 +19,6 @@
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": true,
|
||||
"scrolled": false
|
||||
},
|
||||
"outputs": [],
|
||||
@@ -31,9 +30,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": true
|
||||
},
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import yaml\n",
|
||||
@@ -45,9 +42,7 @@
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {
|
||||
"collapsed": true
|
||||
},
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"name, spec = [x for x in d.items()][0]"
|
||||
@@ -79,7 +74,7 @@
|
||||
"name": "python",
|
||||
"nbconvert_exporter": "python",
|
||||
"pygments_lexer": "ipython3",
|
||||
"version": "3.6.2"
|
||||
"version": "3.6.8"
|
||||
}
|
||||
},
|
||||
"nbformat": 4,
|
||||
|
||||
Reference in New Issue
Block a user