自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

Mizuha's blog

To be or not to be, that is a question.

  • 博客(35)
  • 收藏
  • 关注

原创 docker command

commandlocal import and exportsudo docker save -o **.tar image_namesudo docker load --input **.tar

2019-04-18 09:44:48 216

原创 git commands

Basic Git commandsHere is a list of some basic Git commands to get you going with Git.For more detail, check out the Atlassian Git Tutorials for a visual introduction to Git commands and workflows...

2019-03-28 19:31:39 213

原创 Grammarly for Writing

GrammlyA plugin help you better writing. Grammly DocumentSave Your Valuable TimeGrammarly significantly cuts down on all the extra time you spend rereading and rewriting by focusing you on wh...

2019-03-19 22:03:31 1071

原创 How to use the server for ubuntu

如何登陆GPU服务器:窗口操作:创建窗口: screen -S chunyan (screen’s name)激活窗口: screen -r chunyan (screen’s name)查看窗口序列: screen -ls退出窗口: Ctrl + A + Dkill窗口:screen -S screenname -X quitscreen -S yourname -> 新建一...

2019-03-12 17:41:22 202

原创 Office software

Office softwarecommercial softwareMicrosoft OfficeMicrosoft Office is a family of client software, server software, and services developed by Microsoft. It was first announced by Bill Gates on Aug...

2019-03-12 17:07:38 635

转载 beamer

最基本的框架\documentclass{beamer}\usepackage[english]{babel} %如果去掉,中英混合会出错\usepackage[noindent]{ctex} %可使用 \usepackage{CJK}\usepackage{beamerthemesplit}% Or whatever. Note that the encoding...

2019-01-10 16:31:00 1795

原创 yield for python

yield for pythona example of codedef fun(): for i in range(20): x = yield i print('good', x, i)if __name__ == '__main__': a = fun() a.__next__() a.__next__() x1...

2018-12-14 17:25:13 254

原创 A script for download all papers on ICML conference

A script# coding=utf-8from multiprocessing import Poolimport requestsfrom bs4 import BeautifulSoupimport tracebackimport reimport osimport pdbprefix = 'http://proceedings.mlr.press/v80/'sav...

2018-12-13 16:27:07 240

原创 python @

python @a example of codedef func1(a): def b(*args, **kwargs): print('a = ', a) output = a(*args, **kwargs) output = output ** 2 print('func1 =', output) ...

2018-12-13 10:45:54 2379

原创 curl

curlcommand line tool and library for transferring data with URLsSupportsDICT, FILE, FTP, FTPS, Gopher, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMB, SMBS, SMTP, S...

2018-12-11 15:55:15 218

原创 GNU Wget

GNU WgetIntroduction to GNU WgetGNU Wget is a free software package for retrieving files using HTTP, HTTPS, FTP and FTPS the most widely-used Internet protocols. It is a non-interactive commandline...

2018-12-11 15:46:33 247

原创 *args and **kwargs in python function

*args and **kwargs in python functionan exampledef func(*args, **kwargs): print ('args =', args) print ('kwargs = ', kwargs) print ('-----------', flush = True)if __name__ == '__main_...

2018-12-05 16:27:49 222

原创 Math Font in LaTex

math fontusedmathbb:blackboard boldmathcal:calligraphymathrm:math romanmathbf:math boldfaceothermathsfmathttmathitwidehatwidetildeoverlineillustration\begin{equation}\begin{aligned}&am...

2018-11-14 11:38:11 925

原创 Math Symbol in LaTex

math symbols1234

2018-11-14 11:24:49 805

原创 LaTex presentation

LaTex presentationPowerPointIt is usually used to create presentation.LaTexLaTeX can be used for creating presentations.i) WikiTemplatei) ShareLaTexii) overleafii) LaTexTemplate

2018-11-02 10:04:32 657

转载 Some tricks on Jupyter Notebook

27 个Jupyter Notebook的小提示与技巧Jupyter notebook, 前身是 IPython notebook, 它是一个非常灵活的工具,有助于帮助你构建很多可读的分析,你可以在里面同时保留代码,图片,评论,公式和绘制的图像。Jupyter具有非常强的可扩展性,支持很多编程语言,并且易于部署到你的个人电脑和几乎所有的服务器上 -- 你只需要使用ssh或http接...

2018-11-02 09:56:40 238

原创 convert image format

#!/usr/bin/env python3.4import osimport reimport numpy as npimport uuidfrom scipy import miscimport numpy as npfrom PIL import Imageimport sysimport matplotlib.pyplot as plt def read(file...

2018-10-12 11:43:04 376

原创 python function for list: remove, del, pop

python function for listremove()list.remove(value)list = [2, 3, 4, 5, 6, 3] print(list)>> [2, 3, 4, 5, 6, 3]list.remove(3)print(list)>>[2, 4, 5, 6, 3]del()del list[index]list ...

2018-10-09 16:25:46 155

原创 g++ and gcc version

g++ and gcc version in Ubuntucheck versiongcc --versiong++ --versionInstall versionsudo apt-get install -y gcc-4.7sudo apt-get install -y g++-4.7Update versioncd /usr/binsudo rm g...

2018-08-20 20:56:38 573

原创 One-hot function in PyTorch

One-hot function implementation in PyTorchMethod1: use scatter_ functionlabels = [0, 1, 4, 7, 3, 2]one_hot = torch.zeros(6, 8).scatter_(dim = 1, index = labels, value = 1)Method2: use index...

