Julia 1.3 and Metalhead
@hhb wrote: Hello, just downloaded the fresh 1.3 binary from the website. First thing done was using Pkg Pkg.add("Flux") So far so good. Then Pkg.add("Metalhead") does NOT work, I get the stuff below....
View ArticleUpdate Project.toml manually
@Johncowk wrote: Hello, I was trying to update an old package that I wrote in order to be able to register it and run gen_package.jl as described in the Pkg doc and suppressed my REQUIRE file. The...
View ArticleJulia 1.3 and Flux and Metalhead: LoadError? Also issues on cocalc and paid...
@hhb wrote: Hi, I am working through Tanmay Bakshi’s lovely book and get errors when it gets really interesting (in the Machine Learning chapter). I have Julia 1.3 on a mac, with Flux downgraded to...
View ArticleError in example code for "global binding during remote execution" in Julia doc
@Sijun wrote: In section title What are the possible causes of an UndefVarError during remote execution? in page 427 Julia 1.3.0 doc pdf, there is the following code example: @everywhere module Foo...
View ArticleWhy is the strange type signature of sqrt so long?
@yuxi.liu wrote: I typed methods(√) and got, among other entries, this: sqrt(A::Union{DenseArray{#s627,2}, Base.ReinterpretArray{#s627,2,S,A} where S where A<:Union{SubArray{T,N,A,I,true} where...
View ArticleInstalled Flux has wrong types
@yuxi.liu wrote: I installed Flux v0.10.0 and tried the example > d = Dense(5, 2) > d(rand(5)) and got 2-element Array{Float32,1}: -0.30700117 -0.7389947 Instead of Tracked 2-element...
View ArticleSGD doesn't exist in Flux v0.10.0
@yuxi.liu wrote: Same context as “Installed Flux has wrong types”. I am working through the Deep Learning with Flux.jl and it uses SGD from Flux.jl julia> ?SGD SGD search: SGD AMSGrad Signed signed...
View ArticleWhat replaces `sympy"eye"` in version 1.3
@ea42gh wrote: The statement sympy"eye"(3) does not result in a warning in julia version 0.7. In julia version 1.3 however, it elicicts UndefVarError: @sympy_str not defined How would this function...
View ArticleSorting out FFT Compat Issue - help needed
@ckneale wrote: So I am not so fresh on this Compat detection and dependency control flow thing. I really need some help! I tried to push a fix to my package and was met with a CI/CD error. Weird...
View ArticleContributing Wayland Support to CImGui.jl - help wanted
@ckneale wrote: So I am a redhat fan - specifically a fedora linux fan. Lot’s of people are! Anyways, I am exploring UI options in Julia for front ends right now. One keenly caught my...
View ArticleAmusing thing I found in the Introduction to Flux
@yuxi.liu wrote: Modified from Lecture 1’s file 1300.Intro-to-Flux.jl.ipynb: using CSV, DataFrames apples = DataFrame(CSV.File(datapath("data/apples.dat"), delim='\t', normalizenames=true)) bananas =...
View ArticleStrange behavior of differentiating constant functions in Zygote
@yuxi.liu wrote: Why is using Zygote: gradient gradient((x -> 0.0), 1) giving (nothing, ) ? Posts: 2 Participants: 2 Read full topic
View ArticleError in Flux v0.10.0 tutorial
@yuxi.liu wrote: I’m trying the Flux tutorial https://fluxml.ai/Flux.jl/stable/models/basics/ and got weird error: using Flux W = rand(2, 5) b = rand(2) predict(x) = W*x .+ bfunction loss(x, y) ŷ =...
View ArticleZygote cannot take gradient of a sum when the sum has negative number raised...
@yuxi.liu wrote: using Zygote f(x) = sum((-1)^k*x for k in 0:5) gradient(f, 0) gives ERROR: DomainError with -1.0: log will only return a complex result if called with a complex argument. Try...
View ArticleJulia cannot update package?
@yuxi.liu wrote: I’m trying to update Flux to v0.10.0 but my Julia is stuck at v"0.8.3". Typing ]update Flux does not change it. Before that, my Flux was in v0.10.0 but I tried model zoo...
View ArticleVersioning with Pkg
@dfioravanti wrote: Hi everyone, I wanted to help with the development of a Julia package. To do so I wanted to use Pkg.dev(Package) command but it does not work. I think that the reason is that the...
View ArticleWhy isn't Flux Descent learning?
@yuxi.liu wrote: The following code doesn’t cause nearly as much learning as it should. Basically, I create two groups 0 and 1, each having two points, and want them separated by a sigmoid function,...
View ArticleString to function and vice versa
@leiteiro wrote: How can a string like “x^3 + 6x^2 + 6x” be turned into a function p(x) = x^3 + 6*x^2 + 6*x and conversely, given the function p, how to extract the body of the function as a string?...
View ArticleChange in local package does not take effect unless Julia restart
@Sijun wrote: Suppose I am in a primary environment say, environment/v1.3. Now I take the following steps to create a package as a local git repo and do some tests: 1) ] generate TestPkg 2) git...
View ArticleScoping rules for try - catch - finally
@Eben60 wrote: I understand that try-catch-finally construct introduces ist own local scope (soft local scope according to...
View Article