sentiment.ai
sentiment.ai copied to clipboard
cosine error
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
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: @.***>
I reinstalled the package and now it works!!!! Thank you
PS. Can you provide some papers for the methodology you follow in the package?