Re: [julia-users] live plotting in PyPlot.jl?

2014-08-31 Thread Sheehan Olver
Got GLPlot working, it's awesome! The following does a movie of a solution to wave equation on a square using latest version of ApproxFun (the color is weird since I haven't figured that part out yet): window = createdisplay(w=1000,h=1000,eyeposition=Vec3(1,1,1), lookat=Vec3(0)) fun

Re: [julia-users] Macros for mixing things like max and sum

2014-08-31 Thread Jameson Nash
a macro should return an expression, it should not eval an expression have you taken a look at using @devec from the Devectorize package? On Mon, Sep 1, 2014 at 2:06 AM, John Myles White wrote: > Have you tried macroexpand? > > — John > > On Aug 31, 2014, at 10:28 PM, Mykel Kochenderfer > wr

Re: [julia-users] Macros for mixing things like max and sum

2014-08-31 Thread John Myles White
Have you tried macroexpand? — John On Aug 31, 2014, at 10:28 PM, Mykel Kochenderfer wrote: > I want to do a calculation like this $\max_{a \in A} \sum_{s \in S} g(s, a)$. > > Of course, I can do something like this: > maximum([sum([g(s, a) for s in S]) for a in A]) > > But it seems like it

[julia-users] Macros for mixing things like max and sum

2014-08-31 Thread Mykel Kochenderfer
I want to do a calculation like this $\max_{a \in A} \sum_{s \in S} g(s, a)$. Of course, I can do something like this: maximum([sum([g(s, a) for s in S]) for a in A]) But it seems like it would be nicer to have the s in S and a in A go in front like in the written equation. I'd like something l

[julia-users] Re: List of useful macros for beginners?

2014-08-31 Thread yfractal
please try @edit eg: @edit print It should be added in recently(0.3.0 does not have this maro) And I think it is a awesome maro! Xiaowei Zhang於 2014年8月31日星期日UTC+8下午9時47分35秒寫道: > > For example, the Julia manual illustrates the usage of @inbound and @simd > as performance tips. Can anyone provi

Re: [julia-users] trouble after updating Julia

2014-08-31 Thread Dan Luu
I'm also having problems, and I wonder if I've run into the same issue. When I updated Julia today on my Mac (10.9.2), I got the following error: /bin/sh: line 1: 23089 Segmentation fault: 11 /Users/danluu/dev/julia/usr/bin/julia --build /Users/danluu/dev/julia/usr/lib/julia/sys -J/Users/danluu/d

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Taylor Maxwell
Are you looking for the fitted values? Is predict(OLS) what you are looking for? *julia> **X = [1;2;3.]* *3-element Array{Float64,1}:* * 1.0* * 2.0* * 3.0* *julia> **Y = [1;0;1.]* *3-element Array{Float64,1}:* * 1.0* * 0.0* * 1.0* *julia> **data = DataFrame(X=X,Y=Y)* *3x2 DataFrame*

Re: [julia-users] Help with Clang.jl for a C beginner

2014-08-31 Thread João Felipe Santos
Hello Randy, the following comes from my experience with ccall and Julia documentation. Please anyone correct me if I explained any of the internals wrong! The API seems to be really simple so pretty much everything can be done with standard Julia types. Clang.jl seems to have generated correct c

[julia-users] Help with Clang.jl for a C beginner

2014-08-31 Thread Randy Zwitch
Hi all - I've been trying to learn more about C and how Julia interacts and decided to play around with Clang.jl. I decided I was going to wrap liboauth from here: http://liboauth.sourceforge.net/oauth_8h_source.html I downloaded the C source, which resided in my OSX Downloads directory. Usi

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
Does anyone know how to get predicted Y values after fitting the glm regression of Y on X? The documentation mentions LinPred, which may be it, but I'm not having luck getting it to work. I would have guessed it was something like this: julia> X = [1;2;3.] julia> Y = [1;0;1.] julia> data = Data

