The invention discloses a neural network loss layer design method based on the interval algorithm, which includes the following steps: 1) design the loss layer based on the traditional neural network, obtain the characteristic input element of the interval loss layer; 2) subtract the input element in the interval form, and the corresponding real real value, and obtain the most corresponding of each element. Large and minimum distance values; 3) get the maximum loss value and the minimum loss value of the individual training sample; 4) get the maximum loss value and the minimum loss value of all the training samples according to step 3), and get the interval loss value of this training. Compared with the existing technology, the input value and output value of the loss layer are defined as the interval data type, and the interval loss layer is formed. The interval loss layer can handle the uncertain range of input values and output reliable interval values to make up for the inability of the neural network to deal with the interval data.
【技术实现步骤摘要】
一种基于区间算法的神经网络损失层设计方法
本专利技术涉及人工智能领域,具体地说是一种基于区间算法的神经网络损失层设计方法。
技术介绍
神经网络技术时下非常流行,它模拟人脑神经元的连接方式,在模式识别等领域获得了很多的成功。神经网络需要先进行训练,之后才能正确预测。训练时一般需要计算损失函数,即神经网络预测值与真实值得差距大小,距离越大说明神经网络性能越差,反之越好。通过获取的损失函数值可以在神经网络中反向传播,从而优化神经网络的参数,获得性能更好的神经网络。现实生活中存在很多并不能被准确数值描述的数据,同时某些精确数值也不可能被机器精确地表述,因此衍生出来区间算法来处理这类数据。为了使这类数据也能够利用神经网络技术解决问题,特此引入区间神经网络损失层设计方法。
技术实现思路
本专利技术的技术任务是提供一种基于区间算法的神经网络损失层设计方法。本专利技术的技术任务是按以下方式实现的:一种基于区间算法的神经网络损失层设计方法,包括如下步骤:步骤1)基于传统神经网络的损失层进行设计,获取区间损失层的特征输入元素;步骤2)将区间形式的输入元素,与对应的真实值做减法,获得每个元素对应的最大距离以及最小距离值;步骤3)获得单个训练样本的最大损失值和最小损失值;步骤4)将所有所述的训练样本按照步骤3)的方法获得最大损失值和最小损失值后取平均,获得本次训练的区间损失值。所述的步骤1)中特征输入元素为神经网络的输出预测值,其特点为每个元素均为区间数据类型。所述的步骤3)中单个训练样本的最大损失值获得方法如下:用所有所述的元素对应的最大距离的平方值取平均得到训练样本的最大损失值。 ...
【技术保护点】
1.一种基于区间算法的神经网络损失层设计方法,其特征在于,包括如下步骤:步骤1)基于传统神经网络的损失层进行设计,获取区间损失层的特征输入元素;步骤2)将区间形式的输入元素,与对应的真实值做减法,获得每个元素对应的最大距离以及最小距离值;步骤3)获得单个训练样本的最大损失值和最小损失值;步骤4)将所有所述的训练样本按照步骤3)的方法获得最大损失值和最小损失值后取平均,获得本次训练的区间损失值。
【技术特征摘要】
1.一种基于区间算法的神经网络损失层设计方法,其特征在于,包括如下步骤:步骤1)基于传统神经网络的损失层进行设计,获取区间损失层的特征输入元素;步骤2)将区间形式的输入元素,与对应的真实值做减法,获得每个元素对应的最大距离以及最小距离值;步骤3)获得单个训练样本的最大损失值和最小损失值;步骤4)将所有所述的训练样本按照步骤3)的方法获得最大损失值和最小损失值后取平均,获得本次训练的区间损失值。2.根据权利要求1所述的方法,其特征在于,所述的步骤1)中特征输入元素为神经网络的输出预测值,其特点为每个元素均为区间数据类型。3.根据权利要求1所述的方法,其特征在于,所述的步骤3)中单个训练样本的最大损失值获得方法如下:用所有所述的元素对应的最大距离的平方值取平均得到训练样本的最大损失值。4.根据权利要求1所述的方法,其特征在于,所述的步骤3)中单个训练样本的最小损失值获得方法如下:用所有所述的元素对应的最小距离的平方值取平均得到训练样本的最小损失值。5.根据权利要求1所述的方法,其特征在于,所述...
【专利技术属性】
技术研发人员:周玉山,段成德,于治楼,
申请(专利权)人:济南浪潮高新科技投资发展有限公司,
类型:发明
国别省市:山东,37
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。