-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updating jedi log data reader (#182)
## Description We attempted to produce diagnostics from jedi logs we've generated, and we found ourselves running into issues with the associated reader. A few modifications have allowed us to successfully generate jedi log diagnostics. List of changes: - Added `residual_norm` to list of variables to be built - Added `var_array` resize if `len(var_array) > total_iter` - Keeping list of variables that are saved in the convergence dataset to be used in the normalization logic later on - Added test config and example log to eva's test cases
- Loading branch information
Showing
3 changed files
with
8,743 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
datasets: | ||
|
||
- type: JediLog | ||
collection_name: jedi_log_test | ||
jedi_log_to_parse: ${data_input_path}/jedi_variational_log.txt | ||
data_to_parse: | ||
convergence: true | ||
|
||
graphics: | ||
|
||
plotting_backend: Emcpy | ||
figure_list: | ||
|
||
- figure: | ||
layout: [3,1] | ||
figure size: [12,10] | ||
title: 'Residual norm and Norm Reduction Plots' | ||
output name: jedi_log/convergence/norm_gradient_reduction.png | ||
plots: | ||
- add_xlabel: 'Total inner iteration number' | ||
add_ylabel: 'Residual norm' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: jedi_log_test::convergence::total_iteration | ||
y: | ||
variable: jedi_log_test::convergence::residual_norm | ||
color: 'black' | ||
|
||
- add_xlabel: 'Total inner iteration number' | ||
add_ylabel: 'Norm reduction' | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: jedi_log_test::convergence::total_iteration | ||
y: | ||
variable: jedi_log_test::convergence::norm_reduction | ||
color: 'black' | ||
|
||
- add_xlabel: 'Total inner iteration number' | ||
add_ylabel: 'Normalized Value' | ||
add_legend: | ||
layers: | ||
- type: LinePlot | ||
x: | ||
variable: jedi_log_test::convergence::total_iteration | ||
y: | ||
variable: jedi_log_test::convergence::residual_norm_normalized | ||
color: 'red' | ||
label: 'Normalized residual norm' | ||
- type: LinePlot | ||
x: | ||
variable: jedi_log_test::convergence::total_iteration | ||
y: | ||
variable: jedi_log_test::convergence::norm_reduction_normalized | ||
color: 'blue' | ||
label: 'Normalized norm reduction' |
Oops, something went wrong.