[julia-users] Re: How to debug julia v0.5 code? Debug.jl is down, how to use Gallium.jl

2016-11-05 Thread Deniz Yuret
Hi, Does anybody know if it is possible to set several breakpoints, and whether there is a command to continue until the next breakpoint? deniz On Thursday, October 13, 2016 at 6:15:25 PM UTC+3, Florian Oswald wrote: > > hi, > > i usually used Debug.jl to debug code, which is great, but

Re: [julia-users] Re: Introducing Knet8: beginning deep learning with 100 lines of Julia!

2016-09-21 Thread Deniz Yuret
No problem. Let me know if I can help you get started. On Wed, Sep 21, 2016 at 10:35 AM Jon Norberg wrote: > Ah yes of course, sorry :-) and thanks

Re: [julia-users] Re: Introducing Knet8: beginning deep learning with 100 lines of Julia!

2016-09-21 Thread Deniz Yuret
Can you try Pkg.update() first? Your METADATA could be out of date. On Wed, Sep 21, 2016 at 8:22 AM Jon Norberg wrote: > I get "LoadError: unknown package Knet" when using Pkg.add("Knet"). I am > on 0.5. > > Very interested in this julia native ML library, thanks for

Re: [julia-users] Re: Introducing Knet8: beginning deep learning with 100 lines of Julia!

2016-09-20 Thread Deniz Yuret
y, September 20, 2016 at 2:31:31 PM UTC-4, Deniz Yuret wrote: >> >> It has been a year and a half since I wrote the first version of this >> post >> <https://groups.google.com/d/topic/julia-users/rSgtUpcYPbE/discussion> >> and it is time for an update, jus

[julia-users] Introducing Knet8: beginning deep learning with 100 lines of Julia!

2016-09-20 Thread Deniz Yuret
It has been a year and a half since I wrote the first version of this post and it is time for an update, just in time with the Julia 0.5.0 release! Knet (pronounced “kay-net”) is the

Re: [julia-users] Re: PSA: New package registration requirements

2016-09-08 Thread Deniz Yuret
How can I specify which tags are registered? I think the default commands I used (Pkg.tag,register, and publish) ended up trying to register all existing tags in metadata. On Thu, Sep 8, 2016, 18:47 Tony Kelman wrote: > git tags that don't get registered in metadata should be

Re: [julia-users] Re: PSA: New package registration requirements

2016-09-07 Thread Deniz Yuret
Can tags be used for anything other than versioning in a Package? I was registering a package with non-version tags marking some important development points (e.g. a "naacl2016" tag) and the package manager was not happy about it. If no tags are allowed other than the vX.Y.Z tags, is the

Re: [julia-users] AutoGrad port for Julia

