GithubHelp home page GithubHelp logo

Comments (2)

balajikalluri avatar balajikalluri commented on July 26, 2024

@seninp

I'm looking for the equivalence of this R-implementation in Java.

`# classify the test data

labels_predicted = rep(-1, length(CBF[["labels_test"]]))

labels_test = CBF[["labels_test"]]

data_test = CBF[["data_test"]]

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

from sax.

seninp avatar seninp commented on July 26, 2024

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.

from sax.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.