python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
Get the NaN and Infinity when calculating the Softmax
I'm trying to implement the Softmax function in android.
Here is the original softmax function from Stackoverflow for reference:
Softmax Activation Implementation
private double softmax(double input, ...
stackbiz
Votes: 0
Answers: 1
Things I am Confused about
I am a little confused about a few things, and I was wondering if I could get some help.
the necessity of softmax layers: I thought that for classification models the softmax layer converts creates p...
ThatGuyMuddy
Votes: 0
Answers: 1
How can i get top 5 prediction in Image Classifier?
this code gives me top 1 prediction but i want top 5. how can i do that?
# Get top 1 prediction for all images
predictions = []
confidences = []
with torch.inference_mode():
...
Mehdi Gholinejad
Votes: 0
Answers: 1
neural network binary classification softmax logsofmax and loss function
I am building a binary classification where the class I want to predict is present only <2% of times. I am using pytorch
The last layer could be logosftmax or softmax.
self.softmax = nn.Softmax(dim...
user2543622
Votes: 0
Answers: 0