Questions tagged [perceptron]

An early example of neural network without any hidden layers and with a single (possibly nonlinear) output unit.

44 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
5
votes
0answers
178 views

Why aren't neural networks used with RBF activation functions (or other non-monotonic ones)?

In most work I've seen, MLPs (multilayer perceptron, the most typical feedforward neural network) and RBF (radial basis function) networks are compared as distinct models, where MLP neuron outputs $\...
4
votes
2answers
1k views

Why perceptron is linear classifier?

It is said that perceptron is linear classifier, but it has a non-linear activation function f = 1 if wx - b >= 0 and f = 0 otherwise If i will use some non-linear function on linear combination of ...
4
votes
0answers
795 views

Adding regularization term to perceptron weight update

I'm trying to reduce overfitting on my perceptron network by adding in a regularization term. However I am not sure where the actual term goes... Usually the regularization term is shown in the ...
3
votes
1answer
302 views

Can this network learn the XOR function?

Let's say I have the following constraints: The architecture is fixed (see image) (note that there are no biases) Activation function for the hidden layer is ReLU There's no activation function for ...
2
votes
1answer
175 views

Whats the different between Logistic regression and perceptron?

In a binary classification problem, if both logistic regression and a single preceptron uses Sigmoid function, what's the difference in classification results, since they will have the same decision ...
2
votes
0answers
13 views

Can we get the input from a multilayer perceptron based on the output of one of its hidden layers?

I was reading a relatively new paper that proposed to split a nerual networks layers into groups and sending each group to different nodes to train them in a distributed manner. In order to not send ...
2
votes
0answers
109 views

Output node of Perceptron neural network 'learning' unexpected function

I'm building some simple Perceptron networks to gain insight into how they operate. Most of the results are compelling, but there is one that I cannot figure out. Here is my simple Perceptron class ...
2
votes
2answers
248 views

How to find multi-layer perceptron weights?

I want to use a multi-layer perceptron to design the following function : The architecture I want to use is the following one : What would be $w_i$ weights ? Is there any guide to find them ? I ...
2
votes
0answers
165 views

Machine learning: intuition behind perceptron learning algorithm

Given features x_1...x_n, weights w_1...w_n, calculated output y = Z dot X, and actual output y', the perceptron learning algorithm changes the weights after each iteration as follows: ...
2
votes
0answers
1k views

Deriving step size/learning rate in the hinge loss passive-aggressive/perceptron algorithm

Recall the perceptron algorithm: cycle through all points until convergence $\text{if }\, y^{(t)} \neq \theta^{T}x^{(t)} + \theta_0\,\{\\ \quad \theta^{(k+1)} = \theta^{k} + y^{(t)}x^{(t)}\\ \}$ ...
1
vote
0answers
21 views

Rule of thumb for Data Requirements when Designing a Neural Network for Deep Learning

I'm designing an MLP classifier and I've been noticing that: Using a very shallow network, or one whose at least one layer has a small number of neurons yields bad performance Using a deep network ...
1
vote
0answers
38 views

Why do we use Matrix in Perceptron instead of Functions?

Matrices are good objects to store connections between dimensions/entities. However, matrix computation is often time consuming and sometimes wasteful if matrix is too sparse. Also thinking about the ...
1
vote
1answer
42 views

Can we express CNNs in terms of a MLP?

I have been wondering whether a convolution can be represented in terms of an MLP. We can say that in convolution we have shared parameters between different neurons. But how to express this ...
1
vote
1answer
64 views

Use a multilevel logistic regression and cross validation

I want to use a multilevel logistic regression for a double purpose, estimating the value of coefficients to explain a phenomenon. At the same time, I want to split the data through cross-validation ...
1
vote
2answers
69 views

LabelEncoder with a Multi-Layer Perceptron?

So we're working on a machine learning project at work and it's the first time I'm working with an actual team on this. I got pretty good results with a model that uses the following SKLearn pipeline: ...
1
vote
1answer
31 views

Why do my training losses go up?

I am new to Machine Learning and Tensorflow. For one of my courses, I need to train an MLP for the xor gate. But my losses somehow go up each epoch, which confuses me and I must admit that I ran out ...
1
vote
0answers
37 views

How are the weights of a single layer perceptron updated given the misclassification of a point?

Here is some data separated by decision line The equation of decision line/boundary is $x_1 -3x_2 + 3 = 0$. Therefore $w_1 = 1, w_2 = -3$ and, if $w_0 = -1$, then the bias $\theta = -3$. Now, I have ...
1
vote
1answer
58 views

Neural Networks Perceptrons and MLPs

While studying as a newbie about Neural Networks I started as everyone from the basics (perceptrons, MLPs) then how backpropagation works before dive in to harder deep learning concepts. Now, I am ...
1
vote
0answers
39 views

Why my perceptron doesn't train well and produces bad results on test data?

I am a newbie in Machine learning and I am writing a small code for Perceptron. This is the first time I am writing code in Python. I have four training data points (X). As they are used for ...
1
vote
0answers
280 views

Computing the Hessian Matrix Diagonal of a multi-layered Feed Forward Neural Network

I am working on using a Feedforward multi-layered perceptron as a function approximator for the pressure distribution of a groundwater system. I am essentially trying to solve a boundary value problem ...
1
vote
0answers
595 views

Implementing a Perceptron in R - where am I going wrong?

I am trying to build a perception in R. I have generated some test data that is clearly linearly separable. I have tried a variety of learning rates, but the classification rate just seems to bounce ...
1
vote
0answers
212 views

Energy based model of perceptron loss?

I was reading LeCun's tutorial paper on energy-based models of cost functions, and came upon this table. I don't understand how he got the equation for perceptron loss. Can someone clarify how that ...
1
vote
0answers
247 views

Would a concatenated CBOW architecture outperform SG on rare words?

Typically, the Skip-Gram (SG) architecture is argued to be superior to Continuous Bag-of-Words (CBOW) for rare words because the CBOW averages over the input words (Mikolov et al., 2013). That is, ...
1
vote
0answers
41 views

Using Multi Layer Perceptron to categorize skills to roles

I have a data set of different roles and their skills. For eg. ...
1
vote
0answers
268 views

How does regularized logistic regression regularize perceptron hypothesis set in binary classifcation task?

I'm a newbie to Machine Learning and I'm not very good at math. I have read Learning From Data - A Short Course and met this Exercise 4.6 on page 133: We have seen both the hard-order constraint ...
1
vote
0answers
196 views

What is the standard format of training data for a MLP when the dataset includes various kind of data?

I am using a dataset that includes different kind of data: Real valued variables Binomial categorial variables Multilabel categorical variables I would like to build a deep multi-layer perceptron ...
1
vote
0answers
169 views

How to combine perceptron weights and probabilities

I am working on machine transliteration using structured perceptron to learn the model parameters at word level. I am using beam-search to extract the top $n$ transliterations of a word and would like ...
1
vote
0answers
427 views

Why use a restricted Boltzmann machine rather than a multi-layer perceptron?

I'm trying to understand the difference between a restricted Boltzmann machine (RBM), and a feed-forward neural network (NN). I know that an RBM is a generative model, where the idea is to reconstruct ...
1
vote
0answers
291 views

Perceptron Learning Algorithm: what is the probability that the viewed data is linearly separable, after some number of steps?

My understanding is that the Perceptron Learning Algorithm: will not converge if the data is not linearly separable. might take exponentially many iterations, even if the data is linearly separable. ...
0
votes
0answers
4 views

How do I calculate the update in traditional perceptron learning rule in batch mode?

I'm going through past exams for my neural networks course, and I'd like hand holding in how to calculate this and intuition behind just "seeing" what the right answer is given that I get a ...
0
votes
0answers
23 views

How to plot a very simple linear classifier (perceptron) by hand

I'm trying to understand theoretically linear classifiers. In order to do this, I'm trying to plot a very simple linear classifier, add some points, and see how the linear boundary changes (plotting ...
0
votes
0answers
7 views

What is the Perceptron Kernel predictor function?

I am trying to implement a kernalised perceptron, and one thing that I can't understand is what at the end is the predictor function and how do we use it? I know that the update rule is $$\left (y_i \...
0
votes
0answers
13 views

Perceptron - Never find the AND solution

I'm trying to understand the roots of neural networks, and that's why I'm trying to code the perceptron. This is my class: ...
0
votes
0answers
17 views

Why in gated recurrent unit gates are controlled by only one layer perceptrons?

Why don't I see a GRU anywhere with more than one layer of perceptrons inside, it's pretty obvious to try to put more layers in there, but I don't see anyone doing that
0
votes
0answers
36 views

Calculate the confidence score (decision_function) of perceptron, by the signed distance of that sample to the hyperplane

I've implemented the binary version of perceptron from scratch, in python. I would like to use it for one vs all classification, by using the one vs all of sklearn. for that, I need to implement the ...
0
votes
1answer
60 views

Weight update rule for Rosenblatt's Perceptron

I'm wondering if anybody can explain how Rosenblatt reached his formula for updating the weights of his Perceptron: $\textbf{w}_{t+1} = \textbf{w}_{t} +\eta ( y_j - \hat{y}_j ) \textbf{x}_j$ It seems ...
0
votes
1answer
36 views

linear perceptron algorithm with 3 training samples

So I am working on a linear perceptron algorithm problem that has 3 training samples. (2D space) ...
0
votes
0answers
26 views

Choosing perceptron weights to achieve 0% error

I'm really not sure what to do for this question, although I think I would be able to do q3 if I knew how to do q2
0
votes
1answer
79 views

Perceptron Learning Algorithm

Is it possible to draw a hyperplane/decision boundary (not a decision function) from the parameters learned in PLA. If so how is this done (code would be ideal, if available). If not why?
0
votes
1answer
953 views

Update weight vector regardless of correctness for perceptron algorithm

For the perceptron algorithm, what will happen if I update weight vector for both correct and wrong prediction instead of just for wrong predictions? What will be the plot of number of wrong ...
0
votes
1answer
235 views

Approximating SVM using Perceptron

Suppose that we have a set of linearly separable data and this pseudocode of Perceptron: ...
0
votes
1answer
36 views

How to define user efficiency time

I'm making a user study. Users had to perform the same task 10 times. I've recorded the completion times of each task. Now I need to calculate the efficiency time. As you can imagine the user, when ...
0
votes
1answer
57 views

Single artificial neuron easily extendable to neural network

I'm working on implementation of artificial neuron which be extended to neural net. I want do implementation by myself to fully understand how it works. I start with perceptron with threshold ...