笔记
qsrkkkkkk
这个作者很懒,什么都没留下…
展开
-
随机梯度下降
import numpy as np import matplotlib.pyplot as plt th1 = np.random.random() th2 = np.random.random() th3 = np.random.random() th0 = np.array([th2, th3]) a = 0.0000001 x = np.array([[2104, 3], [1600, 3], [2400, 3], [1416, 2], [3000, 4]]) t = np.array([400原创 2021-11-12 08:15:37 · 328 阅读 · 1 评论 -
推导
原创 2021-11-02 22:55:12 · 73 阅读 · 0 评论 -
决策树公式推导
原创 2021-10-26 22:36:42 · 71 阅读 · 0 评论 -
强化学习
import gym, os from itertools import countimport paddleimport paddle.nn as nnimport paddle.optimizer as optimimport paddle.nn.functional as Ffrom paddle.distribution import Categoricalprint(paddle.__version__)device = paddle.get_device()env = gym.make("Car原创 2021-10-21 17:18:21 · 54 阅读 · 0 评论 -
欧拉算法
import matplotlib.pyplot as plt targetX = 10.0 step = 0.1 axis1, axis2 = 0.0, 1.0 X, Y = [axis1], [axis2] def fun(axis1:float, axis2:float): return axis2 - 2 * axis1 / axis2 while axis1 <= targetX: t1 = fun(axis1, axis2) t2 = fun(x + step.原创 2021-09-24 09:55:38 · 77 阅读 · 0 评论