JuliaML / MLUtils.jl

Utilities and abstractions for Machine Learning tasks
MIT License
109 stars 22 forks source link

`rand_like` and `randn_like` #101

Closed theabhirath closed 2 years ago

theabhirath commented 2 years ago

This PR implements rand_like and randn_like, two methods that are quite useful (especially in some custom layers I find myself writing for Metalhead). The analogues are present in PyTorch as well. Closes #99.

codecov-commenter commented 2 years ago

Codecov Report

Merging #101 (a3c5a00) into main (4243d09) will decrease coverage by 1.78%. The diff coverage is 50.00%.

@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
- Coverage   90.36%   88.57%   -1.79%     
==========================================
  Files          13       13              
  Lines         498      534      +36     
==========================================
+ Hits          450      473      +23     
- Misses         48       61      +13     
Impacted Files Coverage Δ
src/utils.jl 91.05% <50.00%> (-2.86%) :arrow_down:
src/eachobs.jl 83.33% <0.00%> (-13.55%) :arrow_down:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 4243d09...a3c5a00. Read the comment docs.

theabhirath commented 2 years ago

Could we get a patch release with this? It would be useful 😅