Questions tagged [sigmoid]

11 questions
3
votes
1 answer

Difference in performance Sigmoid vs. Softmax

For the same Binary Image Classification task, if in the final layer I use 1 node with Sigmoid activation function and binary_crossentropy loss function, then the training process goes through pretty smoothly (92% accuracy after 3 epochs on…
3
votes
3 answers

How to interpreter Binary Cross Entropy loss function?

I saw some examples of Autoencoders (on images) which use sigmoid as output layer and BinaryCrossentropy as loss function. The input to the Autoencoders is normalized [0..1] The sigmoid outputs values (value of each pixel of the image) [0..1] I…
1
vote
0 answers

If the input to the autoencoder is normalized, do we need to use sigmoid on the last layer?

According to: https://stackoverflow.com/questions/65307833/why-is-the-decoder-in-an-autoencoder-uses-a-sigmoid-on-the-last-layer The last layer activation function contains sigmoid in order to the output to be in range [0, 1]. If the input to the…
1
vote
0 answers

How do I calculate the New W1 and New W2?

You are training the following perceptron. The neuron in this perceptron has a sigmoid activation function. The sigmoid function is represented by the following equation: Using the update function for the weights: with a learning rate of η=1, and…
coder3
  • 111
  • 2
0
votes
1 answer

The sum of multi-class prediction is not 1 using tensorflow and keras?

I am studying how to do text classification with multiple labels using tensorflow. Let's say my model is like: model = tf.keras.Sequential([ tf.keras.layers.Embedding(vocab_size, 50, weights=[embedding_matrix], trainable=False), …
Feng Chen
  • 207
  • 1
  • 9
0
votes
2 answers

Is this an unusual distribution for a sigmoid output from a neural network?

Shown here is the histogram of around 130K predictions of my deep neural network that is classifying some financial data. This is on the dev set but a similar distribution is also seen on the train set. The output is a sigmoid function with a binary…
BYZZav
  • 103
  • 4
0
votes
0 answers

Binary classification works with softmax, but not sigmoid

I am doing a binary classification problem for seizure classification. I split the data into Training, Validation and Test with the following sizes and shapes dataset_X = (154182, 32, 9, 19), dataset_y = (154182, 1). The unique values for dataset_y…
0
votes
1 answer

Improvement of the Keras model for a regression task

I am trying to build an expectation model for my (19502,3) data using Keras Sequential model. This dataset has been generated using a parametric sweep in a simulation software. With this model, I want to expect the length and the weight of an item…
0
votes
1 answer

Logistic Regression mapping formula

Sigmoid function predicts the probability value which is between 0 & 1. What is the formula in logistic regression that maps the predicted probabilities to either 1 or 0?
Apoorva
  • 275
  • 4
  • 13
0
votes
2 answers

Mapping values in Logistic Regression

When mapping probabilities obtained in logistic regression to 0s & 1s using the sigmoid function, we use a threshold value of 0.5. If the predicted probability lies above 0.5, then it gets mapped to 1, if the predicted probability lies below 0.5, it…
Apoorva
  • 275
  • 4
  • 13
0
votes
1 answer

Understanding intution behind sigmoid curve in the context of back propagation

I was trying to understand significance of S-shape of sigmoid / logistic function. The slope/derivative of sigmoid approaches zero for very large and very small input values. That is $σ'(z) ≈ 0$ for $z > 10$ or $z < -10$. So update to weights will…