Code Monkey home page Code Monkey logo

Comments (3)

jwijffels avatar jwijffels commented on September 28, 2024

You can use predict(model, newdata = ....................., type = "labels") to get predictions. It will give you cosine or dot product similarity measures between your text and the categories.
There are really many R packages which give classification metrics, I think the evaluation metrics in Starspace are not so valuable. Look at R packages on CRAN which give you standard classification metrics or multi-label classification metrics.
If you really want to use the starspace test mode, you can use what is coded here https://github.com/bnosac/ruimtehol/blob/master/src/rcpp_textspace.cpp#L377 and call that as follows: ruimtehol:::textspace_evaluate(model$model, testFile = "path-to-file-containing-testdata", basedoc = "this is really optional", predictionFile = "path-to-output-file", int K = 5) but at your own discretion (might crash, I have been testing this out but forgot myself how to call this functionality because you should create your own evaluation functionality on your downstream task).

from ruimtehol.

jiunsiew avatar jiunsiew commented on September 28, 2024

Thanks. I'll give that a try. I was using the predict before. Was just wondering if the Starspace test method was available.

Thanks for the quick response.

from ruimtehol.

jwijffels avatar jwijffels commented on September 28, 2024

Closing as answer was given. Feel free to reopen if needed.

from ruimtehol.

Related Issues (20)

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.