Re: [julia-users] List of useful macros for beginners?

2014-08-31 Thread Xiaowei Zhang
Hi Leah, Thanks! I'm trying to switch from Python to Julia and would like to learn some simple "common tricks" but not planning to write my own macros at this moment. Xiaowei 在 2014年9月1日星期一UTC+8上午12时06分56秒,Leah Hanson写道: > > @show and @which are two other common ones. There are examples of

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread John Myles White
Yeah, there are a lot of possible interfaces for this. Early on in JuliaStats there was a little bit of work to do polynomial regression, which fizzled out because of its considerable complexity. — John On Aug 31, 2014, at 1:11 PM, Bradley Setzler wrote: > Yeah, or it might be easier to do i

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
Yeah, or it might be easier to do it separately, like a function seriesData = createSeries(data, rank=2) which returns a DataFrame that contains all of those series terms. Then seriesData would simply be used as the data argument in glm(). Bradley On Sunday, August 31, 2014 3:05:12 PM UTC-5, Jo

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread John Myles White
I see. This is a pretty radical change to how GLM’s would be specified. I think the only realistic way you could make any progress on such a radical proposal is to undertake this change as a project on your own and then give people a demo of a system you’ve built that’s noticeably better than wh

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
And X1 X2 X3 Did I get all of them? On Sunday, August 31, 2014 3:02:06 PM UTC-5, Bradley Setzler wrote: > > Sorry, I meant for those to be in the ... term. > > Let me write them explicitly for the case of 3 independent variables, X1 > X2 X3, seriesRank=2 would be, > > (intercept) > X1.^2 > X2.^

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
Sorry, I meant for those to be in the ... term. Let me write them explicitly for the case of 3 independent variables, X1 X2 X3, seriesRank=2 would be, (intercept) X1.^2 X2.^2 X3.^2 X1.*X2 X1.*X3 X2.*X3 X1.*X2.*X3 Bradley On Sunday, August 31, 2014 2:55:22 PM UTC-5, John Myles White wrote: > >

Re: [julia-users] Issue Replacing NaN with 0

2014-08-31 Thread John Myles White
I think there’s a broad issue that need resolution: how do you know when a function’s output takes control of the memory used by its arguments? — John On Aug 31, 2014, at 11:45 AM, Ethan Anderes wrote: > Yeah, I can see your point John. It's probably not reasonable to make a new > AliasedArr

