[julia-users] Re: Supertypes in function arguments

2015-06-26 Thread Tim Wheeler
Hello Linus, This is based on how array types are defined. In general, Vector{subtype} is not a subtype of Vector{supertype}. Try this: f{R<:Real}(x::Array{R}) = x -Tim On Friday, June 26, 2015 at 8:38:12 AM UTC-7, Linus Härenstam-Nielsen wrote: > > I ran into a problem with types today that I

[julia-users] Unicode underscore t invalid

2015-07-01 Thread Tim Wheeler
Hello Julia Users, I ran into a weird issue where unicode u+0209c, `ₜ`, is not being treated correctly. I am using Julia Version 0.3.10 on x86_64-linux-gnu. The other unicode I have been using works fine. Am I doing something wrong? `` julia> a₁ = 3 3 julia> ξ₀ = 3.0 3.0 julia> M₁₂ = 3.0 3.0

[julia-users] Native Julia types for C structs - how to handle vectors

2015-08-08 Thread Tim Wheeler
Hello Julia Users, I have been using Julia's `ccall` interface and was wondering how to handle C structs containing fixed-length arrays: typedef struct { uint8 x; // this is fine uint8 y[2]; // this will cause issues } MY_STRUCT; My current conversion is: type MY_STRUCT x::Uint8 /

Re: [julia-users] Native Julia types for C structs - how to handle vectors

2015-08-08 Thread Tim Wheeler
Great! Thank you On Saturday, August 8, 2015 at 1:13:52 PM UTC-7, Yichao Yu wrote: > > On Sat, Aug 8, 2015 at 4:08 PM, Tim Wheeler > wrote: > > Hello Julia Users, > > > > I have been using Julia's `ccall` interface and was wondering how to > handle &g

[julia-users] REQUIRE package with clone url

2015-08-27 Thread Tim Wheeler
Hello Julia Users, Is it possible to put a package dependency in REQUIRE that uses a clone url instead of a Metadata package name?

[julia-users] Re: REQUIRE package with clone url

2015-08-27 Thread Tim Wheeler
Great! thank you On Thursday, August 27, 2015 at 10:35:28 AM UTC-7, Chris wrote: > > See this thread > <https://groups.google.com/forum/#!topic/julia-users/eHINShc-1XM> for > more discussion. > > On Thursday, August 27, 2015 at 1:22:54 PM UTC-4, Tim Wheeler wrote:

[julia-users] Re: Julia 0.4 warnings and how to fix

2015-09-01 Thread Tim Wheeler
Thanks! I was trying to figure out how to do Base.== for a long time. It turns out the proper way to do it is as follows (found this in DataArrays.jl): Base.(:(==))( ... )

[julia-users] Re: Type inheritance question

