发布时间:2017-04-25 20:44:40
Here’s a simple django view which creates a PIL image on the fly, and returns it as a PNG image:from django.utils.httpwrappers import HttpResponse from PIL import Image import randomINK = "red", "blue", "green", "yellow" def image(request): # ... create/load image here ... image = Image.ne.........【阅读全文】
发布时间:2017-04-22 21:40:44
错误: 编码GBK的不可映射字符解决方案:javac Main.java -encoding UTF-8错误: 非法字符: '\ufeff'将UTF-8格式文件另存为其他格式,再另存为UTF-8格式......【阅读全文】
发布时间:2017-04-21 16:36:54
1. 香农熵(Shannon entropy)信息熵(又叫香农熵)反映了一个系统的无序化(有序化)程度,一个系统越有序,信息熵就越低,反之就越高。如果一个随机变量 X 的可能取值为 X={x1,x2,…,xn},对应的概率为 p(X=xi),则随机变量 X 的信息熵为:H(X)=?∑i=1np(xi)logp(xi).........【阅读全文】
发布时间:2017-04-21 16:33:41
另外一个输入是labels,它的shape也是[batch_size, num_classes],就是我们神经网络期望的输出。it performs a softmax on logits internally for efficiency。......【阅读全文】
发布时间:2017-04-21 15:38:05
is simply a variable that we will assign data to at a later date. It allows us to create our operations and build our computation graph, without needing the data. In TensorFlowfeed......【阅读全文】