@@ -8,13 +8,13 @@ function get_confusion_matrix(selected, true_features, false_features)
8
8
end
9
9
10
10
function get_SSL_results (
11
- y_train:: Vector{Float64 } ,
11
+ y_train:: Vector{Fl } ,
12
12
true_features:: Vector{Int64} ,
13
13
false_features:: Vector{Int64} ,
14
- X_train:: Matrix{Float64 } ,
14
+ X_train:: Matrix{Fl } ,
15
15
inf_criteria:: String ,
16
- true_β:: Vector{Float64 } ,
17
- )
16
+ true_β:: Vector{Fl } ,
17
+ ) where Fl <: AbstractFloat
18
18
series_result = nothing
19
19
20
20
model = StateSpaceLearning. StructuralModel (
@@ -72,13 +72,13 @@ function get_SSL_results(
72
72
end
73
73
74
74
function get_SS_res_results (
75
- y_train:: Vector{Float64 } ,
75
+ y_train:: Vector{Fl } ,
76
76
true_features:: Vector{Int64} ,
77
77
false_features:: Vector{Int64} ,
78
- X_train:: Matrix{Float64 } ,
78
+ X_train:: Matrix{Fl } ,
79
79
inf_criteria:: String ,
80
- true_β:: Vector{Float64 } ,
81
- )
80
+ true_β:: Vector{Fl } ,
81
+ ) where Fl <: AbstractFloat
82
82
py """
83
83
import math
84
84
import statsmodels.api as sm
@@ -141,7 +141,7 @@ function get_SS_res_results(
141
141
return series_result, converged
142
142
end
143
143
144
- function get_exogenous_ss_inf_criteria (y_train:: Vector{Float64 } , X_train:: Matrix{Float64} )
144
+ function get_exogenous_ss_inf_criteria (y_train:: Vector{Fl } , X_train:: Matrix{Fl} ) where Fl <: AbstractFloat
145
145
py """
146
146
import math
147
147
import statsmodels.api as sm
@@ -160,13 +160,13 @@ function get_exogenous_ss_inf_criteria(y_train::Vector{Float64}, X_train::Matrix
160
160
end
161
161
162
162
function get_forward_ss (
163
- y_train:: Vector{Float64 } ,
163
+ y_train:: Vector{Fl } ,
164
164
true_features:: Vector{Int64} ,
165
165
false_features:: Vector{Int64} ,
166
- X_train:: Matrix{Float64 } ,
166
+ X_train:: Matrix{Fl } ,
167
167
inf_criteria:: String ,
168
- true_β:: Vector{Float64 } ,
169
- )
168
+ true_β:: Vector{Fl } ,
169
+ ) where Fl <: AbstractFloat
170
170
best_inf_crit = Inf
171
171
current_inf_crit = 0
172
172
coefs = nothing
0 commit comments