ruijiege

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  346 随笔 :: 0 文章 :: 8 评论 :: 12万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

10 2022 档案

摘要:import torch import torch.nn as nn import torch.nn.functional as F import torchvision.datasets.mnist as mnist import torchvision.transforms as T impor 阅读全文
posted @ 2022-10-30 12:57 哦哟这个怎么搞 阅读(30) 评论(0) 推荐(0) 编辑

摘要:import torch import torch.nn as nn import numpy as np import torch.nn.functional as F class Model(nn.Module): def __init__(self): super().__init__() s 阅读全文
posted @ 2022-10-29 08:24 哦哟这个怎么搞 阅读(57) 评论(0) 推荐(0) 编辑

摘要:class BatchNormalization(Module): def __init__(self, in_feature, momentum=0.9, eps=1e-8): self.mu = 0 self.var = 1 self.momentum = momentum self.eps = 阅读全文
posted @ 2022-10-28 09:52 哦哟这个怎么搞 阅读(19) 评论(0) 推荐(0) 编辑

摘要:https://aistudio.baidu.com/aistudio/projectdetail/3391734?channelType=0&channel=0 直接通过https://aistudio.baidu.com/aistudio/projectoverview/public?kw=%2 阅读全文
posted @ 2022-10-27 10:49 哦哟这个怎么搞 阅读(20) 评论(0) 推荐(0) 编辑

摘要:launch.json { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configur 阅读全文
posted @ 2022-10-25 17:07 哦哟这个怎么搞 阅读(93) 评论(0) 推荐(0) 编辑

摘要:import cv2 dx0 = 0 dy0 = 0 isdown = False def callback(event, x, y, flags, userdata): global dx0,dy0,isdown color = 0, 255, 0 if flags & cv2.EVENT_FLA 阅读全文
posted @ 2022-10-25 10:59 哦哟这个怎么搞 阅读(35) 评论(0) 推荐(0) 编辑

摘要:class Dropout(Module): def __init__(self, prob_keep=0.5, inplace=True): super().__init__("Dropout") self.prob_keep = prob_keep self.inplace = inplace 阅读全文
posted @ 2022-10-24 13:33 哦哟这个怎么搞 阅读(33) 评论(0) 推荐(0) 编辑

摘要:import numpy as np import struct import random import matplotlib.pyplot as plt import pandas as pd import math class Dataset: def __init__(self, image 阅读全文
posted @ 2022-10-24 13:32 哦哟这个怎么搞 阅读(20) 评论(0) 推荐(0) 编辑

摘要:import random import struct import numpy as np import pandas as pd def load_labels(file): with open(file, "rb") as f: data = f.read() magic_number, nu 阅读全文
posted @ 2022-10-23 21:02 哦哟这个怎么搞 阅读(17) 评论(0) 推荐(0) 编辑

摘要:import numpy as np import struct import random import matplotlib.pyplot as plt import pandas as pd import math def load_labels(file): with open(file, 阅读全文
posted @ 2022-10-23 08:02 哦哟这个怎么搞 阅读(44) 评论(0) 推荐(0) 编辑

摘要:做数字识别3,假设10个类别 3求sigmoid如上图的10个值 我们把对应的位置作为ont-hot编码就可以了 做sigmoid 阅读全文
posted @ 2022-10-22 19:54 哦哟这个怎么搞 阅读(16) 评论(0) 推荐(0) 编辑

摘要: 阅读全文
posted @ 2022-10-22 19:51 哦哟这个怎么搞 阅读(8) 评论(0) 推荐(0) 编辑

摘要:import numpy as np import matplotlib.pyplot as plt def sigmod(x): return 1/(1+np.exp(-x)) label = np.array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 阅读全文
posted @ 2022-10-22 11:21 哦哟这个怎么搞 阅读(4) 评论(0) 推荐(0) 编辑

摘要:import numpy as np import random x = np.array([0,1,2,3,4,5,6,7,8,9],dtype=np.float32) y = np.array([1.8,2.1,2.3,2.85,3.0,3.3,4.9,5.45,5.0,6.0]) k = ra 阅读全文
posted @ 2022-10-22 09:50 哦哟这个怎么搞 阅读(4) 评论(0) 推荐(0) 编辑

摘要:极大似然估计 我们希望误差最小更好 梯度下降就是逐渐靠近 阅读全文
posted @ 2022-10-22 09:33 哦哟这个怎么搞 阅读(4) 评论(0) 推荐(0) 编辑

摘要:1.iou 两个框的交集重合 2.giou https://zhuanlan.zhihu.com/p/94799295?utm_source=wechat_session 阅读全文
posted @ 2022-10-22 08:47 哦哟这个怎么搞 阅读(1) 评论(0) 推荐(0) 编辑

摘要:可以做时间函数,计算函数的时间,日志系统,解决异常处理,flask注解等 一定要会 如果需要实现传入参数 阅读全文
posted @ 2022-10-21 22:06 哦哟这个怎么搞 阅读(4) 评论(0) 推荐(0) 编辑

摘要:1.延长计算 阅读全文
posted @ 2022-10-21 21:00 哦哟这个怎么搞 阅读(3) 评论(0) 推荐(0) 编辑

摘要:def qsort(array): if len(array) <= 1: return array pivot=array.pop() leftarray = [i for i in array if i < pivot] rightarray = [i for i in array if i > 阅读全文
posted @ 2022-10-21 20:55 哦哟这个怎么搞 阅读(1) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示