Questions tagged [perceptron]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
15 views

Stop criterion is Infinitive in Perceptron in Sklearn

I read code in book "Hand-on Machine Learning in Sklearn and TensorFlow" by Aurelien Geron ...
0
votes
0answers
72 views

Volatility forecasting using MLP

I am currently working on a project which aims to predict the Monthly volatility of the S&P 500 index with the aid of Multilayer Perceptrons (MLP). Actually, I am trying to reproduce some of the ...
17
votes
1answer
2k views

Why pure exponent is not used as activation function for neural networks?

The ReLU function is commonly used as an activation function in machine learning, as well, as its modifications (ELU, leaky ReLU). The overall idea of these functions is the same: before ...
0
votes
0answers
26 views

When do Tanh activation functions outperform Relu activation functions?

I have a somewhat generic question: I have been researching about what activation function to use in the hidden layers of a given neural network. But it seems that in literature, the standard Relu ...
1
vote
1answer
126 views

How to resolve the perceptron dilemma for binary classification?

I have a following thought problem involving perceptron and binary classification that I wonder if anyone has thought about before. This is not from any textbook or reference, although I doubt I'm the ...
0
votes
1answer
18 views

In AI/ML, using the Perceptron model, would it ever make sense to have both negative weights and data?

I understand the math but I want to make sure I understand the mapping back to real world scenarios. Thinking about it logically, I cannot think of a real world scenario where you would have a ...
1
vote
1answer
102 views

In what way are SGD and Perceptron very similar?

I'm reading Hands-On Machine Learning and the author states that: You may have noticed the fact that the Perceptron learning algorithm strongly resembles Stochastic Gradient Descent. In fact, Scikit-...
0
votes
0answers
14 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 ...
1
vote
0answers
29 views

One-hot encoding in Keras for R [closed]

I am trying to build a binary classifier using a MLP with the Keras package in R. My question is, why does the package require the labels to be a one-hot vector? For example, the value 1 will be the ...
3
votes
1answer
48 views

Best approach for energy demand forecasting

I am trying to predict the amount of energy demand(Wh) of the next two weeks per hour. The dataset I have, contains each hour of each day since 2019 of the energy demand, is something like this: ...
0
votes
0answers
35 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
11 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 \...
1
vote
1answer
99 views

How to draw the single perceptron decision boundary when weights and bias are 0?

I've been following an algorithm described on a book called Knowledge Discovery with Support Vector Machines by Lutz H. Hamel. In the book, there is this learning algorithm for a single perceptron ...
0
votes
0answers
45 views

Is the data linearly separable? [duplicate]

I have built a multiclass perceptron, which predicts the values of the Iris dataset. To more accurately classify the data points of the Iris Dataset, I used a Kernel to define a non-linear manifold ...
0
votes
0answers
15 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: ...
3
votes
1answer
66 views

About Multi-layer Perceptrons

I've always been a bit confused when it comes to Deep Learning terminology. Is the definition of the perceptron, whether single layer or multi layer, associated with a specific type of activation ...
1
vote
0answers
30 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 ...
0
votes
1answer
66 views

Perceptron as a Logistic Regression

If by following way single perceptron is made to work like Logistic Regression. How much correct is it to say that I made perceptron to work as Logistic Regression. Question came to mind as ...
1
vote
0answers
41 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 ...
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
2
votes
1answer
317 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 ...
1
vote
1answer
82 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 ...
5
votes
1answer
556 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 $\...
0
votes
1answer
212 views

Neural network regression with constraint

I am training a neural network for a regression task, where the dependent variable varies in the range from $0$ to $10$. Unsurprizingly, with the test data set, I obtain the predictions that fall ...
2
votes
1answer
238 views

Can a 4D perceptron be plotted in 2 dimensions?

I am wondering if it is at all possible to plot a 4D perceptron line in 2D. Obviously, it would be impossible to observe it with all of its original information, but is there a way for me to observe ...
2
votes
1answer
80 views

Can we use perceptron training algorithm to train a single neuron with sigmoid activation?

The perceptron training algorithm is summarized as: Apply the inputs and calculate the output $ y $ Compare with the desired output yd and calculate error $e = y-y_d$ Update the weights based on the ...
5
votes
2answers
400 views

SciKit Learn: Multilayer perceptron early stopping, restore best weights

