Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

HI everyone, i needed solutions for these two in matlab code,I\'m sorry i forgot

ID: 3786335 • Letter: H

Question

HI everyone, i needed solutions for these two in matlab code,I'm sorry i forgot to specify it earlier

Write a program to train a simple perceptron model to implement AND gate. To begin training, select your initial weights randomly between 2 and -2.

Inputs

Outputs

X1

X2

y

-1

-1

-1

-1

1

-1

1

-1

-1

1

1

1

Modified truth table for AND function.

Write a program to train a simple perceptron model to cluster the data set that we will provide to you.

Inputs

Outputs

X1

X2

y

-1

-1

-1

-1

1

-1

1

-1

-1

1

1

1

Explanation / Answer

1. To implement AND gate using simple perceptron model

2. For clustering data