mikeizbicki / cmc-csci181-deeplearning

deep learning course materials
15 stars 6 forks source link

Words with weights not colored #27

Open nikpap123 opened 4 years ago

nikpap123 commented 4 years ago

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

mikeizbicki commented 4 years ago

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?