宗介l
码龄6年
关注
提问 私信
  • 博客:38,671
    社区:1
    38,672
    总访问量
  • 45
    原创
  • 2,204,943
    排名
  • 9
    粉丝
  • 0
    铁粉
IP属地以运营商信息为准,境内显示到省(区、市),境外显示到国家(地区)
IP 属地:北京市
  • 加入CSDN时间: 2018-09-27
博客简介:

qq_43296197的博客

查看详细资料
个人成就
  • 获得14次点赞
  • 内容获得8次评论
  • 获得81次收藏
  • 代码片获得188次分享
创作历程
  • 1篇
    2023年
  • 1篇
    2022年
  • 25篇
    2020年
  • 24篇
    2019年
成就勋章
TA的专栏
  • NLP
  • 推荐系统
  • 论文解析
  • 机器学习算法基础
  • 额外的
  • 灵茶山艾府
  • 代码随想录
  • 算法题
  • 机试题
  • ACM
  • 算法题基础
  • 笔记
  • EDA
兴趣领域 设置
  • 用户体验设计
    3d
创作活动更多

HarmonyOS开发者社区有奖征文来啦!

用文字记录下您与HarmonyOS的故事。参与活动,还有机会赢奖,快来加入我们吧!

0人参与 去创作
  • 最近
  • 文章
  • 代码仓
  • 资源
  • 问答
  • 帖子
  • 视频
  • 课程
  • 关注/订阅/互动
  • 收藏
搜TA的内容
搜索 取消

D117-72. 编辑距离

【代码】D117-72. 编辑距离。
原创
发布博客 2023.06.24 ·
121 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

GPU不可用时

sudo apt-get remove --purge nvidia*sudo apt-cache search nvidia*sudo sh NVIDIA-Linux-x86_64-470.86.runnvidia-smi
原创
发布博客 2022.04.26 ·
284 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Dataset与DataLoader的使用

import numpy as npimport torchfrom torch.utils.data import Dataset, DataLoaderclass DiabetesDataset(Dataset):#定义一个糖尿病的数据集 def __init__(self, filepath): xy = np.loadtxt(filepath, delimiter=',', dtype=np.float32) self.len = xy.shape[0
原创
发布博客 2020.07.29 ·
609 阅读 ·
0 点赞 ·
0 评论 ·
2 收藏

理解RNN_恐龙岛

n_x,n_y:对一个样本而言,在某一个时间步输入输出向量的维数na:对一个输入样本而言,在一个时间步隐藏状态的数目现在训练由字母生成合适的单词(恐龙命名):X为训练样本中某个单词的字母列表,如X[a,b,c,z],正式处理前需要将其转换为独热码X[[0000],[10000],[01000],[001000],[000001]] (即:X[None,1,2,3,26])X左移生成Y – 整数列表,与X完全相同,但向左移动了一个索引。初始化a-1等参数之后,现在通过for循环将X[0]、X[
原创
发布博客 2020.07.29 ·
328 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

傅里叶变换

https://www.bilibili.com/video/BV1A4411Y7vj/?spm_id_from=333.788.videocard.1
原创
发布博客 2020.07.22 ·
111 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LTI连续离散系统时域分析方法(卷积理解)

在LTI连续系统中,以冲激函数作为基本信号,将任意信号分解,从而得到系统的零状态响应等于激励与系统冲激响应的卷积积分,而在LTI离散系统中,以单位序列(δ(k)=1,if k=0)为基本信号来分析较复杂的信号,LTI离散系统的零状态响应等于激励与系统的单位序列相应的卷积和(对应于卷积中的积分)。...
原创
发布博客 2020.07.22 ·
1258 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

数据结构——链表的创建、赋值、反序与遍历

#include <stdio.h>typedef struct Note *PtrtoNote;struct Note{ int Data; PtrtoNote Next;};typedef PtrtoNote List;List Reverse(List);int main(void){ int n,i; PtrtoNote p; List L; Li...
原创
发布博客 2020.04.23 ·
323 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Q Learning简单实现

括号拆开:Q(s,a) := (1-α)Q(s,a)+α[…]有(1-α)的概率相信以往的经验。"""A simple example for Reinforcement Learning using table lookup Q-learning method.An agent "o" is on the left of a 1 dimensional world, the trea...
原创
发布博客 2020.02.05 ·
211 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Q Learns(Maze)

maze_env.py"""Reinforcement learning maze example.Red rectangle: explorer.Black rectangles: hells [reward = -1].Yellow bin circle: paradise [reward = +1].All other ...
原创
发布博客 2020.02.05 ·
272 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

非监督学习——鸢尾花数据集

import torchimport torch.nn as nnimport torch.utils.data as Dataimport torchvisionimport matplotlib.pyplot as pltfrom mpl_toolkits.mplot3d import Axes3Dfrom matplotlib import cmimport numpy as ...
原创
发布博客 2020.02.04 ·
517 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

非监督学习——MNIST数据集

"""View more, visit my tutorial page: https://morvanzhou.github.io/tutorials/My Youtube Channel: https://www.youtube.com/user/MorvanZhouDependencies:torch: 0.4matplotlibnumpy"""import torchim...
原创
发布博客 2020.02.04 ·
488 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

RNN_Regression

"""View more, visit my tutorial page: https://morvanzhou.github.io/tutorials/My Youtube Channel: https://www.youtube.com/user/MorvanZhouDependencies:torch: 0.4matplotlibnumpy"""from torchsumma...
原创
发布博客 2020.02.04 ·
377 阅读 ·
0 点赞 ·
0 评论 ·
1 收藏

LSTM对MNIST分类

import torchfrom torch import nnimport torchvision.datasets as dsetsimport torchvision.transforms as transformsimport matplotlib.pyplot as plt# torch.manual_seed(1) # reproducible# Hyper P...
原创
发布博客 2020.02.03 ·
407 阅读 ·
1 点赞 ·
0 评论 ·
2 收藏

快速搭建网络与保存

import torchimport matplotlib.pyplot as plt# torch.manual_seed(1) # reproducible# 用Pytorch有两种保存网络的方法,第一种是保存整个网络,第二种是只保存参数# 。第一种保存的文件相对较大,但是提取使用是较方便;第二种保存的文件相对较小,但是# 提取使用的时候要先定义网络结构。# fake ...
原创
发布博客 2020.02.02 ·
204 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

LeNet(Based on MNIST)

import torchimport timeimport torchvision as tvimport torchvision.transforms as transformsimport torch.nn as nn # 各种层类型的实现import torch.optim as optim # 实现各种优化算法的包import argparseimport matplotl...
原创
发布博客 2020.02.02 ·
146 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Classification Demo

import torchimport matplotlib.pyplot as pltimport torch.nn.functional as F # 激励函数都在这from torch.autograd import Variable# 假数据n_data = torch.ones(100, 2) # 数据的基本形态 100行,两列的张量x0 = torc...
原创
发布博客 2020.02.02 ·
202 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Regression Demo

import torchfrom torch.autograd import Variableimport numpy as npimport torch.nn.functional as F # 激励函数都在这from torchsummary import summaryfrom torchviz import make_dotBATCH_SIZE = 5# BAT...
原创
发布博客 2020.02.02 ·
137 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

Pytorch_CNNDemo

import osimport time# third-party libraryimport torchimport torch.nn as nnimport torch.utils.data as Dataimport torchvisionimport matplotlib.pyplot as pltdevice = torch.device("cuda" if torch...
原创
发布博客 2020.02.02 ·
208 阅读 ·
0 点赞 ·
0 评论 ·
0 收藏

FPGA 输入捕获 串口数据上传

顶层模块module top_jishuqi( //system clock input sys_clk , // 时钟信号 input sys_rst_n, // 复位信号 //cymometer interface input cl...
原创
发布博客 2020.02.02 ·
547 阅读 ·
0 点赞 ·
0 评论 ·
4 收藏

FPGA USART发送字符串

module uart_send( input sys_clk, //系统时钟 input sys_rst_n, //系统复位,低电平有效 output reg uart_txd //UART发送端口 ); //pa...
原创
发布博客 2020.01.15 ·
4687 阅读 ·
4 点赞 ·
6 评论 ·
42 收藏
加载更多