07 2017 档案
摘要:我们可以使用代价函数来衡量我们的假设函数的准确性。这取决于x的输入和实际输出y的假设的所有结果的平均差异(实际上是平均值的平均值)。 To break it apart, it is 12 x¯ where x¯ is the mean of the squares of hθ(xi)−yi , o
阅读全文
摘要:''' #data = open("yesterday",encoding="utf-8").read() f = open("yesterday2",'a',encoding="utf-8") #文件句柄 #a = append 追加 f.write("\nwhen i was young i listen to the radio\n") data = f.read() print('--...
阅读全文
摘要:list_1 = [1,4,5,7,3,6,7,9] list_1 = set(list_1) list_2 =set([2,6,0,66,22,8,4]) print(list_1,list_2) ''' #交集 print( list_1.intersection(list_2) ) #并集 print(list_1.union(list_2)) #差集 in list_1 but ...
阅读全文
摘要:#author:ne_zha #dictionary feng_shen_bang ={ 1:'哪吒', 2:'雷震子', 3:'杨戬' } print(feng_shen_bang[1]) ...
阅读全文
摘要:2017/7/12,别人十分钟,我花了两小时..
阅读全文
摘要:2017/7/9,python日记第一篇,万事开头难...
阅读全文