1. k_fold = KFold(n_split, shuffle) 构造KFold的索引切割器 k_fold.split(indices) 对索引进行切割。 参数说明:n_split表示切割的份数,假设切割的份数为10,那么有9份是训练集有1份是测试集,shuffle是否进行清洗,indices ...
分类:
编程语言 时间:
2019-08-14 17:15:43
阅读次数:
598
恢复内容开始 1. k_fold = KFold(n_split, shuffle) 构造KFold的索引切割器 k_fold.split(indices) 对索引进行切割。 参数说明:n_split表示切割的份数,假设切割的份数为10,那么有9份是训练集有1份是测试集,shuffle是否进行清洗, ...
分类:
编程语言 时间:
2019-08-14 17:10:38
阅读次数:
360
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
其他好文 时间:
2019-08-10 17:01:29
阅读次数:
75
2、创建仓库 备份数据之前,要创建一个仓库来保存数据,仓库的类型支持Shared filesystem, Amazon S3, HDFS和Azure Cloud。下面以文件系统为例 3、备份索引 如果只想备份部分索引的话,可以加上indices 参数: 5 、查看备份信息 参考:https://ww ...
分类:
其他好文 时间:
2019-08-04 01:22:52
阅读次数:
111
Section 1 基本概念: Index(indices) 相当于 关系型数据库的 table, document 相当于关系型数据库的 row, 还有一个type的概念(可以理解为table的schema)是属于 index的,一个index 只能有一种type, ES怎么扩展? 用shards ...
分类:
其他好文 时间:
2019-08-03 11:07:04
阅读次数:
63
Problem describe:https://leetcode.com/problems/two-sum/ Given an array of integers, return indices of the two numbers such that they add up to a speci ...
分类:
编程语言 时间:
2019-07-13 19:56:32
阅读次数:
107
检查集群运行情况: GET -> localhost:9200/_cat/health?v 查看集群节点列表: GET -> localhost:9200/_cat?nodes 查看所有指数: GET -> localhost:9200/_cat?indices?v 创建索引: PUT -> loc ...
分类:
其他好文 时间:
2019-07-03 13:36:27
阅读次数:
117
Given a string s and a non-empty string p, find all the start indices of p's anagrams in s. Strings consists of lowercase English letters only and the ...
分类:
其他好文 时间:
2019-06-30 18:40:51
阅读次数:
119
Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the ...
分类:
其他好文 时间:
2019-06-13 20:27:21
阅读次数:
120