上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页
摘要: %env Get, set, or list environment variables. Usage: %env: lists all environment variables/values %env var: get value for var %env var val: set value 阅读全文
posted @ 2020-12-17 15:42 cup_leo 阅读(432) 评论(0) 推荐(0) 编辑
摘要: viterbi过程1.hmm类似。 状态转移,发射概率2.逐次计算每个序列节点的所有状态下的概率值,最大概率值对应的index。3.概率值的计算,上一个节点的概率值*转移概率+当前概率值。4.最后取出最大的一个值对应的indexes 难点: 理解viterbi的核心点,在于每个时间步都保留每一个可视 阅读全文
posted @ 2020-12-16 14:56 cup_leo 阅读(577) 评论(0) 推荐(0) 编辑
摘要: #找出target中包含字符1的列 y = test[test['target'].str.contains('1')] 报错:ValueError: cannot index with vector containing NA / NaN values 解决方法: #找出target中包含字符1的 阅读全文
posted @ 2020-11-11 17:06 cup_leo 阅读(993) 评论(0) 推荐(0) 编辑
摘要: query_phone = { "size":100, "query":{"nested": { "path":"contact", "query" : {"term":{ "contact.customer_number.keyword":'ZiihANGooRDG2K7ME8Fvzg=='} } 阅读全文
posted @ 2020-11-10 15:06 cup_leo 阅读(2882) 评论(0) 推荐(0) 编辑
摘要: 我找到了两种方法来做到这一点,都涉及到monkey补丁IPython。 #1。这将只输出异常类型和消息,但在输出区域以红色突出显示: from __future__ import print_function # for python 2 compatibility import sys ipyth 阅读全文
posted @ 2020-11-05 09:41 cup_leo 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 1、python 操作 ElasticSearch 入门 连接地址 阅读全文
posted @ 2020-11-04 15:16 cup_leo 阅读(71) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/weixin_51000954/article/details/109014403 https://blog.csdn.net/weixin_51000954/article/details/109014403 阅读全文
posted @ 2020-11-02 08:57 cup_leo 阅读(171) 评论(0) 推荐(0) 编辑
摘要: http://www.voidcn.com/article/p-qnsvatou-byu.html string = ''' (ROOT (S (NP (NN Carnac) (DT the) (NN Magnificent)) (VP (VBD gave) (NP (DT a) (NN talk) 阅读全文
posted @ 2020-11-01 00:57 cup_leo 阅读(452) 评论(0) 推荐(0) 编辑
摘要: def submit(path): data = [] for line in open(path): if not line.strip(): continue _ = json.loads(line.strip()) res = predict(_["text"]) data.append(js 阅读全文
posted @ 2020-10-30 14:31 cup_leo 阅读(295) 评论(0) 推荐(0) 编辑
摘要: def execute_sql_file(sql_path): conn_alg,cur_alg = conn_mysql("mysql_algorithm",11433) with open(sql_path,'r+') as f: # every sql job last line marked 阅读全文
posted @ 2020-10-26 14:37 cup_leo 阅读(2209) 评论(0) 推荐(1) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 22 下一页