sentiment.ai icon indicating copy to clipboard operation
sentiment.ai copied to clipboard

cosine error

Open snvv opened this issue 1 year ago • 2 comments

When I run the example in Simple Sentiment Scores the cosine function either with xgb or glm returns an error

cosine(mod_xgb, pos_neg) Error in tcrossprod(x = rescale(x), y = rescale(y)) : non-conformable arguments

snvv avatar Mar 23 '23 18:03 snvv

If you run str(mod_xgb) and str(pos_neg) what does it say? On Thu, Mar 23, 2023 at 11:25 snvv @.***> wrote:

When I run the example in Simple Sentiment Scores the cosine function either with xgb or glm returns an error

cosine(mod_xgb, pos_neg) Error in tcrossprod(x = rescale(x), y = rescale(y)) : non-conformable arguments

— Reply to this email directly, view it on GitHub https://github.com/BenWiseman/sentiment.ai/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACWRYRDWSDAPP2Q5MIBIEHLW5SISNANCNFSM6AAAAAAWFSNXVY . You are receiving this because you are subscribed to this thread.Message ID: @.***>

BenWiseman avatar Mar 23 '23 18:03 BenWiseman

I reinstalled the package and now it works!!!! Thank you

PS. Can you provide some papers for the methodology you follow in the package?

snvv avatar Mar 28 '23 07:03 snvv