-
Notifications
You must be signed in to change notification settings - Fork 190
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
Adding support for different weight vector types #250
Commits on May 6, 2017
-
Initial work on adding weight vector types with bias correction.
NOTE: This broke a lot of things, so for now I'm keeping the existing tests without correction * WeightVec -> AbstractWeights * Weights (aka default reliability weights) * FrequencyWeights (limited to vectors of integers) * All weights take a corrected argument which defaults to true. * Added an exponential function which creates a set of exponential `Weights`. * Updated existing test cases to work with the appropriate types and added false to `weights` calls to avoid breaking existing test cases.
Configuration menu - View commit details
-
Copy full SHA for a323fc9 - Browse repository at this point
Copy the full SHA a323fc9View commit details -
Added corrected option to many stats methods.
* Reverts many test changes from the last commit * Changed a bunch of test cases to use `corrected=false` for now * This included a lot of little changes to method definition and some resulting formatting changes where necessary * Added a few test cases for the corrected variances * Added bias correction for ProbabililtyWeights. * Deprecated `WeightVec` * Added a macro for easier creation of weight types. * Renamed weight creation function to `fweights`, `pweights`, etc.
Configuration menu - View commit details
-
Copy full SHA for 457f919 - Browse repository at this point
Copy the full SHA 457f919View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7cd959d - Browse repository at this point
Copy the full SHA 7cd959dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d0653db - Browse repository at this point
Copy the full SHA d0653dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e886066 - Browse repository at this point
Copy the full SHA e886066View commit details -
Updated the "default" bias correction code to iteratively compute the…
… sum squared norm vs using vectorized operations.
Configuration menu - View commit details
-
Copy full SHA for 6710bcb - Browse repository at this point
Copy the full SHA 6710bcbView commit details -
Configuration menu - View commit details
-
Copy full SHA for e662b9d - Browse repository at this point
Copy the full SHA e662b9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for e7f2ce9 - Browse repository at this point
Copy the full SHA e7f2ce9View commit details -
Configuration menu - View commit details
-
Copy full SHA for 15d8100 - Browse repository at this point
Copy the full SHA 15d8100View commit details -
Configuration menu - View commit details
-
Copy full SHA for 520c061 - Browse repository at this point
Copy the full SHA 520c061View commit details -
Changed function name
bias
->cfactor
.* Started dispatching on corrected value rather than repeating the same corrected check for each weights type. * Added extra documentation for the different weights type, including documenting the alternative names for each type. * `cfactor(::AbstractWeights, true` now throws an argument error to avoid return an incorrect result for weight types that don't provide bias correction.
Configuration menu - View commit details
-
Copy full SHA for a23b8cb - Browse repository at this point
Copy the full SHA a23b8cbView commit details -
Removed corrected flag from
skewness
andkurtosis
and set default…… behaviour to corrected=false.
Configuration menu - View commit details
-
Copy full SHA for 25f69f3 - Browse repository at this point
Copy the full SHA 25f69f3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 096548c - Browse repository at this point
Copy the full SHA 096548cView commit details -
Removed
corrected
option frommoment
s, but kept it for_moment2
…… for `varm` to call internally.
Configuration menu - View commit details
-
Copy full SHA for 616408d - Browse repository at this point
Copy the full SHA 616408dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b73a00a - Browse repository at this point
Copy the full SHA b73a00aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a9485db - Browse repository at this point
Copy the full SHA a9485dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7f179ef - Browse repository at this point
Copy the full SHA 7f179efView commit details -
Configuration menu - View commit details
-
Copy full SHA for c9437ab - Browse repository at this point
Copy the full SHA c9437abView commit details -
Configuration menu - View commit details
-
Copy full SHA for 7072eae - Browse repository at this point
Copy the full SHA 7072eaeView commit details -
Reworked
var
andstd
definitions and doc strings.* `corrected` is now an optional argument rather than a keyword so we can produce a deprecation warning about `corrected=false` becoming `corrected=true`. NOTE: this is contrary to the `std` and `var` methods in base, but base julia isn't even consistent about whether `corrected` is a keyword or not betwen `var`, `std` and `cov`. * The `var` and `std` methods now have doc strings explaining how bias correction works with weight vectors. * `mean_and_x` methods default to what they were before.
Configuration menu - View commit details
-
Copy full SHA for 46a1aa9 - Browse repository at this point
Copy the full SHA 46a1aa9View commit details -
Configuration menu - View commit details
-
Copy full SHA for e831d15 - Browse repository at this point
Copy the full SHA e831d15View commit details -
Updated mean_and_x docstrings to mention
corrected
and point to the…… `var` or `std` documentation.
Configuration menu - View commit details
-
Copy full SHA for 4ade783 - Browse repository at this point
Copy the full SHA 4ade783View commit details -
Added documentation about
corrected
argument incov
and `mean_and……_cov` docstring. Also, added deprecation for cov `corrected=false` behaviour.
Configuration menu - View commit details
-
Copy full SHA for 7bdc112 - Browse repository at this point
Copy the full SHA 7bdc112View commit details -
Configuration menu - View commit details
-
Copy full SHA for f6f3b38 - Browse repository at this point
Copy the full SHA f6f3b38View commit details -
Configuration menu - View commit details
-
Copy full SHA for ad49920 - Browse repository at this point
Copy the full SHA ad49920View commit details -
Configuration menu - View commit details
-
Copy full SHA for def70e2 - Browse repository at this point
Copy the full SHA def70e2View commit details -
Updated test/moments.jl to use
@testset
so that we can test against…… multiple weight types corrected vs uncorrected calculations.
Configuration menu - View commit details
-
Copy full SHA for 06ec7f9 - Browse repository at this point
Copy the full SHA 06ec7f9View commit details -
Updated test/weights.jl to use
@testset
so that we can test against…… multiple weight types and added tests for `eweights`.
Configuration menu - View commit details
-
Copy full SHA for 1765f67 - Browse repository at this point
Copy the full SHA 1765f67View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4b42570 - Browse repository at this point
Copy the full SHA 4b42570View commit details -
Switched positional corrected back to a keyword with `Union{Bool, Voi…
…d}` deprecation approach. * Reverted some of the code reorganization changes in moments.jl and cov.jl to make the PR review easier * Added a DepBool alias for `Union{Bool, Void}` * Added a `depcheck` method for checking handling deprecation of unset `corrected` keyword.
Configuration menu - View commit details
-
Copy full SHA for dd9e94e - Browse repository at this point
Copy the full SHA dd9e94eView commit details -
Added generic
Weights
type and deprecatedWeightVec
to it.Also, did a bunch of docs cleanup from the previous commit.
Configuration menu - View commit details
-
Copy full SHA for a627e01 - Browse repository at this point
Copy the full SHA a627e01View commit details -
Removed eweights and fixed up test cases.
* Removed eweights from this PR. * Fixed up weights and moments tests cases to loop over weight types more often. * Fixed Probability weights n = length(w) -> n = count(!iszero, w)
Configuration menu - View commit details
-
Copy full SHA for 34c88f2 - Browse repository at this point
Copy the full SHA 34c88f2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f01bc0 - Browse repository at this point
Copy the full SHA 1f01bc0View commit details -
Configuration menu - View commit details
-
Copy full SHA for bdec9e1 - Browse repository at this point
Copy the full SHA bdec9e1View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0f6488 - Browse repository at this point
Copy the full SHA c0f6488View commit details -
Updated docs to refer to
AbstractWeighs
vsWeightVec
and included…… a brief description of different weight types.
Configuration menu - View commit details
-
Copy full SHA for a8624cd - Browse repository at this point
Copy the full SHA a8624cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 745c419 - Browse repository at this point
Copy the full SHA 745c419View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d85af7 - Browse repository at this point
Copy the full SHA 8d85af7View commit details -
Removed
fweights
from tests in favour ofweights
(to reduces PR s……ize) or `f` where appropriate.
Configuration menu - View commit details
-
Copy full SHA for 05a3cd7 - Browse repository at this point
Copy the full SHA 05a3cd7View commit details -
Moved description of different weight types in an Implementations sec…
…tions and decided to only reference the `var`, `std` and `cov` docstrings.
Configuration menu - View commit details
-
Copy full SHA for 2370595 - Browse repository at this point
Copy the full SHA 2370595View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3f84e71 - Browse repository at this point
Copy the full SHA 3f84e71View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8bcf448 - Browse repository at this point
Copy the full SHA 8bcf448View commit details -
Configuration menu - View commit details
-
Copy full SHA for dedb155 - Browse repository at this point
Copy the full SHA dedb155View commit details -
Not sure how much this helped, but tried to minimize the amount of `@…
…testset` changes (`cov` was kind of a lost cause).
Configuration menu - View commit details
-
Copy full SHA for 281654d - Browse repository at this point
Copy the full SHA 281654dView commit details -
Added comment about unsupported bias correction for the
Weights
typ……e in `var`, `std` and `cov` docstrings.
Configuration menu - View commit details
-
Copy full SHA for 5bdf58b - Browse repository at this point
Copy the full SHA 5bdf58bView commit details -
Configuration menu - View commit details
-
Copy full SHA for b991667 - Browse repository at this point
Copy the full SHA b991667View commit details -
Removed more deprecation test hacks and convert
wv
->w
in the ap……propriate docs.
Configuration menu - View commit details
-
Copy full SHA for 926678e - Browse repository at this point
Copy the full SHA 926678eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 85ace2a - Browse repository at this point
Copy the full SHA 85ace2aView commit details -
Configuration menu - View commit details
-
Copy full SHA for a0a2ad6 - Browse repository at this point
Copy the full SHA a0a2ad6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 6087b7f - Browse repository at this point
Copy the full SHA 6087b7fView commit details