Re: [julia-users] Passing Dictionary from Julia to C function using ccall

2016-11-22 Thread Yichao Yu
Hmmm, I thought you can't start a new thread on julia-users anymore On Tue, Nov 22, 2016 at 2:18 AM, Alexander Lyapin wrote: > Is there way to pass Dictionary from Julia to C function using ccall??? > > I have to divide all dictionaries for subarrays and then send

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Yichao Yu
On Tue, Nov 22, 2016 at 4:23 PM, Kevin Liu wrote: > I would like to remove variable "c" from factor C. I tried removing > `Factor.` but it didn't work. There might be (almost certainly) multiple mistakes in the code so fixing one won't fix all of them. > > On Tue, Nov 22, 2016

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Kevin Liu
Yichao, I used a hashtag in the last message to show you what I want to do. Is it clear? On Nov 22, 2016, at 18:27, Yichao Yu wrote: >> Yichao and DPSanders, I have already used instances of Factor on >> runtests.jl, instances A, B, and C > > AFAICT you are still

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Yichao Yu
On Tue, Nov 22, 2016 at 3:45 PM, Kevin Liu wrote: > Yichao, I used a hashtag in the last message to show you what I want to do. > Is it clear? No I'm just talking about the `Factor.` in the line I linked. I don't know what you want to access. Do you just want `FactorMargin`?

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Kevin Liu
I would like to remove variable "c" from factor C. I tried removing `Factor.` but it didn't work. On Tue, Nov 22, 2016 at 6:54 PM, Yichao Yu wrote: > On Tue, Nov 22, 2016 at 3:45 PM, Kevin Liu wrote: > > Yichao, I used a hashtag in the last message to show

Re: [julia-users] Updated performance tips?

2016-11-22 Thread Mauro
On Tue, 2016-11-22 at 14:12, Harish Kumar wrote: > I found the cause for this ... When i run julia 0.3.2 or 0.5 as standalone > (mix model) it uses all the available cores from my server, so it was fast. > > If i call Julia from Python (Pyjulia), i see only one core is

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Kevin Liu
On Friday, November 18, 2016 at 4:07:44 PM UTC-2, Kevin Liu wrote: > Have a look please https://github.com/hpoit/MLN.jl/tree/master/BN > > On Friday, November 18, 2016 at 11:48:58 AM UTC-2, Yichao Yu wrote:On Thu, > Nov 17, 2016 at 2:39 PM, Kevin Liu wrote: > > > Right, I

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Kevin Liu
On Tuesday, November 22, 2016 at 5:53:14 PM UTC-2, Kevin Liu wrote: > On Friday, November 18, 2016 at 4:07:44 PM UTC-2, Kevin Liu wrote: > > Have a look please https://github.com/hpoit/MLN.jl/tree/master/BN > > > > On Friday, November 18, 2016 at 11:48:58 AM UTC-2, Yichao Yu wrote:On Thu, > >

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Kevin Liu
julia> A=Factor(["a", "b"],[3, 2],[0.5, 0.1, 0.3, 0.8, 0, 0.9]); julia> B=Factor(["b", "c"],[2, 2],[0.5, 0.1, 0.7, 0.2]); julia> C = FactorProduct(A, B) Factor(["a", "b", "c"],[3, 2, 2],[0.25, 0.05, 0.15, 0.08, 0.0, 0.09, 0.35, 0.07, 0.21, 0.16, 0.0, 0.18]) julia> FactorDropMargin(C, ["c"]) #

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Yichao Yu
> Yichao and DPSanders, I have already used instances of Factor on runtests.jl, > instances A, B, and C AFAICT you are still accessing a non existing field of a type[1] and it's unclear what you actually want to do. [1]

Re: [julia-users] Passing Dictionary from Julia to C function using ccall

2016-11-22 Thread Stefan Karpinski
I'm not sure what's up with that – the group settings look correct (only manager, owners can start new threads), but Google Groups has confusing settings, doesn't always do what it's configured to do and is otherwise generally unreliable, so who knows? These are among the reasons we're switching

Re: [julia-users] Got an exception of type ErrorException outside of a @test: type DataType has no field FactorMargin

2016-11-22 Thread Kevin Liu
Thanks. Is there anything that sticks out to you? On Tue, Nov 22, 2016 at 7:39 PM, Yichao Yu wrote: > On Tue, Nov 22, 2016 at 4:23 PM, Kevin Liu wrote: > > I would like to remove variable "c" from factor C. I tried removing > > `Factor.` but it didn't work.

Re: [julia-users] How to enter a file using gallium?

2016-11-22 Thread chobbes158
That's a good stopgap, if there's better options. Thanks!! On Monday, November 21, 2016 at 8:19:50 PM UTC, Isaiah wrote: > > If breakpoints aren't working, I would suggest to your push object(s) of > interest into a global Vector{Any} and then debug with `@enter`. > > On Mon, Nov 21, 2016 at

Re: [julia-users] Updated performance tips?

2016-11-22 Thread Harish Kumar
I found the cause for this ... When i run julia 0.3.2 or 0.5 as standalone (mix model) it uses all the available cores from my server, so it was fast. If i call Julia from Python (Pyjulia), i see only one core is busy with python process (100% cpu) and all other cores are free. Can you help me