- 博客(8)
- 收藏
- 关注
翻译 apt install安装ros插件出错,ros包未更新
ros安装包更新不了具体显示:E: Failed to fetch http://packages.ros.org/ros/ubuntu/pool/main/r/dists/xenial/main/binary-amd64/Packages 404 Not Found [IP: 2600:3404:200:237::2 80]E: Some index files failed to d...
2019-08-15 23:02:39 1084
转载 tf_神经网络的简单搭建
import tensorflow as tf import numpy as np def add_layer(inputs, in_size, out_size, activation_function=None): Weights = tf.Variable(tf.random_normal([in_size,out_size])) biases
2017-12-21 11:06:13 759
转载 tf_矩阵的广播机制
在神经网络的添加层中def add_layer(inputs, in_size, out_size,activation_function = None):Weights = tf.Variable(tf. random_normal([in_size,out_size]))biases = tf.Variable(tf.zeros([1,out_size])+ 0.1)# like list
2017-12-20 10:58:37 2536
转载 tf_placehoder传入值
import tensorflow as tf # 相当于定义了两个形参,或者说定义了两个占位符,在后面是用的时候还要输入具体值 input1 = tf.placeholder(tf.float32)# most type are float32 input2 = tf.placeholder(tf.float32)# most type are float32 out
2017-12-19 13:26:04 332
转载 tf_3_Variable
Variable用法的简单介绍 import tensorflow as tf state = tf.Variable(0,name='counter') # 必须定义是变量它才是变量,与python语法有点不同 # print(state.name) one = tf.constant(1) new_value = tf.add(state, one) up
2017-12-19 11:28:20 211
转载 tf_2_Session会话控制
两种常用的会话控制方法:import tensorflow as tfimport numpy as np# 简单的举一个矩阵相乘的例子matrix1 = tf.constant([[3, 3]])matrix2 = tf.constant([[2], [2]])product = tf.matmul(matrix1, matrix2) # matrix
2017-12-19 10:56:05 590
翻译 machine learning_1_quandl
qunadlquandl.com是一个关于金融、证券方面的网站,里面包含了大量的以往的数据,也是公开的,所有用户都可以访问。如果想要深入研究,也是可以注册账户的。如果想要了解某些公司的股票信息的话,可以Python的quandl模块来获得股票的相关信息。for exampleimport pandas as pdimport quandldf = quandl.get('WIKI/GOOGL')
2017-12-18 16:47:32 716
翻译 tensorflow_1 小试牛刀
import module import tensorflow as tf import numpy as npcreat data # creat 100 random sequences for x_data x_data = np.random.rand(100).astype(np.float32) y_data = x_data*0.1 + 0.3
2017-12-18 14:46:06 250
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人