- 博客(9)
- 收藏
- 关注
原创 强化学习
importgym,osfromitertoolsimportcountimportpaddleimportpaddle.nnasnnimportpaddle.optimizerasoptimimportpaddle.nn.functionalasFfrompaddle.distributionimportCategoricaldevice=paddle.get_device()env=gym.make("CartPole-...
2021-10-21 16:08:56
135
原创 2021-10-19手写体识别
import paddlefrom paddle.nn import Linearimport paddle.nn.functional as Fimport osimport numpy as npimport matplotlib.pyplot as plttrain_dataset = paddle.vision.datasets.MNIST(mode='train')train_data0 = np.array(train_dataset[0][0])train_label_0.
2021-10-19 19:58:01
72
原创 numpy作业二
import numpy as npimport matplotlib.pyplot as pltx = np.array([[2,3],[4,6],[7,8],[12,15]])t = np.array([5,8,14,17])alpha = 0.1theta0 = np.random.random()theta1 = np.random.random()theta2 = np.random.random()theta = np.array([theta1,theta2])eps =
2021-09-03 22:58:45
58
原创 numpy作业一
import numpy as npc= np.arange(1,13).reshape(6,2)carray([[ 1, 2], [ 3, 4], [ 5, 6], [ 7, 8], [ 9, 10], [11, 12]])np.vsplit(c,3)[array([[1, 2], [3, 4]]), array([[5, 6], [7, 8]]), array([[ 9,
2021-09-03 22:53:45
134
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人