首页
学习
活动
专区
工具
TVP
发布

JNing的专栏

专栏作者
694
文章
976224
阅读量
50
订阅数
【vim】配置与操作
配置 修改当前用户的Vim配置: vim ~/.vimrc 填写信息如下: set ts=4 set expandtab set autoindent 使之生效: source ~/.vimrc 快捷键 命令 说明 0 行首 $ (shift+6) 行尾 gg 文首 G(shift+g) 文尾 A(Shift+a) 文尾,并编辑 ctrl + f 向上翻整页 ctrl + b 向下翻整页 ctrl + u 向上翻半页 ctrl + d 向下翻半页 数字 + gg 跳转到数字指定的行 (如25gg或者25G,
JNingWei
2020-03-18
4390
tf.nn.max_pool
tf.nn.max_pool(value, ksize, strides, padding, name=None)   参数是四个,和卷积很类似: Args Annotation 第一个参数value 需要池化的输入,一般池化层接在卷积层后面,所以输入通常是feature map,依然是[batch, height, width, channels]这样的shape 第二个参数ksize 池化窗口的大小,取一个四维向量,一般是[1, height, width, 1],因为我们不想在batch和cha
JNingWei
2018-09-28
5170
tf.nn.conv2d
tf.nn.conv2d(input, filter, strides, padding, use_cudnn_on_gpu=None, name=None)   除去name参数用以指定该操作的name,与方法有关的一共五个参数: Args Annotation 第一个参数input 指需要做卷积的输入图像,它要求是一个Tensor,具有[batch, in_height, in_width, in_channels]这样的shape,具体含义是[训练时一个batch的图片数量, 图片高度, 图片宽度
JNingWei
2018-09-28
5600
科普:论文上附有的 arXiv 是干嘛的
简单来说,为了防止自己的idea在论文被收录前被别人剽窃,我们会将预稿上传到arvix作为预收录,因此这就是个可以证明论文原创性(上传时间戳)的文档收录网站 。
JNingWei
2018-09-28
13.8K0
音频及视频端子
音频端子 类比 数字 视频端子 显示屏后面一般都有一左一右两个数据接口。一个是 VGA接口 ,一个是 DVI接口 。 类比 VGA VGA端子(Video Graphics Array (VGA) connector)。 旧电脑自带的接显示器的端口就是VGA。  VGA端子通常在电脑的显示卡、显示器及其他设备。是用作发送 模拟信号 。 分辨率: 640×480 数字 DVI DVI端子(Digital Visual Interface),中
JNingWei
2018-09-28
7200
python: 删除当前目录下的所有.pyc、.py~文件
import os print os.listdir('.') del_paths = [name for name in os.listdir('.') if name.endswith('.pyc') or name.endswith('.py~')] for del_path in del_paths: os.remove(del_path) print os.listdir('.') ['1 (copy).py~', '.idea', 'main.py', '1.py~', '2 (
JNingWei
2018-09-28
2.7K0
tensorflow: 对variable_scope进行reuse的两种方法
在tensorflow中,为了 节约变量存储空间 ,我们常常需要通过共享 变量作用域(variable_scope) 来实现 共享变量 。
JNingWei
2018-09-28
7.9K0
python爬虫: 指定 关键字 爬取图片
Introduction 设定关键字,从百度图片上爬取海量图片。 Code # coding:utf-8 import os import re import urllib import shuti
JNingWei
2018-09-28
1.1K0
git: git add --ignore-removal & git add --all 区别
在仓库中删除文件后,试图直接用 git add . 将所有删除工作提交暂存区,结果遇到了报错:
JNingWei
2018-09-28
2.5K0
leetcode: 50. Pow(x, n)
Problem # Implement pow(x, n). # # Example 1: # # Input: 2.00000, 10 # Output: 1024.00000 # Example 2: # # Input: 2.10000, 3 # Output: 9.26100 Idea 要考虑到 n 为负 的情况。 AC DFS: # time: O(log n) class Solution(): def myPow(self, x, n): if n == 0:
JNingWei
2018-09-27
4280
leetcode: 48. Rotate Image
Problem # You are given an n x n 2D matrix representing an image. # # Rotate the image by 90 degrees (clockwise). # # Note: # You have to rotate the image in-place, # which means you have to modify the input 2D matrix directly. # DO NOT allocate anothe
JNingWei
2018-09-27
3700
leetcode: 46. Permutations
Problem # Given a collection of distinct numbers, return all possible permutations. # # For example, # [1,2,3] have the following permutations: # [ # [1,2,3], # [1,3,2], # [2,1,3], # [2,3,1], # [3,1,2], # [3,2,1] # ] Idea 当只有1时候:
JNingWei
2018-09-27
4000
python: 切片符号(slice notation)
总结 正序 Grammar Annotation L[:] [seq[0], seq[1], …, seq[-1] ] L[low:] [seq[low], seq[low+1], …, seq[-1] ] L[:high] [seq[0], seq[1], …, seq[high-1]] L[low:high] [seq[low], seq[low+1], …, seq[high-1]] L[::stride] [seq[0
JNingWei
2018-09-27
1.6K0
leetcode: 65. Valid Number [✗]
problem # Validate if a given string is numeric. # # Some examples: # "0" => true # " 0.1 " => true # "abc" => false # "1 a" => false # "2e10" => true # Note: It is intended for the problem statement to be ambiguous. # You should gather all requirements
JNingWei
2018-09-27
5330
leetcode: 63. Unique Paths II
Problem # Follow up for "Unique Paths": # # Now consider if some obstacles are added to the grids.
JNingWei
2018-09-27
3830
leetcode: 62. Unique Paths
Problem # A robot is located at the top-left corner of a m x n grid # (marked 'Start' in the diagram below). # # The robot can only move either down or right at any point in time. # The robot is trying to reach the bottom-right corner of the grid # (
JNingWei
2018-09-27
3590
leetcode: 60. Permutation Sequence
Problem # The set [1,2,3,…,n] contains a total of n! unique permutations. # # By listing and labeling all of the permutations in order, # We get the following sequence (ie, for n = 3): # # "123" # "132" # "213" # "231" # "312" # "321" # Given n and k, r
JNingWei
2018-09-27
4190
leetcode: 54. Spiral Matrix
Problem # Given a matrix of m x n elements (m rows, n columns), # return all elements of the matrix in spiral order. # # For example, # Given the following matrix: # # [ # [ 1, 2, 3 ], # [ 4, 5, 6 ], # [ 7, 8, 9 ] # ] # # You should return [1,2,3,6,9
JNingWei
2018-09-27
2990
leetcode: 53. Maximum Subarray
Problem # Find the contiguous subarray within an array (containing at least one number) # which has the largest sum. # # For example, given the array [-2,1,-3,4,-1,2,1,-5,4], # the contiguous subarray [4,-1,2,1] has the largest sum = 6. # # click to sho
JNingWei
2018-09-27
3670
leetcode: 84. Largest Rectangle in Histogram
Problem # Given n non-negative integers representing the histogram's bar height where the width of e
JNingWei
2018-09-27
5310
点击加载更多
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档