2015-09-10 Thread Tim Wheeler
Julia only supports concrete leaves in the type tree - all non-leaves (parents) must be abstract types. You should be able to do: abstract AbstractDataStream{T <: Number} type DirectedDataStream{T <: Number} <: AbstractDataStream{T} data::Vector{T} stuff end type ReversedDataStream{T <

[julia-users] Re: Type inheritance question

2015-09-10 Thread Tim Wheeler
Thanks Jeffrey - I did not know that one can leave the type out.

[julia-users] Pull latex.jl out from PyPlot

2014-09-11 Thread Tim Wheeler
Hello Julia-Users! I have found the LaTeX code in latex.jl from PyPlot pretty useful. I imagine anyone working with LaTeX from Julia would have a need for it, but not everyone needs PyPlot at the same time. Is anyone considering making latex.jl a standalone LaTeX package so we don't have to rely

[julia-users] Re: Pull latex.jl out from PyPlot

2014-09-12 Thread Tim Wheeler
Awesome! On Friday, September 12, 2014 1:12:53 PM UTC-7, Steven G. Johnson wrote: > > Okay, it's done. Pkg.update(); Pkg.add("LaTeXStrings") to get it. > > Note also that in the new version you don't have to type the $...$ if your > string contains only an equation; they are added automatically

[julia-users] Discretizers.jl, A package for discretization methods and label mapping

2015-03-23 Thread Tim Wheeler
Hello Julia Users, We've been working on a new package that supports two things: 1 - mapping between continuous bins and class labels 2 - discretizing continuous regions into bins The package is available under Discretizers.jl

[julia-users] Re: Error using pcolor

2015-04-13 Thread Tim Wheeler
The same code works fine on my machine. Maybe try running Pkg.update()?

Re: [julia-users] Re: How to create own format with two digits 3=03, 10=10, 99=99 (only range 00:99)

2015-05-20 Thread Tim Wheeler
Could you just cast your strings to normal integers, do your arithmetic, and then convert it back to a string with the necessary zero-padding? ``` @sprintf("%02d", int("01")*int("02")) ``` On Wednesday, May 20, 2015 at 8:28:03 AM UTC-7, paul analyst wrote: > > Big thx, but I need: > 01*02=02 >

[julia-users] Contributing to a Julia Package

2014-11-10 Thread Tim Wheeler
Hello Julia Users, I wrote some code that I would like to submit via pull request to a Julia package. The thing is, I am new to this and do not understand the pull request process. What I have done: - used Pkg.add to obtain a local version of said package - ran `git branch mybranch` to c

[julia-users] Re: Contributing to a Julia Package

2014-11-10 Thread Tim Wheeler
ubmit the pull request from my forked repo to the upstream master On Monday, November 10, 2014 11:17:55 AM UTC-8, Tim Wheeler wrote: > > Hello Julia Users, > > I wrote some code that I would like to submit via pull request to a Julia > package. The thing is, I am new to this a

[julia-users] startswith not defined

2015-01-09 Thread Tim Wheeler
When I try to use the "startswith " function Julia cannot locate it. "endswith" seems to work fine. Am I doing something wrong? Thanks! _ _ _(_)_ | A fresh approach to technical computing (_) | (_) (_)| Documentati

[julia-users] Re: startswith not defined

2015-01-09 Thread Tim Wheeler
/en/release-0.3/stdlib/strings/> for Julia > 0.3; there's a version selector in the bottom right.) You can also use the > Compat package, which makes startswith available on Julia 0.3. > > On Friday, January 9, 2015 at 1:44:29 PM UTC-5, Tim Wheeler wrote: >> >&

[julia-users] Does the Julia global RNG have a name?

2016-03-30 Thread Tim Wheeler
Hello Julia Users, Does the Julia global RNG have a name? Is it possible to do something as follows? function sample_batch!(batch, dataset, rng::AbstractRNG = JULIA_GLOBAL_RNG) ... end Do I have to do something like this? function sample_batch!(rng::AbstractRNG, batch, dataset) ... end

[julia-users] Re: Does the Julia global RNG have a name?

2016-03-30 Thread Tim Wheeler
Ha! It is Base.GLOBAL_RNG On Wednesday, March 30, 2016 at 9:42:32 AM UTC-7, Tim Wheeler wrote: > > Hello Julia Users, > > Does the Julia global RNG have a name? Is it possible to do something as > follows? > > function sample_batch!(batch, dataset, rng::AbstractR

[julia-users] Re: Given code is not giving the optimal solution .

2016-04-01 Thread Tim Wheeler
solve(m) print(m.colVal) That gives me this, which I believe is the right answer. Note that you included a space between `solve` and `(m)`, which is not recommended. 2-element Array{Float64,1}: 0.0 0.0 On Friday, April 1, 2016 at 4:03:30 AM UTC-7, tann...@gmail.com wrote: > > Hello to every

[julia-users] dispatch slowdown when iterating over array with abstract values

2016-04-01 Thread Tim Wheeler
Hello Julia Users. I ran into a weird slowdown issue and reproduced a minimal working example. Maybe someone can help shed some light. abstract Feature type A <: Feature end evaluate(f::A) = 1.0 type B <: Feature end evaluate(f::B) = 0.0 function slow(features::Vector{Feature}) retval = 0

Re: [julia-users] dispatch slowdown when iterating over array with abstract values

2016-04-02 Thread Tim Wheeler
]) > end > > and it would make sense for abstract types that have few subtypes. I > didn't realize that dispatch was an order of magnitude slower than type > checking. It's easy enough to write a macro generating this expansion, too. > > On Saturday, April 2, 2016 a

[julia-users] Re: dispatch slowdown when iterating over array with abstract values

2016-04-04 Thread Tim Wheeler
he compiler can optimize it. Also, I learned about code_warntype and code_llvm. On Friday, April 1, 2016 at 6:56:52 PM UTC-7, Tim Wheeler wrote: > > Hello Julia Users. > > I ran into a weird slowdown issue and reproduced a minimal working > example. Maybe someone can help shed so

