Demo: multi-file histograms#279
Merged
Merged
Conversation
This commit prepares for calculating histograms from multiple data files by making histogram_t objects summable. For this purpose, histogram_t componnets now include bin count and cardinality. This commit replaces the bin_frequency_ component with a bin_frequency() function that calculates frequency by dividing the count by the cardinality.
This commit further prepares for computing aggregate histograms from multi-file data by adding a histrogram_t user-defined structure constructor that accepts a predefined range. Doing so will allow for using global extrema to define one range across all files.
Usage: ./build/run-fpm.sh run tensor-statistics -- --bins <integer> \ [--disaggregate] [--unified] [--start <integer>] [--end <integer>] [--stride <integer>] where angular brackets (<>) denote user-provided values, square brackets denote optional arguments, and flags have the following meanings: --bins number of histogram bins in which to collect variable values --disaggregate generates one histogram plot file per variable per training-data file --end last time step --start first time step --stride interval between time steps --unified maps all domains to [0,1] on one histogram plot per training-data file
Usage: ./build/run-fpm.sh run tensor-statistics -- --bins <integer> [[--disaggregate] | [--unified]] where angular brackets (<>) denote user-provided values, square brackets ([]) denote optional arguments, a pipe (|) separates exclusive alternatives, and flags have the following meanings: --bins number of histogram bins in which to collect variable values --disaggregate generates one histogram plot file per variable per training-data file --unified maps all domains to [0,1] on one histogram plot per training-data file
This commit tests behavior of the histogram_t constructor when the first actual argument is one or more bracketed arrays such as [v] or [u,v,w], where u, v, and w are each a multidimensional array.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.