Skip to content

Commit 7e70c3d

Browse files
author
andre_ramos
committed
fix Int format
1 parent b88b875 commit 7e70c3d

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

paper_tests/simulation_test/evaluate_models.jl

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ end
99

1010
function get_SSL_results(
1111
y_train::Vector{Fl},
12-
true_features::Vector{Int64},
13-
false_features::Vector{Int64},
12+
true_features::Vector{Int},
13+
false_features::Vector{Int},
1414
X_train::Matrix{Fl},
1515
inf_criteria::String,
1616
true_β::Vector{Fl},
@@ -73,8 +73,8 @@ end
7373

7474
function get_SS_res_results(
7575
y_train::Vector{Fl},
76-
true_features::Vector{Int64},
77-
false_features::Vector{Int64},
76+
true_features::Vector{Int},
77+
false_features::Vector{Int},
7878
X_train::Matrix{Fl},
7979
inf_criteria::String,
8080
true_β::Vector{Fl},
@@ -161,8 +161,8 @@ end
161161

162162
function get_forward_ss(
163163
y_train::Vector{Fl},
164-
true_features::Vector{Int64},
165-
false_features::Vector{Int64},
164+
true_features::Vector{Int},
165+
false_features::Vector{Int},
166166
X_train::Matrix{Fl},
167167
inf_criteria::String,
168168
true_β::Vector{Fl},

src/utils.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,7 @@ function handle_missing_values(
241241
vcat([i[1] for i in findall(i -> any(isnan, i), X)], findall(i -> isnan(i), y))
242242
)
243243

244-
invalid_indexes = Int64[]
244+
invalid_indexes = Int[]
245245
for i in invalid_cartesian_indexes
246246
if !(i[1] in invalid_indexes)
247247
push!(invalid_indexes, i[1])
@@ -269,20 +269,20 @@ function has_intercept(X::Matrix{Fl})::Bool where Fl <: AbstractFloat
269269
end
270270

271271
"""
272-
fill_innovation_coefs(model::StructuralModel, T::Int, component::String, valid_indexes::Vector{Int64})::Vector{AbstractFloat}
272+
fill_innovation_coefs(model::StructuralModel, T::Int, component::String, valid_indexes::Vector{Int})::Vector{AbstractFloat}
273273
274274
Build the innovation coefficients for a given component with same length as the original time series and coefficients attributed to the first observation they are associated with.
275275
276276
# Arguments
277277
- `model::StructuralModel`: Structural model.
278278
- `T::Int`: Length of the original time series.
279279
- `component::String`: Component name.
280-
- `valid_indexes::Vector{Int64}`: Valid Indexes in the time series
280+
- `valid_indexes::Vector{Int}`: Valid Indexes in the time series
281281
282282
# Returns
283283
- `Union{Vector{AbstractFloat}, Matrix{AbstractFloat}}`: Vector or matrix containing innovation coefficients for the given component.
284284
"""
285-
function fill_innovation_coefs(model::StructuralModel, component::String, valid_indexes::Vector{Int64})::Union{Vector, Matrix}
285+
function fill_innovation_coefs(model::StructuralModel, component::String, valid_indexes::Vector{Int})::Union{Vector, Matrix}
286286
T = length(model.y)
287287
if typeof(model.output) == Output
288288
inov_comp = zeros(T)

0 commit comments

Comments
 (0)