سؤال

هل تعرف أي تطبيق بجانب recog النمط. تستحق من أجل تنفيذ نموذج شبكة Hopfield العصبية؟

هل كانت مفيدة؟

المحلول

تستخدم الشبكات العصبية المتكررة (من شباك Hopfield هي نوع خاص) للعديد من المهام في التعلم التسلسل:

  • تنبؤ التسلسل (تعيين تاريخ قيم الأسهم إلى القيمة المتوقعة في الطوق الأول التالي)
  • تصنيف التسلسل (خريطة كل مقتطف صوت كامل إلى مكبر صوت)
  • تسلسل تسلسل (خريطة مقتطفات صوتية إلى الجملة المنطوقة)
  • تعلم التعزيز غير Markovian (مثل المهام التي تتطلب ذاكرة عميقة مثل المعيار T-Maze)

لست متأكدا مما تقصد به "التعرف على النمط" بالضبط، لأنه في الأساس مجال كامل لكل مهمة يمكن استخدامها الشبكات العصبية تناسبها.

نصائح أخرى

يمكنك استخدام شبكة Hopfield لمشاكل التحسين أيضا.

يمكنك الخروج من هذا المستودع -> شبكة هوبفيلد

هناك مثال على اختبار نمط بعد تدريب شبكة خارج الشبكة. هذا هو الاختبار

 @Test
 public void HopfieldTest(){
     double[] p1 = new double[]{1.0, -1.0,1.0,-1.0,1.0,-1.0,1.0,-1.0,1.0};
     double[] p2 = new double[]{1.0, 1.0,1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0};
     double[] p3 = new double[]{1.0, 1.0,-1.0,-1.0,1.0,-1.0,-1.0,1.0,-1.0};

     ArrayList<double[]> patterns = new ArrayList<>();
     patterns.add(p1);
     patterns.add(p2);

     Hopfield h = new Hopfield(9, new StepFunction());

     h.train(patterns); //train and load the Weight matrix

     double[] result = h.test(p3); //Test a pattern

     System.out.println("\nConnections of Network: " + h.connections() + "\n"); //show Neural connections
     System.out.println("Good recuperation capacity of samples: " + Hopfield.goodRecuperation(h.getWeights().length) + "\n");
     System.out.println("Perfect recuperation capacity of samples: " + Hopfield.perfectRacuperation(h.getWeights().length) + "\n");
     System.out.println("Energy: " + h.energy(result));

     System.out.println("Weight Matrix");
     Matrix.showMatrix(h.getWeights());
     System.out.println("\nPattern result of test");
     Matrix.showVector(result);

     h.showAuxVector();
 }

وبعد تشغيل الاختبار يمكنك أن ترى

Running HopfieldTest

Connections of Network: 72

Good recuperation capacity of samples: 1

Perfect recuperation capacity of samples: 1

Energy: -32.0

Weight Matrix
 0.0        0.0     2.0    -2.0      2.0       -2.0       0.0       0.0     0.0
 0.0        0.0     0.0     0.0      0.0        0.0      -2.0       2.0    -2.0
 2.0        0.0     0.0    -2.0      2.0       -2.0       0.0       0.0     0.0
-2.0        0.0    -2.0     0.0     -2.0        2.0       0.0       0.0     0.0
 2.0        0.0     2.0    -2.0      0.0       -2.0       0.0       0.0     0.0
-2.0        0.0    -2.0     2.0     -2.0        0.0       0.0       0.0     0.0
 0.0       -2.0     0.0     0.0      0.0        0.0       0.0      -2.0     2.0
 0.0        2.0     0.0     0.0      0.0        0.0      -2.0       0.0    -2.0
 0.0       -2.0     0.0     0.0      0.0        0.0       2.0      -2.0     0.0

Pattern result of test 

 1.0        1.0     1.0     -1.0     1.0       -1.0      -1.0       1.0     -1.0
-------------------------
The auxiliar vector is empty

آمل أن يكون هذا يمكن أن يساعدك

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top