[julia-users] PyCall exception.jl's pycheckv - hidden exceptions or is it normal for that to take some time?

2016-04-14 Thread Tim Wheeler
Hello Julia users, I am using PyCall to run some Python code. I did some profiling and found that my time is dominated by the pycheckv macro. My question is whether this is normal or if there are hidden exceptions in my Python code that I need to worry about. pyerr_check is not revealing any i

[julia-users] Re: PyCall exception.jl's pycheckv - hidden exceptions or is it normal for that to take some time?

2016-04-14 Thread Tim Wheeler
age: image, NN.is_training: False} w, mu, cov = sess.run([NN.weights_ff, NN.mu_ff, NN.cov_ff], feed) weights[:] = w means[:] = mu covs[:] = cov On Thursday, April 14, 2016 at 11:38:29 AM UTC-7, Tim Wheeler wrote: > > Hello Julia users, > > I am using PyCall to run some P

[julia-users] Re: PyCall exception.jl's pycheckv - hidden exceptions or is it normal for that to take some time?

2016-04-15 Thread Tim Wheeler
Aha - it makes complete sense that the Python workload would show up somewhere in the profiler. I suppose I wasn't expecting it in exception.jl, but if that is where the work happens that is fine. I'm copying the results from TF into my memory - if TF doesn't create new ones every time I can jus

[julia-users] Re: using subscripts \_1, \_2, ... as field names

2016-05-10 Thread Tim Wheeler
I would love to see a₁ automatically call getindex(a, 1). It would make math easier. I'd love to be able to write: b = μ₂ + Σ₁₂*(a₁ - μ₁)/Σ₁₁ Λ = Σ₂₂ - Σ₁₂*Σ₁₂/Σ₁₁ for μ::Vector{F<:Real} and Σ::Matrix{F<:Real} Σ could be accessed via Σ₁₁ to get Σ[1,1]. Of course this breaks down with digits l

[julia-users] ANN: DC.jl - automagical linked plots in your IJulia Notebook

2016-06-01 Thread Tim Wheeler
Hello Julia Users, We are happy to announce DC.jl - a package which gives you the power of DC.js in your IJulia notebook. The premise is simple: put in a DataFrame and you get out a nice set of charts that you can interactive

[julia-users] Re: ANN: DC.jl - automagical linked plots in your IJulia Notebook

2016-06-12 Thread Tim Wheeler
Now renamed to CrossfilterCharts.jl <https://github.com/tawheeler/CrossfilterCharts.jl> to make it METADATA-friendly. On Wednesday, June 1, 2016 at 9:28:07 PM UTC-7, Tim Wheeler wrote: > > Hello Julia Users, > > We are happy to announce DC.jl <https://github.com/tawheeler/

[julia-users] Re: can't get pyjulia to work

