Machine learning 为Weka中的XOR案例培训多层感知器的分步指南?
我刚开始学习Weka,第一步有困难 我们有我们的训练设备: @relation PerceptronXOR @attribute X1 numeric @attribute X2 numeric @attribute Output numeric @data 1,1,-1 -1,1,1 1,-1,1 -1,-1,-1 @关系感知器 @属性X1数值 @属性X2数值 @属性输出数字 @资料 1,1,-1 -1,1,1 1,-1,1 -1,-1,-1 我想做的第一步就是训练,然后使用WEKAGUI对集合进行分类。 到目前为止我一直在做的事情: 使用Weka 3.7.0Machine learning 为Weka中的XOR案例培训多层感知器的分步指南?,machine-learning,neural-network,weka,xor,Machine Learning,Neural Network,Weka,Xor,我刚开始学习Weka,第一步有困难 我们有我们的训练设备: @relation PerceptronXOR @attribute X1 numeric @attribute X2 numeric @attribute Output numeric @data 1,1,-1 -1,1,1 1,-1,1 -1,-1,-1 @关系感知器 @属性X1数值 @属性X2数值 @属性输出数字 @资料 1,1,-1 -1,1,1 1,-1,1 -1,-1,-1 我想做的第一步就是训练,然后使用WEKAGUI对集
对于这两个示例,使用0.5的学习率进行500次迭代。 学习率就是它对新例子的重视程度。
显然,这个问题很难解决,而且很容易在有两个隐藏层的情况下得到局部极小值。如果使用低学习率和高迭代次数,学习过程将更加保守,更有可能达到良好的最小值。1。如果学习率太高,它就不会收敛。即使是0.1也有点大。 === Run information === Scheme: weka.classifiers.functions.MultilayerPerceptron -L 0.1 -M 0.2 -N 5000 -V 0 -S 0 -E 20 -H 2 -R Relation: PerceptronXOR Instances: 4 Attributes: 3 X1 X2 Output Test mode: user supplied test set: size unknown (reading incrementally) === Classifier model (full training set) === Linear Node 0 Inputs Weights Threshold -1.2208619057226187 Node 1 3.1172079341507497 Node 2 -3.212484459911485 Sigmoid Node 1 Inputs Weights Threshold 1.091378074639599 Attrib X1 1.8621040828953983 Attrib X2 1.800744048145267 Sigmoid Node 2 Inputs Weights Threshold -3.372580743113282 Attrib X1 2.9207154176666386 Attrib X2 2.576791630598144 Class Input Node 0 Time taken to build model: 0.04 seconds === Evaluation on test set === === Summary === Correlation coefficient 0.8296 Mean absolute error 0.3006 Root mean squared error 0.6344 Relative absolute error 30.0592 % Root relative squared error 63.4377 % Total Number of Instances 8