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)
Parametric estimation of a Gaussian Mixture Model
I am trying to train a model to estimate a GMM. However, the means of the GMM are calculated each time based on a mean_placement parameter. I am following the solution provided here, I'll copy and pas...
Saam
Votes: 0
Answers: 1
Plot derivatives of sin(x) using pytorch
Am unsure why my code does not plot cos(x) (yes, am aware pytorch has cos(x) function)
import math
import os
import torch
import numpy as np
import matplotlib.pyplot as plt
import random
x = torch.li...
zed111
Votes: 0
Answers: 1
GradientTape returning None when run in a loop
The following gradient descent is failing 'coz the gradients returned by tape.gradient() are none when the loop runs second time.
w = tf.Variable(tf.random.normal((3, 2)), name='w')
b = tf.Variable(tf...
manikawnth
Votes: 0
Answers: 1
Can pytorch compute gradients for composite tensors?
Suppose I have a parameter p and a big tensor a initialized as:
a = torch.empty(size=[50] + list(p.shape))
I then fill a as follows:
for i in range(a.shape[0]):
a[i] = torch.pow(p, i) #more compl...
hamza keurti
Votes: 0
Answers: 1