加载中
Python中lambda的用法

https://www.cnblogs.com/evening/archive/2012/03/29/2423554.html

2018/11/03 14:08
156
java删除文件

import java.io.*; public class Main { public static void main(String[] args) { try{ File file = new File("c:\\test.txt"); if(file.delete()){ ......

2018/07/09 15:32
448
java遍历目录下的文件

class Main { public static void main(String[] args) { File dir = new File("C:"); String[] children = dir.list(); if (children == null) { System.out.prin......

2018/07/09 15:31
140
java split()函数中特殊字符的用法

最近写了个Java split()函数 参数为".",居然没有结果,如下 public static void main(String[] args){ String ip="192.168.1.111"; String[] temp=ip.split("."); ...

2018/05/25 16:17
330
logistic回归的损失函数以及向量化思想

转自 https://blog.csdn.net/xiaoxiangzi222/article/details/55097570 http://robinzheng.com/2015/08/13/%E9%80%BB%E8%BE%91%E5%9B%9E%E5%BD%92%E4%B8%8E%E8%AE%A1%E7%AE%97%E4%B8%AD%E7%9...

numpy.loadtxt()用法

从文本加载数据 参见https://www.jianshu.com/p/ef37f739b531

2018/04/24 09:40
2.2K
elasticsearch入库错误:gc overhead导致数据节点脱离集群

最近在进行ES的大规模数据入库操作,遇到了一个问题:数据量较小时入库正常;数据量较大时,在入库的过程中,经过一段时间会有部分数据节点脱离集群,查log日志如下: [2018-04-09T21:08:48...

elasticsearch入库错误 mapper_parsing_exception

最近在使用java api进行ES入库操作时,报如下错误: {"took":150,"errors":true,"items":[{"index":{"_index":"test","_type":"type1","_id":"794719072","status":400,"error":{"type":"map...

2018/04/11 10:05
6.6W
Linux通过进程号查看端口号

netstat -nap | grep 进程pid

2018/04/03 19:19
2.5W
Linux通过端口号查看进程号

Linux查看端口被占用的方法 lsof -i : 端口号。 lsof(list open files)是一个列出当前系统打开文件的工具。 netstat -tunlp | grep 端口号。 Netstat 命令用于显示各种网络相关信息,如网络...

2018/04/03 19:17
2.6K
学习TensorFlow之tf.contrib.rnn.BasicRNNCell()

TensorFlow版本号:1.1.0 tf.contrib.rnn.BasicRNNCell() __init__( num_units, input_size=None, state_is_tuple=True ) num_numits指代了有多少个隐藏层单元; activation默认...

2017/11/08 14:21
5.4K
学习TensorFlow之tf.placeholder()

TensorFlow版本号:1.1.0 placeholder的中文意思是占位符,类似于函数参数,运行时必须传入值。 def placeholder(dtype, shape=None, name=None): """Inserts a placeholder for a tensor...

2017/11/07 12:29
6.5K
elasticsearch5.4的mapping使用

在ES中,mapping相当于表结构,主要功能是告诉ES的每一个filed的数据类型,同时也告诉ES如何索引数据以及数据是否能被搜索到。   导入数据前要定义mapping表   ES有一个特点:可以不提前...

2017/10/24 17:34
854
查看TensorFlow的版本和存储位置

import tensorflow as tf tf.__version__ tf.__path_ 其中__是两个英文下划线

VMware workstation 实现NAT端口映射

在使用VMware的过程中,如果使用NAT上网方式,外网不可以直接访问内网的端口,具体来说,如下: 主机IP为 192.168.170.136,主机中的虚拟机的IP为192.168.183.129,现在希望外网访问虚拟机的...

2017/10/24 17:25
2.7K
FastJson 将JSONArray转换为List

JSONArray test=new JSONArray(); test.add("1"); test.add("2"); test.add("3"); test.add("4"); //将JSONArray转换为String String testString=JSONObject.toJSONString(test, Serializer...

2017/10/17 17:13
960

没有更多内容

加载失败,请刷新页面

返回顶部
顶部