Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ted完成 DL102 入学任务啦 #91

Open
TedWenJun opened this issue Oct 5, 2017 · 0 comments
Open

Ted完成 DL102 入学任务啦 #91

TedWenJun opened this issue Oct 5, 2017 · 0 comments

Comments

@TedWenJun
Copy link

TedWenJun commented Oct 5, 2017

基础任务

  1. 代码链接

  2. 输出截图
    20171006045149

  3. 思路: 文件读取 ——> 格式化文件 ——>二元词组计数返回

  4. 心得:最容易出错的地方是用re模块,正则表达式之前接触过一些,但是实际操作起来还是容易出错。。。


进阶任务

  1. 函数求导

代码部分:

import sympy as sympy
x = sympy.Symbol("x")
print (sympy.diff(sympy.sin(x**2)*x))

输出结果:
2*x**2*cos(x**2) + sin(x**2)

心得:没有用过Numpy以外的三方数学计算模块,看前面的人有用sympy才发现符号计算这么方便


  1. 向量化随机数组

代码链接

输出截图:
源数组o

向量化处理后o2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants