-
Notifications
You must be signed in to change notification settings - Fork 133
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
[WIP] Jimmy testing representativity based on changes in basic stat #1790
[WIP] Jimmy testing representativity based on changes in basic stat #1790
Conversation
Adding a _runLegacy for code still using dictionaries.
…esentativity-afterJosh-BasicStat
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Jimmy-INL I have a couple of comments for you to consider.
#Internal Modules------------------------------------------------------------------------------------ | ||
from .MetricInterface import MetricInterface | ||
# from Metrics.metrics import MetricUtilities | ||
from utils import InputData, InputTypes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use new ravenframework import strategy to import the modules
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshua-cogliati-inl, could you direct me to the new import strategy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
senMeasurables = kwargs['senMeasurables'] | ||
senFOMs = kwargs['senFOMs'] | ||
covParameters = kwargs['covParameters'] | ||
r = (senFOMs.T @ covParameters @ senMeasurables)/\ | ||
np.sqrt(senFOMs.T @ covParameters @ senFOMs)/\ | ||
np.sqrt(senMeasurables.T @ covParameters @ senMeasurables) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need to create a metric class to do this calculation? It seems to me this calculation is only specific to representativity. How can we use it for other applications? If not, I would suggest to move it the representativity PP.
tests/framework/PostProcessors/Validation/test_validation_gate_representativityLinModel.xml
Outdated
Show resolved
Hide resolved
tests/framework/PostProcessors/Validation/test_validation_gate_representativityLinModel.xml
Outdated
Show resolved
Hide resolved
tests/framework/PostProcessors/Validation/test_validation_gate_representativityLinModel.xml
Outdated
Show resolved
Hide resolved
tests/framework/PostProcessors/Validation/test_validation_gate_representativityLinModel.xml
Outdated
Show resolved
Hide resolved
tests/framework/PostProcessors/Validation/test_validation_gate_representativityLinModel.xml
Outdated
Show resolved
Hide resolved
I think this PR can be closed. @Jimmy-INL Please let me know if you need to reopen it. |
Pull Request Description
What issue does this change request address? (Use "#" before the issue to link it, i.e., #42.)
Closes #1650 and #1546
What are the significant changes in functionality due to this change request?
This adds the representativity PP based on the validation gate
For Change Control Board: Change Request Review
The following review must be completed by an authorized member of the Change Control Board.
<internalParallel>
to True.raven/tests/framework/user_guide
andraven/docs/workshop
) have been changed, the associated documentation must be reviewed and assured the text matches the example.