Skip to content

Commit

Permalink
Saddle point in work
Browse files Browse the repository at this point in the history
  • Loading branch information
niravshah241 committed Oct 24, 2024
1 parent 15a0e33 commit 9b8c484
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions demo/saddle_point_dlrbnicsx/dlrbnicsx_saddle_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -734,7 +734,7 @@ def generate_ann_output_set(problem, reduced_problem, input_set, mode=None):
print("Generating error analysis (only input/parameters) dataset")
print("\n")
error_analysis_set = generate_ann_input_set(num_ann_samples=error_analysis_samples_num)
error_numpy_sigma = np.zeros(error_analysis_set_sigma.shape[0])
error_numpy_sigma = np.zeros(error_analysis_set.shape[0])

for i in range(error_analysis_set.shape[0]):
print(f"Error analysis parameter number {i+1} of ")
Expand All @@ -749,14 +749,14 @@ def generate_ann_output_set(problem, reduced_problem, input_set, mode=None):
input_range=reduced_problem.input_range,
output_range=reduced_problem.output_range_sigma,
index=0, verbose=True)
print(f"Error: {error_numpy_sigma[i]}")
print(f"Error (sigma): {error_numpy_sigma[i]}")

# Error analysis dataset
print("\n")
print("Generating error analysis (only input/parameters) dataset")
print("\n")
error_analysis_set = generate_ann_input_set(num_ann_samples=error_analysis_samples_num)
error_numpy_u = np.zeros(error_analysis_set_u.shape[0])
error_numpy_u = np.zeros(error_analysis_set.shape[0])

for i in range(error_analysis_set.shape[0]):
print(f"Error analysis parameter number {i+1} of ")
Expand All @@ -771,4 +771,4 @@ def generate_ann_output_set(problem, reduced_problem, input_set, mode=None):
input_range=reduced_problem.input_range,
output_range=reduced_problem.output_range_u,
index=1, verbose=True)
print(f"Error: {error_numpy_sigma[i]}")
print(f"Error (U): {error_numpy_sigma[i]}")

0 comments on commit 9b8c484

Please sign in to comment.