Let's play the minesweeper game (Wikipedia, online game)! You are given a 2D char matrix representing the game board. 'M' represents an unrevealed min ...
分类:
其他好文 时间:
2018-11-08 18:30:03
阅读次数:
114
ndarray的基本操作 1.索引 基本索引:一维与list完全一致 多维同理 高级索引:整数数组形式的索引 2.切片 一维与列表切片完全一致 多维时同理 而且ndarray还支持用,一级一级往里找 使用两个:: 的形式 进行切片和翻转 3.变形 使用reshape函数,注意参数是一个tuple! ...
分类:
其他好文 时间:
2018-11-06 22:38:09
阅读次数:
294
【译】提升树算法的介绍(Introduction to Boosted Trees) 1. 有监督学习的要素 XGBoost 适用于 有监督学习 问题。在此类问题中,我们使用多特征的训练数据集 $x_i$ 去预测一个目标变量 $y_i$ 。在专门学习树模型前,我们先回顾一下有监督学习的基本要素。 E ...
分类:
编程语言 时间:
2018-10-27 21:14:56
阅读次数:
188
全指医药(SH000991) - 2018-10-18日,当前值:22.8575,平均值:36.88,中位数:36.27655,当前 接近历史新低。全指医药(SH000991)的历史市盈率PE详情 中证环保(SH000827) - 2018-10-18日,当前值:16.0137,平均值:28.73, ...
分类:
其他好文 时间:
2018-10-19 02:07:21
阅读次数:
630
题目 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 t ...
分类:
其他好文 时间:
2018-10-14 14:13:21
阅读次数:
145
一、NumPy简介 其官网是:http://www.numpy.org/ NumPy是Python语言的一个扩充程序库。支持高级大量的维度数组与矩阵运算,此外也针对数组运算提供大量的数学函数库。Numpy内部解除了Python的GIL(全局解释器锁),运行效率极好,是大量机器学习框架的基础库! 关于 ...
分类:
编程语言 时间:
2018-10-12 14:11:23
阅读次数:
1181
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca ...
分类:
其他好文 时间:
2018-10-10 01:04:50
阅读次数:
157
ELASTICSEARCH CRUD .NET PROVIDER 翻译自(原文地址: https://damienbod.com/2014/09/22/elasticsearch-crud-net-provider/) 本文介绍了ElasticsearchCRUD NuGet包的使用。Elastic ...
分类:
其他好文 时间:
2018-10-10 00:59:51
阅读次数:
193
学习博客:戳这里 题意:有一个 n 面的骰子,问至少看到所有的面一次的所需 掷骰子 的 次数的期望; 第一个面第一次出现的概率是p1 n/n; 第二个面第一次出现的概率是p2 (n-1)/n; 第三个面第一次出现的概率是p3 (n-2)/n; ... 第 i 个面第一次出现的概率是pi (n-i+1 ...
分类:
其他好文 时间:
2018-10-08 19:37:02
阅读次数:
223