@@ -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 } ,
12
- true_features:: Vector{Int64 } ,
13
- false_features:: Vector{Int64 } ,
14
- X_train:: Matrix{Float64 } ,
11
+ y_train:: Vector{Fl } ,
12
+ true_features:: Vector{Int } ,
13
+ false_features:: Vector{Int } ,
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 } ,
76
- true_features:: Vector{Int64 } ,
77
- false_features:: Vector{Int64 } ,
78
- X_train:: Matrix{Float64 } ,
75
+ y_train:: Vector{Fl } ,
76
+ true_features:: Vector{Int } ,
77
+ false_features:: Vector{Int } ,
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,9 @@ 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 (
145
+ y_train:: Vector{Fl} , X_train:: Matrix{Fl}
146
+ ) where {Fl<: AbstractFloat }
145
147
py """
146
148
import math
147
149
import statsmodels.api as sm
@@ -160,13 +162,13 @@ function get_exogenous_ss_inf_criteria(y_train::Vector{Float64}, X_train::Matrix
160
162
end
161
163
162
164
function get_forward_ss (
163
- y_train:: Vector{Float64 } ,
164
- true_features:: Vector{Int64 } ,
165
- false_features:: Vector{Int64 } ,
166
- X_train:: Matrix{Float64 } ,
165
+ y_train:: Vector{Fl } ,
166
+ true_features:: Vector{Int } ,
167
+ false_features:: Vector{Int } ,
168
+ X_train:: Matrix{Fl } ,
167
169
inf_criteria:: String ,
168
- true_β:: Vector{Float64 } ,
169
- )
170
+ true_β:: Vector{Fl } ,
171
+ ) where {Fl <: AbstractFloat }
170
172
best_inf_crit = Inf
171
173
current_inf_crit = 0
172
174
coefs = nothing
0 commit comments