|
53 | 53 | contrast_matrix = get_dummy_contrast(k)
|
54 | 54 | print()
|
55 | 55 | for (i, level) in enumerate(levels(X.name))
|
56 |
| - println(cache[:vec_given_feat_val]) |
57 |
| - @test cache[:vec_given_feat_val][:name][level] == contrast_matrix[i, :] |
| 56 | + println(cache[:vector_given_value_given_feature]) |
| 57 | + @test cache[:vector_given_value_given_feature][:name][level] == contrast_matrix[i, :] |
58 | 58 | end
|
59 | 59 | end
|
60 | 60 |
|
|
82 | 82 | k = length(levels(X.favnum))
|
83 | 83 | contrast_matrix = get_sum_contrast(k)
|
84 | 84 | for (i, level) in enumerate(levels(X.favnum))
|
85 |
| - @test cache[:vec_given_feat_val][:favnum][level] == contrast_matrix[i, :] |
| 85 | + @test cache[:vector_given_value_given_feature][:favnum][level] == contrast_matrix[i, :] |
86 | 86 | end
|
87 | 87 | end
|
88 | 88 |
|
|
101 | 101 | k = length(levels(X.favnum))
|
102 | 102 | contrast_matrix = get_backward_diff_contrast(k)
|
103 | 103 | for (i, level) in enumerate(levels(X.favnum))
|
104 |
| - @test cache[:vec_given_feat_val][:favnum][level] == contrast_matrix[i, :] |
| 104 | + @test cache[:vector_given_value_given_feature][:favnum][level] == contrast_matrix[i, :] |
105 | 105 | end
|
106 | 106 | end
|
107 | 107 |
|
|
118 | 118 | k = length(levels(X.favnum))
|
119 | 119 | contrast_matrix = get_forward_diff_contrast(k)
|
120 | 120 | for (i, level) in enumerate(levels(X.favnum))
|
121 |
| - @test cache[:vec_given_feat_val][:favnum][level] == contrast_matrix[i, :] |
| 121 | + @test cache[:vector_given_value_given_feature][:favnum][level] == contrast_matrix[i, :] |
122 | 122 | end
|
123 | 123 | end
|
124 | 124 |
|
|
140 | 140 | k = length(levels(X.name))
|
141 | 141 | contrast_matrix = get_helmert_contrast(k)
|
142 | 142 | for (i, level) in enumerate(levels(X.name))
|
143 |
| - @test cache[:vec_given_feat_val][:name][level] == contrast_matrix[i, :] |
| 143 | + @test cache[:vector_given_value_given_feature][:name][level] == contrast_matrix[i, :] |
144 | 144 | end
|
145 | 145 | end
|
146 | 146 |
|
|
284 | 284 | @test X_transf == Xnew_transf
|
285 | 285 |
|
286 | 286 | # fitted parameters is correct
|
287 |
| - vec_given_feat_val = fitted_params(mach).vec_given_feat_val |
288 |
| - @test vec_given_feat_val == generic_cache[:vec_given_feat_val] |
| 287 | + vector_given_value_given_feature = fitted_params(mach).vector_given_value_given_feature |
| 288 | + @test vector_given_value_given_feature == generic_cache[:vector_given_value_given_feature] |
289 | 289 |
|
290 | 290 | # Test report
|
291 | 291 | @test report(mach) == (encoded_features = generic_cache[:encoded_features],)
|
|
0 commit comments