Skip to content

Make it easier to set activations #283

Open
@EssamWisam

Description

@EssamWisam

Motivation and description

image

It would be easier and I don't have to explictly import Flux and just specify :relu because I coming to MLJFlux because I am not interested in using or importing Flux.

Possible Implementation

Something like:

function get_activation(func_symbol::Symbol)
           if hasproperty(Flux, func_symbol)
               return getproperty(Flux, func_symbol)
           else
               error("Function $func_symbol not found in Flux.")
           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