2018-08-13 14:47:43 1561 2

原创 tf.app.flags

tf.app.flagstf.app.flags defines some parameter. A simple example:import tensorflow as tfFLAGS = tf.app.flags.FLAGStf.app.flags.DEFINE_float('learning_rate', 0.01, 'Initial learning rate.')tf....

2018-08-04 23:02:55 417

原创 argparse

python package: argparseThe following is a simple usage example that sums integers from the command-line and writes the result to a file::parser = argparse.ArgumentParser(description='sum the inte...

2018-08-04 22:50:26 388

原创 CSDN markdown编辑器

欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦:Markdown和扩展Markdown简洁的语法代码块高亮图片链接和图片上传LaTex数学公式UML序列图和流程图离线写博客导入导出Markdown文件丰富的快捷键快捷键加粗 Ctrl + B 斜体 Ctrl + I...

2018-07-20 11:05:49 97

原创 Graph Visualization

import networkx as nximport matplotlib.pyplot as pltimport scipy.io as sioimport numpy as npgraph = sio.loadmat('./graph_sub_obj.mat')classes = np.asarray(graph['classes'], dtype = np.str)grap...

2018-07-20 10:51:46 640

原创 Jupyter Notebook in Docker on Server

#生成jupyter配置文件,这个会生成配置文件.~/.jupyter/jupyter_notebook_config.pyjupyter notebook --allow-root --generate-config#使用ipython生成密码In [1]: from notebook.auth import passwdIn [2]: passwd()Enter password: ...

2018-07-20 10:50:52 510

原创 Vim Setting

source $VIMRUNTIME/vimrc_example.vimsource $VIMRUNTIME/mswin.vimbehave mswinset diffexpr=MyDiff()function MyDiff() let opt = '-a --binary ' if &diffopt =~ 'icase' | let opt = opt . '-i '...

2018-07-20 10:50:46 241

原创 Embedding Representation Visualization

import numpy as npfrom sklearn.manifold import TSNEimport matplotlib.pyplot as plt#embedding = np.loadtxt('word_embedding.txt', skiprows = 1)with open('word_embedding.txt', 'r') as fin: fir...

2018-07-20 10:50:30 310

原创 Image Visualization

import cPickleimport numpy as npimport matplotlib.pyplot as pltfrom matplotlib.patches import Rectangle#from src import api as vgfrom PIL import Image as PIL_Imageimport requestsfrom StringIO ...

2018-07-20 10:50:22 262

原创 check CUDA and CUDNN version

cuda 版本 cat /usr/local/cuda/version.txtcudnn 版本 cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2

2018-07-20 10:50:16 1428

原创 Visualization for error

% error visualizationclear all; clc;C = [80.72, 81.17, 80.45, 81.17, 80.81];C_idx = [1, 2, 3, 4, 5];C_e = [2.35, 3.25, 3.04, 2.14, 2.79];figure(1)errorbar(C_idx, C, C_e, '-s', 'LineWidth', 2,...

2018-07-20 10:50:10 143

原创 Read .PFM images

function D = pfmread(filename_pfm) fid = fopen(filename_pfm); fscanf(fid,'%c',[1,3]);cols = fscanf(fid,'%f',1);rows = fscanf(fid,'%f',1);fscanf(fid,'%f',1);fscanf(fid,'%c',1);D = fread(fid,[...

2018-07-20 10:50:04 1695

原创 Cmder configuration

Cmder是款解压即可用的软件,解压后将cmder文件夹放到你想放的位置,直接进入文件夹双击Cmder.exe即可使用。① ls命令不支持中文  1.Cmder右下角下拉列表中,打开settings面板,找到Startup -> Envrioment选项  2.在下面的文本框里添加一行:set LANG=zh_CN.UTF-8  3.然后重启cmder,使用ls命令查看目录下的文件,带中文的...

2018-07-20 10:49:57 201

原创 Software on Windows

工欲善其事,必先利其器!工欲善其事,必先利其器!工欲善其事,必先利其器!重而说三。 AutoHotKey: 神器!神器!神器!当然也得看使用者咯(^__^) 嘻嘻……详情请参看:Win下最爱效率神器:AutoHotKey。Listary: 本地搜索神器,当然还有别的作用,More&More。Launchy : 快速启动安装的应用程序,老而弥坚,有丝Mac下Spotlig...

2018-07-20 10:49:52 170

原创 Cmake: high version on Linux

1. 卸载已经安装的旧版的CMake[非必需]apt-get autoremove cmake12. 文件下载解压:wget https://cmake.org/files/v3.9/cmake-3.9.1-Linux-x86_64.tar.gz1解压:tar zxvf cmake-3.9.1-Linux-x86_64.tar.gz1查看解压后目录:tre...

2018-07-20 10:49:44 174

原创 Vundle + Vim

安装 Vim  在 Ubuntu 上安装 Vim 很简单,在终端敲入如下命令即可:$ sudo apt-get install vim1 安装 Vundle  由于 vim 缺乏默认的插件管理器,所有插件的文件都散布在 ~/.vim 下的几个文件夹中,这样导致各种插件的安装、更新、删除都需要自己手动处理,既麻烦费事,又可能出现错误。所以我们需要插件管理器的帮忙,常见的插件管...

2018-07-20 10:49:28 365

空空如也

空空如也

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

TA关注的人

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