diff --git a/_README.ipynb b/_README.ipynb deleted file mode 100644 index 3e4eec5..0000000 --- a/_README.ipynb +++ /dev/null @@ -1,188 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 1. 项目介绍\n", - "\n", - " - 项目是由模块组成、有特定功能的程序。它能够满足用户的直接使用需求,例如[古诗词生成器](https://momodel.cn/explore/5bfb634e1afd943c623dd9cf?type=app&tab=1)、[风格迁移](https://momodel.cn/explore/5bfb634e1afd943c623dd9cf?type=app&tab=1)等。\n", - " - 开发项目过程中你可以导入数据集,也可以通过每个 cell 上方工具栏的`<+>`直接插入[模块](https://momodel.cn/modules)和代码块。\n", - " - 你可以将开发好的项目进行[部署](https://momodel.cn/docs/#/zh-cn/%E5%BC%80%E5%8F%91%E5%92%8C%E9%83%A8%E7%BD%B2%E4%B8%80%E4%B8%AA%E5%BA%94%E7%94%A8%EF%BC%88app%EF%BC%89),项目部署成功并选择正式版本发布后会展示在“项目”页面,用户可以在线使用,也可以通过 API 调用。\n", - "\n", - " - 项目目录结构:\n", - "\n", - " - ```results```*-----结果的文件存放地(如果你运行 job,务必将运行结果指定在此目录)*\n", - " - ```_OVERVIEW.md``` *-----项目的相关介绍*\n", - " - ```_README.md```*-----说明文档*\n", - " - ```app_spec.yml```*-----定义项目的输入输出,为部署服务*\n", - " - ```coding_here.ipynb```*-----输入并运行代码*" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "def handle(conf):\n", - " \"\"\"\n", - " 该方法是部署之后,其他人调用你的服务时候的处理方法。\n", - " 请按规范填写参数结构,这样我们就能替你自动生成配置文件,方便其他人的调用。\n", - " 范例:\n", - " params['key'] = value # value_type: str # description: some description\n", - " value_type 可以选择:img, video, audio, str, int, float, [int], [str], [float]\n", - " 参数请放到params字典中,我们会自动解析该变量。\n", - " \"\"\"\n", - "\n", - " param1 = conf['param1'] # value_type: str # description: some description\n", - " # add your code\n", - " return {'ret1': 'cat'}\n", - " " - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "\n", - "## 2. 开发环境简介\n", - "\n", - "你当前所在的页面 Notebook 是一个内嵌 JupyterLab 的在线类 IDE 编程环境,开发过程中可以使用页面右侧的 API 文档进行快速查询。Notebook 有以下主要功能:\n", - "\n", - "- [调用数据集、模块和代码块资源](https://momodel.cn/docs/#/zh-cn/%E5%A6%82%E4%BD%95%E5%AF%BC%E5%85%A5%E5%B9%B6%E4%BD%BF%E7%94%A8%E6%A8%A1%E5%9D%97%E5%92%8C%E6%95%B0%E6%8D%AE%E9%9B%86)\n", - "- [多人代码协作](https://momodel.cn/docs/#/zh-cn/%E5%9C%A8Mo%E8%BF%90%E8%A1%8C%E4%BD%A0%E7%9A%84%E7%AC%AC%E4%B8%80%E6%AE%B5%E4%BB%A3%E7%A0%81?id=_7-%e4%bd%a0%e5%8f%af%e4%bb%a5%e9%82%80%e8%af%b7%e5%a5%bd%e5%8f%8b%e8%bf%9b%e8%a1%8c%e5%8d%8f%e4%bd%9c)\n", - "- [在 GPU 资源上训练机器学习模型](https://momodel.cn/docs/#/zh-cn/%E5%9C%A8GPU%E6%88%96CPU%E8%B5%84%E6%BA%90%E4%B8%8A%E8%AE%AD%E7%BB%83%E6%9C%BA%E5%99%A8%E5%AD%A6%E4%B9%A0%E6%A8%A1%E5%9E%8B)\n", - "- [简单部署](https://momodel.cn/docs/#/zh-cn/%E5%BC%80%E5%8F%91%E5%92%8C%E9%83%A8%E7%BD%B2%E4%B8%80%E4%B8%AA%E5%BA%94%E7%94%A8%EF%BC%88app%EF%BC%89)\n", - "\n", - "快来动手试试吧!点击左侧工具栏的新建文件图标即可选择你需要的文件类型。\n", - "\n", - "\n", - "\n", - "\n", - "\n", - "左侧和右侧工具栏都可根据使用需要进行收合。\n", - "" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [ - "ls /home/jovyan/work/datasets/sumansid-facemask-dataset-momodel" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 3. 快捷键与代码补全\n", - "Mo Notebook 已完全采用 Jupyter Notebook 的原生快捷键,并且支持 `tab` 代码补全。\n", - "\n", - "运行代码:`shift` + `enter` 或者 `shift` + `return`" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 4. 常用指令介绍\n", - "\n", - "- 解压上传后的文件\n", - "\n", - "在 cell 中输入并运行以下命令:\n", - "```!7zx file_name.zip```\n", - "\n", - "- 查看所有包(package)\n", - "\n", - "`!pip list --format=columns`\n", - "\n", - "- 检查是否已有某个包\n", - "\n", - "`!pip show package_name`\n", - "\n", - "- 安装缺失的包\n", - "\n", - "`!pip install package_name`\n", - "\n", - "- 更新已有的包\n", - "\n", - "`!pip install package_name --upgrade`\n", - "\n", - "\n", - "- 使用包\n", - "\n", - "`import package_name`\n", - "\n", - "- 显示当前目录下的档案及目录\n", - "\n", - "`ls`\n", - "\n", - "- 使用引入的数据集\n", - "\n", - "数据集被引入后存放在 datasets 文件夹下,注意,这个文件夹是只读的,不可修改。如果需要修改,可在 Notebook 中使用\n", - "\n", - "`!cp -R ./datasets/ ./`\n", - "\n", - "指令将其复制到其他文件夹后再编辑,对于引入的数据集中的 zip 文件,可使用\n", - "\n", - "`!7zx ./datasets// ./`\n", - "\n", - "指令解压缩到其他文件夹后使用" - ] - }, - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "## 5. 其他可参考资源\n", - "- [帮助文档](https://momodel.cn/docs/#/):基本页面介绍和常见问题都可以在里面找到\n", - "- [平台功能教程](https://momodel.cn/classroom/class?id=5c5696cd1afd9458d456bf54&type=doc):通过图文结合的 Notebook 详细介绍开发环境基本功能和操作\n", - "- [吴恩达机器学习](https://momodel.cn/classroom/class?id=5c5696191afd94720cc94533&type=video):机器学习经典课程\n", - "- [李宏毅机器学习](https://s.momodel.cn/classroom/class?id=5d40fdafb5113408a8dbb4a1&type=video):中文世界最好的机器学习课程\n", - "- [机器学习实战](https://momodel.cn/classroom/class?id=5c680b311afd943a9f70901b&type=practice):通过实操指引完成独立的模型,掌握相应的机器学习知识\n", - "- [Python 教程](https://momodel.cn/classroom/class?id=5d1f3ab81afd940ab7d298bf&type=notebook):简单易懂的 Python 新手教程\n", - "- [模块开发](https://momodel.cn/modules):关于模型训练、开发与部署的高阶教程" - ] - } - ], - "metadata": { - "kernelspec": { - "display_name": "Python 3", - "language": "python", - "name": "python3" - }, - "language_info": { - "codemirror_mode": { - "name": "ipython", - "version": 3 - }, - "file_extension": ".py", - "mimetype": "text/x-python", - "name": "python", - "nbconvert_exporter": "python", - "pygments_lexer": "ipython3", - "version": "3.5.2" - }, - "pycharm": { - "stem_cell": { - "cell_type": "raw", - "metadata": { - "collapsed": false - }, - "source": [] - } - } - }, - "nbformat": 4, - "nbformat_minor": 2 -} diff --git a/coding_here.ipynb b/coding_here.ipynb index 19923a1..c1d469a 100644 --- a/coding_here.ipynb +++ b/coding_here.ipynb @@ -1,345 +1,196 @@ { "cells": [ { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Hello Mo!\n" - ] - } - ], - "source": [ - "print('Hello Mo!')" - ] - }, - { - "cell_type": "code", - "execution_count": 5, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "3\n" - ] - } - ], - "source": [ - "b=2\n", - "a = b +1\n", - "print(a)" - ] - }, - { - "cell_type": "code", - "execution_count": 6, - "metadata": {}, - "outputs": [], - "source": [ - "import torch" - ] - }, - { - "cell_type": "code", - "execution_count": 9, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "tensor([0., 0., 0.])\n" - ] - } - ], - "source": [ - "a = torch.zeros(3)\n", - "print(a)" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "ename": "ImportError", - "evalue": "No module named 'mindspore'", - "output_type": "error", - "traceback": [ - "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", - "\u001b[0;31mImportError\u001b[0m Traceback (most recent call last)", - "\u001b[0;32m\u001b[0m in \u001b[0;36m\u001b[0;34m\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0;32mimport\u001b[0m \u001b[0mmindspore\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mnn\u001b[0m \u001b[0;32mas\u001b[0m \u001b[0mnn\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m", - "\u001b[0;31mImportError\u001b[0m: No module named 'mindspore'" - ] - } - ], - "source": [ - "import mindspore.nn as nn" - ] - }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Looking in indexes: https://mirrors.aliyun.com/pypi/simple\n", - "Collecting mindspore\n", - "\u001b[31m ERROR: Could not find a version that satisfies the requirement mindspore (from versions: none)\u001b[0m\n", - "\u001b[31mERROR: No matching distribution found for mindspore\u001b[0m\n", - "\u001b[33mWARNING: You are using pip version 19.1.1, however version 20.2.3 is available.\n", - "You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n", - "Note: you may need to restart the kernel to use updated packages.\n" - ] - } - ], - "source": [ - "pip install mindspore" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Looking in indexes: https://mirrors.aliyun.com/pypi/simple\n", - "Collecting mindspore\n", - "\u001b[31m ERROR: Could not find a version that satisfies the requirement mindspore (from versions: none)\u001b[0m\n", - "\u001b[31mERROR: No matching distribution found for mindspore\u001b[0m\n", - "\u001b[33mWARNING: You are using pip version 19.1.1, however version 20.2.3 is available.\n", - "You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n", - "Note: you may need to restart the kernel to use updated packages.\n" - ] - } - ], - "source": [ - "pip install mindspore" - ] - }, - { - "cell_type": "code", - "execution_count": 2, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Package Version \n", - "-------------------- ------------\n", - "absl-py 0.7.1 \n", - "alembic 1.4.2 \n", - "appdirs 1.4.4 \n", - "astor 0.7.1 \n", - "async-generator 1.10 \n", - "attrs 19.3.0 \n", - "Augmentor 0.2.8 \n", - "backcall 0.2.0 \n", - "baytune 0.3.10 \n", - "bleach 3.1.5 \n", - "boto3 1.14.34 \n", - "botocore 1.17.34 \n", - "certifi 2020.6.20 \n", - "certipy 0.1.3 \n", - "cffi 1.14.1 \n", - "chardet 3.0.4 \n", - "click 7.1.2 \n", - "configparser 4.0.2 \n", - "cryptography 3.0 \n", - "cycler 0.10.0 \n", - "Cython 0.29.20 \n", - "decorator 4.4.2 \n", - "defusedxml 0.6.0 \n", - "distlib 0.3.1 \n", - "docutils 0.15.2 \n", - "entrypoints 0.3 \n", - "et-xmlfile 1.0.1 \n", - "filelock 3.0.12 \n", - "func-timeout 4.3.5 \n", - "future 0.18.2 \n", - "gast 0.2.2 \n", - "graphviz 0.14 \n", - "grpcio 1.20.1 \n", - "h5py 2.9.0 \n", - "idna 2.10 \n", - "imageio 2.8.0 \n", - "imgaug 0.4.0 \n", - "importlib-metadata 0.23 \n", - "importlib-resources 3.0.0 \n", - "ipdb 0.13.2 \n", - "ipykernel 5.3.4 \n", - "ipython 7.9.0 \n", - "ipython-genutils 0.2.0 \n", - "ipywidgets 7.4.0 \n", - "jdcal 1.4.1 \n", - "jedi 0.17.2 \n", - "jieba 0.42.1 \n", - "Jinja2 2.11.2 \n", - "jmespath 0.10.0 \n", - "joblib 0.14.1 \n", - "jsonschema 3.2.0 \n", - "jupyter-client 6.1.6 \n", - "jupyter-core 4.6.3 \n", - "jupyterhub 1.0.0 \n", - "jupyterlab 1.0.0a1 \n", - "jupyterlab-server 0.2.0 \n", - "Keras 2.3.1 \n", - "Keras-Applications 1.0.7 \n", - "Keras-Preprocessing 1.0.9 \n", - "kiwisolver 1.1.0 \n", - "Mako 1.1.3 \n", - "Markdown 3.1 \n", - "MarkupSafe 1.1.1 \n", - "matplotlib 3.0.3 \n", - "minepy 1.2.4 \n", - "minio 5.0.10 \n", - "mistune 0.8.4 \n", - "mock 2.0.0 \n", - "more-itertools 7.2.0 \n", - "nbconvert 5.6.1 \n", - "nbformat 5.0.7 \n", - "networkx 2.4 \n", - "nltk 3.5 \n", - "notebook 6.0.3 \n", - "numpy 1.16.0 \n", - "oauthlib 3.1.0 \n", - "opencv-python 4.2.0.34 \n", - "openpyxl 2.6.4 \n", - "packaging 20.4 \n", - "pamela 1.0.0 \n", - "pandas 0.24.2 \n", - "pandocfilters 1.4.2 \n", - "parso 0.7.1 \n", - "pbr 5.2.0 \n", - "pexpect 4.8.0 \n", - "pickleshare 0.7.5 \n", - "Pillow 7.2.0 \n", - "pip 19.1.1 \n", - "plotly 4.8.1 \n", - "prometheus-client 0.8.0 \n", - "prompt-toolkit 2.0.10 \n", - "protobuf 3.12.4 \n", - "ptyprocess 0.6.0 \n", - "pycparser 2.20 \n", - "pydot 1.4.1 \n", - "pyenchant 3.1.1 \n", - "Pygments 2.6.1 \n", - "pyOpenSSL 19.1.0 \n", - "pyparsing 2.4.7 \n", - "pyrsistent 0.16.0 \n", - "python-dateutil 2.8.0 \n", - "python-editor 1.0.4 \n", - "pytz 2020.1 \n", - "PyWavelets 1.1.1 \n", - "PyYAML 5.3.1 \n", - "pyzmq 19.0.2 \n", - "regex 2020.7.14 \n", - "requests 2.24.0 \n", - "retrying 1.3.3 \n", - "s3transfer 0.3.3 \n", - "sacremoses 0.0.43 \n", - "scikit-image 0.15.0 \n", - "scikit-learn 0.22.2.post1\n", - "scipy 1.4.1 \n", - "seaborn 0.9.1 \n", - "Send2Trash 1.5.0 \n", - "sentencepiece 0.1.91 \n", - "setuptools 49.2.0 \n", - "Shapely 1.7.0 \n", - "six 1.12.0 \n", - "SQLAlchemy 1.3.18 \n", - "stevedore 1.32.0 \n", - "tensorboard 1.13.1 \n", - "tensorboardX 2.0 \n", - "tensorflow 1.13.1 \n", - "tensorflow-estimator 1.13.0 \n", - "termcolor 1.1.0 \n", - "terminado 0.8.3 \n", - "testpath 0.4.4 \n", - "tokenizers 0.5.2 \n", - "torch 1.4.0+cpu \n", - "torchtext 0.6.0 \n", - "torchvision 0.5.0+cpu \n", - "tornado 6.0.4 \n", - "tqdm 4.46.1 \n", - "traitlets 4.3.3 \n", - "transformers 2.5.1 \n", - "urllib3 1.25.10 \n", - "virtualenv 20.0.29 \n", - "virtualenv-clone 0.5.4 \n", - "virtualenvwrapper 4.8.4 \n", - "wcwidth 0.2.5 \n", - "webencodings 0.5.1 \n", - "Werkzeug 0.15.2 \n", - "wheel 0.34.2 \n", - "widgetsnbextension 3.4.2 \n", - "word2vec 0.10.6 \n", - "xlrd 1.2.0 \n", - "yellowbrick 1.1 \n", - "zipp 0.6.0 \n", - "\u001b[33mWARNING: You are using pip version 19.1.1, however version 20.2.3 is available.\n", - "You should consider upgrading via the 'pip install --upgrade pip' command.\u001b[0m\n" - ] - } - ], - "source": [ - "!pip list --format=columns" - ] - }, - { - "cell_type": "code", - "execution_count": 3, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "/bin/sh: 1: 7zx: not found\n" - ] - } - ], - "source": [ - "!7zx ./datasets/sumansid-facemask-dataset-momodel/facemask-dataset.zip -d" - ] - }, - { - "cell_type": "code", - "execution_count": 4, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "/bin/sh: 1: 7zx: not found\n" - ] - } - ], - "source": [ - "!7zx ./datasets/sumansid-facemask-dataset-momodel/facemask-dataset.zip" - ] - }, - { - "cell_type": "code", - "execution_count": null, - "metadata": {}, - "outputs": [], - "source": [] + "cell_type": "markdown", + "metadata": { + "inputHidden": false + }, + "source": [ + "这一节我们主要学习 - 0:06:09\n", + "+ 人工智能历史\n", + "+ 人工智能课程体系\n", + "+ 课程内容概要\n", + "+ 实训题目安排" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### 1.人工智能历史 - 0:06:15\n", + "+ 古代哲人对智能的思考 \n", + "荀子在短文《荀子证明》中对智慧活动进行了如下解释 - 00:07:31 \n", + "" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "inputHidden": false + }, + "source": [ + "+ 计算的诞生 - 00:10:22 \n", + " + 原始人类结绳计数、算盘计数\n", + " + 可计算思想为计算机的出现提供了理论准备\n", + " + 大卫·希尔伯特在国际数学家大会上发表演讲,提出23个数学问题,其中第2个问题直接导致了图灵机模型的产生,如下图所示。- 00:13:50 \n", + " \n", + " \n", + " \n", + " + 图灵在《论数字计算在决断难题中的应用》中提出图灵机模型计算流程" + ] + }, + { + "cell_type": "markdown", + "metadata": { + "inputHidden": false + }, + "source": [ + "+ 图灵测试 - 00:23:13 \n", + " 图灵测试是指让机器人和人类回答相同的20个问题,然后将答案交于法官判断是否能轻易识别机器人的作答,若不能,则通过图灵测试。但是图灵测试有时代的局限性,很多人类高级智能不能被体现。\n", + "" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "+ 摩尔定律 - 00:25:50 \n", + "冯·诺依曼等人提出摩尔定律,该定律支撑自动计算时代快速发展。该定律指出人类计算机速度每隔1年半要增长1倍。" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "+ 人工智能的诞生 - 00:26:20 \n", + "4位学者向达特茅斯学院提交了一个项目申请书,首次提出AI的概念。\n", + " \n", + "在项目申请书中提出了七个值得关注的问题,其中后面三个问题至今也是弱人工智能通向强人工智能的障碍。- 00:28:12\n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "+ 人工智能的分类 - 00:30:11 \n", + "从智能角度对人工智能的分类: \n", + " + 领域人工智能体:依葫芦画瓢、任务导向,如Deep Blue和AlphaGo\n", + " + 通用人工智能或跨领域人工智能体:举一反三、从经验中学习,如“人类”智能\n", + " + 混合增强人工智能:多种智能体的混合形式,如外骨骼机器人" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "+ 人工智能主流方法\n", + " + **符号主义人工智能** - 00:34:25 \n", + " 符号主义人工智能以逻辑推理为主。如下图所示,已知三峡大坝和葛洲坝都位于同一个流域(长江流域),并且这两个水坝具有反调节功能。那么当已知大古力水坝和达拉斯水坝也都位于哥伦比亚河时,可以推理这两个水坝也有反调节功能。可见符号主义人工智能不断从已有知识归纳规则,然后用这些规则推导出新的知识,使得知识图谱不断膨胀。 \n", + " \n", + " 另一个用符号主义进行推理的例子:IBM“沃森”推理系统 - 00:36:14 \n", + " 下图的IBM“沃森”推理系统可以根据主持人的一段话凝练一个和句子有关的问题。“沃森”的工作流程如下,“沃森”会首先扫描主持人的这段话,由于“沃森”不认识Kathleen,所以作为一个专有名词,而Kenyon也不认识,所以也作为一个专有名词,由于两个专门名词之间没有其他单词,因此作为一个复合专有名词。另外“沃森”认识Joshua,因此也把它提出来。最终将“Kathleen”,“Kenyon”,“Kathleen Kenyon”和“Joshua”放到搜索引擎中进行检索,其中前两个单词返回结果很少,第三个单词返回了大量信息,如右图黄色图谱所示。所以“沃森”很快提出了该问题。\n", + " \n", + " + **联结主义人工智能(数据驱动的机器学习)** - 00:39:36 \n", + " 若用符号主义识别猫,需要形成很多的规则,而数据驱动的机器学习则可直接通过数据学习特征,如下图所示。利用大量的数据,网络的浅层会首先学习一些低级特征,比如图中猫的耳朵、鼻子、腿等;然后中层网络会将浅层网络学习到的低级特征进行归纳,抽象出如猫的上半身或下半身等中层语义;网络最后的几层则汇集所有中层特征,抽象出猫的整体语义信息。然而数据驱动的机器学习可解释性不强,这也导致其存在一系列安全问题。\n", + " \n", + " + **行为主义人工智能(从经验中学习)** - 00:45:51 \n", + " 强化学习是典型的行为主义人工智能,即一个智能体不断和环境进行交互,智能体根据环境提供的奖励不断改进自己的行为决策。 \n", + " \n", + " 以AlphaGo为例介绍规则、数据和行为相互协调的智能算法 - 00:47:05 \n", + " DeepMind研究人员首先收集了16万人类选手棋局,利用监督学习的方法训练了一个神经网络希望该网络能模拟人类水平,但实际上这种方法只能打败业余选手,然后DeepMind研究者将该网络复制了两份,利用强化学习相互博弈训练,最终战胜了人类顶尖选手。 \n", + " \n", + " AlphaGo的总体概述如下图所示: - 00:53:01 \n", + " 图中表明深度学习是数据驱动的机器学习,强化学习是行为探索的机器学习,蒙特卡罗树搜索是知识驱动的机器学习。 \n", + " \n", + " 随后DeepMind研究者舍弃人类棋局数据,从零开始训练AlphaGo,并命名为AlphaGoZero(元),最终达到了比原始AlphaGo更好的效果,但这种训练流程消耗了巨量的计算资源,并且和人类的学习方法相差甚大,如何在有限的计算资源下获得更好的效果或更近似人类的学习方式是未来需要进一步思考的问题。- 00:53:40\n", + " \n", + " 三种人工智能的区别如下图所示:- 00:58:05 \n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### 2.人工智能课程体系 - 01:00:00\n", + "人工智能设置在CS学科,而CS学科又来自于EE。世界上第一个EE在1882年的德国设立。随后美国、英国先后设立。1968年美国计算机协会(ACM)设计了一套培养计算机人才的课程体系,其中人工智能当时就已经出现在课程规划之中。随后ACM和IEEE每隔一段时间就会更新并发布计算机课程体系,最新的结果如下所示。 \n", + " " + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### 3.课程内容概要 - 01:15:43\n", + "本课程的主要授课对象如下图所示。 \n", + " \n", + "电子信息工程硕士培养方案如下:- 01:17:03 \n", + " \n", + "本课程主要参考的教材是《人工智能导论:模型与算法》,总体框架如下:- 01:17:48\n", + "+ 第一章 人工智能历史与课程内容简介 (第一周: 吴飞老师、吴超老师)\n", + " + 介绍人工智能发展历史、现状和未来\n", + " + Python介绍\n", + "+ 第二章 机器学习系统设计 (第二周: 吴飞老师、况琨老师)\n", + " + 机器学习基本概念\n", + " + 回归分析模型与应用\n", + " + 深度学习模型与应用\n", + "+ 第三章 人工智能编程框架 (第三周: 吴超老师,华为工程师)\n", + " + Tensor/Pytorch\n", + " + MindSpore\n", + " + 若干应用\n", + "+ 第四章 词向量模型与应用 (第四周: 汤斯亮老师)\n", + " + 词向量表示\n", + " + 上下文相关的词向量与预训练模型\n", + " + 词向量与预训练模型在自然语言处理中的应用\n", + "+ 第五章 图向量模型与应用 (第五周: 杨洋老师)\n", + " + 图向量模型基本概念\n", + " + 图向量模型算法(deepwalk, LINE, node2Vec等)\n", + " + 推荐系统等应用\n", + "+ 第六章 人工智能芯片及高性能机器学习 (第六周: 王则可老师)\n", + " + 深度学习加速器简介\n", + " + 加速算法和模块\n", + " + 华为Asend深度学习加速器\n", + " + Google TPU和寒武纪Cambridge介绍\n", + "+ 第七章 分布式机器学习引擎 (第七周: 吴超老师)\n", + " + 联邦学习基本概念\n", + " + 联邦学习常用框架\n", + " + 分布式扩展:区块链、蒸馏聚合和数据定价\n", + " + FedAvg和蒸馏实战\n", + "+ 第八章 强化学习及其应用 (第八周: 况琨老师)\n", + " + 强化学习基本概念\n", + " + Policy Learning\n", + " + Q Learning\n", + " + 深度强化学习\n", + " + 典型应用(AlphoGo, Dota2,星际争霸等)\n", + " + 强化学习实战(机器人走迷宫等)" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### 4.实训题目安排 - 01:36:40\n", + "基于“智海--Mo平台”和华为MindSpore框架完成如下任务: \n", + "+ 口罩佩戴检测:训练卷积神经网络深度学习模型, 识别图像中行人对象及判断其是否佩戴口罩(20分) \n", + "+ 作家文风判别:用鲁迅和张爱玲等作家的作品,训练作家文风判别器。输入一个句子,基于该判断其判别其文风(20分) \n", + "+ 机器人走迷宫:利用基础搜索算法和强化学习算法,让机器人探索并成功走出迷宫(20分) \n", + "\n", + "期末考试以单一选择题、多选题和判断题的机考形式进行(40分)。\n" + ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "### 附: 老师联系方式\n", + "+ 吴飞老师 https://person.zju.edu.cn/wufei/\n", + "+ 吴超老师 https://person.zju.edu.cn/0017053\n", + "+ 杨洋老师 https://person.zju.edu.cn/yangy\n", + "+ 王则可老师 https://person.zju.edu.cn/wangzeke\n", + "+ 汤斯亮老师 https://person.zju.edu.cn/siliang\n", + "+ 况琨老师 https://person.zju.edu.cn/kunkuang" + ] } ], "metadata": { diff --git a/untitled.md b/untitled.md new file mode 100644 index 0000000..69943bf --- /dev/null +++ b/untitled.md @@ -0,0 +1 @@ +*123* \ No newline at end of file