cmc-csci181 icon indicating copy to clipboard operation
cmc-csci181 copied to clipboard

Words with weights not colored

Open nikpap123 opened this issue 5 years ago • 1 comments

I am encountering a problem when I run my code. Although my infer function constructs a vector of weights, there is no word that appears to explain the classification. Here is my code: Screenshot 2020-04-21 at 6 37 18 PM Here are the results: Screenshot 2020-04-21 at 6 45 23 PM line0008 word

nikpap123 avatar Apr 22 '20 01:04 nikpap123

Hmm... I may have to look at this in person with you.

At a high level, there's two possibilities:

  1. You're not setting the scores vector correctly. To verify this, you should print out the scores vector before calling the line2img function and check that it actually has some valid contents.

  2. The line2img function doesn't work in your environment for some reason. It works correctly in my environment, but there could easily be bugs in the code that only manifest themselves under other conditions. Did the function correctly create pictures for you with the original sample code?

mikeizbicki avatar Apr 22 '20 04:04 mikeizbicki