- 博客(8)
- 收藏
- 关注
原创 tensorflow--交叉熵cross_entropy的两种实现方式
交叉熵多用于分类问题,在分类问题中的效果很好。下面介绍tensorflow中两种交叉熵的实现方式: 首先介绍几个概念 : logits: 未归一化的概率, 一般也就是 softmax层的输入 softmax:可以理解为一个归一化函数,在计算交叉熵之前都要用此函数进行激活 cross_entropy:交叉熵 交叉熵两种方式来实现:1、tf.nn.softmax_cross_entro
2017-12-29 17:12:19 3931 1
原创 python--leetcode 492. Construct the Rectangle
For a web developer, it is very important to know how to design a web page's size. So, given a specific rectangular web page’s area, your job by now is to design a rectangular web page, whose length L
2017-12-08 21:48:16 648
原创 python--leetcode598. Range Addition II
Given an m * n matrix M initialized with all 0's and several update operations. Operations are represented by a 2D array, and each operation is represented by an array with two positive integers a
2017-12-08 21:05:46 656 2
原创 python--leetcode538. Convert BST to Greater Tree
Given a Binary Search Tree (BST), convert it to a Greater Tree such that every key of the original BST is changed to the original key plus sum of all keys greater than the original key in BST. Exam
2017-12-07 20:40:51 780
原创 python--leetcode 733. Flood Fill
An image is represented by a 2-D array of integers, each integer representing the pixel value of the image (from 0 to 65535). Given a coordinate (sr, sc) representing the starting pixel (row and
2017-12-07 19:56:44 1149
原创 java--spring boot查询本月数据xml语法
最近用spring的时候在xml里写了个逻辑,只查询这个月的所有数据。上网搜了半天,也很少有人能说清楚这个语法到底怎么写。 所以这里最后解决了,给大家科普一下: 首先在service里的写法,把要查询的条件放进map: @Override public float getSumMonthMoney(Integer userType, Integer billtype,Stri
2017-12-06 20:18:22 1184
原创 java--spring boot微信支付服务端实现含代码(app支付、扫码支付等)
最近在弄支付宝、微信支付等的事,发现这两家的文档都写得很差,demo也让人看的云里雾里。所以写篇博客,来尽量减少后来的同学走的弯路。 首先,若是要做app支付的话,在微信第三方平台申请APP,若是安卓的话上传你的keystore和包名,ios上传bundle id,微信会生成相应的签名。 然后前往微信商户平台,拿到要做支付必要的各种id和密钥。 请看以下配置代码: package co
2017-12-06 20:06:47 18507 39
原创 python--leetcode606. Construct String from Binary Tree
最近确实忙啊,半个月没上过leetcode了,今天趁代码暂时写完了来刷一刷题。不多说了看题。 You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be
2017-12-06 19:39:45 996
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人