Questions tagged [sigmoid]

A sigmoid function is a mathematical function having an "S" shape (sigmoid curve). Often, sigmoid function refers to the special case of the logistic function defined by the formula S ( t ) = 1 / (1 + e^-t)

Sigmoid function (Wikipedia)

256 questions
1
vote
1 answer

How can I find a good fit for my function?

I have a set of data at which I would like to fit a curve to. However, I'm having difficulties with finding the right equation type. I'm guessing it's a type of sigmoidal function. I have tried several forms, but none of them seem to fit…
Yoni Verhaegen
  • 111
  • 1
  • 11
1
vote
0 answers

Tensorflow: Normalizing unbounded data

Normally when people normalize a data set, they tend to do something like: Normalize Equation My problem with using this technique though, is that my data is not bounded and I really want to avoid imposing an artificial upper or lower bound to my…
1
vote
1 answer

why this code doesn't give me plot line (without error)?

I wrote this piece of code for plotting the 'Theoretical probability of a successful search versus Jaccard similarity' figure. The output is an empty plot. I don't know what should I change. the original function is in the picture I have replaced…
samira F
  • 11
  • 1
1
vote
0 answers

How to Dynamically fit sigmoid growth curve for crop plants?

This is the typical Crop Growth Curve The general equation/function for the sigmoid curve are, as in the function below 1 2 def sigmoid(x): y = (1 / (1 + np.exp(-x))) return (y) I want that during any crop period starting from day 1, to…
1
vote
2 answers

Fitting a sigmoid curve using a logistic function in R

I have data that follows a sigmoid curve and I would like fit a logistic function to extract the three (or two) parameters for each participant. I have found some methods online, but I'm not sure which is the correct option. This tutorial explains…
1
vote
1 answer

How to make a Sigmoid function work on tensors

I am trying to build a logistic regression model and I implemented a sigmoid function from scratch using python. It works on regular integers and floats but does not work on individual values in tensors. def sigmoid(z): return 1/(1 +…
1
vote
1 answer

how to remove these loops in python for sigmoid function

def sigmoid(a): g = a for i in range(a.shape[0]): for j in range(a.shape[1]): if a[i][j] >= 0: z = np.exp(-a[i][j]) g[i][j] = 1 / (1 + z) else: z =…
1
vote
2 answers

How does logistic regression build Sigmoid curve from categorical dependent variable?

I'm exploring the Scikit-learn logistic regression algorithm. I understand that as part of the training, the algorithm builds a regression curve where the y-variable ranges from 0 to 1 (sigmoid S-curve). The y-variable is a continuous variable here…
museshad
  • 498
  • 1
  • 8
  • 18
1
vote
1 answer

How can I calculate cross-entropy on a sigmoid neural network binary outcome?

I'm currently building a NN from scratch where we want to identify based on two input variables (X_1 and X_2) what their output will be (0 or 1). I have 2 hidden layers with sigmoid activation on all neurons however I get stuck when calculating the…
1
vote
1 answer

Understanding neural network output >1 with sigmoid activation function

I'm experimenting with a model combining a convolutional neural network with a linear model. Here is a simplified version of it: from tensorflow.keras import Sequential from tensorflow.keras.experimental import WideDeepModel,…
lmm_5000
  • 139
  • 8
1
vote
2 answers

Need help in generating and the cost for a gradient descent function

I was following Andre Ng's Course on Natural Language Processing, Week 1 and trying to find the components of a function that is calculating a gradient Descent. The GradientDescent function is given as such: # UNQ_C2 (UNIQUE CELL IDENTIFIER, DO NOT…
Johnny
  • 819
  • 1
  • 10
  • 24
1
vote
1 answer

fitting a group of sigmoids with different models with least_squares()?

For a series of experiments measured at different time points, I'm trying to compare fits that fixed parameters for all experiments with fits that have an individual set of parameters per experiment, using an information criterion (like Akaike IC).…
1
vote
0 answers

val_loss and loss not decreasing u-net

I am training a U-NET model on 238 satellite images. my val_loss is not decreasing below 0.3, despite of the different architectures that I…
1
vote
1 answer

Sigmoid for regression

i just started with data-science, so if this is a very dumb question then please excuse me... So, i just learnt about the sigmoid neuron, and learnt that its range is [0, 1]. The question i have is that how can it be used in regression tasks, for…
DS3a
  • 99
  • 1
  • 7