samth
2019-5-17 13:00:25

Does the readme mention deleting the logs?


rjnw
2019-5-17 14:05:19

no the make commands delete them automatically


samth
2019-5-17 14:31:31

ok


carette
2019-5-17 17:55:50

Ok @ccshan I am trying to debug that Maple problem from too-many.mpl. Which version of Maple are you using?


carette
2019-5-17 17:56:36

I’ve got 2018 installed, and the symptoms are different. [After 5 minutes of computation, it’s still going, even though the problem is “easy”].


ccshan
2019-5-17 17:58:00

The build ID is in the file I provided… It says Maple 2018 at startup


carette
2019-5-17 17:59:42

I’ve got 2018.2, with later IDs for both.


ccshan
2019-5-17 18:00:06

Not sure what you mean by “both”, but I hope I’ve answered your question.


carette
2019-5-17 18:00:42

You have.


carette
2019-5-17 18:02:34

One of the issues is that, the ‘raw’ integral (outside the product) returns a limit.


carette
2019-5-17 18:05:29

How long does it take, on your system, go get that error?


ccshan
2019-5-17 18:07:11

“quit” says “time=30.50" so I guess that’s the total time: about 10 seconds on the top-level call to ints and about 20 seconds on the top-level call to simplify_assuming


carette
2019-5-17 18:07:50

If you just do int(x^(Sum(piecewise(i = Hakaru:-idx(y, j), 1, 0), j = 0 .. n-1)), x = 0 .. 1)


carette
2019-5-17 18:08:04

in a maple session, does the answer have a limit in it?


ccshan
2019-5-17 18:13:09

Yes.


carette
2019-5-17 18:13:59

Ok, good, at least things aren’t that divergent.


carette
2019-5-17 18:14:46

Nevertheless, the issue with that is that the product will never compute and may indeed cause an enormous computation, of which the stack overflow may just be a symptom.


ccshan
2019-5-17 18:15:15

BTW maybe it’s relevant to recall that Loop:-ModuleLoad overrides csgn and sum


carette
2019-5-17 18:15:46

Ah, indeed, that is a good thing to remember. Let me trigger those and try again.


ccshan
2019-5-17 18:17:37

with(Loop) didn’t change it for me


carette
2019-5-17 18:18:06

with(NewSLO); with(Hakaru); did, for me.


carette
2019-5-17 18:18:22

But the result stayed the same.


carette
2019-5-17 18:21:31

The fundamental problem is that ‘something’ can’t tell that (Sum(…)+1) where the Sum is over 0/1 stuff is in fact strictly positive.


ccshan
2019-5-17 18:23:35

That sounds like what the csgn override was supposed to fix.


carette
2019-5-17 18:24:56

Indeed - but in this case, it’s not called at all. signum is used instead.


carette
2019-5-17 18:26:44

So I’ll try to use the same trick and see if that helps.


carette
2019-5-17 18:58:28

And the results are mixed. I can get that signum to return. But the computation is still stuck inside int for me.


carette
2019-5-17 18:59:08

And I mean ‘stuck’, I have still not been able to reproduce the symptom you get!


carette
2019-5-17 19:07:12

I am currently quite befuddled by this. It doesn’t feel like I am making any progress at all.


carette
2019-5-17 19:07:58

This exactly seems to be triggering all sorts of Maple problems.


carette
2019-5-17 19:18:49

At this point, I’m kind of giving up. I’ve reported a bug to Maplesoft, let’s see what they say.


carette
2019-5-17 19:22:47

I’ve got some ideas of how I might be able to hack my way around this, in our front-end to int, but I don’t think I want to try to do it before our today deadline, as I run way way too high a risk of breaking things.


ccshan
2019-5-17 20:31:57

@rjnw In my VirtualBox I ran gmm-25 and nb, and it generated 3 PDF files as expected. But in the NB plots, the JAGS curve seem to have only one point on it, at time 0. Can you at least double-check that the plots you generated are like the ones currently in pipeline.pdf?


carette
2019-5-17 20:57:31

yeah, I feel the same.


rjnw
2019-5-17 21:09:54

Yes I updated the configuration for that recently in Main.hs in hakaru-benchmarks/runners/hk/NaiveBayesGibbs, is it possible for you to verify the change just by looking at knobs variable?


samth
2019-5-17 21:10:28

@rjnw does that mean that the image we downloaded is out of date? or that the image needs to be updated?


rjnw
2019-5-17 21:10:48

Just need to run git pull


rjnw
2019-5-17 21:11:20

I will upload a fresh image tonight to submit


samth
2019-5-17 21:16:48

I created a checklist of things to do here: https://github.com/rjnw/hakaru-benchmarks/issues/1


samth
2019-5-17 21:17:06

@ccshan and I came up with a list of things to add to the README


ccshan
2019-5-17 21:17:25

Thanks! I just did git pull and it will take a while to check that it produces a similar figure to the paper.


carette
2019-5-17 21:19:02

I still don’t know if our ‘artifact’ only includes the compiler back end or the whole thing…


