这里有几个重要参数需要注意: axis的值取决于按照input的哪一个维度进行BN,例如输入为channel_last format,即[batch_size, height, width, channel],则axis应该设定为4,如果为channel_first format,则axis应该设定 ...
分类:
其他好文 时间:
2020-04-28 09:57:42
阅读次数:
60
方法一:Pattern和Matcher对正则表达式的运用、arraylist的元素添加以及和数组间的转换: import java.util.ArrayList; import java.util.List; import java.util.Scanner; import java.util.re ...
分类:
其他好文 时间:
2020-04-27 19:18:24
阅读次数:
47
采用lightGBM模型 准备数据与训练 calendar.csv数据集导入。 该数据数聚包含物品的售卖时间与物品类型 date: The date in a “y-m-d” format. wm_yr_wk: The id of the week the date belongs to. week ...
分类:
其他好文 时间:
2020-04-27 13:19:07
阅读次数:
143
Vue CLI3 移动端适配 【px2rem 或 postcss-plugin-px2rem】 今天,我们使用Vue CLI3 做一个移动端适配 。 前言 首先确定你的项目是Vue CLI3版本以上的。 一、移动端适配包 1、安装移动端适配包 npm i lib-flexible -S 2、在mai ...
分类:
移动开发 时间:
2020-04-27 13:05:15
阅读次数:
73
最近工作中,遇到了一个问题,最后发现是在使用string.Format的时候,由于查询条件太多,导致赋值的时候出错。 string sqlOne = string.Format(@" select * from MD_Person where Code='{0}' AND Role=N'{1}' A ...
DecimalFormat df =new DecimalFormat(",##0.00"); df.format("123456.12556") // 结果: 123,456.13 // freemarker写法 // ${plan.premium?string(",##0.00")} ...
分类:
其他好文 时间:
2020-04-26 19:11:15
阅读次数:
59
代码 # for循环 for i in range(1,10): for j in range(1,i+1): print('{}*{}={}\t'.format(i,j,i*j),end = ' ') print('\n') for i in range(1,10): for j in range ...
分类:
其他好文 时间:
2020-04-25 16:59:36
阅读次数:
80
操作助手 Using System.Data.SQLite SQLiteConnection m_dbConnection; public SQLiteHelper() { //路径为同项目的sqlite文件夹下的db文件 string connectionstr = string.Format(@ ...
分类:
数据库 时间:
2020-04-25 11:01:11
阅读次数:
112
# coding:utf-8 import hashlib import datetime import lxml import pymysql import requests from lxml import etree import sys reload(sys) sys.setdefaulte ...
分类:
其他好文 时间:
2020-04-24 21:40:14
阅读次数:
451
说明:无意滋生事端,仅学习分享,如有侵权,立即删除 用到的模块:json、lxml的etree、time.ctime、requests 源码如下: import requests import time from lxml import etree import json class BiLiSpi ...
分类:
其他好文 时间:
2020-04-24 21:28:50
阅读次数:
145