上一页 1 ··· 328 329 330 331 332 333 334 335 336 ··· 344 下一页
摘要: 参考1参考2train_on_batchn_epoch = 12batch_size = 16for e in range(n_epoch): print("epoch", e) batch_num = 0 loss_sum=np.arra... 阅读全文
posted @ 2018-10-18 18:16 luoganttcc 阅读(186) 评论(0) 推荐(0)
摘要: 多层感知机#Lesson 03: MLP for Time Series Forecasting# univariate mlp examplefrom numpy import arrayfrom keras.models import Sequentia... 阅读全文
posted @ 2018-10-17 19:15 luoganttcc 阅读(263) 评论(0) 推荐(0)
摘要: sudo apt-get purge mongodb或者sudo apt-get purge --auto-remove mongodb 阅读全文
posted @ 2018-10-16 18:08 luoganttcc 阅读(904) 评论(0) 推荐(0)
摘要: # multinput and multioutput from numpy import arrayfrom keras.models import Sequentialfrom keras.layers import Densefrom keras.l... 阅读全文
posted @ 2018-10-16 18:08 luoganttcc 阅读(222) 评论(0) 推荐(0)
摘要: # multinput and multioutput from numpy import arrayfrom keras.models import Sequentialfrom keras.layers import Densefrom keras.l... 阅读全文
posted @ 2018-10-16 16:55 luoganttcc 阅读(337) 评论(0) 推荐(0)
摘要: 1. 不去路边垃圾小店,聚类算法,多去那种地方,身上将具那些人的特征,不去茅台路面馆,2. 外出就餐简单最好,牛奶面包就好3. 在公司,牛奶,面包,水果就好,路边小店多为低端小店,脏乱差 阅读全文
posted @ 2018-10-16 13:07 luoganttcc 阅读(198) 评论(0) 推荐(0)
摘要: 一对一的LSTM# one input and one outputfrom numpy import arrayfrom keras.models import Sequentialfrom keras.layers import Densefrom ke... 阅读全文
posted @ 2018-10-13 14:23 luoganttcc 阅读(143) 评论(0) 推荐(0)
摘要: super() 的入门使用在类的继承中,如果重定义某个方法,该方法会覆盖父类的同名方法,但有时,我们希望能同时实现父类的功能,这时,我们就需要调用父类的方法了,可通过使用 super 来实现,比如:class Animal(object): def _... 阅读全文
posted @ 2018-10-07 16:38 luoganttcc 阅读(90) 评论(0) 推荐(0)
摘要: super的作用是降低多继承时的算法复杂度,和什么父类没有关系class A: def __init__(self): print("Enter A") print("Leave A")class B(A): def __init__(sel... 阅读全文
posted @ 2018-10-07 16:31 luoganttcc 阅读(102) 评论(0) 推荐(0)
摘要: 在OOP程序设计中,当我们定义一个class的时候,可以从某个现有的class继承,新的class称为子类(Subclass),而被继承的class称为基类、父类或超类(Base class、Super class)。class Animal(object)... 阅读全文
posted @ 2018-10-06 21:37 luoganttcc 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 328 329 330 331 332 333 334 335 336 ··· 344 下一页