You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/ljoana/repos/rPSMF/ExperimentBeijing/beijing_psmf.py", line 171, in <module>
main()
File "/Users/ljoana/repos/rPSMF/ExperimentBeijing/beijing_psmf.py", line 151, in main
psmf.run(
File "/Users/ljoana/repos/rPSMF/ExperimentBeijing/beijing_psmf.py", line 71, in run
self.step(y_train, i, T)
File "/Users/ljoana/repos/rPSMF/pypsmf/psmf/psmf.py", line 77, in step
self.inner(i, k, y[k])
File "/Users/ljoana/repos/rPSMF/pypsmf/psmf/psmf.py", line 81, in inner
P_bar = self._predictive_covariance(i, k)
File "/Users/ljoana/repos/rPSMF/pypsmf/psmf/psmf.py", line 103, in _predictive_covariance
F = F.squeeze(axis=1).squeeze(axis=2)
ValueError: cannot select an axis to squeeze out which has size not equal to one
make: *** [ExperimentBeijing/output/periodic_bases.pdf] Error 1
I noticed that the shape of the nonlinearity output in FourierBasis
# The output of the Jacobian is (r, 1, r, 1), since the input, mu, to
# the nonlinearity is (r, 1) and it outputs an array of the same size.
# We need F to be an (r, r) matrix, so we squeeze out the second and
# fourth axes.
it is stated that The output of the Jacobian is (r, 1, r, 1), since the input, mu, to the nonlinearity is (r, 1) and it outputs an array of the same size..., but in reality the input is (r, r) and the Jacobian is (r, r, r, 1).
The text was updated successfully, but these errors were encountered:
I am attempting to execute
make ExperimentBeijing
withrank
(rPSMF/ExperimentBeijing/beijing_psmf.py
Line 102 in 93ac689
1
and get the following error:I noticed that the shape of the nonlinearity output in FourierBasis
rPSMF/pypsmf/psmf/nonlinearities.py
Line 150 in 93ac689
(r, r)
(based on the paper it should be(r, 1)
), and that in the comments in_predictive_covariance()
rPSMF/pypsmf/psmf/psmf.py
Lines 107 to 113 in 93ac689
The output of the Jacobian is (r, 1, r, 1), since the input, mu, to the nonlinearity is (r, 1) and it outputs an array of the same size...
, but in reality the input is(r, r)
and the Jacobian is(r, r, r, 1)
.The text was updated successfully, but these errors were encountered: