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

2016-11-17 Thread David P. Sanders
If you can produce a minimal working example (the *shortest* piece of code that produces the problem and that people can run), you will be more likely to get help. This probably involves removing a lot of stuff from your code that I'd not relevant to this particular problem.

Re: [julia-users] problem when include code in Julia

2016-11-17 Thread David P. Sanders
How did you save the .jl file? It seems your editor added the extra .txt suffix. You might want to try a different editor that is designed for editing code, e.g. Atom.

Re: [julia-users] problem when include code in Julia

2016-11-17 Thread Monica Deng
Thanks a lot. after doing "readdir()", I found that I must add ".txt" to the file. but that's not normal right? As I can see, the textbook just do with extension ".jl" but the problem is solved after all.

[julia-users] Re: Interpolations.jl: irregular grids

2016-11-17 Thread Kaj Wiik
Hi! See: https://groups.google.com/d/msg/julia-users/XH7SRGHc6Pg/OQSouoUoAwAJ Cheers, Kaj On Thursday, November 17, 2016 at 9:48:07 PM UTC+2, Pieterjan Robbe wrote: > > I am trying to do interpolation on irregular grids using > Interpolations.jl. From its documentation: > > Currently its

[julia-users] Interpolations.jl: irregular grids

2016-11-17 Thread Pieterjan Robbe
I am trying to do interpolation on irregular grids using Interpolations.jl. >From its documentation: Currently its support is best for B-splines and also supports irregular > grids. Anyone knows how I get the irregular grids to work? Basically, I have some triples (x,y,u) where x,y is a

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

2016-11-17 Thread Kevin Liu
Right, I need the instance of Factor On Thursday, November 17, 2016 at 5:33:05 PM UTC-2, Yichao Yu wrote: > > On Thu, Nov 17, 2016 at 2:27 PM, Kevin Liu > wrote: > > I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back > again. > > > > Still, for

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

2016-11-17 Thread Yichao Yu
On Thu, Nov 17, 2016 at 2:27 PM, Kevin Liu wrote: > I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back again. > > Still, for FactorOperations.jl on Atom, I get {UndefVarError: Factor not > defined} at the end of each block. > > Factor is defined on Factor.jl, and

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

2016-11-17 Thread Kevin Liu
{Factor.FactorMargin()} simply marginalizes non-stated variables in Factor. On Thursday, November 17, 2016 at 5:27:38 PM UTC-2, Kevin Liu wrote: > > I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back again. > > Still, for FactorOperations.jl on Atom, I get {UndefVarError: Factor

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

2016-11-17 Thread Kevin Liu
I replaced Factor[:FactorMargin]() with Factor.FactorMargin() back again. Still, for FactorOperations.jl on Atom, I get {UndefVarError: Factor not defined} at the end of each block. Factor is defined on Factor.jl, and that file evaluates fine. The main file, BN.jl, includes Factor.jl and

[julia-users] Re: Indexing problem

2016-11-17 Thread Patrik Waldmann
OK, that works fine. Thanks. I think it would be a good idea to drop the matlab-ism in future versions. Patrik On Thursday, November 17, 2016 at 11:51:09 AM UTC+1, Simon Byrne wrote: > I'm not familiar with the package in question, but this line: > > w = Any[ 0.1*randn(1,13), 0 ] > > may be

Re: [julia-users] problem when include code in Julia

2016-11-17 Thread Mauro
After your cd(...) command run: julia> readdir() It will give a list of files in the directory. Check that your file is there. If not then that is rather strange. On Thu, 2016-11-17 at 11:50, Monica Deng wrote: > I kept meeting this problem when try to include codes

[julia-users] problem when include code in Julia

2016-11-17 Thread Monica Deng
I kept meeting this problem when try to include codes in Julia: I'm pretty sure

[julia-users] Re: Indexing problem

2016-11-17 Thread Simon Byrne
I'm not familiar with the package in question, but this line: w = Any[ 0.1*randn(1,13), 0 ] may be what is causing the problem. It is creating a 2-element Vector, the first element of which is a 1x13 Matrix, and the second element is a scalar 0. The analogous object in R would be: W =

[julia-users] Error while calling Julia from python

2016-11-17 Thread karan aggarwal
karan@karan-Ubuntu:~$ python3 Python 3.4.3 (default, Sep 14 2016, 12:36:27) [GCC 4.8.4] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import julia >>> j=julia.Julia() WARNING: CHOLMOD version incompatibility Julia was compiled with CHOLMOD version

[julia-users] Re: Indexing problem

2016-11-17 Thread Patrik Waldmann
I guess I should have explained my problem clearer. If I run the code without w[1,(w[1].-(z))] = 0, and do: dump(w) Array{Any}((2,)) 1: Array{Float64}((1,13)) [-0.681392 0.595298 … 0.893845 -3.5044] 2: Float64 22.447679788630705 and println(w[1]) [-0.681392 0.595298 -0.394906