• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
将者,智、信、仁、勇、严也。
Hi,我是李智华,华为-安全AI算法专家,欢迎来到安全攻防对抗的有趣世界。
博客园    首页    新随笔    联系   管理    订阅  订阅
2018年3月20日
leetcode 796. Rotate String
摘要: We are given two strings, A and B. A shift on A consists of taking string A and moving the leftmost character to the rightmost position. For example, 阅读全文
posted @ 2018-03-20 23:19 bonelee 阅读(406) 评论(0) 推荐(0)
leetcode 717. 1-bit and 2-bit Characters
摘要: We have two special characters. The first character can be represented by one bit 0. The second character can be represented by two bits (10 or 11). N 阅读全文
posted @ 2018-03-20 22:25 bonelee 阅读(199) 评论(0) 推荐(0)
leetcode 606. Construct String from Binary Tree
摘要: You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be rep 阅读全文
posted @ 2018-03-20 22:07 bonelee 阅读(143) 评论(0) 推荐(0)
confusion_matrix函数的使用
摘要: from:http://blog.csdn.net/m0_38061927/article/details/77198990 官方文档中给出的用法是 sklearn.metrics.confusion_matrix(y_true, y_pred, labels=None, sample_weight 阅读全文
posted @ 2018-03-20 16:37 bonelee 阅读(8247) 评论(0) 推荐(0)
spark groupByKey().mapValues
摘要: >>> rdd = sc.parallelize([("bone", 231), ("bone", 21213), ("jack",1)]) >>> rdd.groupByKey().map(lambda x: sum(x[1])).collect()[1, 21444]>>> rdd.groupB 阅读全文
posted @ 2018-03-20 16:34 bonelee 阅读(893) 评论(0) 推荐(0)
TFLearn 在给定模型精度时候提前终止训练
摘要: 拿来主义:看我的代码,我是在模型acc和验证数据集val_acc都达到99.8%时候才终止训练。 The EarlyStoppingCallback Class I show a proof-of-concept version of early stopping below. This is th 阅读全文
posted @ 2018-03-20 14:24 bonelee 阅读(2102) 评论(0) 推荐(0)
博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3