腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(68)
视频
沙龙
3
回答
为什么我不能用np.zeros初始化一个数组,然后把元素改成数组?
、
、
、
在我的代码中,我做到了这会产生错误 ValueError: setting an array element with
浏览 2
提问于2018-01-30
得票数 1
1
回答
使用RandomizedSearchCV (Scikit Learn) ->优化隐藏层和神经元的数量没有不必要的训练?
、
、
、
、
我想要优化隐藏层的数量和每个隐藏层中的单元数量。为此,我以这种方式使用了sklearn中的RandomizedSearchCV: from tensorflow.keras.wrappers.scikit_learn import KerasRegressor from tensorflow import keras layers = keras.layers def tuneModel(n
浏览 5
提问于2020-11-22
得票数 1
1
回答
为什么我的类型构造函数没有被识别
、
、
、
我认为这将是相对简单的,并写了如下: weight_matrices::Array{Array{FloatingPoint}} new([ ])但当我尝试使用它时: test = MyType([
浏览 2
提问于2014-02-11
得票数 3
回答已采纳
1
回答
使用的列表中的for循环有什么问题?
、
、
我正在尝试使用for循环定义一个列表: import numpy as np
layer_sizes
= { 2,3,5,2 }weight_shapes = [{a,b} for a,b in zip(
layer_sizes
[1:],
layer_sizes
[:-1])] #weight_shapes = [ {3,2},{5,3},{2,5
浏览 14
提问于2019-04-15
得票数 0
3
回答
无法在TensorFlow中共享/重命名变量
、
、
、
为了避免容易出错的代码重复,我将层的创建放在了一个for循环中,如下所示: num_layers = len(
layer_sizes
) - 1 # hidden and output layers initializer = tf.
浏览 26
提问于2018-03-02
得票数 2
1
回答
控制Pytorch神经网络层的数量和大小的最佳实践?
、
、
目前的解决办法:ACTOR_LAYER_SIZES: (128, 256, 128)# input_size: int#
layer_sizes
= ACTOR_LAYER_SIZES nn.Linear(input_size,
layer_sizes
[0]), BatchNorm1d(
layer_sizes
[0]), layers +=
浏览 2
提问于2021-11-22
得票数 1
2
回答
用流实例化对象数组
、
、
、
就我而言,过去的做法是:Layer[] layers = new Layer[layer_sizes.length]; layers[i] = new Layer(
layer_sizes
[i]);List<Layer> layers = Stream.of(
layer_size
浏览 2
提问于2016-01-05
得票数 3
回答已采纳
1
回答
FailedPreconditionError:尝试使用未初始化的值
、
、
这是创建网络的代码: num_layers = len(
layer_sizes
) - 1 # hiddenw_name = 'W' + str(i+1) w = tf.get_variable(w_name, [
layer_sizes
[i],
layer_sizes
[i+1]], i
浏览 0
提问于2018-03-05
得票数 0
回答已采纳
1
回答
为什么我的交叉熵损失函数变得巨大,如果我使用一个网络的许多关系?
、
、
、
、
pipeline = data last = i == len(
layer_sizes
tf.name_scope("parameters"): weights = [make_weight(
layer_sizes
[i],
layer_sizes
[i+1], name
浏览 0
提问于2016-07-05
得票数 0
0
回答
tensorflow无法初始化某些变量
、
代码:import tensorflow as tf shapes = zip(
layer_sizes
[:-1],
layer_sizes
[1:]) return tf.Variable(inits * tf.ones([sizefor s in shapes]} weights_V = {'V': [wi(s[::-1
浏览 0
提问于2017-12-05
得票数 1
回答已采纳
1
回答
神经网络的可视化,如何根据权值改变线宽?
) h_spacing = (right - left)/float(len(
layer_sizes
) - 1) # Input-Arrows
浏览 35
提问于2021-03-01
得票数 1
回答已采纳
1
回答
绘制神经网络
、
、
import matplotlib.pyplot as plt ''' v_spacing = (top - bottom)/float(max(
layer_sizes
))
浏览 28
提问于2021-04-27
得票数 6
回答已采纳
1
回答
在张量流图中手动设置权重
、
、
这是layer对象的外观,以及我如何导入和导出权重和偏移: def __init__(self,
layer_sizes
, features, keep_prob=None): self.B = [bias_variable(sh
浏览 2
提问于2020-03-28
得票数 0
1
回答
TypeError:在使用CSV文件运行Keras Conv1D时,只能将size-1数组转换为Python标量。
、
、
、
、
'x=df[x].valuesdense_layers=[0,1,2]conv_layers=[1,2,3] for layer_size in
layer_sizes
f"log_tti\\{NAME}")
浏览 2
提问于2020-11-27
得票数 0
回答已采纳
1
回答
前馈神经网络总是输出随机但相似的值
、
、
class NeuralNetwork: weight_shapes = [(a,b) for a,b in zip(
layer_sizes
[1:],
layer_sizes
[:-1])] self.biases = [np.zeros((s
浏览 9
提问于2021-04-16
得票数 1
回答已采纳
1
回答
无法声明“CvANN_MLP”对象
我正在尝试使用openCV CvANN_MPL。我得到了低于错误。我已经包含了所有必要的头文件,但在下面得到了错误。代码片段:nnetwork.create(layers, CvANN_MLP::SIGMOID_SYM,0.6,1);
浏览 0
提问于2015-04-06
得票数 0
2
回答
对结构的复杂特征要求
、
、
我有一个相当复杂的特征设置,并且我在排列这些部分时遇到了困难。现在看起来大致是这样的:pub trait Optimizable { type Target; } pub trait OptimAlgorithm<M : Optimizable> { } 现在,我
浏览 1
提问于2016-01-01
得票数 2
1
回答
为什么我在Tensorflow中的TRAINABLE_VARIABLES如此奇怪?
、
tf.get_collection(tf.GraphKeys.TRAINABLE_VARIABLES, "my_w1"))tf.Variable(tf.random_normal([
layer_sizes
[i-1],
layer_sizes
[i]]), name = "my_w1").
浏览 0
提问于2017-05-04
得票数 1
1
回答
神经网络在训练时会造成Nan的损失
、
、
、
、
def train_model(self, epochs, batch_size, verbose=1,
layer_sizes
=[], activation_function='relu',loss='mean_squared_error', optimizer='adam'): model =kernel_initializer='normal',
浏览 29
提问于2020-06-27
得票数 0
1
回答
使用“`TextVectorization`”标记字符串时,输入秩必须为1,或最后的形状维数必须为1。
、
、
def __init__(self,
layer_sizes
):
layer_sizes
: self.dense_layers.add(tf.keras.layers.Den
浏览 28
提问于2022-07-10
得票数 1
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
课后作业(二):如何用一个只有一层隐藏层的神经网络分类Planar data
热门
标签
更多标签
云服务器
ICP备案
实时音视频
即时通信 IM
对象存储
活动推荐
运营活动
广告
关闭
领券