[julia-users] mismatching types (confusion matrix)

2016-11-19 Thread Sebastian
I am new to julia so i might ask a strange question. So far i've been programming quite smoothly, but type managing leads me astray. I have 1d arrays i want to apply a confusion matrix function to from the MLBase library. http://mlbasejl.readthedocs.io/en/latest/perfeval.html However i have

Re: [julia-users] Updated performance tips?

2016-11-19 Thread Mauro
On Sat, 2016-11-19 at 20:48, Harish Kumar wrote: > Thank you. I agree on python.. but my question was did they update the > Pyjulia libraries for latest Julia version? . We tried with 0.4.3 which > failed 6 months back. So we revered to 0.3.4. Or is this library remain >

Re: [julia-users] Updated performance tips?

2016-11-19 Thread Harish Kumar
Thank you. I agree on python.. but my question was did they update the Pyjulia libraries for latest Julia version? . We tried with 0.4.3 which failed 6 months back. So we revered to 0.3.4. Or is this library remain same for all Julia versions? Any suggestion on this? On Sat, Nov 19, 2016 at 7:38

Re: [julia-users] Updated performance tips?

2016-11-19 Thread Mauro
On Sat, 2016-11-19 at 18:36, Harish Kumar wrote: > Will it support Python 3.4 ? I am calling this from pyjulia interface https://github.com/JuliaPy/pyjulia says that it is tested against 3.5, but it doesn't say that 3.4 is not supported. So you should try. > On Nov

Re: [julia-users] Updated performance tips?

2016-11-19 Thread Harish Kumar
Will it support Python 3.4 ? I am calling this from pyjulia interface On Nov 19, 2016 4:58 PM, "Mauro" wrote: > Julia 0.3.12, that's a stone-age version of Julia. You should move to 0.5! > > On Sat, 2016-11-19 at 16:42, Harish Kumar > wrote: > >

Re: [julia-users] Updated performance tips?

2016-11-19 Thread Mauro
Julia 0.3.12, that's a stone-age version of Julia. You should move to 0.5! On Sat, 2016-11-19 at 16:42, Harish Kumar wrote: > I am using Version 0.3.12 calling from python (pyjulia). I do LME fit with > 2.8 M rows and 60-70 Variables. It is taking 2 hours just to model

Re: [julia-users] Updated performance tips?

2016-11-19 Thread Harish Kumar
I am using Version 0.3.12 calling from python (pyjulia). I do LME fit with 2.8 M rows and 60-70 Variables. It is taking 2 hours just to model (+ data transfer time). Any tips? using MixedModels modelREML = lmm({formula}, dataset) reml!(modelREML,true) lmeModel =

Re: [julia-users] Project organization and variable scope question

2016-11-19 Thread Mauro
Welcome to Julia! Without having read your post in detail, your example looks like your using global variables to hold the state as you're not passing around anything. Apart from bad style in general, in Julia this is also bad for performance (read [1]). The compiler cannot work well with

[julia-users] Re: Project organization and variable scope question

2016-11-19 Thread Ralph Smith
Unlike Matlab, Julia doesn't give special treatment to script files. By "script" we usually mean a file containing a series of expressions (which can include type and function definitions) intended for evaluation in the Main module. The Main module is where expressions typed interactively at the

[julia-users] Segfualts while calling Julia from Python3.4.3

2016-11-19 Thread karan aggarwal
WARNING: redefining constant JULIA_HOME InitError(:PyCall,PyError (:PyImport_ImportModule) SystemError('initialization of _opcode did not return an extension module',) signal (11): Segmentation fault while loading no file, in expression starting on line 0 PyObject_Call at

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

2016-11-19 Thread chobbes158
Thanks for the comments on my second question. I missed the acute prepended before 'stuff'. On Saturday, November 19, 2016 at 3:14:13 PM UTC, Michele Zaffalon wrote: > > I don't know the answer to the first question. > > For the second, you should check >

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

2016-11-19 Thread Michele Zaffalon
I don't know the answer to the first question. For the second, you should check https://github.com/Keno/ASTInterpreter.jl and in particular the command `stuff. On Sat, Nov 19, 2016 at 4:08 PM, wrote: > Thanks! It now works for me. Two more quick questions: > > 1. Suppose

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

2016-11-19 Thread chobbes158
Thanks! It now works for me. Two more quick questions: 1. Suppose I have the following code where the variable A is defined multiple times and after each definition it is used by the same function function_to_debug. How can I step in function_to_debug with the first definition/instantiation of

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

2016-11-19 Thread Michele Zaffalon
The @enter should be prepended to the function in the REPL, not in the file itself. It should be something like this: julia> include("/home/calvin/Documents/git/codes/fc.jl/examples/test.jl") julia> @enter function_to_debug(args_to_function) On Sat, Nov 19, 2016 at 11:43 AM,

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

2016-11-19 Thread chobbes158
Thanks for the comments. I tried what you suggested by adding @enter at the beginning of a line where a function is called. But an error was thrown. julia> include("/home/calvin/Documents/git/codes/fc.jl/examples/test.jl") ERROR: LoadError: AssertionError: isa(arg,Expr) && arg.head == :call in