Skip to content

Commit 54e8ebf

Browse files
committed
updated notebook
1 parent f6834f6 commit 54e8ebf

File tree

2 files changed

+597
-70
lines changed

2 files changed

+597
-70
lines changed

FastTimeSeries/src/container.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function _ts2df(
192192

193193
class_val = strip(ln[char_num:end], ' ')
194194

195-
push!(class_val_list, parse(Float64, class_val))
195+
push!(class_val_list, parse(Float32, class_val))
196196
push!(instance_list, arr)
197197

198198
char_num = line_len
@@ -205,7 +205,7 @@ function _ts2df(
205205

206206
char_num += 1
207207
num_this_dimension = 1
208-
arr = Array{Float64, 2}(undef, num_dimensions, series_length)
208+
arr = Array{Float32, 2}(undef, num_dimensions, series_length)
209209

210210
else
211211

@@ -244,7 +244,7 @@ function _ts2df(
244244
end
245245

246246
value = tuple_data[last_comma_index+1:end]
247-
value = parse(Float64, value)
247+
value = parse(Float32, value)
248248

249249
timestamp = tuple_data[1:last_comma_index-1]
250250

@@ -333,7 +333,7 @@ function _ts2df(
333333
num_samples = length(instance_list)
334334
series_length = size(instance_list[1])[2]
335335

336-
data = Array{Float64, 3}(undef, num_samples, num_dimensions, series_length)
336+
data = Array{Float32, 3}(undef, num_samples, num_dimensions, series_length)
337337

338338
for sample in 1:num_samples
339339
data[sample, 1:end, 1:end] = instance_list[sample]

0 commit comments

Comments
 (0)