机器学习
墨轩浪子
这个作者很懒,什么都没留下…
展开
-
从0开始理解神经网络(三)
# 拓扑排序import randomfrom functools import reducesample_graph = { 'a': [1, 2], 'b': [3, 4]}sample_graph = reduce(lambda a, b: a + b, list(sample_graph.values()))print(sample_graph)def toplogic(graph): ''' graph:{ x:[linear],原创 2021-05-23 22:22:05 · 59 阅读 · 0 评论 -
从0开始理解神经网络(二)
# from sample linear regression to comolicated neural networks# from manul coding gradients to auto-gradients# previous:let the computer fit functionsimport numpy as npimport matplotlib.pyplot as pltimport randomfrom matplotlib.animation import FuncA原创 2021-05-23 22:19:32 · 53 阅读 · 0 评论 -
从0开始理解神经网络(一)
# encoding=utf8'''1.what's the machine learning?2.waht's the k-n-n algorithm?3.what's the loss function and why it is the key for our machine learning?4.what's the Gradient Descent?'''# step1:load data & data analysisfrom sklearn.datasets impor原创 2021-05-23 22:17:27 · 81 阅读 · 0 评论