import numpy as npimport pandas as pdimport matplotlib.pyplot as pltfrom scipy import statsimport mathdf=pd.read_csv("hfda_ch10_employees.csv")#print( ...
分类:
编程语言 时间:
2020-07-16 21:41:06
阅读次数:
87
Minimum Size Subarray Sum Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which th ...
分类:
其他好文 时间:
2020-07-16 18:17:25
阅读次数:
57
pandas的apply函数是自动根据function遍历每一个数据,然后返回一个数据结构为Series的结果 DataFrame.apply(func, axis=0, broadcast=False, raw=False, reduce=None, args=(), **kwds) 参数解释: ...
分类:
移动开发 时间:
2020-07-16 12:31:46
阅读次数:
104
DataRow [] dr=pageSet.PageSet.Tables[0].Select("TradeType='存款'"); StoreGold = dr.Sum<DataRow>(r => (long)r["transScore"]); DrawGold = pageSet.PageSet. ...
分类:
其他好文 时间:
2020-07-16 12:25:06
阅读次数:
94
题目链接:https://pintia.cn/problem-sets/994805342720868352/problems/994805363914686464 模拟题,新改的测试数据需要long double型,如果测试点3无法通过,可以参考以下代码: #include<bits/stdc++ ...
分类:
其他好文 时间:
2020-07-16 12:08:19
阅读次数:
60
题意:E、Maximum Subsequence Value 题意: 给你n 个元素,你挑选k个元素,那么这个 k 集合的值为 ∑2i,其中,若集合内至少有 max(1,k?2)个数二进制下第 i 位为 1,则第 i 位有效,求一个集合可以得到的最大值。 题解: 应该是一种贪心 当k==3的时候,那 ...
分类:
其他好文 时间:
2020-07-16 12:01:31
阅读次数:
44
win中查看MD5值:certutil -hashfile 文件名 MD5查看 SHA1certutil -hashfile 文件名 SHA1查看SHA256certutil -hashfile 文件名 SHA256linux中 md5sum 文件名 ...
分类:
其他好文 时间:
2020-07-16 11:54:02
阅读次数:
79
Part1 Of all the changes that have taken place in English-language newspapers during the past quarter-century, perhaps the most far-reaching has been ...
分类:
其他好文 时间:
2020-07-16 11:45:14
阅读次数:
85
题面 题意:自己看去 题解:先考虑一个暴力的树形dp。设$f_{i,j}$表示节点$i$权值为$j$的概率。那么对于所有有两个儿子的节点$i$,设它的两个儿子是$x,y$,那么对于所有在$x$中出现的权值$j$,有$f_{i,j}=f_{x,j}\times ((p_i \times \sum_f_ ...
分类:
其他好文 时间:
2020-07-16 00:22:06
阅读次数:
52
1. 均方误差MSE 2. 平均绝对误差MAE # true: 真目标变量的数组 # pred: 预测值的数组 def mse(true, pred): return np.sum((true - pred)**2) def mae(true, pred): return np.sum(np.abs ...
分类:
其他好文 时间:
2020-07-16 00:09:41
阅读次数:
74