Batch training for LSTMs in Flux or Knet
I’m new to Flux so apologies if this is a dumb question/ has already been answered (I cannot figure it out based on a search here and the model zoo) I am trying to train an LSTM on a sequence of...
View ArticleRelease a new version of registered packages (again)
Sorry guys, in despite of many experts gave me some advices (here), I still don’t find out how to release a new version of my registered package. What I did Register a package. Add...
View ArticleSave Matrix of RGB Values to Image File with Huge Pixels
Hi, so yesterday I tried to visualize a graph in the form of a matrix. A lot of people helped me in the forum and the chat. I ended up with turning the numerical values in my matrix to RGB values. So...
View ArticleStyle rules for type annotation?
I’m reading the source of Javis.jl right now, and I see that function docstrings have type annotations for arguments, but the arguments themselves are not explicitly typed. If the type of the argument...
View ArticleCorrect way to add elements to a multidimensional array?
numbers = Array{Int}(undef, 2,2) println(typeof(numbers)) I attempted to use push!() but I kept getting an error. Is there a method specifically to add elements to multidimensional arrays? 4 posts - 2...
View ArticleI'm not able to use Gadfly + Weave
I have a very simple .jmd file \```julia using Gadfly x = range(0, step=0.1, stop=2*pi) println(x) Gadfly.plot(x = x, y = sin.(x)) \``` (I had to escape the backticks when composing this message)....
View ArticleHelp with Package Dependencies
I am experimenting with creation of my first package called OHTLCSM.jl. I followed the steps at the link below to add the package to my local repository: Link: Simple Package Tutorial StaticArrays.jl...
View ArticleHow to iterate over unicode characters with multiple codepoints
Hi this code str = "Héllo World" for i in str println(i) end produce this output H e ́ l l o W o r l d How to make it produce H é l l o W o r l d (On a side note, if you run it in vs code repl the...
View ArticleStrange dot-syntax result
the following is strange to me: julia> a = [11, 12, 13, 14]; julia> a[2:4] .= view(a, 1:3); julia> a 4-element Array{Int64,1}: 11 11 12 13 which, in my understanding, the above assignment...
View ArticleIntel mkl_dsyevd calling error
(topic withdrawn by author, will be automatically deleted in 24 hours unless flagged) 1 post - 1 participant Read full topic
View ArticleIs it possible to update Array elements in a list comprehension?
I found list comprehension is very useful tool. Currently I encountered a problem. Say there is an array of 5 integers named TEST. I want to add 1 to randomly selected elements of TEST for 10 times...
View ArticleOrganizing many inputs for iterative function calls
I am working on my first package (a basic charge simulator for electrical engineering). The code is broken up into a handful of small functions. There is no need to make those functions available so I...
View ArticleRe Pluto, results appear above entries
Reading top to bottom in a Jupyter notebook seems more natural. Is there an explanation of why the results appear above the entered expressions in Pluto? 2 posts - 2 participants Read full topic
View ArticleHow to insert "\\" before multiple "_" in a string?
Hello! Suppose I have: str = "Hello_this_is_string" How would I make it like this: str_transform = "Hello\\_this\\_is\\_string" In a programmatic way? Kind regards 2 posts - 2 participants Read full...
View ArticlePlots: retrieve axes width in final figure, and other object dimensions?
It would be useful to be able to retrieve the exact dimensions (in pixels, or other consistent units) of the elements of a plot. For instance, if one does: plt = scatter(rand(10),size=(500,500))...
View ArticleLeast common multiple function description in the "help" environment
Hi everybody. I am sorry if this is the inappropriate category, but I’m new to the forum (and to Julia) and I did not find any other fitting category. I was looking for the simple least common...
View ArticleStruct with Custom Constructor throwing error during Testing?
Hi, I have defined a constructor as follows: struct ResourceParams screen_name::String user_id::Union{Integer, Nothing} since_id::Union{Integer, Nothing} count::Union{Integer, Nothing}...
View ArticleIs there a `@print` macro?
I am looking for a macro just like @show but is less cluttered. The behavior is @print x = 100 # same as x = 100 println(x) x 14 posts - 6 participants Read full topic
View ArticleForwardDiff.jl does not throw an error even when I try to put in a function...
Hi everyone, I am new to the forum and a complete beginner in Julia here. I am not sure if this is the correct category to post this doubt. This might already be a redundant doubt if someone else has...
View ArticleMultithreaded mapping of an iterator (not a collection)
I’m trying to parallelize mapping a very large iterator (a FASTA.Reader from the FASTX package). The mapping operation is quite costly, and I have many cores, so I thought using threads would be...
View Article