gen-quickstart icon indicating copy to clipboard operation
gen-quickstart copied to clipboard

Example.jl doesn't work

Open mackyo opened this issue 6 years ago • 8 comments

Can't install GenViz, The @addr statement fails. Running Julia 1.1.1, Windows 10. in Atom. Says @addr not defined. Does this work in Linux only? Wanted to try Gen.

mackyo avatar Jul 02 '19 20:07 mackyo

Got GenViz installed, but not the @addr problem

mackyo avatar Jul 02 '19 20:07 mackyo

Hi there -- thanks for your interest! To get started with Gen, we recommend following the 'Gen Quick Start.ipynb' notebook, which contains links to other notebooks in their intended order.

The example directory still uses an old version of Gen, which is why it has its own Project.toml and Manifest.toml files. If you'd like to run it, you'll need to run JULIA_PROJECT=. julia example.jl, within the example directory. The syntax has since changed so that what used to be @addr is now called @trace, and what used to be called get_assmt is now called get_choices. Hope that helps :)

alex-lew avatar Jul 02 '19 20:07 alex-lew

Alex, pretty good so far. Your examples actually work so far. But In the Tutorial: Data-Driven Proposals in Gen

“1: Recap on the generative model of an autonomous agent

We begin by loading the source files for the generative model of an autonomous agent that was introduced in a previous tutorial: In [ ]:

include("../inverse-planning/geometric_primitives.jl");

include("../inverse-planning/scene.jl");

include("../inverse-planning/planning.jl"); “

Where is this tutorial? Where are these files?

Also, in going through this what happened to:"One motivation of this work is to make automated AI more accessible to people with less expertise in computer science or math," says lead author of the paperhttp://news.mit.edu/2019/ai-programming-gen-0626, Marco Cusumano-Towner, a PhD student in the Department of Electrical Engineering and Computer Science.”

You must mean less than you guys, but way, way more math than me, like only one PhD in math. I can’t get past 2 lines without having to look something up. If this is for the common programmer, you’re going to have to get the math more simple. I saw Marco’s video. I got no idea what he’s talking about. I know you guys tend to want to do everything in terms of math, I can see all of the built in math terms in Julia, unlike most languages. But if you really want real life daily programmers to use this and create new stuff, you’ve got to lighten up on the math. Especially in explaining your programs.

From: Alex Lew [email protected] Sent: Tuesday, July 2, 2019 3:46 PM To: probcomp/gen-quickstart [email protected] Cc: Mack Oates [email protected]; Author [email protected] Subject: Re: [probcomp/gen-quickstart] Example.jl doesn't work (#17)

Hi there -- thanks for your interest! To get started with Gen, we recommend following the 'Gen Quick Start.ipynb' notebook, which contains links to other notebooks in their intended order.

The example directory still uses an old version of Gen, which is why it has its own Project.toml and Manifest.toml files. If you'd like to run it, you'll need to run JULIA_PROJECT=. julia example.jl, within the example directory. The syntax has since changed so that what used to be @addr is now called @trace, and what used to be called get_assmt is now called get_choices. Hope that helps :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/probcomp/gen-quickstart/issues/17?email_source=notifications&email_token=AD3DRR5GUC6JZMIWLJCR3XDP5O47DA5CNFSM4H47S2M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZCP3SQ#issuecomment-507837898, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD3DRR2LTHBLPJIPOJH6SWTP5O47DANCNFSM4H47S2MQ.

mackyo avatar Jul 06 '19 17:07 mackyo

I found the files

mackyo avatar Jul 06 '19 18:07 mackyo

Alex, you guys seem to not be using Flux. Is that right?

From: Alex Lew [email protected] Sent: Tuesday, July 2, 2019 3:46 PM To: probcomp/gen-quickstart [email protected] Cc: Mack Oates [email protected]; Author [email protected] Subject: Re: [probcomp/gen-quickstart] Example.jl doesn't work (#17)

Hi there -- thanks for your interest! To get started with Gen, we recommend following the 'Gen Quick Start.ipynb' notebook, which contains links to other notebooks in their intended order.

The example directory still uses an old version of Gen, which is why it has its own Project.toml and Manifest.toml files. If you'd like to run it, you'll need to run JULIA_PROJECT=. julia example.jl, within the example directory. The syntax has since changed so that what used to be @addr is now called @trace, and what used to be called get_assmt is now called get_choices. Hope that helps :)

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/probcomp/gen-quickstart/issues/17?email_source=notifications&email_token=AD3DRR5GUC6JZMIWLJCR3XDP5O47DA5CNFSM4H47S2M2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZCP3SQ#issuecomment-507837898, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AD3DRR2LTHBLPJIPOJH6SWTP5O47DANCNFSM4H47S2MQ.

mackyo avatar Jul 06 '19 20:07 mackyo

Hi, trying to compile example.jl and want to see at least some results in the browser, but nothing is shown. Screenshot attached - https://github.com/EdgarasLegus/gen2020/blob/master/viz.png

EdgarasLegus avatar Feb 09 '20 13:02 EdgarasLegus

@mackyo Can we chat about GenViz ?

EdgarasLegus avatar Feb 09 '20 14:02 EdgarasLegus

Hi, trying to compile example.jl and want to see at least some results in the browser, but nothing is shown. Screenshot attached - https://github.com/EdgarasLegus/gen2020/blob/master/viz.png

Same here. I saw nothing in the web browser's window, although the "slope" and "intercept" values are correctly printed in the end. Is it resolved?

zhixuedu avatar May 20 '20 09:05 zhixuedu