2016-09-03 Thread Deniz Yuret
Hi Mose, I messed around with the internals of AutoGrad quite a bit. The latest master runs about twice as fast as v0.0.1 (and quite a bit faster than the original Python autograd package). The current performance is ok in array-heavy code (such as training deep learning models where most of

Re: [julia-users] Re: AutoGrad port for Julia

2016-08-29 Thread Deniz Yuret
Hi Mosè, Thanks for the wonderful feedback! AutoGrad has some overhead for recording and differentiating primitive operators. However I think there is room for improvement - the current design has elements of the original Python package, anonymous functions, closures, etc. that are probably not

Re: [julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Deniz Yuret
I just discovered JuliaDiff , so I am not entirely sure yet. But here are my first impressions (JuliaDiff authors please correct me if I am wrong): * ForwardDiff : is not practical (takes too much space) when you have large

Re: [julia-users] Re: AutoGrad port for Julia

2016-08-26 Thread Deniz Yuret
Sorry about that. Here is the right link: https://github.com/denizyuret/AutoGrad.jl On Fri, Aug 26, 2016 at 11:38 AM Henri Girard <henri.gir...@gmail.com> wrote: > Your link autograd.jl seems dead ? > > > Le vendredi 26 août 2016 08:51:30 UTC+2, Deniz Yuret a écrit

[julia-users] AutoGrad port for Julia

2016-08-26 Thread Deniz Yuret
Announcing AutoGrad.jl : an automatic differentiation package for Julia. It is a Julia port of the popular Python autograd package. It can differentiate regular Julia code that includes loops, conditionals, helper

[julia-users] Re: ArrayFire.jl - GPU Programming in Julia

2016-08-25 Thread Deniz Yuret
Thanks for this great package Ranjan. I'd like to contribute to the development -- in particular integration with CUDNN, CUSPARSE, etc. under the JuliaGPU ecosystem, if others have not started doing so already. With CUDNN, for example, I wrapped the low level library code to use CudaArrays,

[julia-users] changing the way things print

2015-11-20 Thread Deniz Yuret
To change the way a new type is displayed/printed, which methods of show, print, and/or display should one override? thanks, deniz

[julia-users] confused about precedence in keyword arguments

2015-11-07 Thread Deniz Yuret
julia> foo(;a=1)=a julia> bar(;o...)=foo(;a=5,o...) julia> baz(;o...)=foo(;o...,a=5) julia> bar() 5 julia> baz() 5 julia> bar(a=3) 3 julia> baz(a=3) 3 In this example bar() and baz() give 5 as expected. However in both bar(a=3) and baz(a=3) the value of "a" given in "o..." seems to override

[julia-users] why does @eval (a=b) set a global variable?

2015-11-02 Thread Deniz Yuret
If I have the following function: function foo(k,v) @eval ($(symbol(k))=$v) println(bar) end and I call it with: foo("bar", 5) then the global variable bar is set to 5 and the function prints 5. Is there any way to make @eval set a local variable inside foo instead? (I tried

[julia-users] Re: how does one locate a macro?

2015-10-13 Thread Deniz Yuret
I was wondering the same thing myself. I could not find anything in Base. Here is something that works, at least in Julia 0.4, based on base/reflection.jl:functionloc() Use it with: `macroloc(:@time)` function macroloc(expr::Expr) @assert expr.head == :macrocall

Re: [julia-users] Re: is there a way to access help from within emacs shell?

2015-10-13 Thread Deniz Yuret
I also submitted a patch for ESS. non-base help / completion etc which were broken in Julia 0.4 should work now. On Mon, Oct 12, 2015 at 8:08 PM Deniz Yuret <dyu...@ku.edu.tr> wrote: > Thank you all. @doc was exactly what I was looking for. > > best, > deniz > > On Mon,

[julia-users] is there a way to access help from within emacs shell?

2015-10-12 Thread Deniz Yuret
I tried question mark, help, etc. but could not find a way to access documentation. I would not mind typing a command to search for help, or switch to the help or shell mode if that is possible.

Re: [julia-users] Re: is there a way to access help from within emacs shell?

2015-10-12 Thread Deniz Yuret
Thank you all. @doc was exactly what I was looking for. best, deniz On Mon, Oct 12, 2015 at 5:40 PM David Ellison wrote: > Deniz, I don't think this is supported in emacs' *shell* buffer, but ESS's > Julia REPL (in the *julia*) buffer supports looking up documentation

[julia-users] remote workers more efficient than local workers?

2015-07-30 Thread Deniz Yuret
Here is a parallel program: M = [rand(1000,1000) for i=1:16] @time pmap(svd, M) Here are timing results for local workers on a 16 core machine1: julia -p 2: 14.98 secs julia -p 4: 16.02 secs julia -p 8: 17.64 secs Here are timing results for machine1 connecting to remote workers on same type

[julia-users] is it possible to call a shadowed function?

2015-06-30 Thread Deniz Yuret
Say we import and redefine a function from Base. Is it possible to access the form of the function before the redefinition? Here is an example of what I am trying to do (which doesn't work): rand_orig = rand Base.rand()=(rand_orig() + 1)

Re: [julia-users] Re: is it possible to call a shadowed function?

2015-06-30 Thread 'Deniz Yuret' via julia-users
, June 30, 2015 at 3:07:30 PM UTC-4, Deniz Yuret wrote: Say we import and redefine a function from Base. Is it possible to access the form of the function before the redefinition? Here is an example of what I am trying to do (which doesn't work): rand_orig = rand Base.rand()=(rand_orig

Re: [julia-users] Dynamically growing array?

2015-06-05 Thread Deniz Yuret
I had the same problem and stumbled on this post. Any kernel / support vector based machine learning algorithm needs this. Here is one more suggestion that might be useful in some circumstances: 1. Create a large 2D array X of size (a,b). 2. Keep track of the actual columns that are filled

[julia-users] best way to represent objects with common fields but different sets of moves

2015-03-26 Thread Deniz Yuret
I've been wrecking my brain to figure out the best way to do this in Julia. We have a set of objects (parsers in my case), with common state elements and constructor (buffer, stack, a set of arcs etc.), but different move sets (arceager, archybrid etc. see this

[julia-users] conditional REQUIRE entries

2015-03-22 Thread Deniz Yuret
Is there a way to conditionally indicate requirements in the REQUIRE file? Two examples: 1. the DistributedArrays package is a requirement in v0.4 but not in v0.3. As the maintainer of a package which requires this functionality what should my REQUIRE file say? 2. I want my package to use

Re: [julia-users] help debugging a gc problem

2015-03-16 Thread 'Deniz Yuret' via julia-users
, Jake On Monday, March 16, 2015 at 4:03:34 PM UTC-4, Deniz Yuret wrote: Is there a suggested workaround? e.g. Split the array yourself instead of using DArrays, or shut down the workers and restart them every iteration etc.? best, deniz On Mon, Mar 16, 2015 at 9:39 PM, Jake Bolewski jakebo

[julia-users] help debugging a gc problem

2015-03-16 Thread Deniz Yuret
I am stuck trying to debug a memory leak issue. What is the best way to find out what gc is doing? My program generates and processes 10GB data every iteration. I set the data variables to nothing and explicitly call gc() every time to make sure the space is reclaimed. However the memory

Re: [julia-users] Re: help debugging a gc problem

2015-03-16 Thread 'Deniz Yuret' via julia-users
/JuliaLang/julia/issues/8912. Best, Jake On Monday, March 16, 2015 at 2:53:25 PM UTC-4, Deniz Yuret wrote: I am stuck trying to debug a memory leak issue. What is the best way to find out what gc is doing? My program generates and processes 10GB data every iteration. I set the data

[julia-users] vector vs column matrix

2015-03-04 Thread Deniz Yuret
Is there a way to initialize a 2D column matrix? a=[1,2,3] gives me a 1D vector with size=(3,) a=[1;2;3] likewise a=[1 2 3] gives me a row matrix with size=(1,3) How do I initialize a column matrix with size=(3,1)? (other than transposing a row matrix)

[julia-users] beginning deep learning with 500 lines of Julia

2015-02-28 Thread Deniz Yuret
KUnet.jl https://github.com/denizyuret/KUnet.jl (beginning deep learning with 500 lines of Julia http://www.denizyuret.com/2015/02/beginning-deep-learning-with-500-lines.html ) is out with its alpha release. Only the basic functionality is in place (i.e. backprop with relu, softmax, sgd,

[julia-users] in-place array operations

2014-11-30 Thread Deniz Yuret
I am trying to figure out the most efficient way to perform in-place array operations in Julia. julia a=rand(1,1) julia tic(); b=sin(a); toc(); elapsed time: 1.25738114 seconds julia tic(); map!(sin,a); toc(); elapsed time: 7.821650464 seconds julia tic(); for i=1:length(a);

Re: [julia-users] in-place array operations

2014-11-30 Thread Deniz Yuret
On Nov 30, 2014, at 9:24 AM, Deniz Yuret deniz...@gmail.com javascript: wrote: I am trying to figure out the most efficient way to perform in-place array operations in Julia. julia a=rand(1,1) julia tic(); b=sin(a); toc(); elapsed time: 1.25738114 seconds julia tic(); map!(sin