- 博客(6)
- 收藏
- 关注
原创 图卷积神经网络
import paddleimport paddle.nn.functional as Ffrom paddle.vision.transforms import ToTensorimport numpy as npimport matplotlib.pyplot as plttransform = ToTensor()cifar10_train = paddle.vision.datasets.Cifar10(mode=‘train’,transform=transform)cifar10_
2021-10-16 00:15:23
162
原创 感知器(作业)
from __future__ import print_functionfrom functools import reduceclass VectorOp(object): def dot(x, y): # 计算两个向量x和y的内积,然后利用reduce求和 return reduce(lambda a, b: a + b, VectorOp.element_multiply(x, y), 0.0) def element_multiply(x, .
2021-09-10 21:17:15
161
原创 (作业)监督学习
import numpy as npx = 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([theta0,theta1,theta2])td0 = 100td1 = 100td2 = 100
2021-09-03 22:33:15
113
原创 (作业)numpy简单操作
垂直拆分:numpy.vsplit(数组,份数)->(数组片段)import numpy as npcarray([[ 1, 2], [ 3, 4], [ 5, 6], [ 7, 8], [ 9, 10], [11, 12]]) c = np.arange(1,13).reshape(6,2)np.vsplit(c,3)[array([[1, 2], [3, 4]]), array([
2021-09-03 22:20:32
197
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