目录
1.创建一个图
2.节点
3.边
4.查看图上点和边的信息
5.图的属性设置
6.点的属性设置
7.边的属性设置
8.不同类型的图(有向图Directed graphs , 重边图 Multigraphs)
9.图的遍历
10.图生成和图上的一些操作
11.图上分析
12.图的绘制
Forget_ever
php绘制简单QRCODE
从站点下载最新的phpqrcode包https://sourceforge.net/projects/phpqrcode/files/releases/
将这个模块包复制到对应的php目录下
Starting with the number 1 and moving to the right in a clockwise direction a 5 by 5 spiral is formed as follows:
21 22 23 24 25
20 7 8 9 10
19 6 1 2 11
18 5 4 3 12
17 16 15 14 13
It can be verified that the sum of the numbers on the diagonals is 101.
What is the sum of the numbers on the diagonals in a 1001 by 1001 spiral formed in the same way?
more >>遇到的最严重问题,优先列出:
新版本theano.tensor.signal包下已经不包含downsample模块,然后利用theano.tensor.signal.pool.pool_2d()方法代替了theano.tensor.signal.downsample.max_pool_2d()方法
1.实验所需的是theano框架
安装稳定的最前沿版本:
|
|
2.gpuarray 的安装:为了利用gpu加速运行
1)下载安装包
|
|
2)安装
For libgpuarray
|
|
For pygpu:
|
|
If you installed libgpuarray in a path that isn’t a default one, you will need to specify where it is. Replace the first line by something like this:
|
|
If installed globally under Linux (in /usr/local), you might have to run:
|
|
虽然没爱搞懂,但最后一步我没有执行
实验数据:在这个页面我下载的是GoogleNews-vectors-negative300.bin.gz
这个压缩包解压缩后就是已经用word2vec预处理好的数据
然后就是根据这个例子做实验
To process the raw data, run
|
|
where path points to the word2vec binary file (i.e. GoogleNews-vectors-negative300.bin
file). This will create a pickle object called mr.p
in the same folder, which contains the dataset in the right format.
Note: This will create the dataset with different fold-assignments than was used in the paper. You should still be getting a CV score of >81% with CNN-nonstatic model, though.
这一步会遇到一个很严重的问题就是前面说的新版本theano.tensor.signal包下已经不包含downsample模块,然后利用theano.tensor.signal.pool.pool_2d()方法代替了theano.tensor.signal.downsample.max_pool_2d()方法,所以需要修改conv_net_classes.py中相关的地方。
Example commands:
|
|
This will run the CNN-rand, CNN-static, and CNN-nonstatic models respectively in the paper.
GPU will result in a good 10x to 20x speed-up, so it is highly recommended. To use the GPU, simply change device=cpu
to device=gpu
(or whichever gpu you are using). For example:
|
|
CPU output:
|
|
GPU output:
|
|
###
more >>The Fibonacci sequence is defined by the recurrence relation:
Fn = Fn−1 + Fn−2, where F1 = 1 and F2 = 1.
Hence the first 12 terms will be:
F1 = 1
F2 = 1
F3 = 2
F4 = 3
F5 = 5
F6 = 8
F7 = 13
F8 = 21
F9 = 34
F10 = 55
F11 = 89
F12 = 144
The 12th term, F12, is the first term to contain three digits.
What is the index of the first term in the Fibonacci sequence to contain 1000 digits?
more >>Let d(n) be defined as the sum of proper divisors of n (numbers less than n which divide evenly into n).
If d(a) = b and d(b) = a, where a ≠ b, then a and b are an amicable pair and each of a and b are called amicable numbers.
For example, the proper divisors of 220 are 1, 2, 4, 5, 10, 11, 20, 22, 44, 55 and 110; therefore d(220) = 284. The proper divisors of 284 are 1, 2, 4, 71 and 142; so d(284) = 220.
Evaluate the sum of all the amicable numbers under 10000.
more >>tag:
缺失模块。
1、请确保node版本大于6.2
2、在博客根目录(注意不是yilia根目录)执行以下命令:
npm i hexo-generator-json-content --save
3、在根目录_config.yml里添加配置:
jsonContent: meta: false pages: false posts: title: true date: true path: true text: false raw: false content: false slug: false updated: false comments: false link: false permalink: false excerpt: false categories: false tags: true