pattern classfication 第6章笔记

本文探讨了LMS算法及其局限性,并介绍了如何利用BP算法的多层神经网络克服这些局限性。文章还详细解释了BP算法的不同更新权重协议,如随机、批量和在线方式。

回顾前面提到的LMS 算法,它通过学习输入的模式(pattern),经过一系列流程,输出一个分类器(classifier)

其大致流程如下:

 

input patterns  →  LMS  (selected function Φ) → discriminants → solutions

 

第三环节的 discriminants (判别式) 正是用于分类的

 

然而,LMS 算法在许多理论问题上的应用,效率不高。 其中,一个不得不考虑的问题就是,第二环节中用到的 function Φ 在LMS 算法中是预先知道的。

然而,对于一个问题,如果你事先并不知道它的一些特性、特征,即你不能预先得出一个合适的 function Φ,那么最后的结果会很差。

如果你说,好啊,那我就在所有可能的多项式集合里面,一个一个地 作 brute force ,把每一个待定系数多项式都当成 Φ来试

 

显而易见有两大缺点:

① 暴力穷举本身低效,指数级的复杂度

② 受给定的input ( 即给定的 training set , 一个 training set 包含多个 pattern )中训练模式数目的限制:

     if patterns are too limited, then there are too many free parameters in selected Pi (Φ)       (不定方程组)

     if patterns are more than enough, then there are too many equations, which lead to inadequate learning    (超定方程组) 

 

使用BP算法的多层神经网络( neural networks )是 两层的LMS算法的一种

if you adopt neural networks to solve your problem, you don't need to be puzzled by thinking a suitable function Φ.

Because a suitable function Φ and discriminants used for classification will be gradually learned in the learning of the patterns.

 

A simple neural network at least own 3-layer → one input layer,one hidden layer,one output layer

 

There are weights linking two nodes in two nearby layers

 

The outputs of the neural network are the discriminant functions used for classification and of course, the neural network has been trained in the procedure of patterns' learning previously

 

Then, if two inputs have the same output, we are told that these two inputs are in the same category.

 

Commonly, there are three protocols of BP algo(back propagation).  ie stochastic、batch 、on-line

 

① stochastic:

each time a pattern is randomly chosen from the training set, then network weights update

 

② batch:

Before the updating of the weights, all the patterns in the training set present once.

It use epoch

 

③ on-line:

each pattern present and only once

 

There is a problem remains for stochastic that a weight update may reduce the error on the single pattern being presented,

it may increase the error on the full training set

 

Throughout the algorithm, we use gradient descent to reduce error.

 

在SAP系统中,品目分类信息是物料主数据管理中的重要组成部分,它决定了物料在不同业务流程中的行为和用途。品目分类通常通过**物料类型(Material Type)**和**分类系统(Classification System)**来实现。 ### 物料类型(Material Type) 物料类型用于区分物料的类别,如原材料(ROH)、半成品(HALB)、成品(FERT)、服务类物料(DIEN)等。每种物料类型定义了物料的基本属性、库存管理方式、会计科目设置等关键参数。例如,原材料通常不进行批次管理,而化学品可能需要启用批次管理功能。物料类型的配置通过事务代码 `OMS2` 实现,其中可定义字段选择、屏幕序列、编号范围等关键控制逻辑[^4]。 ### 分类系统(Classification System) SAP的分类系统允许用户对物料进行更细粒度的分类,通常用于技术配置、质量管理、成本控制等领域。分类系统的核心是**类(Class)**和**特性(Characteristic)**。每个类可以包含多个特性,而每个特性定义了物料的某一属性(如颜色、尺寸、材质等)。这些分类信息可以被用于物料主数据维护、批次管理、变式配置等场景。 分类系统涉及的关键后台表包括: - **KLAH**:存储分类名称(如CL03中定义)与内部编号的对应关系。 - **KSML**:记录分类所分配的特性(CT04中定义)。 - **TCLA**:定义类类型与分类类型的映射,例如023表示批次分类。 - **CABN**:特性名称与内部编号的转换表。 - **AUSP**:存储对象(如物料)对应的特性值[^3]。 ### 物料分类账(Material Ledger) 在物料分类账中,分类信息还用于成本核算和差异分摊。例如,当生产C产品共5个,其中完工入库3个,在制品2个时,材料成本差异(如250*10/100)会被按比例分摊至在制品中,生成相应的会计凭证:借方为“在制品—在制品差异”,贷方为“材料M”科目[^2]。 ### 品目分类信息的应用 在实际业务中,品目分类信息广泛应用于以下场景: - **采购管理**:根据物料类型决定是否允许采购。 - **库存管理**:控制是否允许批次管理、序列号管理等。 - **销售管理**:决定是否允许销售、是否需要配置变式。 - **生产管理**:控制是否参与BOM、是否可作为产成品。 - **财务核算**:影响库存评估类、成本结构、差异分摊规则等。 ```abap * 示例:查询物料分类账中差异分摊情况 REPORT z_material_ledger_variance. PARAMETERS: p_matnr TYPE matnr OBLIGATORY. DATA: lt_mltr TYPE TABLE OF mltr, ls_mltr TYPE mltr. START-OF-SELECTION. SELECT * INTO TABLE lt_mltr FROM mltr WHERE matnr = p_matnr. IF lt_mltr IS NOT INITIAL. LOOP AT lt_mltr INTO ls_mltr. WRITE: / '物料编号:', ls_mltr-matnr, / '差异类型:', ls_mltr-varia, / '金额:', ls_mltr-wert. ENDLOOP. ELSE. WRITE: / '未找到该物料的成本差异记录。'. ENDIF. ```
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值