Skip to content

Conversation

bwengals
Copy link
Contributor

@bwengals bwengals commented Jun 29, 2018

Building on @jordan-melendez's work:

  • gp.LatentKron, tests
  • docs for gp.MarginalKron, gp.LatentKron

close #2860

@junpenglao
Copy link
Member

This close #2860 right?

@bwengals
Copy link
Contributor Author

Yup, that's the goal.

m = m.T
res, _ = theano.scan(kron_vector_op, sequences=[m])
return res.T
res = kron_vector_op(m)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah it turned out not too bad! Somehow scan returned the array in like, fortran ordering instead of c ordering. Somehow...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure why I did not do this in the first place. Though I wanted to avoid scan if at all possible, I feel like there was certain cases where "nicer" ways failed, such as with non-square matrices or something, but I can't remember. In any case, if the tests pass and everything still works I like this a lot!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome, glad to hear it! we'll see, if they're out there maybe those issues will come up down the road, and maybe not.

@bwengals
Copy link
Contributor Author

I think this is ready for merge. I'll do the coregionalization example in its own PR.

@junpenglao junpenglao changed the title [WIP] GPs with Kronecker structure GPs with Kronecker structure Jul 26, 2018
@junpenglao junpenglao requested a review from fonnesbeck July 26, 2018 04:09
@jordan-melendez
Copy link
Contributor

Looks great! Thanks for cleaning up my mess 👍

@bwengals
Copy link
Contributor Author

I think this is ready to go, will merge in a couple days if everyones ok with it

@bwengals bwengals merged commit 27be3da into pymc-devs:master Aug 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add Kronecker GP doc
3 participants