ဉာဏ်ရည်တု

အိမ် AI ဆိုတာဘာလဲ။ လူ့ထောက်လှမ်းရေး ဘာသာစကားများ၏သမိုင်း နံပါတ်များသမိုင်း ကွန်ပျူတာသမိုင်း စက်ရုပ်များ အလုပ်အစားထိုးခြင်း။ AI နမူနာများ စိတ်၏သီအိုရီ ပရိုဂရမ်ရေးခြင်း။ JavaScript Browser တွင် AI

သင်္ချာ

သင်္ချာ တစ်ပြေးညီ လုပ်ဆောင်ချက်များ Linear Algebra ကွက်ကွက်များ Matrices တင်းဆာများ

စာရင်းအင်းများ

ဖြစ်နိုင်ခြေ စာရင်းအင်းများ ဖြန့်ဝေခြင်း။

ဂရပ်ဖစ်

AI Plotter AI Linear ဂရပ်ဖစ်များ AI ဖြန့်ကြဲကွက်များ

AI သိပ္ပံ

သိပ္ပံပညာ Data စုဆောင်းခြင်း။ အစုအဝေး ဆုတ်ယုတ်မှုများ စက်သင်ယူခြင်း။ အာရုံကြောကွန်ရက်များ

စက်သင်ယူခြင်း။

Perceptrons များ အသိ လေ့ကျင့်ရေး စမ်းသပ်ခြင်း။ သင်ယူခြင်း။ အသုံးအနှုန်းများ Brain.js

TensorFlow

TFJS ကျူတိုရီရယ် TFJS လည်ပတ်မှုများ TFJS မော်ဒယ်များ TFJS ကြည့်ရှုသူ

ဥပမာ ၁

Ex1 မိတ်ဆက် Ex1 ဒေတာ Ex1 မော်ဒယ် Ex1 သင်တန်း

ဥပမာ ၂

Ex2 မိတ်ဆက် Ex2 ဒေတာ Ex2 မော်ဒယ် Ex2 သင်တန်း

JS ဂရပ်ဖစ်

အင်ထရို Graph Canvas ဂရပ်ဖစ် Plotly.js ဂရပ်ဖစ် Chart.js ဂရပ်ဖစ် ဂရပ်ဖစ် D3.js

ပုံစံကို အသိအမှတ်ပြုခြင်း။

Neural Networks ကို Facial Recognition ကဲ့သို့ အပလီကေးရှင်းများတွင် အသုံးပြုပါသည်။

ဤအပလီကေးရှင်းများသည် Pattern Recognition ကိုအသုံးပြုသည် ။

ဤအမျိုးအစား ခွဲခြားမှု ကို Perceptron ဖြင့်လုပ်ဆောင်နိုင်သည်

ပုံစံအမျိုးအစားခွဲခြားခြင်း။

ပြန့်ကျဲနေသော xy အမှတ်များပါသော အာကာသအတွင်း ရေလက်ကြားမျဉ်း (မျဉ်းဂရပ်တစ်ခု) ကို မြင်ယောင်ကြည့်ပါ။

မျဉ်းကြောင်းပေါ်ရော အောက်မှာပါ အမှတ်တွေကို ဘယ်လိုခွဲခြားနိုင်မလဲ။

မျဉ်းကြောင်းအတွက် ပုံသေနည်းကို မသိဘဲ မျဉ်းပေါ်ရှိ အမှတ်များကို မှတ်မိရန် perceptron ကို လေ့ကျင့်နိုင်သည်။

Perceptron

Perceptron သည် အချက်အလက်များကို အပိုင်းနှစ်ပိုင်းခွဲရန် မကြာခဏအသုံးပြုသည်။

Perceptron ကို Linear Binary Classifier အဖြစ်လည်းလူသိများသည်။


Perceptron ကို ဘယ်လို အစီအစဉ်ဆွဲမလဲ။

perceptron ပရိုဂရမ်ကိုမည်သို့လုပ်ဆောင်ရမည်ကိုပိုမိုလေ့လာရန်၊ ကျွန်ုပ်တို့သည် အလွန်ရိုးရှင်းသော JavaScript ပရိုဂရမ်တစ်ခုကို ဖန်တီးပါမည်-

  1. ရိုးရှင်းသောကြံစည်မှုဖန်တီးပါ။
  2. ကျပန်း xy အမှတ် 500 ဖန်တီးပါ။
  3. xy အမှတ်များကို ရေးပါ။
  4. လိုင်းလုပ်ဆောင်ချက်ဖန်တီးပါ- f(x)
  5. လိုင်းကိုပြသပါ။
  6. လိုချင်သောအဖြေများကို တွက်ချက်ပါ။
  7. Display the desired answers

Create a Simple Plotter

Use the simple plotter object described in the AI Plotter Chapter.

Example

const plotter = new XYPlotter("myCanvas");
plotter.transformXY();

const xMax = plotter.xMax;
const yMax = plotter.yMax;
const xMin = plotter.xMin;
const yMin = plotter.yMin;

Create Random X Y Points

Create as many xy points as wanted.

Let the x values be random, between 0 and maximum.

Let the y values be random, between 0 and maximum.

Display the points in the plotter:

Example

const numPoints = 500;
const xPoints = [];
const yPoints = [];
for (let i = 0; i < numPoints; i++) {
  xPoints[i] = Math.random() * xMax;
  yPoints[i] = Math.random() * yMax;
}


Create a Line Function

Display the line in the plotter:

Example

function f(x) {
  return x * 1.2 + 50;
}


Compute Desired Answers

Compute the desired answers based on the line function:

y = x * 1.2 + 50.

The desired answer is 1 if y is over the line and 0 if y is under the line.

Store the desired answers in an array (desired[]).

Example

let desired = [];
for (let i = 0; i < numPoints; i++) {
  desired[i] = 0;
  if (yPoints[i] > f(xPoints[i])) {desired[i] = 1;}
}

Display the Desired Answers

For each point, if desired[i] = 1 display a blue point, else display a black point.

Example

for (let i = 0; i < numPoints; i++) {
  let color = "blue";
  if (desired[i]) color = "black";
  plotter.plotPoint(xPoints[i], yPoints[i], color);
}


How to Train a Perceptron

In the next chapters, you will learn more about how to Train the Perceptron