ccshan
2019-5-17 21:20:48

I’m going to take a first stab at writing inside README-ARTIFACT.md to describe the hs->hk->hkr->rkt->pdf pipeline and say that hk->hkr requires Maple and if you happen to have Maple then here’s how you can run that step and here’s a small program to simplify using that Maple


ccshan
2019-5-17 21:21:07

(That’s on the to-do list now that Sam created.)


carette
2019-5-17 21:21:25

Ok, good.


carette
2019-5-17 21:22:43

I can report that the installation instructions for the Maple part of Hakaru at http://hakaru-dev.github.io/intro/installation/ work, as I had to perform them on a new machine earlier today.


ccshan
2019-5-17 22:46:12

I drafted https://github.com/rjnw/hakaru-benchmarks/commit/9f857ca4d62f4b47992fa1c97411a817f5513537 and it is ready for people to improve. In particular, it could use an explanation of where our test data comes from.


samth
2019-5-18 00:29:52

@carette our artifact include all the code you get by cloning the hakaru-benchmarks repository


samth
2019-5-18 00:50:48

I am editing


carette
2019-5-18 00:53:41

It seems that links to the original Hakaru but doesn’t “include” it?


samth
2019-5-18 00:54:47

it contains the hakaru repository as a git submodule


carette
2019-5-18 00:55:48

So does that mean it’s an artifact or not?


samth
2019-5-18 00:58:58

all the submodules are checked out when you check out the hakaru-benchmarks repository


samth
2019-5-18 01:11:56

I made some revisions, most significantly a section reorganization


samth
2019-5-18 01:12:25

It would be great to be able to run @ccshan’s simple example with some Racket/Sham code, but I think @rjnw would need to write that


samth
2019-5-18 01:12:42

It would also be great to add that example to the repository (and thus artifact).


samth
2019-5-18 01:29:11

I did the one remaining checklist item that I can do


samth
2019-5-18 01:57:19

@rjnw I think we’re all mostly waiting on you, so if there’s something we can do please let us know


rjnw
2019-5-18 01:58:52

I don’t have maple installed so if someone can generate the hkr file and check it in I can try to write the racket code for that


samth
2019-5-18 01:59:33

Isn’t the output also there in the example?


rjnw
2019-5-18 01:59:41

not hkr


samth
2019-5-18 02:00:13

what about the other issues in the checklist here? https://github.com/rjnw/hakaru-benchmarks/issues/1


samth
2019-5-18 02:00:55

the most signficant is the exact inference


rjnw
2019-5-18 02:01:04

I will work on the exact inference


rjnw
2019-5-18 02:07:06

for both clinical trial and linear regression I just print time for 20 runs on terminal is that okay?


samth
2019-5-18 02:07:46

yes, but add that to the readme


rjnw
2019-5-18 02:14:09

done, I created a link in the desktop folder as well so it is the first thing they see.


samth
2019-5-18 02:14:21

awesome


samth
2019-5-18 02:16:49

I just did a little more editing


samth
2019-5-18 02:17:18

let’s check with @ccshan and then upload/submit?


rjnw
2019-5-18 02:18:54

should we just upload the vm image or tar it as well?


samth
2019-5-18 02:19:11

I think just upload the VM image


samth
2019-5-18 02:42:20

Also update the readme on the artifact submission site


samth
2019-5-18 02:42:52

I’ll do that now


rjnw
2019-5-18 02:43:21

I am exporting the image it takes 45 minutes


samth
2019-5-18 02:43:31

@rjnw will the URL stay the same?


rjnw
2019-5-18 02:43:32

and then will upload it to drive which takes some more time


rjnw
2019-5-18 02:43:41

I don’t know, I can try


rjnw
2019-5-18 02:45:08

yes I can right click and manage versions and then upload a new one


samth
2019-5-18 02:46:20

ok


samth
2019-5-18 02:48:49

everything should be done, except the md5 and sha1 hashes of the final artifact


samth
2019-5-18 02:48:58

samth
2019-5-18 02:49:12

(and if the URL has to change for some reason)


samth
2019-5-18 02:51:17

I’ll trust @rjnw to do that, and I’m off to bed


rjnw
2019-5-18 02:51:35

sounds good, I will do that


ccshan
2019-5-18 03:24:17

Hey hey, sorry I was away, does any hkr need generated or anything else?


rjnw
2019-5-18 03:31:00

I am already uploading the latest version, I looked at the example and I think we don’t support the plate and bind forms in the racket implementation yet.


ccshan
2019-5-18 03:39:00

Ah ok so all our inference benchmarks (both approximate and exact) sample a few scalars at a time, not array


rjnw
2019-5-18 03:41:58

btw did you get the output from NaiveBayes with new jags config?


ccshan
2019-5-18 04:07:54

Still waiting for that…


rjnw
2019-5-18 04:14:55

new version is still uploading but I updated the sha and md5 hashes


ccshan
2019-5-18 05:13:37

Speaking of waiting, how’s your visa application going Rajan?