FluxML/Flux.jl

Provide aliases for unicode fields and keywords

クローズ

#503 opened on 2018/11/21

 (5 件のコメント) (0 件のリアクション) (0 人の担当者)Julia (619 件のフォーク)batch import
good first issuehelp wanted

Repository metrics

Stars
 (4,725 個のスター)
PR merge metrics
 (平均マージ 3d 6h) (30d で 6 merged PRs)

説明

I'm thinking of adding aliases for keyword arguments and structure fields that currently require using unicode characters to access. Examples include the σ in the Conv field names, and almost all of the fields in BatchNorm:

julia> fieldnames(BatchNorm)
(:λ, :β, :γ, :μ, :σ, :ϵ, :momentum, :active)

I only have three data points so far, but when other people start to use Flux this has been something that bothers them.

Questions:

  • Is this something we should do?
  • Would you prefer having ascii names added as aliases, or replacing the current instances of unicode with ascii names and then adding the current unicode names back as aliases?
  • Should the ascii name simply spell out the unicode symbol, or describe meaning of the field/variable? For example, should the alias for σ in Conv be activation or sigma? (My preference would be activation.)

コントリビューターガイド