自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

For a python course

for a python course

  • 博客(15)
  • 收藏
  • 关注

原创 【高级编程技术】第15周作业

from sklearn import datasets, cross_validationfrom sklearn.naive_bayes import GaussianNBfrom sklearn.svm import SVCfrom sklearn.ensemble import RandomForestClassifierfrom sklearn import metricsd...

2018-06-16 14:33:09 258

原创 【高级编程技术】第14周作业

2018-06-08 12:51:34 290

原创 【高级编程技术】第13周作业

import numpy as npimport scipy.optimize as optimport scipy.spatial.distance as dis#exer 1m=50n=30A=np.random.rand(m,n)b=np.random.rand(m)def func(p,A): x=np.reshape(p,(n,1)) return np.dot...

2018-05-30 23:41:15 207

原创 【高级编程技术】第12周作业

import numpy as npimport matplotlib.pyplot as pltimport scipy.stats as sts#exercise 1f, ax = plt.subplots(1, 1, figsize=(5,4))x=np.linspace(0,2,50)y=np.multiply(np.power(np.sin(np.subtract(x,...

2018-05-26 19:00:38 243

原创 【高级编程技术】第11周作业

9.1import numpy as npfrom scipy.linalg import toeplitzimport randomn=200m=500A=np.random.normal(size=(n,m))row=np.random.random(m)col=np.random.random(m)B=toeplitz(row,col)#exercise 9.1...

2018-05-18 09:34:38 179

原创 【leetcode】8. String to Integer (atoi)

1.DescriptionImplement atoi which converts a string to an integer.The function first discards as many whitespace characters as necessary until the first non-whitespace character is found. Then, starti...

2018-05-02 22:06:42 130

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

1.DescriptionGiven a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "b...

2018-04-29 15:39:03 91

原创 【Leetcode】5. Longest Palindromic Substring

1.DescriptionGiven a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example 1:Input: "babad"Output: "bab"Note: "aba" is also a valid answer....

2018-04-29 15:32:17 93

原创 【leetcode】4.Median of two sorted arrays

1.DescriptionThere are two sorted arrays nums1 and nums2 of size m and n respectively.Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).Example 1:nums1 =...

2018-04-25 22:59:14 111

原创 【高级编程技术】第六周作业

11-1:11-2:11-3:

2018-04-10 14:44:20 175

原创 【高级编程技术】第五周作业

9-1:9-4:9-6:9-10:9-14:10-1:10-3:10-4:10-7:10-12:

2018-04-05 22:23:58 298

原创 【高级编程技术】第四周作业

7-3:7-4:7-8:7-9:8-2:8-3:8-5:8-7:8-10:8-11:8-12:8-13:

2018-03-26 18:41:39 324

原创 【高级编程技术】第三周作业

5-2:5-3:5-6:5-8:5-10:

2018-03-19 17:04:49 226

原创 【高级编程技术】第二周作业

3-2:3-5:3-6:3-8:4-2:4-5:4-6:4-9:4-10:4-13:

2018-03-14 22:53:28 236

原创 【高级编程技术】第一周作业

1.Python主页发现与收获:    Python社区现在充满活力。在Python官网主页上,不止有Python相关软件的下载,Python官方文档,还有Python各种社区的讨论板块,以及Python在各个领域的成功范例。对于Python初学者,可以充分利用Begginer's Guide和Developer's Guide。开发者指南中有一份叫做PEP 8的文档,是Python社区对于编码风...

2018-03-06 15:00:38 524 2

空空如也

空空如也

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

TA关注的人

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