Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Xavier distributions #76

Closed
Tracked by #70
FL03 opened this issue May 20, 2024 · 0 comments · Fixed by #74 or #61
Closed
Tracked by #70

Implement Xavier distributions #76

FL03 opened this issue May 20, 2024 · 0 comments · Fixed by #74 or #61
Assignees
Labels
enhancement New feature or request rust Improvements or additions that update the Rust code
Milestone

Comments

@FL03
Copy link
Owner

FL03 commented May 20, 2024

XavierNormal

Each weight is drawn from a normal distribution where the mean $\left({\mu}\right)$ is set to 0 and the standard deviation $\left({\sigma}\right)$ is computed as follows:

$$\sigma = \sqrt{\frac{2}{d_{in} + d_{out}}}$$

XavierUniform

Each weight is drawn from a uniform distribution in $\left[{-x, x}\right]$

$$x = \sqrt{ \frac{ 6 }{ d_{in} + d_{out} } }$$

Resources

@FL03 FL03 added enhancement New feature or request rust Improvements or additions that update the Rust code labels May 20, 2024
@FL03 FL03 added this to the v0.1.14 milestone May 20, 2024
@FL03 FL03 self-assigned this May 20, 2024
@FL03 FL03 mentioned this issue May 20, 2024
7 tasks
This was linked to pull requests May 20, 2024
@FL03 FL03 closed this as completed in #61 May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rust Improvements or additions that update the Rust code
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant