- 博客(126)
- 资源 (21)
- 收藏
- 关注
原创 linux下安装MongoDB
下载安装包:wget http://fastdl.mongodb.org/linux/mongodb-linux-x86_64-2.4.6.tgz解压:tar -xvzf mongodb-linux-x86_64-3.2.10.tgz将解压后的文件移动到指定目录并改名:mv mongodb-linux-x86_64-3.2.10 /usr/local/mongodb切换到mongodb:c...
2019-08-13 14:32:28 256
原创 pytorch学习笔记7--循环神经网络、GAN
文章目录循环神经网络序列的表示方法RNN Layer的使用nn.RNNnn.RNNCell预测sin(x)曲线trainpredict梯度弥散和梯度爆炸gradient clippinggradient vanishingLSTM 的使用LSTMCell 的使用情感分类实战GAN损失纳什均衡transposed convolutionWGAN 使用wassertein Distance 代替了Di...
2019-07-24 10:32:30 974 1
原创 pytorch学习笔记6--过拟合,交叉验证,正则化
文章目录过拟合过拟合、欠拟合交叉验证regularization动量与学习率衰减dropout ,early stop卷积神经网络resnet densenetnn.Module数据增强实战lenet5resnet过拟合过拟合、欠拟合交叉验证regularizationoccam’s razormore things should not be used than are nec...
2019-07-24 09:31:43 2628
原创 pytorch学习笔记5--pytorch基本运算2
文章目录感知机的梯度推导单输出单层感知机多输出感知机梯度推导链式法则多层感知机反向传播Logistic regressionQ1: why not maximize accuracy?Q2 : why call logistic regressionsoftmax交叉熵EntropyCross Entropy对于分类问题为什么不用MSEsoftmax 和 sigmoid?多分类全连接层nn.ReL...
2019-07-24 09:27:59 446
原创 Git & Github
文章目录git本地库初始化 : git init设置签名命令分支管理 git branc []Git 基本原理基本操作总结:githubGitLabgit本地库初始化 : git init设置签名形式用户名:niklausemail:[email protected]作用:区分不同的开发人员身份辨析:这里设置的签名和登陆远程库(代码托管中心)的账号、密...
2019-07-24 08:43:23 167
原创 pytorch学习笔记5--pytorch基本运算
文章目录基本运算add/minus/multiply/dividematmul基本函数统计属性normmean,sum,min,max,prod,argmin,argmaxkthvalue,topk\>,>=,<,<=,!=,==高阶操作(GPU)whereGather梯度lossMean Squared Error(MSE):自动求导:torch.autograd.gra...
2019-06-12 20:26:28 6088
原创 pytorch学习笔记4--pytorch数据类型
文章目录pytorch 数据类型创建tensor将numpy数据转化为Tensor:从python list中导入数据:uninitialized设置默认类型:随机初始化,rand/rand_like,randint正态分布:randn全部赋值为相同的元素:torch.arange(start,end,step)等分:torch.eye(d1,d2) or torch.eye(num)randpe...
2019-06-12 17:49:35 2826
原创 pytorch学习笔记3--回归问题
回归问题linear regressiony∈[−∞,+∞]y \in [-\infty, +\infty]y∈[−∞,+∞]logistics regression把y值压缩到[0,1],变为概率问题代码:loss=(WX+b−y)2loss = (WX+b-y)^2loss=(WX+b−y)2代码实现如下: def compute_error_for_line_...
2019-06-12 17:45:25 213
原创 pytorch学习笔记2--梯度下降的介绍
梯度下降给定y=x2∗sinxy=x^2*sinxy=x2∗sinx它的导数:y′=2xsinx+x2cosxy'=2xsinx + x^2cosxy′=2xsinx+x2cosx则梯度下降对x进行更新:x′=x−lr∗Δxx'=x-lr * \Delta xx′=x−lr∗Δx噪声exampleoptimize...
2019-06-12 17:25:40 446
原创 pytorch学习笔记1--开发环境安装(windows)
先附两个api文章目录开发环境安装(windows)开发环境安装(windows)安装anaconda勾选 Add Anaconda to my PATH environment variable安装CUDA10到CUDA官网下载,选择local 版本安装过程中如果没有CUDA Visual Studio Integration 可以勾选然后跳过如果在cuda>v1...
2019-06-12 17:19:23 345
原创 python中append 和extend的区别
appenda = [1,2,3]b = [4,5,6]a.append(b)print a结果:[1, 2, 3, [4, 5, 6]]extenda = [1,2,3]b = [4,5,6]a.extend(b)print a结果:[1, 2, 3, 4, 5, 6]
2019-06-12 17:14:40 1179
原创 scrapy 教程
中文文档:scrapy 4 步:新建项目:(scrapy startproject projectname):新建爬虫项目创建爬虫:scrapy genspider spidername “http://www.xxx.cn/”明确目标:(编写items.py):明确想要抓取的目标制作爬虫:(spiders/xxspider.py):制作爬虫开始爬取的网页编写p...
2019-06-12 17:11:53 2319
原创 自定义安装office教程
文章目录卸载旧版本office下载office Deployment Tool(ODT)创建/修改配置文件卸载旧版本office控制面板–卸载–office–卸载下载office Deployment Tool(ODT)微软官方下载地址执行下载程序,执行后,会输出4个文件:configuration-Office365-x64.xml、configuration-Office365...
2019-06-12 17:07:01 1511
原创 latex语法
文章目录上下标括号分数开方对数向量三角运算省略号需要转义的字符普通符号希腊字母集合运算逻辑运算微积分箭头求和、连乘和积分号数字模式重音符连线符号矩阵上下标命令显示x_{2}x2x_{2}x2x^2x2x^{2}x2括号() [] 直接写就行,而 {} 则需要转义y \in {3, 4, 5} : y∈{3,4,5}y \in \{3, 4, 5\}...
2019-06-12 17:01:49 5701
原创 Large-Scale Long-Tailed Recognition in an OpenWorld
Open Long-Tailed Recognition(OLTR):从自然分布的数据中学习并在包括头、尾和开放类的平衡测试集上优化分类精度。也就是对三个问题的综合imbalanced classificationfew-shot learningopen-set recognition.论文针对的问题:OLTR不仅要在封闭环境中处理不平衡分类和few-shot learning...
2019-05-26 23:42:37 3721 1
原创 vim常用命令
文章目录vim命令模式可视模式删除命令撤销命令重复命令文本移动复制粘贴查找命令替换操作替换命令输入模式末行模式补充vim命令模式h:左移j:下移k:上移l(L):右移M:光标移动到中间行L:光标移动到屏幕最后一行行首G:移动到指定行,行号 -G,只有G的话,到文件最末尾gg:文件第一个字符w:向后一次移动一个字b:向前一次移动一个字{:按段移动,上移}:按段下移,下移...
2019-05-26 19:59:42 87
原创 linux的文件系统
/boot:系统启动相关的文件,如内核、initrd、以及grub(bootloader)/dev:设备文件:块设备:随机访问,数据块字符设备:线性访问,按字符为单位设备号:主设备号(major)和次设备号(minor)/etc:配置文件/home:用户的家目录,每一个用户的家目录通常默认为/home/username/root:管理员的家目录;/lib:库文件静态库:...
2019-05-26 17:23:18 93
原创 A Generative Adversarial Approach for Zero-Shot Learning from Noisy Texts
震
2018-11-12 13:39:35 741
原创 Incorporating visual features into word embeddings:A bimodal autoencoder-based approach
震
2018-10-21 19:34:31 203
转载 Keras ImageDataGenerator参数
from keras.preprocessing.image import ImageDataGeneratorkeras.preprocessing.image.ImageDataGenerator( featurewise_center=False, # 布尔值,使输入数据集去中心化(均值为0), 按feature执行 samplewise_center=False, #布尔值...
2018-10-07 22:37:01 709
原创 Learning Multi-Attention Convolutional Neural Network for Fine-Grained Image Recognition 论文阅读
震
2018-10-06 18:33:34 1039 1
转载 虚拟机安装mac 在开机页面无限重启
打开vmx文件 在最后添加 cpuid.1.eax = “00000000000000010000011010100101”转:https://blog.csdn.net/qq_35080229/article/details/78157651
2018-09-28 23:36:57 12735 4
转载 softmax()定义
def softmax(X): Xexp = X.exp() partition = Xexp.sum(axis=1, keepdims=True) return Xexp / partition # 这里应用了广播机制
2018-09-06 18:33:29 561
转载 按batch_size读取数据
def data_iter(batch_size, features, labels): num_examples = len(features) indices = list(range(num_examples)) random.shuffle(indices) # 样本的读取顺序是随机的。 for i in range(0, num_examples, ba...
2018-09-06 10:46:54 2308 1
原创 tf.expand_dim()函数
TensorFlow中,想要维度增加一维,可以使用tf.expand_dims(input, dim, name=None)函数。 当然,我们常用tf.reshape(input, shape=[])也可以达到相同效果,但是有些时候在构建图的过程中,placeholder没有被feed具体的值,这时就会包下面的错误:TypeError: Expected binary or unicode st...
2018-09-04 12:46:27 5733
原创 把某个文件夹下的图片名称写入txt文件
import osdef ListFilesToTxt(input_dir, file, wildcard, recursion): exts = wildcard.split(" ") for root, subdirs, files in os.walk(input_dir): for name in files: for ext ...
2018-09-03 11:20:32 1772
转载 mnist手写体识别
下载数据集 download.py# coding:utf-8# 从tensorflow.examples.tutorials.mnist引入模块。这是TensorFlow为了教学MNIST而提前编制的程序from tensorflow.examples.tutorials.mnist import input_data# 从MNIST_data/中读取MNIST数据。这条语句在数据不存...
2018-06-26 09:54:48 824
原创 tf.einsum
tf.einsum(equation, *inputs) 例子:tf.einsum(‘ij,jk->ik’, ts1,ts2) #矩阵乘法 tf.einsum(‘ij->ji’,ts1) #矩阵转置
2018-06-04 12:40:19 1396
原创 sklearn 保存训练模型的两种方法
from sklearn import svmfrom sklearn import datasetsclf = svm.SVC()iris = datasets.load_iris()X, y = iris.data, iris.targetclf.fit(X,y)# method:1 pickle# saveimport pickle# with open('save/c...
2018-05-20 12:45:39 4457
原创 sklearn cross_validation交叉验证
from sklearn import datasetsfrom sklearn.cross_validation import train_test_splitfrom sklearn.neighbors import KNeighborsClassifier# cross_validation交叉验证iris = datasets.load_iris()X = iris.data...
2018-05-20 12:34:46 637
原创 sklearn normalization 数据标准化
from sklearn import preprocessing# train data 和test_data 分开的模块from sklearn.cross_validation import train_test_split# 用于生成一些 classification的数据from sklearn.datasets.samples_generator import make_cla...
2018-05-20 10:11:41 1288
该资源为英文单词unigram bigram 的词库统计:以单词-词频的方式保存。
2020-04-29
PythonDataScienceHandbook-master
2018-07-29
spring-framework-3.0.2.RELEASE-dependencies
2018-01-30
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人