Skip to content

Commit

Permalink
Update Recsys tutorial notebook (Temporal)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylongqi committed Oct 15, 2018
1 parent 8e3d235 commit 4371e1f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions tutorials/Temporal_aware_recommendation.ipynb
Expand Up @@ -145,7 +145,9 @@
" train=train, serve=serve)\n",
" \n",
" ## [TODO] Please define input ports (Hint: using \"ins\" parameter)\n",
" @rec.traingraph.interactiongraph(ins=[?FILL IN?])\n",
" ## @rec.traingraph.interactiongraph(ins=[?FILL IN?])\n",
" ## Answer:\n",
" @rec.traingraph.interactiongraph(ins=['seq_item_vec', 'seq_len', 'label'])\n",
" def f(subgraph):\n",
" RNNSoftmax(seq_item_vec=subgraph['seq_item_vec'], \n",
" seq_len=subgraph['seq_len'], \n",
Expand All @@ -157,7 +159,9 @@
" scope='RNNSoftmax')\n",
" \n",
" ## [TODO] Please define input ports (Hint: using \"ins\" parameter)\n",
" @rec.servegraph.interactiongraph(ins=[?FILL IN?])\n",
" ## @rec.servegraph.interactiongraph(ins=[?FILL IN?])\n",
" ## Answer:\n",
" @rec.servegraph.interactiongraph(ins=['seq_item_vec', 'seq_len'])\n",
" def f(subgraph):\n",
" RNNSoftmax(seq_item_vec=subgraph['seq_item_vec'], \n",
" seq_len=subgraph['seq_len'],\n",
Expand All @@ -167,7 +171,6 @@
" subgraph=subgraph, \n",
" scope='RNNSoftmax')\n",
" \n",
" \n",
" return rec"
],
"execution_count": 0,
Expand Down

0 comments on commit 4371e1f

Please sign in to comment.