File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -387,7 +387,7 @@ def test_scaling():
387387 Exception , match = "Input Bounds needed to represent linear trees as MIPs"
388388 ):
389389 LinearTreeDefinition (regr )
390-
390+
391391 formulation = LinearTreeHybridBigMFormulation (lt_def2 )
392392
393393 model1 = pe .ConcreteModel ()
@@ -410,10 +410,10 @@ def connect_outputs(mdl):
410410 status_1_bigm = pe .SolverFactory ("scip" ).solve (model1 , tee = True )
411411 pe .assert_optimal_termination (status_1_bigm )
412412 solution_1_bigm = (pe .value (model1 .x ), pe .value (model1 .y ))
413- y_pred = regr .predict (np . array (( solution_1_bigm [ 0 ] - mean_x_small ) / std_x_small ). reshape ( 1 , - 1 ))
414- assert y_pred [ 0 ] == pytest . approx ((solution_1_bigm [1 ] - mean_y_small ) / std_y_small )
415-
416-
413+ y_pred = regr .predict (
414+ np . array ((solution_1_bigm [0 ] - mean_x_small ) / std_x_small ). reshape ( 1 , - 1 )
415+ )
416+ assert y_pred [ 0 ] == pytest . approx (( solution_1_bigm [ 1 ] - mean_y_small ) / std_y_small )
417417
418418
419419#### MULTIVARIATE INPUT TESTING ####
You can’t perform that action at this time.
0 commit comments