Skip to content

Machine-Learning-with-Gaussian-elimination notebook broken with current Julia and Flux #20

Open
@Shotgunosine

Description

The second code cell returns:

UndefVarError: ⋅ not defined

After adding using LinearAlgebra to get the ⋅ defined. The machine learning example using flux throws the following error:

MethodError: no method matching Adam(::Vector{Any})
Closest candidates are:
  Adam(::Any, ::Any, ::Any, ::Any) at ~/.julia/packages/Flux/kq9Et/src/optimise/optimisers.jl:168
  Adam() at ~/.julia/packages/Flux/kq9Et/src/optimise/optimisers.jl:173
  Adam(::Float64, ::Tuple{Float64, Float64}, ::Float64, ::IdDict{Any, Any}) at ~/.julia/packages/Flux/kq9Et/src/optimise/optimisers.jl:168
  ...

Stacktrace:
 [1] top-level scope
   @ In[10]:4
 [2] eval
   @ ./boot.jl:368 [inlined]
 [3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1428

Looking at the flux docs, it appears that the api has changed. I was using julia 1.8.3 and Flux 0.13.0.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions