自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 python random使用方法(转)

原文:http://www.cnblogs.com/duking1991/p/6121300.html如果你对在Python生成随机数与random模块中最常用的几个函数的关系与不懂之处,下面的文章就是对Python生成随机数与random模块中最常用的几个函数的关系,希望你会有所收获,以下就是这篇文章的介绍。random.random()用于生成用于生

2017-06-02 11:38:36 329 1

原创 python datetime学习

关于时间序列的处理,单列一篇,不定时更新:1、把pandas df第一列转换成datetime类型f = 'E:\\0531\\'df = pd.read_excel(f + 'bond price.xls',index_col='date')df['date'] = pd.to_datetime(df.index, format='%Y-%m-%d %H:%M:%S')

2017-06-01 10:16:30 295

翻译 python DEAP学习4(遗传算法)函数使用

Evolutionary ToolsThe tools module contains the operators for evolutionary algorithms. They are used to modify, select and move the individuals in their environment. The set of operators it cont

2017-05-27 15:32:20 5634

翻译 python DEAP学习3(遗传算法) 0-1背包问题

Knapsack Problem: Inheriting from SetAgain for this example we will use a very simple problem, the 0-1 Knapsack. The purpose of this example is to show the simplicity of DEAP and the ease to inher

2017-05-27 14:47:53 3601 1

翻译 python DEAP学习1(遗传算法) 概览

OverviewIf you are used to any other evolutionary algorithm framework, you’ll notice we do things differently with DEAP. Instead of limiting you with predefined types, we provide ways of creating

2017-05-27 14:31:47 5279

翻译 python DEAP学习2(遗传算法) 最大值问题

One Max ProblemThis is the first complete example built with DEAP. It will help new users to overview some of the framework possibilities. The problem is very simple, we search for a 1 filled li

2017-05-27 10:05:47 5716

空空如也

空空如也

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

TA关注的人

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