2016-07-11 Thread Tim Wheeler
Have there been updates to this issue? I am seeing the same "ERROR: UndefVarError: dlpath not defined" problem. I tried running git checkout v1.3.0 as recommended, and then rebuilt with 1) Delete ~/.julia/lib 2) Run in julia: 2.1) ENV["PYTHON"] = " ... path to python ... " 2.2) Pkg.build("PyCall

[julia-users] Re: can't get pyjulia to work

2016-07-11 Thread Tim Wheeler
x27;s version. The installed package location can be found in python: ``` import julia julia.__file__ ``` The error has gone away. Hopefully it continues to work! On Monday, July 11, 2016 at 9:46:56 AM UTC-7, Tim Wheeler wrote: > > Have there been updates to this issue? I am seeing the same &q

[julia-users] Fast Dispatch on Metrics and Features

2016-07-11 Thread Tim Wheeler
Hello Julia Users, I have wanted to use dispatch to enable the extraction of features or metrics. This way you can define a large collection of features that all extend AbstractFeature, and then just run through a list of them to get your feature vector. One way this could be implemented is as

Re: [julia-users] Fast Dispatch on Metrics and Features

2016-07-11 Thread Tim Wheeler
Thank you for the reply. I think you're right. I did notice a significant slowdown for features used in inner loops. (see this discussion ).

[julia-users] Re: issue with setdiff

2016-08-01 Thread Tim Wheeler
Your Set constructor is incorrect. Try Set{Int}([1,2,3,4]) instead.

Re: [julia-users] Re: can't get pyjulia to work

2016-08-09 Thread Tim Wheeler
Was this fixed? On Monday, July 11, 2016 at 11:24:00 AM UTC-7, Keno Fischer wrote: > > I've been working on making this work again. Should be merged in a > couple of days. > > On Mon, Jul 11, 2016 at 1:30 PM, Tim Wheeler > wrote: > > So I may have figured it out

Re: [julia-users] Re: can't get pyjulia to work

2016-08-09 Thread Tim Wheeler
Okay, thank you! We are trying to get it to work on another computer. On Tuesday, August 9, 2016 at 3:19:02 PM UTC-7, Keno Fischer wrote: > > Should have been, yes. > > On Tue, Aug 9, 2016 at 6:05 PM, Tim Wheeler > wrote: > >> Was this fixed? >> >> On Monday

[julia-users] Install Old Version of Julia (0.3)

2015-10-14 Thread Tim Wheeler
Hello Julia Users, I am running Ubuntu 14.04 and had the standard julia ppa. Ubuntu automatically updated me to Julia 0.4. Unfortunately I have a paper due soon and the update messed up my modules. Is it possible to install the old version (0.3)? I was on the julia releases page

[julia-users] Re: Install Old Version of Julia (0.3)

2015-10-14 Thread Tim Wheeler
Okay, I figured it out. Apparently amd64 doesn't have anything to do with AMD vs. Intel. I installed it and it works! On Wednesday, October 14, 2015 at 12:19:45 PM UTC-7, Tim Wheeler wrote: > > Hello Julia Users, > > I am running Ubuntu 14.04 and had the standard

[julia-users] Re: Sort function

2016-01-20 Thread Tim Wheeler
You should be able to write your own Base.isless function for the types you need to support. On Wednesday, January 20, 2016 at 7:48:40 AM UTC-8, Ted Fujimoto wrote: > > Hi, > > In Python, we have this: > > >>> sorted([(1, [2,3]), (1,[2,1])]) > [(1, [2, 1]), (1, [2, 3])] > > In Julia, this produce

[julia-users] Re: can't get pyjulia to work

2016-08-23 Thread Tim Wheeler
So here is what I did: in Julia v0.4.6: julia> Pkg.pin("PyCall", v"1.3.0") julia> Pkg.build("PyCall") removed core.py in /usr/local/lib/python2.7/dist-packages/julia/ created a new core.py containing these contents . running, in py

[julia-users] Re: [HELP] Doubts in Julia Language with Strings.. I've condensed my doubts into one Simple Program

2016-08-24 Thread Tim Wheeler
str = "abcabc" arr = convert(Vector{UInt8}, str) # you can increase indeces with addition now. arr[1] += 5 # convert back str2 = convert(typeof(str), arr) println(str2) # -> should print "fbcabc" On Wednesday, August 24, 2016 at 7:35:58 AM UTC-7, Rishabh Raghunath wrote: > > *Hello Julia Users

[julia-users] Re: When git master is preferred to the tagged version obtained by Pkg. add()

2016-09-01 Thread Tim Wheeler
Pkg.add fetches the latest published version of the package (which resides in Metadata). That is not necessarily the master version. This is so that package developers working on new features don't inadvertently break a lot of folks' code. That being said, it is up to the package developer to ta

Re: [julia-users] Is the master algorithm on the roadmap?

2016-09-02 Thread Tim Wheeler
@kevin: I seriously doubt that anyone has ill wishes concerning your desire to implement a great MLP package for Julia. The problem is that you don't seem to have a clear enough understanding of how to go about solving the problem, and noone here has been willing to divert their work towards thi

[julia-users] Pkg.update() does not pull latest version?

2016-09-06 Thread Tim Wheeler
Hi Julia Users, I just noticed something a little weird. I am using Distributions.jl (great package btw) in Julia 0.4.6 on Ubuntu, and it is listed in Pkg.status() as a required package: Distributions 0.8.9 I checked on METADATA and on the Distributions.jl github - there is a m

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-06 Thread Tim Wheeler
h requirement for GaussianMixtures: [0.0.0,0.10.0) The weird thing is that the REQUIRE file for GaussianMixtures does not mention the 0.10.1+ julia 0.3 Clustering Distributions PDMats Compat JLD Where does that come from? On Tuesday, September 6, 2016 at 8:31:44 AM UTC-7, Tim Wheeler wrote:

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-06 Thread Tim Wheeler
of its dependencies has a maximum version requirement? > > On Tuesday, September 6, 2016 at 8:38:01 AM UTC-7, Tim Wheeler wrote: >> >> Okay, this is a little weird. >> >> If I run the following it looks like the culprit is a dirty package: >> >> julia>

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-06 Thread Tim Wheeler
ntly installed, see who is upper-bounding each other? We do need > better tools for debugging this kind of thing to make it easier to figure > out what the dependency resolver is doing, which bound constraints are > active etc. > > > On Tuesday, September 6, 2016 at 9:25:53 AM UTC

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-06 Thread Tim Wheeler
I wrote the script and put the output in the attached file. I assume that the '-' at the end of a dep is an upperbound? On Tuesday, September 6, 2016 at 9:35:46 AM UTC-7, Tim Wheeler wrote: > > Ok, will do! > > On Tuesday, September 6, 2016 at 9:31:25 AM UTC-7, Tony Kelma

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-06 Thread Tim Wheeler
er, > sorry if I didn't say as much - METADATA can be changed after-the-fact but > tagged package content can't) but those don't look like they would conflict. > > On Tuesday, September 6, 2016 at 10:03:27 AM UTC-7, Tim Wheeler wrote: >> >> I wrote the script a

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-06 Thread Tim Wheeler
y have missed something (were these > taken from METADATA or the package directory? It should be the former, > sorry if I didn't say as much - METADATA can be changed after-the-fact but > tagged package content can't) but those don't look like they would conflict. > >

