اختبار Perceptron

  • يجب اختبار وتقييم المدرك
  • يجب اختبار Perceptron مقابل القيم الحقيقية .

اختبر مكتبتك

قم بإنشاء نقاط جديدة غير معروفة وتحقق مما إذا كان Perceptron الخاص بك يمكنه تخمين الإجابات الصحيحة:

مثال

// Test Against Unknown Data
const counter = 500;
for (let i = 0; i < counter; i++) {
  let x = Math.random() * xMax;
  let y = Math.random() * yMax;
  let guess = ptron.activate([x, y, ptron.bias]);
  let color = "black";
  if (guess == 0) color = "blue";
  plotter.plotPoint(x, y, color);
}


عد الأخطاء

أضف عدادًا لحساب عدد الأخطاء:

مثال

// Test Against Unknown Data
const counter = 500;
let errors = 0;
for (let i = 0; i < counter; i++) {
  let x = Math.random() * xMax;
  let y = Math.random() * yMax;
  let guess = ptron.activate([x, y, ptron.bias]);
  let color = "black";
  if (guess == 0) color = "blue";
  plotter.plotPoint(x, y, color);
  if (y > f(x) &amp; guess == 0) {errors++}
}


ضبط Perceptron

كيف يمكنك ضبط Perceptron؟

هذه بعض الاقتراحات:

  • اضبط معدل التعلم
  • زيادة عدد بيانات التدريب
  • زيادة عدد التكرارات التدريبية