-
大小:文件類型: .zip金幣: 1下載: 0 次發布日期: 2023-06-21
- 語言: 其他
- 標簽: TensorFlow??
資源簡介
TensorFlow實戰Google深度學習框架(隨書代碼)下載
代碼片段和文件信息
import?tensorflow?as?tf
INPUT_NODE?=?784
OUTPUT_NODE?=?10
layer1_NODE?=?500
def?get_weight_variable(shape?regularizer):
????weights?=?tf.get_variable(“weights“?shape?initializer=tf.truncated_normal_initializer(stddev=0.1))
????if?regularizer?!=?None:?tf.add_to_collection(‘losses‘?regularizer(weights))
????return?weights
def?inference(input_tensor?regularizer):
????with?tf.variable_scope(‘layer1‘):
????????weights?=?get_weight_variable([INPUT_NODE?layer1_NODE]?regularizer)
????????biases?=?tf.get_variable(“biases“?[layer1_NODE]?initializer=tf.constant_initializer(0.0))
????????layer1?=?tf.nn.relu(tf.matmul(input_tensor?weights)?+?biases)
????with?tf.variable_scope(‘layer2‘):
????????weights?=?get_weight_variable([layer1_NODE?OUTPUT_NODE]?regularizer)
????????biases?=?tf.get_variable(“biases“?[OUTPUT_NODE]?initializer=tf.constant_initializer(0.0))
????????layer2?=?tf.matmul(layer1?weights)?+?biases
????return?layer2
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-03-31?10:24??TensorFlow實戰Google深度學習框架\
?????目錄???????????0??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\
?????目錄???????????0??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter03\
?????文件????????5343??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter03\1.?圖,張量及會話.ipynb
?????文件????????3532??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter03\2.?三層簡單神經網絡的前向傳播算法.ipynb
?????文件????????4340??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter03\3.?完整神經網絡樣例程序.ipynb
?????目錄???????????0??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter04\
?????文件????????7329??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter04\1.?自定義損失函數.ipynb
?????文件????????5671??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter04\2.?學習率的設置.ipynb
?????文件??????136337??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter04\3.?正則化.ipynb
?????文件????????2359??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter04\4.?滑動平均模型.ipynb
?????目錄???????????0??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\
?????文件???????13671??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\1.?MNIST讀取數據.ipynb
?????目錄???????????0??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\2.?TensorFlow訓練神經網絡\
?????文件????????7710??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\2.?TensorFlow訓練神經網絡\1.?全模型.ipynb
?????文件????????7515??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\2.?TensorFlow訓練神經網絡\2.?不使用正則化.ipynb
?????文件????????7341??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\2.?TensorFlow訓練神經網絡\3.?不使用指數衰減的學習率.ipynb
?????文件????????7675??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\2.?TensorFlow訓練神經網絡\4.?不使用激活函數.ipynb
?????文件????????7235??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\2.?TensorFlow訓練神經網絡\5.?不使用隱藏層.ipynb
?????文件????????7292??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\2.?TensorFlow訓練神經網絡\6.?不使用滑動平均.ipynb
?????文件????????3890??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\3.?變量管理.ipynb
?????文件????????2872??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\4.1.?ckpt文件保存方法.ipynb
?????文件????????2919??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\4.2.1?滑動平均類的保存.ipynb
?????文件????????1188??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\4.2.2?variables_to_restore函數的使用樣例.ipynb
?????文件????????2422??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\4.3.?pb文件保存方法.ipynb
?????目錄???????????0??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\5.?MNIST最佳實踐\
?????目錄???????????0??2017-04-20?10:26??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\5.?MNIST最佳實踐\Data_sets\
?????目錄???????????0??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\5.?MNIST最佳實踐\Data_sets\MNIST_data\
?????文件?????9912422??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\5.?MNIST最佳實踐\Data_sets\MNIST_data\train-images-idx3-ubyte.gz
?????文件???????28881??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\5.?MNIST最佳實踐\Data_sets\MNIST_data\train-labels-idx1-ubyte.gz
?????文件????????3834??2017-03-04?19:44??TensorFlow實戰Google深度學習框架\0.12.0\Chapter05\5.?MNIST最佳實踐\mnist_eval.ipynb
............此處省略248個文件信息
評論
共有 條評論