2017年4月18日
摘要: Variance is closely related to overfitting. High variance is usually caused by training a powerful model but with limited data, in other words, traini 阅读全文
posted @ 2017-04-18 21:28 BettyBear 阅读(152) 评论(0) 推荐(0) 编辑
  2016年6月25日
摘要: 金角相关博客,包括Twisted,Reddis。 Python里面没有事件与委托。 Reddis: >keys * >set ... ... ex 5 >save durable仅仅持久化queue 阅读全文
posted @ 2016-06-25 14:07 BettyBear 阅读(389) 评论(0) 推荐(0) 编辑
  2016年6月18日
摘要: Item 7: Distinguish between () and {} when creating objects. equals-sign-plus-braces is equal to braces-only int z{ 0 }; 相当于 int z = { 0 }; Uniform in 阅读全文
posted @ 2016-06-18 09:50 BettyBear 阅读(191) 评论(0) 推荐(0) 编辑
  2016年6月9日
摘要: Alex本期相关博文。 Python中的Priority Queue是minimal priority queue. Queue使用task_done与join实现生产者与消费者的通信。 Queue只能用于一个进程的各个线程的同步。 from urllib.request import urlope 阅读全文
posted @ 2016-06-09 21:08 BettyBear 阅读(189) 评论(0) 推荐(0) 编辑
  2016年5月29日
摘要: 金角相关博文。银角相关博文。 大文件的发送用socket.send,不用socket.sendall。 Python3中,socket每次发送的都必须是byte。 客户端例子: import socket ip_port = ('127.0.0.1',9999) sk = socket.socket 阅读全文
posted @ 2016-05-29 22:44 BettyBear 阅读(216) 评论(0) 推荐(0) 编辑
  2016年5月8日
摘要: 不带参数的装饰器 def w1(main_func): def outer(*args, **kwargs): before_func(*args, **kwargs) #before_func定义忽略 main_func(*args, **kwargs) after_func(*args, **k 阅读全文
posted @ 2016-05-08 16:25 BettyBear 阅读(506) 评论(0) 推荐(0) 编辑
  2016年4月24日
摘要: 本博文将会持续更新本人在阅读《深入应用C++11:代码优化与工程级应用》中学到的新的知识点。 在使用初始化列表对数据进行初始化时,{}前的等于号=可有可无。 阅读全文
posted @ 2016-04-24 13:36 BettyBear 阅读(909) 评论(1) 推荐(0) 编辑
  2016年4月11日
摘要: 本篇博文将会持续更新,不断加入本人遗漏的Python知识点。 4月5日~4月10日: 在Linux下,使用 #!/usr/bin/python3 或者 #!/usr/bin/env python3 来指定改Python程序运行时使用的python版本 使用 type(变量名) 查询变量类型。存在 t 阅读全文
posted @ 2016-04-11 20:23 BettyBear 阅读(653) 评论(0) 推荐(0) 编辑