自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

从此做一个俗人

欢迎热爱AI的朋友

  • 博客(32)
  • 资源 (1)
  • 收藏
  • 关注

原创 Pytorch深度学习实战项目回顾

1.前言很久没有碰Pytorch了,准备以实战项目代码回顾的方式进行复习。2.Pytorch安装现在我又切回了ubuntu系统,里面没有Pytorch,所以顺便从Pytorch最新版安装开始讲起吧。(1)本机配置CUDA9.0, CUDNN7.1.2Anaconda5.2.0linux下查cuda,cudnn版本的方法:① cudacat /usr/local/cuda/version.txt② cudnncat /usr/local/cuda/include/cudnn.h | g

2020-05-20 18:04:37 5143

原创 Pandas程序回顾

1.前言回顾Pandas的基本操作,参照morvan tutorial。2.安装anaconda下,直接运行:conda install pandas3. 常见操作(1)pd.date_range生成一个list,装着数据结构的行名。dates = pd.date_range('20200101', periods=5) """output:DatetimeIndex(['2020-01-01', '2020-01-02', '2020-01-03', '2020-01-04',

2020-05-20 18:02:50 441

原创 mysql启动和常用语法实战回顾

1.前言回顾完pandas,紧接着也罢把mysql也回顾回顾吧。2.mysql启动打开cmd,输入:net start mysql80,其中80是之前你安装mysql时设置的服务器的名称,如果报如下的错,就说明时cmd的权限不够,要打开cmd所在的目录,更改为管理员模式,并将更改后的cmd文件复制到c:/windows下,并重命名为cmdd,以后运行cmd就通过win+r然后输入cmdd就OK了,如果你用原来的cmd还是会报错哦。启动成功为:附带一句:这个mysql启动可以通过如下的按钮直接

2020-05-20 18:01:32 367 1

原创 notepad++ python指定anaconda环境以及代码补全设置

1.前言notepad++非常轻便,才4M,今天来配配python环境试试水,下面的方法二可以着重看一下,这是对anaconda配置专门写的,现有博客看了很多,感觉写的有些问题。2.下载注意官网下载安装包4M却非常慢,最好用VPN。3.配置anaconda的python环境(1)anaconda的python环境是E:/anaconda/envs/某个环境/python.exe(2)配置步骤一共有两种方法哦。方法一:① 去插件栏下安装② 再回到插件栏,选择NppExec,选择Execu

2020-05-19 14:06:13 1319

原创 sobel,canny(可滑动调节阈值)边缘检测算法opencv-python实战

1.前言目的:为了总结下之前用过的经典边缘检测算法sobel和canny2.算法opencv官方讲解(1)sobel算法讲解(2)canny算法讲解2.opencv-python代码**注意:**由于数据未公开,所以没有提供数据来源,只需要填写path(图像的路径)即可运行,该代码可以实现以上两种算法,并且canny算法的阈值是可以通过滑动块来设置的。代码已有详细的注释。import cv2# original imagepath =''original_image = cv2.i

2020-05-16 16:37:33 1157

原创 win10下安装多个cuda(cuda9.0和10.0),并自由切换版本

1.前言最近想测试下cuda版本的高地是否会影响GPU显存的初始占用,如果低版本的cuda占用显存较少那岂不是非常棒?所以这就牵涉到了多版本cuda共存的问题,网上很多博客只是浅谈了安装过程,我这里给出安装过程的可视化结果,方便大家查阅学习。2.当前cuda版本win10下安装的第一个版本是10.0,cudnn为7.5,安装这个版本为的是使用tensorflow1.13.1,具体安装过程参见我的博客。然而,测试下来GPU占用率比在linux下要高很多,这使得我很多项目没办法展开了,当时没有时间去探索前

2020-05-16 16:26:36 21572 27

原创 leetcode python3 简单题234. Palindrome Linked List

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百三十四题(1)题目英文:Given a singly linked list, determine if it is a palindrome.Example 1:Input: 1->2Output: falseExample 2:Input: 1->2->2->1Output: true中文:请判断一个链表是否为回文链表。示例 1:输入

2020-05-15 23:38:37 211

原创 leetcode python3 简单题232. Implement Queue using Stacks

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百三十二题(1)题目英文:Implement the following operations of a queue using stacks.push(x) – Push element x to the back of queue.pop() – Removes the element from in front of queue.peek() – Get the fron

2020-05-13 22:57:31 159

原创 leetcode python3 简单题231. Power of Two

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百三十一题(1)题目英文:Given an integer, write a function to determine if it is a power of two.Example 1:Input: 1Output: trueExplanation: 20 = 1中文:给定一个整数,编写一个函数来判断它是否是 2 的幂次方。示例 1:输入: 1输出: true

2020-05-13 22:30:46 223

原创 leetcode python3 简单题226. Invert Binary Tree

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百二十六题(1)题目英文:Invert a binary tree.中文:翻转一棵二叉树。来源:力扣(LeetCode)链接:https://leetcode-cn.com/problems/invert-binary-tree(2)解法① 递归(耗时:44ms,内存:13.5M)# Definition for a binary tree node.# class

2020-05-13 22:16:35 222

原创 leetcode python3 简单题225. Implement Stack using Queues

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百二十五题(1)题目英文:Implement the following operations of a stack using queues.push(x) – Push element x onto stack.pop() – Removes the element on top of the stack.top() – Get the top element.empty

2020-05-13 17:26:09 233

原创 leetcode python3 简单题219. Contains Duplicate II

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百一十九题(1)题目英文:Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the absolute difference between i

2020-05-13 15:39:31 193

原创 leetcode python3 简单题217. Contains Duplicate

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百一十七题(1)题目英文:Given an array of integers, find if the array contains any duplicates.Your function should return true if any value appears at least twice in the array, and it should return false

2020-05-13 14:49:44 183

原创 leetcode python3 简单题206. Reverse Linked List

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百零六题(1)题目英文:Reverse a singly linked list.Example:Input: 1->2->3->4->5->NULLOutput: 5->4->3->2->1->NULL中文:反转一个单链表。示例:输入: 1->2->3->4->5->NULL输

2020-05-12 22:07:32 225

原创 leetcode python3 简单题205. Isomorphic Strings

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百零五题(1)题目英文:Given two strings s and t, determine if they are isomorphic.Two strings are isomorphic if the characters in s can be replaced to get t.All occurrences of a character must be repla

2020-05-12 21:03:08 163

原创 leetcode python3 简单题204. Count Primes

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百零四题(1)题目英文:Count the number of prime numbers less than a non-negative number, n.中文:统计所有小于非负整数 n 的质数的数量。来源:力扣(LeetCode)链接:https://lee...

2020-05-06 14:34:35 251

原创 leetcode python3 简单题203. Remove Linked List Elements

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百零三题(1)题目英文:Remove all elements from a linked list of integers that have value val.中文:删除链表中等于给定值 val 的所有节点。来源:力扣(LeetCode)链接:https://...

2020-05-06 13:49:50 207

原创 leetcode python3 简单题202. Happy Number

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第二百零二题(1)题目英文:Write an algorithm to determine if a number n is “happy”.A happy number is a number defined by the following process: Starti...

2020-05-06 11:57:46 267

原创 leetcode python3 简单题198. House Robber

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百九十八题(1)题目英文:You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the o...

2020-05-06 11:50:53 263

原创 leetcode python3 简单题191. Number of 1 Bits

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百九十一题(1)题目英文:Write a function that takes an unsigned integer and return the number of ‘1’ bits it has (also known as the Hamming weight)....

2020-05-06 11:13:31 267

原创 leetcode python3 简单题190. Reverse Bits

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百九十题(1)题目英文:Reverse bits of a given 32 bits unsigned integer.中文:颠倒给定的 32 位无符号整数的二进制位。来源:力扣(LeetCode)链接:https://leetcode-cn.com/proble...

2020-05-05 21:42:38 172

原创 leetcode python3 简单题189. Rotate Array

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百八十九题(1)题目英文:Given an array, rotate the array to the right by k steps, where k is non-negative.Follow up:Try to come up as many solutio...

2020-05-05 21:33:52 205

原创 leetcode python3 简单题172. Factorial Trailing Zeroes

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百七十二题(1)题目英文:Given an integer n, return the number of trailing zeroes in n!.中文:给定一个整数 n,返回 n! 结果尾数中零的数量。来源:力扣(LeetCode)链接:https://lee...

2020-05-05 21:16:45 173

原创 leetcode python3 简单题171. Excel Sheet Column Number

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百七十一题(1)题目英文:Given a column title as appear in an Excel sheet, return its corresponding column number.中文:给定一个Excel表格中的列名称,返回其相应的列序号。来源...

2020-05-05 20:32:32 208

原创 leetcode python3 简单题169. Majority Element

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百六十九题(1)题目英文:Given an array of size n, find the majority element. The majority element is the element that appears more than ⌊ n/2 ⌋ time...

2020-05-04 17:35:23 202

原创 leetcode python3 简单题168. Excel Sheet Column Title

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百六十八题(1)题目英文:Given a positive integer, return its corresponding column title as appear in an Excel sheet.中文:给定一个正整数,返回它在 Excel 表中相对应的列名...

2020-05-03 15:17:01 227

原创 leetcode python3 简单题167. Two Sum II - Input array is sorted

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百六十七题(1)题目英文:Given an array of integers that is already sorted in ascending order, find two numbers such that they add up to a specific t...

2020-05-03 14:14:29 169

leetcode python3 简单题160. Intersection of Two Linked Lists

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百六十题(1)题目英文:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two ...

2020-05-03 14:01:44 235

原创 leetcode python3 简单题155. Min Stack

**# 1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百五十五题(1)题目英文:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) – Push element...

2020-05-03 10:34:28 165

原创 leetcode python3 简单题141. Linked List Cycle

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百四十一题(1)题目英文:Given a linked list, determine if it has a cycle in it.To represent a cycle in the given linked list, we use an integer pos...

2020-05-02 22:39:14 186

原创 leetcode python3 简单题136. Single Number

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百三十六题(1)题目英文:Given a non-empty array of integers, every element appears twice except for one. Find that single one.Note:Your algorithm ...

2020-05-02 22:07:53 272

原创 leetcode python3 简单题125. Valid Palindrome

1.编辑器我使用的是win10+vscode+leetcode+python3环境配置参见我的博客:链接2.第一百二十二题(1)题目英文:

2020-05-02 21:43:23 206

相关向量机RVM_MATLAB

相关向量机RVM_MATLAB,有代码注释的

2018-09-16

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除