自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(11)
  • 收藏
  • 关注

原创 pandas new columns calc by multiple columns

不能直接使用apply或者map,这两个操作只能针对1列, 如果新的列等于两个旧的列经过函数处理后的结果,那么就要用如下写法(不用处理的话可以直接加减操作)map(function, column1, column2)def calc_time_interval(a,b): a = datetime.strptime(str(a),"%Y-%m-%d %H:%M:%S.%f") ...

2019-04-28 11:03:34 452

原创 Failure Diagnosis Using Decision Trees

paper link: https://ieeexplore.ieee.org/abstract/document/1301345Main ideaTrain decision trees on the request traces from time periods in which user-visible failures are present. Paths through the t...

2019-04-22 14:16:57 298

原创 windows 下使用conda安装xgboost问题

https://anaconda.org/search?q=xgboost可以看到conda在windows上不支持直接装xgboost这个包的,取而代之的是py-xgboost这个包conda install py-xgboost即可

2019-04-21 14:54:37 2235

原创 Windows 下安装conda可能遇到的各种问题

添加环境变量添加 anaconda\Scripspycharm配置pycharm 配置conda环境的时候添加已有的而不是创建新的安装包如果在命令行安装不要使用cmd,使用Anaconda prompt。不然会出现通信错误...

2019-04-21 14:23:31 2824

原创 Difference between anconda and conda

conda is the package manager. Anaconda is a set of about a hundred packages including conda, numpy, scipy, ipython notebook, and so on.You installed Miniconda, which is a smaller alternative to Anaco...

2019-04-21 13:15:56 148

原创 use toscalar() to make code more concise in Kusto

redundant codelet endTime = datetime(2019-04-10);let startTime = endTime - 10d;let targetNode =datatable(NodeId:string, EventTime:datetime)[ .........]| project NodeId;cluster('xxx').databas...

2019-04-20 12:27:12 233

原创 Call to iff(): @then data type (real) must match the @else data type (long)

codeiff(isnotempty(normal_count),normal_count,0)iff后面的两个备选项的数据类型要一致。normal_count 和 0的数据类型不一致导致的,要将0变成normal_count的数据类型。比如todouble(0)...

2019-04-16 10:09:18 772

原创 项集概念

频繁项集(Frequent Itemset)支持度大于某个阈值的项集最大频繁项集(Maximal Frequent Itemset)A是频繁项集且A的超集是非频繁项集,记为MFRI闭项集(close pattern)如果A的任何超集的支持度都不等于A,那么A是一个闭项集合,闭频繁项集合A即是闭项集,又是频繁项集。最大频繁项集一定是闭合频繁项集。...

2019-04-15 17:08:20 4151

原创 【Leetcode】3. Longest Substring Without Repeating Characters

Solutionpythonclass Solution(object): def lengthOfLongestSubstring(self, s): """ :type s: str :rtype: int """ """ The main idea is use two pointe...

2019-04-13 10:29:31 211

原创 Robustness of the Markov-Chain Model for Cyber-Attack Detection

The lowerprobability the observed activities receive from the Markov-chainmodel of the norm profile, the more likely the observed activitiesare anomalies resulting from cyber-attacks, and vice vers...

2019-04-08 09:05:25 347

原创 【Leetcode】 817. Linked List Components

方法1将G中的元素放入set 或者字典中用于查找。遍历链表, 链表中的元素被计数的条件是,如果当前元素在G中且下一个元素不在G中(或者为None),那么当前的元素属于一个component。class Solution: def numComponents(self, head: ListNode, G: List[int]) -> int: set_G = s...

2019-04-01 08:57:31 198

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除