- 博客(407)
- 资源 (22)
- 收藏
- 关注
原创 190326-Matlab求曲线二阶最大最小曲率及其位置
Determine the location of max curvature for a set of data绘制图形%%![在这里插入图片描述](https://img-blog.csdnimg.cn/20190326142215514.jpg?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_...
2019-03-26 14:27:35 1869
原创 190320-Matlab矩阵逐行进行函数运算
how to apply a function to all rows in a matrix? [duplicate]tmp.mA = reshape(1:9,3,3)arrayfun(@(n) myfun(A(n,:)), 1:size(A,1))function [b] = myfun(data)b = data(1)+2*data(2)+3*data(3);end&...
2019-03-20 13:25:56 1506
原创 190314-Matlab中的Git管理
怎样在matlab中使用git进行版本控制?Git中文文档如何方便的对Matlab中的代码进行版本管理删除github中某个文件夹
2019-03-14 17:07:30 1899
原创 190314-3步添加新字体到Ubuntu系统
Choose a good font – your eyes will thank youHow To Install New Fonts In Ubuntu 18.04 and 16.04Step-1:安装font-managersudo apt-get install font-manegerStep-2:百度或谷歌需要的tiff字体并下载,例如:http://ftp.gnome...
2019-03-14 15:26:22 424
原创 190314-Matlab热编码及标签转换
代码%%clc;clear;% ind2vecind = [1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9]; % 标签需要是行向量,不能是列向量,且不能有非正数n = length(unique(ind));fprintf('将标签转换成热编码\n')vec = full(ind2vec(ind,n))' % ind2vec(): 将ind标签转换成v...
2019-03-14 10:07:31 2118
原创 190313-1行命令裁剪Matlab图像空白及调整子图间距
【1】https://blogs.mathworks.com/pick/2012/12/21/figure-margins-subplot-spacings-and-more/【2】https://ww2.mathworks.cn/matlabcentral/fileexchange/34055-tightfig-hfig使用方法参考1下载方法参考2# 1行命令裁剪Matlab图像空白...
2019-03-13 14:32:59 1224
原创 190313-Matlab矩阵映射
浅析image,imagesc,imshow的用法% 10个样本,每个样本的维度为5 r = rand(10,5) % mapminmax(): 对矩阵的每一行进行线形映射到 [min, max],mapped1依旧是double类型mapped1 = mapminmax(r',0,255)' % uint8():这种方式把I转化成uint8,负数会被归零,超过255的被置为255,而且...
2019-03-13 10:38:17 4350
原创 190312-2步在MacOs上解决Matlab-2018b闪退问题
Why do I get ‘MATLAB quit unexpectedly’ when starting R2018a in High Sierra?MATLAB 2018a -MacOS 10.13.5 - Crash on application startcmd+space打开terminal带参数-nosplash打开matlab/Applications/MATLAB_R2...
2019-03-12 09:46:18 6129
原创 190311-3种方法Matlab结构体struct元素的索引
方法1:Access elements/fields from a struct方法2:getfield% 载入数据mat = load('237.mat')%获取所有`fields`的名称fieldsname = fields(mat)% 如果要取`X237_DE_time`% 方法1:mat.(`X237_DE_time`)% 方法2:getfield(mat,...
2019-03-11 09:26:29 9325
原创 190307 5步MacOs配置Gitbook+1步导出Pdf+1篇Github同步方法
参考文献:Mac环境安装Gitbook,并导出PDF教程安装步骤: 1.安装 node.jshttps://nodejs.org/en/检测是否安装成功及安装版本:terminal中输入node -vMacBook-Pro:~ liuguokai$ node -vv10.15.3 2.安装 Gitbooksudo npm install gitbook-cli -g 3....
2019-03-07 10:55:03 602
原创 190122 Python如何排序字典
How can I sort a dictionary by key?In [1]: import collectionsIn [2]: d = {2:3, 1:89, 4:5, 3:0}In [3]: od = collections.OrderedDict(sorted(d.items()))In [4]: odOut[4]: OrderedDict([(1, 89), (2,...
2019-01-22 16:00:46 429
原创 190121 矩阵除法中的陷阱(left division vs inv in matlab and python)
Reference:NumPy for MATLAB userswhat is the difference between inv() and \ (the backslash) ?inv() vs \If A is an n x n matrix and B is n x m, solving A\B is tantamount to solving mn equations i...
2019-01-21 22:10:53 936
原创 190120 Skelarn.preprocessing中的MinMaxScaler()数据标准化
#!/usr/bin/env python3# -*- coding: utf-8 -*-"""Created on 2019-01-20@author: liuguokai"""import numpy as npfrom sklearn.preprocessing import MinMaxScalerde
2019-01-20 11:38:34 3053
原创 190120 Python中三倍引号的作用
Why does python use unconventional triple-quotation marks for comments?
2019-01-20 11:34:05 585
原创 181227 3步操作校园网连接HP惠普打印机
**前提:**在控制面板中通过添加打印机查找并安装好打印机的驱动,可打印测试页Step1:通过Hp打印机面板操作,找到打印机IPv4的地址Step2:在cmd命令窗口输入ipconfig并记录IPv4地址以及zi子网掩码Step3:在浏览器输入打印机IPv4地址,在网络菜单访问控制列表中添加自己的IPv4地址以及zi子网掩码,最后点击应用。最后开启愉快的打印吧!...
2018-12-27 16:38:34 6015 2
原创 181225 Matlab图解峰度kurtosis与偏度skewness
峰度kurtosis:用于度量x偏离某分布的程度。正太分布的峰度是3;当时间序列的曲线峰值比正太分布的高时,峰度大于3;当比正太分布的低时,峰度小于3。偏度skewness:用于衡量x的对称性。对于正太分布,偏度为0;若偏度为正,则x均值左侧的离散度比右侧弱;若偏度为负,则x均值左侧的离散度比右侧强。正态分布的偏度系数和峰度系数...
2018-12-25 15:15:05 17942 5
原创 181218 三步操作从Word+Excel+PPT中无损提取图片文件
第一步:重命名word、Excel、PPT文件,修改文件后缀为zip第二步:解压重命名后的文件第三步:从解压后的文件中找到media文件夹,图片就在其中
2018-12-18 18:08:51 2008
原创 181218 OneHotEncoder与numpy数组保存为mat文件
将[0 1 2 3 4 5 6 7 8 9]标签转换成OneHot编码from sklearn.preprocessing import OneHotEncoderohe = OneHotEncoder()ohe.fit(np.arange(10).reshape(-1,1))labels = ohe.transform(labels).astype('uint8').toarray(...
2018-12-18 18:02:46 1328
原创 181216 MacOs上如何将多页PDF文件合成打印在一张PDF表单上面
Youtube视频:Mac | Printing pdf document with multiple pages per sheet使用MacOs默认的PDF阅读器文件-打印布局选择每张纸需要打印的页数左下角-另存为PDF
2018-12-16 10:20:44 10865
原创 181210 MacOs一行命令安装brew
官网:https://brew.sh命令如下:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"安装过程Last login: Mon Dec 10 19:57:40 on ttys000deeplearningdeiMac:~ brucel...
2018-12-10 20:32:07 826
原创 181205 Matlab初始化启动慢的解决方法
Matlab2017b启动慢,一直处于初始化状态的解决办法在桌面快捷方式右键→属性→目标→添加license_standalone.lic文件路径注意添加引号E:\Programs\Matlab2018\bin\matlab.exe -c "E:\Programs\Matlab2018\licenses\license_standalone.lic"...
2018-12-05 10:15:44 9936 3
原创 181203 PyCharm在Debug模式中交互式输入命令
在Debug模式中:Console-Show Python Prompt,然后输入需要的命令即可进行交互式操作。
2018-12-03 11:26:39 5633
原创 181122 MacOs中查看隐藏文件以及访问英文的Library地址
打开与关闭隐藏文件:Shift+Command+.,最后一个.是英文句号中文系统中的Library文件夹即隐藏着的资源库,例如:Macintosh HD-用户-yourname-资源库(Library)-Application Support-Sublime Text3-Packages-User...
2018-11-22 14:09:15 278
原创 181122 MacOs下Sublime Text3 配置Anaconda的Python解释器
Windows下sublime3配置Python编译器快速编译python程序use conda environment in sublime text 3{ "cmd": ["/anaconda3/envs/fcn/bin/python", "-u", "$file"], &
2018-11-22 13:50:21 2413 3
原创 181116 PyCharm-Linux安装及图标设置
Ubuntu 16 安装pycharm专业破解版方法Ubuntu安装Pycharm并添加系统快捷启动图标
2018-11-16 11:09:58 995
原创 181105 MacOS下mlx文件的放大与缩小
问题:两指双击控制面板的时候,发现mlx文件的字体变小确找不到放大的方式。方法:command + 放大字体command - 缩小字体
2018-11-05 10:50:41 627 1
原创 181016 Python内置函数__getitem__,__str__,__repr__,__len__
Python内置函数__getitem__: 定义该内置函数后,类的实例对象可以按列表方式返回元素。__str__:1⃣️无__repr__的时候,command中的实例对象将返回内存地址,command 中print(instance)将会返会__str__中定义的字符串。2⃣️有__repr__的时候,command中的实例对象instance将返回__repr__中定义的字符...
2018-10-16 16:38:15 742
原创 181011 MacOs与Ubuntu经过Git后PyCharm快捷键失效的处理方法(不用重装系统!)
问题描述如下:MacOs上编写代码,Git到Gitlab上面从Gitlab上面GitClone到Ubuntu系统Ubuntu上的PyCharm中的快捷键失效Ubuntu其他软件上的快捷键正常原因:PyCharm在Git上穿的时候也会将配置文件上传,MacOs上面的快捷键的配置和Ubuntu上面的不同。解决方式:Settings→Keymap→左上角选择Default即可(Ub...
2018-10-11 20:17:25 426
原创 181008 5步实现PyCharm本地编辑文件-服务器同步并运行文件
在PyCharm中执行以下5步:Step1:Ctrl+,打开项目偏好Preference设置Step2:左边点击Preject Interpreter,右边点击小齿轮-Add Python InterpreterStep3:左边点击SSH Interpreter,右边点击New server configurationStep4:输入Host,再输入Username,随后输入密码Ste...
2018-10-08 14:49:55 1087
原创 181006 PyCharm分段执行代码
笔者发现在2018版本的PyCharm中可以类似Spyder的操作,通过在代码段之间添加#%%来进行分段操作:手动分段操作:点击代码段左边的绿色三角形自动分段操作:Ctrl+Enter逐段运行代码注意事项:有时候文件开头import后面开始即需要添加#%%,否则无法分段成功。...
2018-10-06 10:10:28 12916 4
原创 181003 MacOs下配置PyCharm与Gitlab
Pycharm 连接gitlab(Mac)图解利用PyCharm如何使用GitPycharm连接gitlab
2018-10-03 21:26:07 3039
原创 181002 MacOs远程连接Linux服务器
第一步:打开Linux上面的ssh170831 Ubuntu 开机自启动SSH+远程关机第二步:设置Mac上面的sshmac 远程ssh连接
2018-10-02 11:27:58 992
原创 180918 Ubuntu环境下的Matlab2018(全平台环境)的下载、安装与创建桌面图标
Matlab下载(全平台版本):[Windows] 矩阵实验室 MathWorks MATLAB R2018a for Win&Mac&Linuxhttps://www.52pojie.cn/thread-713126-1-1.htmlMatlab安装https://blog.csdn.net/davidhopper/article/details/797011...
2018-09-18 16:30:13 2558
原创 180808 Ubuntu下Vim配置Python编辑器
Python+Vim:天作之合最终效果: 主要插件: .vimrc配置文件set nocompatible " be iMproved, requiredfiletype off " required" set the runtime path to include Vundle and initializes...
2018-08-08 12:35:17 1654
原创 180807 16步Ubuntu下利用YouCompleteMe配置Anaconda+Vim自动补齐tensorflow+keras+pytorch
参考博客参考1-让vim支持python3的自动补全【促使我利用YouCompleteMe配置Anaconda环境】 参考2-Ubuntu16.04下配置YouCompleteMe【常规安装套路】 参考3-Ubuntu16.04 为vim安装YouCompleteMe插件【主要参考这篇文章成功安装YCM】 **参考4-**ycm_core loading issues on Ubuntu...
2018-08-08 00:22:36 2812 14
原创 180807 3步解决Ubuntu系统下git clone速度慢问题
ubuntu环境下使用git pull push代码缓慢的问题 Ubuntu使用git clone时,网速很慢,解决方法Step1: 打开文件ssh_config文件sudo vim /etc/ssh/ssh_configStep2: 修改GSSAPIAuthentication属性值yes为noGSSAPIAuthentication noStep3: 保存退出...
2018-08-07 17:02:09 6025 4
原创 180802 PyCharm调用Anaconda在Envs中已配置的虚拟环境(调用tensorflow、keras、pytorch)
Pycharm安装Ubuntu 16 安装pycharm专业破解版方法Anaconda有着良好的环境配置机制Pycharm有着良好的工程编程界面 Anconda虚拟环境创建-激活-安装工具包创建:利用conda create -n your_envs_name anaocnda python=3.5可在Anaconda内创建一个虚拟环境配置安装软件激活:利用sourc...
2018-08-02 18:21:33 3403 1
原创 180801 Anaconda安装及添加清华Pytorch镜像
Anaconda安装bash Anaconda2-4.4.0-Linux-x86_64.sh添加清华镜像conda config --add channels https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/conda config --add channels https://mirrors.tuna.ts...
2018-08-01 12:53:26 31671 3
原创 180731 Mean average precision (MAP)资料整理及其解释(待整理)
Medium-mAP (mean Average Precision) for Object Detection知乎-mean average precision(MAP)在计算机视觉中是如何计算和应用的?David9-David9的普及贴:机器视觉中的平均精度(AP), 平均精度均值(mAP), 召回率(Recall), 精确率(Precision), TP,TN,FP,FNMatl...
2018-07-31 16:34:12 370
recurrent neural network without a phd
2018-04-16
A jupyter note result html file for Surface defect detection
2018-03-04
MNIST_data
2018-02-05
Chrome and SurfEasy Extension for Linux
2017-12-02
斯坦福大学凸优化课程Convex Optimization字幕及Youtube字幕下载代码
2017-11-08
tensorflow_gpu-1.2.0rc2-cp36-cp36m-win_amd64.whl
2017-06-14
tensorflow-1.2.0rc2-cp36-cp36m-win_amd64.whl
2017-06-14
2017大数据发展趋势Top10白皮书
2017-01-12
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人