美文网首页学习PaddlePaddle笔记
第一章 数学基础与python 库

第一章 数学基础与python 库

作者: 吉林天师 | 来源:发表于2019-05-26 16:56 被阅读0次

    学习提要:有人说,想做AI领域的好学生,需要三好:数学好,编程好,态度好。我对此观点优点怀疑。要想三好,需要时间,然而AI都是年轻人在搞,所以我觉得做主要的是编程好,因为数学可以学习,态度可以改,但是编程不好,那就有点乐子了。

    在python 终端输入 import this 将会打印

    Beautiful is better than ugly. (美丽比丑陋好点儿)
    Explicit is better than implicit. (命名不冲突比命名冲突好点儿)
    Simple is better than complex.   (简单比复杂好点儿)
    Complex is better than complicated. (复杂比凌乱好点儿)
    Flat is better than nested.(嵌套层级少的好点儿)
    Sparse is better than dense. (简单易懂好过装逼的)
    Readability counts.(易懂很重要)
    Special cases aren't special enough to break the rules. ()
    Although practicality beats purity.
    Errors should never pass silently.
    Unless explicitly silenced.
    In the face of ambiguity, refuse the temptation to guess.(当存在多种可能不要尝试去猜测)
    There should be one-- and preferably only one --obvious way to do it.
    Although that way may not be obvious at first unless you're Dutch.
    Now is better than never.(做比不做好点儿)
    Although never is often better than *right* now.(不假思索还不如不做)
    If the implementation is hard to explain, it's a bad idea.(不能描述的思想,不是好的思想)
    If the implementation is easy to explain, it may be a good idea.(能描述的思想,是好的思想)
    Namespaces are one honking great idea -- let's do more of those! 命名空间是个好东西,要多用
    

    标量(Scalar) 矢量(Vector)矩阵(Matrix) 单位矩阵(identity Matrix)

    • 向量运算 维度相同,同一位置加减,乘法是个scalar
    • 矩阵的运算 点乘(Matrix Product) 和元素乘(Element-Wise Product)
      ** 点乘(Matrix Product) C(n,p) = A(m,n) *B(n,p) c(i,j) = A(m,1,...p) * B(1,...n,j)
      ** 元素乘(Element-Wise Product)简单,对应位置想成即可。可以交换

    相关文章

      网友评论

        本文标题:第一章 数学基础与python 库

        本文链接:https://www.haomeiwen.com/subject/wjlftctx.html