GithubHelp home page GithubHelp logo

textir's People

Contributors

mataddy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

textir's Issues

tfidf - input date format

I have a small matrix with one column containing long strings (1 string per row). If I pass only the one data frame column to tfidf, then I get the error rror in log(nrow(x)) : non-numeric argument to mathematical function. If I pass the whole data frame, I get Error in base::rowSums(x, na.rm = na.rm, dims = dims, ...) : 'x' must be numeric as well as two identical warnings: In Ops.factor(left, right) : โ€˜>โ€™ not meaningful for factors. I would be very grateful for some insight on what kind of argument this function accepts. thanks!

prediction from mnlm error

Hi Matt,

I've been using mnlm for a new text dataset and the predictions don't seem to be working. Here's an example that produces the same error as in my data...

library(textir)
data(we8there)
exes<-we8thereCounts
covars<-we8thereRatings
cl <- makeCluster(detectCores(), type="FORK")
inverse.reg<-mnlm(counts=exes, covars=covars, cl=cl)
PP<-predict(inverse.reg, newdata=exes,type="response")

The error I get is just from this matrix multiplication in predict.dmrcoef:
eta <- t(tcrossprod(t(object[-1,,drop=FALSE]),newdata) + object[1,])
"Cholmod error 'A and B inner dimensions must match' at file ../MatrixOps/cholmod_ssmult.c, line 82"

It works fine with the Cushings and fgl example data, and I've tried monkeying around, but I can't figure out the general solution. Am I just using this wrong or is there a deeper issue?

Any help would be appreciated! I have a dataset that's just begging for a multinomial inverse regression, and the coefficients from the projection functions are already fascinating. But I want to validate the model out-of-sample and this particular error is holding me back.

Thanks!

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.