@@ -38,7 +38,7 @@ def test_output_coefsdata(self):
3838 self .assertEqual (coefsdata .Y .shape , (14 , 0 ))
3939 self .assertEqual (coefsdata .metas .shape , (14 , 2 ))
4040
41- self .assertEqual (["coef (MEDV)" , "Loading 1" , "Loading 2" ],
41+ self .assertEqual (["coef (MEDV)" , "w*c 1" , "w*c 2" ],
4242 [v .name for v in coefsdata .domain .attributes ])
4343 self .assertEqual (["Variable name" , "Variable role" ],
4444 [v .name for v in coefsdata .domain .metas ])
@@ -57,7 +57,7 @@ def test_output_coefsdata_multi_target(self):
5757 self .assertEqual (coefsdata .Y .shape , (14 , 0 ))
5858 self .assertEqual (coefsdata .metas .shape , (14 , 2 ))
5959
60- attr_names = ["coef (MEDV)" , "coef (CRIM)" , "Loading 1" , "Loading 2" ]
60+ attr_names = ["coef (MEDV)" , "coef (CRIM)" , "w*c 1" , "w*c 2" ]
6161 self .assertEqual (attr_names ,
6262 [v .name for v in coefsdata .domain .attributes ])
6363 self .assertEqual (["Variable name" , "Variable role" ],
@@ -78,7 +78,7 @@ def test_output_data(self):
7878 self .assertEqual (output .metas .shape , (506 , 8 ))
7979 self .assertEqual ([v .name for v in self ._data .domain .variables ],
8080 [v .name for v in output .domain .variables ])
81- metas = ["PLS U1 " , "PLS U2 " , "PLS T1 " , "PLS T2 " ,
81+ metas = ["PLS T1 " , "PLS T2 " , "PLS U1 " , "PLS U2 " ,
8282 "Sample Quantiles (MEDV)" , "Theoretical Quantiles (MEDV)" ,
8383 "DModX" ]
8484 self .assertEqual ([v .name for v in self ._data .domain .metas ] + metas ,
@@ -93,7 +93,7 @@ def test_output_data_multi_target(self):
9393 orig_domain = self ._data_multi_target .domain
9494 self .assertEqual ([v .name for v in orig_domain .variables ],
9595 [v .name for v in output .domain .variables ])
96- metas = ["PLS U1 " , "PLS U2 " , "PLS T1 " , "PLS T2 " ,
96+ metas = ["PLS T1 " , "PLS T2 " , "PLS U1 " , "PLS U2 " ,
9797 "Sample Quantiles (MEDV)" , "Theoretical Quantiles (MEDV)" ,
9898 "Sample Quantiles (CRIM)" , "Theoretical Quantiles (CRIM)" ,
9999 "DModX" ]
@@ -119,10 +119,10 @@ def test_missing_target(self):
119119 data .Y [[0 , 4 ]] = np .nan
120120 self .send_signal (self .widget .Inputs .data , data )
121121 output = self .get_output (self .widget .Outputs .data )
122- self .assertFalse (np .isnan (output .metas [:, 3 : ].astype (float )).any ())
123- self .assertTrue (np .isnan (output .metas [0 , 1 : 3 ].astype (float )).all ())
124- self .assertTrue (np .isnan (output .metas [4 , 1 : 3 ].astype (float )).all ())
125- self .assertFalse (np .isnan (output .metas [1 :4 , 1 : 3 ].astype (float )).any ())
122+ self .assertFalse (np .isnan (output .metas [:, 1 : 3 ].astype (float )).any ())
123+ self .assertTrue (np .isnan (output .metas [0 , 3 : 4 ].astype (float )).all ())
124+ self .assertTrue (np .isnan (output .metas [4 , 3 : 5 ].astype (float )).all ())
125+ self .assertFalse (np .isnan (output .metas [1 :4 , 3 : 5 ].astype (float )).any ())
126126
127127 with data .unlocked (data .Y ):
128128 data .Y [:] = np .nan
0 commit comments