theano中的logisticregression代码学习

 1 class LogisticRegression (object): 
 2    def __int__(self,...):
 3 
 4    #定义一些与逻辑回归相关的各种函数
 5 
 6   def method1(...):
 7 
 8 
 9   def method2(...):
10 
11 def load_data(dataset):
12     # 如何从硬盘中将数据导入到内存中
13     # 并且,要将导入的数据存储在shared variables中
14 
15 def sgd_optimization_mnist(...)
16     
17     #1. 导入数据
18 
19     #2. building model,即定义一些符号变量、计算模型等
20 
21     #3. 开始train,利用真实模型训练model
22 
23 if __main__='__main__':    
24     sgd_optimization_mnist(...)
25     # 即程序的入口
原文地址:https://www.cnblogs.com/lutingting/p/5183763.html