Re: [julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread John Myles White
Bradley, you’re forgetting about interactions terms. — John On Aug 31, 2014, at 12:53 PM, Bradley Setzler wrote: > No problem. > > Honestly, I'm not sure formula is a useful way to think about regression, the > formula is uniquely determined from: > (depVar, indepVars, data, family, link) >

Re: [julia-users] Re: Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
No problem. Honestly, I'm not sure formula is a useful way to think about regression, the formula is uniquely determined from: (depVar, indepVars, data, family, link) so that the + symbols are redundant given family and link, glm(Y ~ X1 + X2 + X3 + X4 + X5 +, family, link) and it would be n

Re: [julia-users] Re: Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread John Myles White
Merged. Thanks, Bradley. — John On Aug 31, 2014, at 12:29 PM, Bradley Setzler wrote: > Thank you for suggesting this, John. > > https://github.com/JuliaStats/GLM.jl/pull/90 > > Bradley > > > On Sunday, August 31, 2014 1:33:04 PM UTC-5, John Myles White wrote: > Bradley, it’s especially eas

Re: [julia-users] Re: Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
Thank you for suggesting this, John. https://github.com/JuliaStats/GLM.jl/pull/90 Bradley On Sunday, August 31, 2014 1:33:04 PM UTC-5, John Myles White wrote: > > Bradley, it’s especially easy to edit documentation because you can make a > Pull Request right from the website. > > — John > > O

Re: [julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-31 Thread Andreas Noack
Oh right. They don't become links automatically on the list. Med venlig hilsen Andreas Noack 2014-08-31 15:25 GMT-04:00 Ivar Nesje : > For those who does not know how to lookup a git sha, here is the github > link: > > > https://github.com/JuliaLang/julia/commit/caf2814b3f2706efbc59382da2aa646

Re: [julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-31 Thread Ivar Nesje
For those who does not know how to lookup a git sha, here is the github link: https://github.com/JuliaLang/julia/commit/caf2814b3f2706efbc59382da2aa6461894a06e1 kl. 19:40:19 UTC+2 søndag 31. august 2014 skrev Andreas Noack følgende: > > Fixed by caf2814b3f2706efbc59382da2aa6461894a06e1 > > Med v

Re: [julia-users] Issue Replacing NaN with 0

2014-08-31 Thread Ethan Anderes
Yeah, I can see your point John. It's probably not reasonable to make a new AliasedArray type. For me I think the education would address the difference between vec, for example, when used inside another function, eg x = sin(vec(a)), or the memory overlap case, eg x = vec(a). This stung me at

Re: [julia-users] Re: Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread John Myles White
Bradley, it’s especially easy to edit documentation because you can make a Pull Request right from the website. — John On Aug 31, 2014, at 11:30 AM, Bradley Setzler wrote: > Thank you Adam, this works. > > Let me suggest that this information be included in the GLM documentation: > > To fit

Re: [julia-users] Issue Replacing NaN with 0

2014-08-31 Thread John Myles White
I don’t think this example had any views. Both bindings had an equal right to be considered the true binding. I think we’re better off doing more education to teach people to distinguish bindings and values. — John On Aug 31, 2014, at 11:27 AM, Ethan Anderes wrote: > I've come to wish that

[julia-users] Re: Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
Thank you Adam, this works. Let me suggest that this information be included in the GLM documentation: To fit a GLM model, use the function, glm(formula, data, family, link), where, - formula uses column symbols from the DataFrame data, e.g., if names(data)=[:Y,:X], then a valid formula is Y~X;

Re: [julia-users] Issue Replacing NaN with 0

2014-08-31 Thread Ethan Anderes
I've come to wish that in cases like this (and in vec, reshape and soon-to-be slicing) the resulting type clearly shows the user it is a ArrayView, SubArray or something like AliasArray. I've never like the invisible fusing of variables in Python and since Julia's type system is so expressive I

Re: [julia-users] Re: sortperm(vec(F),rev=true) ; ERROR: stack overflow

2014-08-31 Thread Iain Dunning
Maybe upgrade to 0.3.0 release? On Sunday, August 31, 2014 5:35:32 AM UTC-4, paul analyst wrote: > > soryy but vector is lost ... > My version: >_ >_ _ _(_)_ | A fresh approach to technical computing > (_) | (_) (_)| Documentation: http://docs.julialang.

Re: [julia-users] Issue Replacing NaN with 0

2014-08-31 Thread Alex Hollingsworth
Thanks!!! As a new comer to julia, I did not realize that they x=a linked them in a way that when I changed x, I was also changing a, thank you so much! On Sunday, August 31, 2014 10:58:10 AM UTC-7, Keno Fischer wrote: > > Try x=copy(a). Matlab automatically copies the array if it's written to.

Re: [julia-users] Issue Replacing NaN with 0

2014-08-31 Thread Keno Fischer
Try x=copy(a). Matlab automatically copies the array if it's written to. On Sun, Aug 31, 2014 at 1:52 PM, Alex Hollingsworth wrote: > Hi Everyone, > > I cannot figure out if there is an error in Julia or (more likely) in my > code. I have a matrix A, which contains some NaN values and I would lik

[julia-users] Re: Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Adam Kapor
This works for me: ``` *julia> **fit(GeneralizedLinearModel,Y~X,data,Binomial(),ProbitLink())* *DataFrameRegressionModel{GeneralizedLinearModel,Float64}:* *Coefficients:* *Estimate Std.Error z value Pr(>|z|)* *(Intercept) 0.430727 1.980190.217518 0.8278* *X

[julia-users] Issue Replacing NaN with 0

2014-08-31 Thread Alex Hollingsworth
Hi Everyone, I cannot figure out if there is an error in Julia or (more likely) in my code. I have a matrix A, which contains some NaN values and I would like to create a copy of it that is the same except that I replace the NaN values with 0's. I would also like to do this without altering th

Re: [julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-31 Thread Andreas Noack
Fixed by caf2814b3f2706efbc59382da2aa6461894a06e1 Med venlig hilsen Andreas Noack 2014-08-31 10:01 GMT-04:00 Stefan Karpinski : > How about posting text on gist.github.com or something like that? Or > maybe just a small snippet inline in an email indicating the problem? > > On Aug 30, 2014, at

[julia-users] Has anyone successfully performed probit or logit regression in Julia?

2014-08-31 Thread Bradley Setzler
Has anyone successfully performed probit or logit regression in Julia? The GLM documentation does not provide a generalizable example of how to use glm(). It gives a Poisson example without any suggestion of how to switch from Poisson to some other type. *

Re: [julia-users] List of useful macros for beginners?

2014-08-31 Thread Leah Hanson
@show and @which are two other common ones. There are examples of how to use them in this blog post: http://www.juliabloggers.com/julia-helps/ (<- I wrote this blog post.) Are you looking for examples of macros you would want to use or examples of macros to help you write your own macros? -- Leah

Re: [julia-users] Any method to save the variables in workspace to file?

2014-08-31 Thread Kevin Squire
Hi Robert, You and the OP will have to check whether this addresses you use case, but did you see this recent message: https://groups.google.com/forum/m/#!topic/julia-users/yHXjH7b7r1o Cheers, Kevin On Sunday, August 31, 2014, Robert Feldt wrote: > This is an old thread but I needed somethi

Re: [julia-users] Blas trsv function: Argument mismatch between function and documentation (?)

2014-08-31 Thread Stefan Karpinski
How about posting text on gist.github.com or something like that? Or maybe just a small snippet inline in an email indicating the problem? > On Aug 30, 2014, at 5:03 PM, John Myles White > wrote: > > I can’t speak for others, but I’m very hesitant to download any kind of files > from mailing

[julia-users] List of useful macros for beginners?

2014-08-31 Thread Xiaowei Zhang
For example, the Julia manual illustrates the usage of @inbound and @simd as performance tips. Can anyone provide a short list of macros with examples besides these two?

[julia-users] trouble after updating Julia

2014-08-31 Thread Andrea Vigliotti
Hi all! I am having problems in updating Julia from the git. As usual, every three four days I download the last updates from the git and compile them, this is what I do (I'm running ubuntu with KDE, and Julia is v0.4) from the source directory I typed git pull && make then I got this ..

Re: [julia-users] julia WebSocket receiving but not sending binary data.

2014-08-31 Thread Altieres Del-Sent
thank you :), I will test and see if it works. 2014-08-31 6:11 GMT-03:00 Shashi Gowda : > Hey, it looks like WebSockets.jl wasn't setting the right flags in > WebSocket packets for binary data. This patch makes your code work > https://github.com/JuliaWeb/WebSockets.jl/pull/16 :) > > > On Mon,

[julia-users] Calling Julia from Python

2014-08-31 Thread Steven G. Johnson
It works for me on my Mac. Can you file a pyjulia issue?

[julia-users] Calling Julia from Python

2014-08-31 Thread Hans W Borchers
I will give a talk on Julia in front of a group of Python users. The presentation will make use of IJulia and the IPython notebook, and everything works really nice, including calling Python from Julia. To make it even relevant for Python people I would like to show how to call Julia from Pyth

Re: [julia-users] Re: Installing Julia on Mac

2014-08-31 Thread Elliot Saba
This is because your GCC is out of date. Brew upgrade and try again. On Aug 30, 2014 9:14 PM, wrote: > I didn't know there was a Homebrew Tap for Julia. But thanks to this post, > I found it: > > *brew tap staticfloat/julia* > > > So that's really cool. I prefer to have all my add-on software ma

[julia-users] Memory considerations for performance

2014-08-31 Thread Ariel Keselman
I just found this interesting article about garbage collection: http://people.cs.umass.edu/~emery/pubs/gcvsmalloc.pdf Turns out GC can significantly affect performance when memory available is < ~3X the needed memory (for e.g. because a GC touches more memory pages relative to manual handling i

Re: [julia-users] julia WebSocket receiving but not sending binary data.

2014-08-31 Thread Shashi Gowda
Hey, it looks like WebSockets.jl wasn't setting the right flags in WebSocket packets for binary data. This patch makes your code work https://github.com/JuliaWeb/WebSockets.jl/pull/16 :) On Mon, Aug 25, 2014 at 6:53 PM, Altieres Del-Sent < altieresdels...@gmail.com> wrote: > HI, > > I am testing

Re: [julia-users] Re: sortperm(vec(F),rev=true) ; ERROR: stack overflow

2014-08-31 Thread Paul Analyst
soryy but vector is lost ... My version: _ _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentation: http://docs.julialang.org _ _ _| |_ __ _ | Type "help()" to list help topics | | | | | | |/ _` | | | | |_| | | | (_| |

[julia-users] Re: Any method to save the variables in workspace to file?

2014-08-31 Thread Robert Feldt
This is an old thread but I needed something similar to the original poster and didn't want to depend on external packages. A quick and dirty solution can be to save to file with showall and then eval and parse back in. This works for the built-in data types and for small data but I'm sure ther

Re: [julia-users] Sharing success: running Julia on PBS cluster across compute nodes

2014-08-31 Thread Viral Shah
The goal certainly is to maintain it. I will request nlhepler to see if he can transfer the repo to JuliaLang, which will help with maintenance. -viral On Thursday, August 28, 2014 4:05:27 PM UTC+5:30, Florian Oswald wrote: > > I'm mentioning this because we there's a dangling issue on the topic

[julia-users] Re: Problem creating graphs

2014-08-31 Thread Viral Shah
This is perhaps also best filed as an issue against Graphs.jl. -viral On Friday, August 29, 2014 10:20:07 PM UTC+5:30, Ivan Raikov wrote: > > Hello, > >I am trying to create a graph with 10500 vertices, and random > connections with uniform probability of 0.1, > using Julia 0.3 and the Graph

[julia-users] Re: Structuring parallel algorithm that iterates on elements of array

2014-08-31 Thread Viral Shah
You may want to take a look at examples/plife.jl that implements the Game of Life on a distributed array - sounds quite similar to your problem. -viral On Sunday, August 31, 2014 5:35:57 AM UTC+5:30, Spencer Lyon wrote: > > I often solve fixed point problems where I apply a contraction mapping t

[julia-users] Re: Problem with v 0.3.0 on MacOSX 10.9.4

2014-08-31 Thread Viral Shah
The simplest thing is to perhaps just nuke ~/.julia and install the packages again. This is rarely required nowadays, but sometimes it is simpler to do just that. -viral On Monday, August 25, 2014 8:38:47 PM UTC+5:30, Henry Smith wrote: > > Many thanks for the replies! A big help... > I did the

[julia-users] Updated YouTube channel page and website updates

2014-08-31 Thread Viral Shah
We now have an updated and a better looking (thanks Shashi!) YouTube channel page, with all the videos from JuliaCon. We will keep this updated with new videos as they come. https://www.youtube.com/user/JuliaLanguage/ The website also now has a separate learning section (split from the teachin