![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
深度学习系列课程
文章平均质量分 74
qq_30868235
这个作者很懒,什么都没留下…
展开
-
Linear Regression
Lab 2 Linear Regressionimport tensorflow as tftf.set_random_seed(777) # for reproducibility# X and Y datax_train = [1, 2, 3]y_train = [1, 2, 3]# Try to find values for W and b to compute y_d...转载 2018-07-01 10:08:29 · 109 阅读 · 0 评论 -
lab-06-2-softmax_zoo_classifier
import tensorflow as tfimport numpy as nptf.set_random_seed(777) # for reproducibility# Predicting animal type based on various featuresxy = np.loadtxt('data-04-zoo.csv', delimiter=',', dtype=np...转载 2018-07-03 20:22:29 · 154 阅读 · 0 评论 -
lab-07-1-learning_rate_and_evaluation
import tensorflow as tftf.set_random_seed(777) # for reproducibilityx_data = [[1, 2, 1], [1, 3, 2], [1, 3, 4], [1, 5, 5], [1, 7, 5], [1, 2, 5], ...转载 2018-07-03 20:53:21 · 173 阅读 · 0 评论 -
lab-07-4-mnist_introduction
# Lab 7 Learning rate and Evaluationimport tensorflow as tfimport randomimport matplotlib.pyplot as plttf.set_random_seed(777) # for reproducibilityfrom tensorflow.examples.tutorials.mnist impo...转载 2018-07-03 22:43:43 · 138 阅读 · 0 评论 -
lab-09-1-xor
import tensorflow as tfimport numpy as nptf.set_random_seed(777) # for reproducibilitylearning_rate = 0.1x_data = [[0, 0], [0, 1], [1, 0], [1, 1]]y_data = [[0], ...转载 2018-07-04 20:45:51 · 100 阅读 · 0 评论 -
lab-09-2-xor-nn
# Lab 9 XORimport tensorflow as tfimport numpy as nptf.set_random_seed(777) # for reproducibilitylearning_rate = 0.1x_data = [[0, 0], [0, 1], [1, 0], [1, 1]]y_da...转载 2018-07-04 22:07:18 · 117 阅读 · 0 评论 -
lab-09-3-xor-nn-wide-deep
import tensorflow as tfimport numpy as nptf.set_random_seed(777) # for reproducibilitylearning_rate = 0.1x_data = [[0, 0], [0, 1], [1, 0], [1, 1]]y_data = [[0], ...转载 2018-07-04 22:30:37 · 144 阅读 · 0 评论 -
lab-10-1-mnist_softmax
# Lab 7 Learning rate and Evaluationimport tensorflow as tfimport random# import matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datatf.set_random_seed(777) # repro...转载 2018-07-05 21:56:24 · 174 阅读 · 0 评论 -
# Lab 10 MNIST and Xavier
# Lab 10 MNIST and Xavierimport tensorflow as tfimport random# import matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datatf.set_random_seed(777) # reproducibilit...转载 2018-07-07 08:40:31 · 181 阅读 · 0 评论 -
lab-10-4-mnist_nn_deep
import tensorflow as tfimport random# import matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datatf.set_random_seed(777) # reproducibilitymnist = input_data.read...转载 2018-07-07 16:58:35 · 211 阅读 · 0 评论 -
lab-06-1-softmax_classifier
# Lab 6 Softmax Classifierimport tensorflow as tftf.set_random_seed(777) # for reproducibilityx_data = [[1, 2, 1, 1], [2, 1, 3, 2], [3, 1, 3, 4], [4, 1, 5, 5], ...转载 2018-07-03 20:23:45 · 129 阅读 · 0 评论 -
lab-05-2-logistic_regression_diabetes
# Lab 5 Logistic Regression Classifierimport tensorflow as tfimport numpy as nptf.set_random_seed(777) # for reproducibilityxy = np.loadtxt('data-03-diabetes.csv', delimiter=',', dtype=np.float3...转载 2018-07-02 13:43:06 · 113 阅读 · 0 评论 -
Linear Regression_feed
# Lab 2 Linear Regressionimport tensorflow as tftf.set_random_seed(777) # for reproducibility# Try to find values for W and b to compute y_data = W * x_data + b# We know that W should be 1 and b...转载 2018-07-01 10:28:59 · 124 阅读 · 0 评论 -
lab-02-3-linear_regression_tensorflow
# From https://www.tensorflow.org/get_started/get_startedimport tensorflow as tf# Model parametersW = tf.Variable([.3], tf.float32)b = tf.Variable([-.3], tf.float32)# Model input and outputx =...转载 2018-07-01 10:57:25 · 115 阅读 · 0 评论 -
Lab 3 Minimizing Cost
# Lab 3 Minimizing Costimport tensorflow as tfimport matplotlib.pyplot as plttf.set_random_seed(777) # for reproducibilityX = [1, 2, 3]Y = [1, 2, 3]W = tf.placeholder(tf.float32)# Our hypot...转载 2018-07-01 11:25:34 · 217 阅读 · 0 评论 -
Lab 3 Minimizing_Cost_ gradient_update
# Lab 3 Minimizing Costimport tensorflow as tftf.set_random_seed(777) # for reproducibilityx_data = [1, 2, 3]y_data = [1, 2, 3]# Try to find values for W and b to compute y_data = W * x_data +...转载 2018-07-01 11:49:40 · 131 阅读 · 0 评论 -
lab-03-3-minimizing_cost_tf_optimizer
import tensorflow as tftf.set_random_seed(777) # for reproducibility# tf Graph InputX = [1, 2, 3]Y = [1, 2, 3]# Set wrong model weightsW = tf.Variable(5.0)# Linear modelhypothesis = X * W...转载 2018-07-01 14:59:55 · 118 阅读 · 0 评论 -
lab-03-X-minimizing_cost_tf_gradient
Lab 3 Minimizing Cost# This is optionalimport tensorflow as tftf.set_random_seed(777) # for reproducibility# tf Graph InputX = [1, 2, 3]Y = [1, 2, 3]# Set wrong model weightsW = tf.Variabl...转载 2018-07-01 15:21:19 · 124 阅读 · 0 评论 -
lab-04-1-multi_variable_linear_regression
# Lab 4 Multi-variable linear regressionimport tensorflow as tftf.set_random_seed(777) # for reproducibilityx1_data = [73., 93., 89., 96., 73.]x2_data = [80., 88., 91., 98., 66.]x3_data = [75.,...转载 2018-07-01 15:41:33 · 112 阅读 · 0 评论 -
lab-04-2-multi_variable_matmul_linear_regression
# Lab 4 Multi-variable linear regressionimport tensorflow as tftf.set_random_seed(777) # for reproducibilityx_data = [[73., 80., 75.], [93., 88., 93.], [89., 91., 90.], ...转载 2018-07-01 16:56:26 · 123 阅读 · 0 评论 -
lab-04-3-file_input_linear_regression
# Lab 4 Multi-variable linear regressionimport tensorflow as tfimport numpy as nptf.set_random_seed(777) # for reproducibilityxy = np.loadtxt('data-01-test-score.csv', delimiter=',', dtype=np.fl...转载 2018-07-01 22:15:17 · 103 阅读 · 0 评论 -
lab-10-5-mnist_nn_dropout
# Lab 10 MNIST and Dropoutimport tensorflow as tfimport random# import matplotlib.pyplot as pltfrom tensorflow.examples.tutorials.mnist import input_datatf.set_random_seed(777) # reproducibili...转载 2018-07-07 20:48:02 · 231 阅读 · 0 评论