Skip to content

Why not define this function in a normal way? #141

@hurricane007

Description

@hurricane007

Hello guys,
I just started using SimpleChains.jl.
For me, Julia is a tool and I didn't learn the language very carefully so I don't know all the syntaxes. It's a little bit hard for me to understand the function below, which is found in the first example of SimpleChains.jl. I think there must be a lot of users like me who don't have sophisticated knowledge of Julia.
So could the authors write documentation and examples in a simpler/common way?
Thanks!

report = let mtrain = mlpdloss, X=X, Xtest=Xtest, mtest = mlpdtest
  p -> begin
    let train = mlpdloss(X, p), test = mlpdtest(Xtest, p)
      @info "Loss:" train test
    end
  end
end

Metadata

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