@@ -48,9 +48,9 @@ def _get_test_problem():
4848 -> B; gamma_;
4949 end
5050 """ )
51- problem .add_experiment ("e1" , 0 , "" )
51+ problem .add_experiment ("e1" , 0 , "cond1 " )
5252 problem .add_mapping ("net1_input1" , "net1.inputs[0][0]" )
53- problem .add_mapping ("net1_input2" , "net1.inputs[0][ 1]" )
53+ problem .add_mapping ("net1_input2" , "net1.inputs[1]" )
5454 problem .add_mapping ("net1_output1" , "net1.outputs[0][0]" )
5555 problem .add_mapping ("net1_ps" , "net1.parameters" )
5656 problem .add_measurement ("B_obs" , time = 1 , measurement = 1 , experiment_id = "e1" )
@@ -62,7 +62,7 @@ def _get_test_problem():
6262 "net1_ps" , estimate = True , lb = - np .inf , ub = np .inf , nominal_value = "array"
6363 )
6464 problem .extensions .sciml .add_hybridization ("net1_input1" , "A" )
65- problem .extensions .sciml .add_hybridization ("net1_input2" , "B " )
65+ problem .extensions .sciml .add_hybridization ("net1_input2" , "array " )
6666 problem .extensions .sciml .add_hybridization ("gamma_" , "net1_output1" )
6767 problem .extensions .sciml .add_neural_network_from_dict (
6868 "net1" ,
@@ -106,7 +106,11 @@ def _get_test_problem():
106106 problem .extensions .sciml .add_array_data_from_dict (
107107 {
108108 "metadata" : {"pytorch_format" : True },
109- "inputs" : {},
109+ "inputs" : {
110+ "net1_input2" : {
111+ "cond1" : np .random .randn (2 ),
112+ }
113+ },
110114 "parameters" : {
111115 "net1" : {
112116 "layer1" : {
0 commit comments