笔记
qsrkkkkkk
这个作者很懒,什么都没留下…
展开
-
随机梯度下降
import numpy as npimport matplotlib.pyplot as plt th1 = np.random.random()th2 = np.random.random()th3 = np.random.random()th0 = np.array([th2, th3])a = 0.0000001x = np.array([[2104, 3], [1600, 3], [2400, 3], [1416, 2], [3000, 4]])t = np.array([400原创 2021-11-12 08:15:37 · 320 阅读 · 1 评论 -
推导
原创 2021-11-02 22:55:12 · 62 阅读 · 0 评论 -
决策树公式推导
原创 2021-10-26 22:36:42 · 60 阅读 · 0 评论 -
强化学习
import gym, osfrom 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 · 42 阅读 · 0 评论 -
欧拉算法
import matplotlib.pyplot as plttargetX = 10.0step = 0.1axis1, axis2 = 0.0, 1.0X, Y = [axis1], [axis2]def fun(axis1:float, axis2:float): return axis2 - 2 * axis1 / axis2while axis1 <= targetX: t1 = fun(axis1, axis2) t2 = fun(x + step.原创 2021-09-24 09:55:38 · 61 阅读 · 0 评论