[julia-users] Optimizing an if statement which is set once at runtime and then looped over.

2016-08-02 Thread esproff
So let's say I have a function of the form: function f(x::Bool) for i in 1:1000 *(bunch of stuff)* if x do something end *(even more stuff)* end As you can see I only need to evaluate this if statement once, but instead I'm (in theory) evaluating it millions of

Re: [julia-users] Re: Optimizing an if statement which is set once at runtime and then looped over.

2016-08-02 Thread esproff
h the if and one >> without. Then you can @time the results and see if it makes a >> > > Which is generally bad except for synthetic benchmarks except for rare > cases. > > >> difference. >> >> >> On Tuesday, August 2, 2016 at 5:29:41 AM UTC

[julia-users] Re: Master list of constants

2016-07-05 Thread esproff
Ok great! Thanks Kenta and Lyndon for your quick responses! On Tuesday, July 5, 2016 at 4:23:47 AM UTC-7, Lyndon White wrote: > > You can use the `names` function to search a module for all constants it > defines. > By evaluating the names to get the values, then checking if they are >

[julia-users] Re: New Variational Bayes Topic Modeling Pkg

2016-07-02 Thread esproff
cially with the documentation! Have you benchmarked > it against other implementations? > > On Saturday, July 2, 2016 at 12:32:13 AM UTC-4, esproff wrote: >> >> Hi all! >> >> So I have just released a new variational Bayes topic modeling package >> for Julia, which can be

Re: [julia-users] New Variational Bayes Topic Modeling Pkg

2016-07-02 Thread esproff
has an implementation of LDA. > > Cheers, >Kevin > > On Saturday, July 2, 2016, esproff <esp...@gmail.com > wrote: > >> thanks! >> >> So I know there is a Java implementation of LDA (MALLET Pkg), which I >> believe uses collapsed Gibbs sampling,

[julia-users] New Variational Bayes Topic Modeling Pkg

2016-07-01 Thread esproff
Hi all! So I have just released a new variational Bayes topic modeling package for Julia, which can be found here: https://github.com/esproff/TopicModelsVB.jl The models included are: 1. Latent Dirichlet Allocation (LDA) 2. Filtered Latent Dirichlet Allocation (fLDA

[julia-users] New Variational Bayes Topic Modeling Pkg

2016-07-01 Thread esproff
Hi all! So I have just released a new variational Bayes topic modeling package for Julia, which can be found here: https://github.com/esproff/TopicModelsVB.jl The models included are: 1. Latent Dirichlet Allocation (LDA) 2. Filtered Latent Dirichlet Allocation (fLDA

[julia-users] Unable to run Pkg.publish() due to bad credentials

2016-08-21 Thread esproff
I'm trying to run Pkg.publish(), however when it asks for my GitHub host password I enter it (although nothing shows up when I type), and then I hit return and I get: Error 401: Bad credentials Does anyone know how to fix this?

[julia-users] Re: Any serious quant finance package for Julia?

2016-09-19 Thread esproff
; format is pretty general allows a ton of flexibility. If there's something > about the design that you see not working for this, it's better to help > them fix their design than to attempt to double up efforts and (most > likely) not get more optimized algorithms. > > On Monday, September

[julia-users] Re: Any serious quant finance package for Julia?

2016-09-19 Thread esproff
I'd be interested in getting involved in this, I've been writing up some portfolio optimization and visualization routines in Julia with the help of Convex.jl and Gadfly.jl, this could possibly eventually be merged into Ito.jl or QuantLib.jl or w/e we decide is the official Julia quant finance

[julia-users] Re: Any serious quant finance package for Julia?

2016-09-19 Thread esproff
Ok Chris I'll definitely check out Plots.jl. As for optimization packages, more than one will probably have to be used depending on the problem: disciplined convex vs numerical vs global vs etc. And, as always, some optimization algorithms will have to be custom rolled out since established

[julia-users] Question about type ambiguity

2016-10-12 Thread esproff
Consider the code: abstract AbstractFoo type Foo <: AbstractFoo end f(x::AbstractFoo, y::Integer) = "method 1" f(x::Foo, y::Real) = "method 2" foo = Foo() f(foo, 1) This code results in an ambiguity error, since both methods contain one argument with a more specific type declaration than the