Install tensorflow and tff. Also, uncomment the nest_asyncio install because these notebooks are executed on kokoro via the jupyter CLI.
"step to work around the\n",
"[limitations of Jypter with asyncio](https://github.com/jupyter/notebook/issues/3397#issuecomment-419386811)\n",
"by installing the [nest_asyncio](https://github.com/erdewit/nest_asyncio)\n",
- "package. Uncomment and execute the following lines as needed."
+ "package."
]
},
{
},
"outputs": [],
"source": [
- "# !python3 -m pip install --user --upgrade nest_asyncio\n",
- "# import nest_asyncio\n",
- "# nest_asyncio.apply()"
+ "!pip install --upgrade nest_asyncio\n",
+ "import nest_asyncio\n",
+ "nest_asyncio.apply()"
]
},
{
"data from all users into 10 groups and assign one group per simulated client."
]
},
+ {
+ "cell_type": "code",
+ "execution_count": 0,
+ "metadata": {
+ "colab": {},
+ "colab_type": "code",
+ "id": "ke7EyuvG0Zyn"
+ },
+ "outputs": [],
+ "source": [
+ "!pip install tensorflow_federated\n",
+ "!pip install tf-nightly"
+ ]
+ },
{
"cell_type": "code",
"execution_count": 0,
