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

Entropy #24

Merged
merged 51 commits into from
Mar 10, 2019
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
76986a9
Add entropy trait
LukeMathWalker Jan 22, 2019
1395859
Remove unnecessary imports
LukeMathWalker Jan 22, 2019
b741b3d
Implemented entropy
LukeMathWalker Jan 22, 2019
7b4f6d5
Return entropy with reversed sign, as per definition
LukeMathWalker Jan 22, 2019
cc221e2
Fixed tests
LukeMathWalker Jan 22, 2019
7473815
Added signature for cross entropy
LukeMathWalker Jan 23, 2019
ea3e81f
Fixed typo.
LukeMathWalker Jan 23, 2019
2998395
Implemented cross_entropy
LukeMathWalker Jan 27, 2019
bfc3d22
Added tests
LukeMathWalker Jan 27, 2019
a69ed91
Refined panic condition
LukeMathWalker Jan 27, 2019
3d7929b
Added test vs SciPy
LukeMathWalker Jan 27, 2019
27dbd00
Added test vs SciPy
LukeMathWalker Jan 27, 2019
873871b
Added KL divergence
LukeMathWalker Jan 27, 2019
dc85e9a
Added KL tests
LukeMathWalker Jan 27, 2019
ca95788
Renamed to kl_divergence
LukeMathWalker Jan 27, 2019
d21a0bb
Update src/entropy.rs
jturner314 Feb 25, 2019
c127428
Improved docs on behaviour with not normalised arrays
LukeMathWalker Feb 26, 2019
0106d65
Improved docs on behaviour with not normalised arrays
LukeMathWalker Feb 26, 2019
b28f461
Use mapv
LukeMathWalker Feb 26, 2019
ddf358b
Styling on closures (avoid dereferencing)
LukeMathWalker Feb 26, 2019
afdcf06
Allow different data ownership to interact in kl_divergence
LukeMathWalker Feb 26, 2019
28b4efd
Allow different data ownership to interact in kl_divergence
LukeMathWalker Feb 26, 2019
8c04f9c
Allow different data ownership to interact in cross_entropy
LukeMathWalker Feb 26, 2019
450cfb4
Add a test
LukeMathWalker Feb 26, 2019
5d45bdf
Doc improvement
LukeMathWalker Feb 26, 2019
5c72f55
Check the whole shape
LukeMathWalker Feb 26, 2019
168ffa5
Merge remote-tracking branch 'origin/entropy' into entropy
LukeMathWalker Feb 26, 2019
bb38763
Fix docs
LukeMathWalker Feb 26, 2019
c470a3a
Broken usage of Zip
LukeMathWalker Feb 26, 2019
e4be9b9
Fixed zip, mistery
LukeMathWalker Feb 26, 2019
57537c3
Use Zip for cross_entropy
LukeMathWalker Feb 26, 2019
80198bc
Add failure crate as dependency
Mar 8, 2019
93371f8
Errors module
Mar 8, 2019
5f6a004
Use failure crate
Mar 8, 2019
42c3600
Add ShapeMismatch error
Mar 8, 2019
02a63de
Merge branch 'entropy' of github.com:LukeMathWalker/ndarray-stats int…
Mar 8, 2019
05d5c66
Return Result
Mar 8, 2019
99a391e
Fix test suite
Mar 8, 2019
3a3d1f6
Fix docs
Mar 8, 2019
ca31af8
Fix docs
Mar 8, 2019
e65ef61
Add docs to error
Mar 8, 2019
e39025c
Update src/entropy.rs
jturner314 Mar 10, 2019
99b999f
Update src/entropy.rs
jturner314 Mar 10, 2019
ac4c159
Update src/entropy.rs
jturner314 Mar 10, 2019
b429ec7
Better semantic
LukeMathWalker Mar 10, 2019
e9679fa
Use Error instead of Fail
LukeMathWalker Mar 10, 2019
d2dfe8f
Formatting
LukeMathWalker Mar 10, 2019
d8583d2
Merge branch 'master' into entropy
LukeMathWalker Mar 10, 2019
b8ed3ed
Fix TOC
LukeMathWalker Mar 10, 2019
c961d9f
Module docstring
LukeMathWalker Mar 10, 2019
e7ec4b4
Merge branch 'entropy' of github.com:LukeMathWalker/ndarray-stats int…
LukeMathWalker Mar 10, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ noisy_float = "0.1.8"
num-traits = "0.2"
rand = "0.6"
itertools = { version = "0.7.0", default-features = false }
failure = "0.1.5"

[dev-dependencies]
quickcheck = "0.7"
Expand Down
Loading