In the SciKit documentation of the MLP classifier, there is the early_stopping flag which allows to stop the learning if there is not any improvement in several ...
0
votes
1answer
103 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 ...
1
vote
1answer
95 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 ...
0
votes
1answer
30 views

Am I fundamentally misunderstanding the net input dot product w*x

Most books have the notation of a weight vector w and input matrix x: $$ w = \begin{bmatrix} w_1\\...\\ w_D \end{bmatrix}, x = \begin{bmatrix} x_{11}&...&x_{1D}\\ ...&...&...\\ x_{N1}&...
1
vote
1answer
61 views

Equivalence of Deep Feed-Forward Neural Network to Single-Layer Network

I am new to Deep Learning, and I was going through some lecture notes I found online. It said that a feed-forward neural network with $n$ hidden layers and only linear activation functions is ...
2
votes
0answers
15 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 ...
3
votes
1answer
815 views

Can non-linearly separable data always be made linearly separable?

A data set that is linearly separable is a precondition for algorithms like the perceptron to converge. It's well-known that we can project low-dimensional data to a higher dimension using kernel ...
1
vote
1answer
335 views

Kernelized perceptron algorithm weights update

I'm asked to find the maximum margin decision surface separating positive from negative samples by inspection. The positive examples are (1,1) and (-1,-1), the negative ones are (1,-1) and (-1,1). The ...
1
vote
2answers
780 views

Can a Single Layer Perceptron Learn a Nonlinear Function?

A lot of times I've read that with a Single Layer Perceptron (SLP), you can only learn linear functions. But what if we use a generalized linear model? Imagine we only have one input feature $x_1$. ...
2
votes
1answer
165 views

Why the weight vector is a linear combination of the inputs and the outputs in the Perceptron

I was studying Support Vector Machines and I've got stuck with this relation regarding the weight vector of the hyperplane. $w=\sum\limits_{i\in I}^{} y_i x_i$ For reference, I'm studying from the ...
1
vote
2answers
140 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
2answers
509 views

Why is the equation for a single-neuron perceptron decision boundary Wp + b = 0 set to ZERO?

I am learning about artificial neural networks. I understand how the weights determine the slope of the (orthogonal) decision boundary and how the bias shifts that decision boundary, much like a line. ...
7
votes
1answer
333 views

Support Vector Machine with Perceptron Loss

Typical support vector classifier uses the following optimization procedure: $$\min ||w||^2 + C\sum_{i=1}^N \zeta_i$$ $$y_i(w^Tx_i+b) \geq 1 - \zeta_i$$ $$\zeta_i \geq 0$$ This hinge loss setup ...
1
vote
1answer
32 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 ...
0
votes
1answer
400 views

Convergence speed of perceptron algorithm

I was reading the convergence proof for the perceptron algorithm. It says under the assumption that there are some $R$, $\theta^*$ with $|\theta^*| = 1$ and $\gamma > 0$, such that $y_t(x_t\cdot \...
1
vote
1answer
318 views

Can a unit-step function introduce non-linearity if used in the hidden nodes?

I have a follow up from this question. From the answers in that question, it's obvious that at minimum, a shallow network (only has a single hidden layer), as defined in the "Universal Approximation ...
0
votes
1answer
39 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
1answer
4k views

Gradient descent with Binary Cross-Entropy for single layer perceptron

I'm implementing a Single Layer Perceptron for binary classification in python. I'm using binary Cross-Entropy loss function and gradient descent. The gradient descent is not converging, may be I'm ...
1
vote
0answers
46 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
397 views

Why does Perceptron use L1 norm as its error function?

Usually, people use L2 norm as a machine learning error function. per wiki the error function for a Perceptron model is ${\displaystyle {\frac {1}{s}}\sum _{j=1}^{s}|d_{j}-y_{j}(t)|}$ why is that?
2
votes
1answer
220 views

Rule of thumb Overfit in a MLP or is it possible with N = 135

I want to say ahead that I highly appreciate any Literature recommendation (Book, blogg, ...) besides ESL and ISL. My Question: Is it possible to train a 3 layer multilayer perceptron (mlp) in a ...
0
votes
2answers
6k views

How are the weights updated in the perceptron learning rule?

I'm considering a perceptron model. I know that when feeding observations from the training dataset to the model, if the model correctly classifies the input, then the weights for this input will not ...
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 ...