You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Have you got any equivalent implementation (java API) for the function that read test time series (CSV) dataset row-by-row and then converts them into SAX wordbag with each bag corresponding to individual time series?
I'm looking for the equivalence to the following R-code...
for (i in c(1:length(data_test[,1]))) {
print(paste(i))
series = data_test[i,]
bag = series_to_wordbag(series, w, p, a, "exact", 0.01)
Appreciate your quick help !
Thanks,
KMB
The text was updated successfully, but these errors were encountered:
for (i in c(1:length(data_test[,1])))
{
print(paste(i))
series = data_test[i,]
bag = series_to_wordbag(series, w, p, a, "exact", 0.01)
cosines = cosine_sim(list("bag"=bag, "tfidf" = tfidf))
if (!any(is.na(cosines$cosines))) {
labels_predicted[i] = which(cosines$cosines == max(cosines$cosines))
}
}
`
Taken from your SAX-VSM R-page https://github.com/jMotif/jmotif-R
This functionality is not a part of this library and will not be. SAX lib is concerned with the discretization transform and the hot-sax algorithm. Sax-vsm lib implements the thing you want.
@seninp
Have you got any equivalent implementation (java API) for the function that read test time series (CSV) dataset row-by-row and then converts them into SAX wordbag with each bag corresponding to individual time series?
I'm looking for the equivalence to the following R-code...
for (i in c(1:length(data_test[,1]))) {
print(paste(i))
series = data_test[i,]
bag = series_to_wordbag(series, w, p, a, "exact", 0.01)
Appreciate your quick help !
Thanks,
KMB
The text was updated successfully, but these errors were encountered: