Questions tagged [single-layer-perceptron]

Questions regarding single-layer perceptrons (specifically)

You can ask questions regarding single-layer perceptrons specifically using this tag instead of the neural-networks tag.

7 questions
3
votes
2 answers

Why is it believed that a single-layer perceptron can't solve XOR? Doesn't this example disprove that?

def activation_function(number): if number%2: return 1 return 0 weights = [1, 1] for x in range(2): for y in range(2): print(f"{x}, {y} = {activation_function(weights[0] * x + weights[1] * y)}") Output: 0, 0 = 0 0, 1 = 1 1, 0 = 1 1,…
1
vote
1 answer

How does Linear regression Help Pla?

so I got this question for my Lab: Q: Show how linear regression for classification can improve pocket algorithm with PLA. I thought linear regression was bad for classification? So how can linear regression for classification be used to improve…
1
vote
1 answer

What do they mean by "randomly generate data in 2d plane for 2 classes"?

so we got this for our lab, I just need help understanding number 2. When it say generate data in 2D plane is it telling us to only generate input with just 2 characteristics(X and Y co-ord)? Or can can the Input be of N characteristics (X,Y,Z,etc)…
1
vote
2 answers

Direct formula for calculating the optimum matrix which minimizes the perceptron error

Suppose we have a perceptron without bias and $f(x) = x$ as activation function and matrices $X,Y,W$ that input training data are columns of matrix $X$, $Y$ is targets matrix (columns are ordered with attention to the related inputs) and $W$ is the…
1
vote
2 answers

Why this single layer perceptron for the add operation not learning the correct weights?

This might be unnecessary but to learn the basics of neural networks, I am trying to create a single perceptron neural network to solve the adding operation of 2 inputs (x1 + x2 = ybar) The code is written in C# since the math should be very simple…
0
votes
2 answers

Is sklearn using both a threshold and a bias term?

Reading this Can a neuron have both a bias and a threshold? has confused me, as it appears to be more common to use a threshold of 0 when using bias. But reading this…
Leosa99 _
  • 11
  • 2
0
votes
1 answer

Is my single layer perceptron getting biased input some way or the other?

I was working a little bit on a school project my team and I decided to do for submission in the year-end. It's a small game which I call 'Quattro', and its rules are as follows: The game is played on an 8 x 8 square grid and each player (both the…
Spectre
  • 177
  • 1
  • 9