[julia-users] Re: Pkg.update() does not pull latest version?

2016-09-07 Thread Tim Wheeler
That worked! I now have Distributions 0.10.2 On Tuesday, September 6, 2016 at 8:40:22 PM UTC-7, Fengyang Wang wrote: > > I think the problem is that ConjugatePriors is holding PDMats back, while > Distributions wants to move it forward. Try removing it and see if > Distributions will update. >

[julia-users] Re: Implicit differentiation in Julia?

2016-09-08 Thread Tim Wheeler
Isn't the gradient of x_j with respect to a_j just Sum_{j=1}^n (x_i)^b? On Thursday, September 8, 2016 at 1:08:51 PM UTC-7, Mathieu Taschereau-Dumouchel wrote: > > Hello everyone! > > I have the following system of n equations > > x_j= a_j * Sum_{j=1}^n (x_i)^b > > where 0 iterating on the equati

[julia-users] Hard-to-debug deep inlining

2016-09-13 Thread Tim Wheeler
Hi Julia Users, So I was looking at ConjugatePriors.jl and trying to resolve its problems with respect to the latest Distributions.jl. As discussed in issue 11 , testing ConjugatePriors after removing the REQUIRE bounds results in: Me

Re: [julia-users] Hard-to-debug deep inlining

2016-09-13 Thread Tim Wheeler
h occasionally still remains > useful. > > --Tim > > On Tuesday, September 13, 2016 8:55:58 AM CDT Tim Wheeler wrote: > > Hi Julia Users, > > > > So I was looking at ConjugatePriors.jl and trying to resolve its > problems > > with respect to the

[julia-users] Re: can't get pyjulia to work

2016-09-23 Thread Tim Wheeler
Another pyjulia call for help. I am using Julia 0.5 and Anaconda 2.3.0 with Python 2.7. I followed the pycall install instructions . Julia is on my PATH. When I run python in the cloned pyjulia repo everything is fine. When I run python in a different director

[julia-users] Re: can't get pyjulia to work

2016-09-23 Thread Tim Wheeler
So a temporary workaround is: export PYTHONPATH=$HOME/Desktop/pyjulia:$PYTHONPATH This just adds the pyjulia repo to my PYTHONPATH. On Friday, September 23, 2016 at 3:01:10 PM UTC-7, Tim Wheeler wrote: > > Another pyjulia call for help. > > I am using Julia 0.5 and Anaconda 2.3.0

[julia-users] Re: package reproducibility

2016-10-28 Thread Tim Wheeler
Hi Kevin, You can use Pkg.pin("Stats",v"0.2.5"). -Tim On Friday, October 28, 2016 at 9:24:14 AM UTC+2, Kevin Kunzmann wrote: > > Hey, > > I was just wondering whether Julia has a checkpoint-like functionality (R > checkpoint-package >