openai / generating-reviews-discovering-sentiment

Code for "Learning to Generate Reviews and Discovering Sentiment"
https://arxiv.org/abs/1704.01444
MIT License
1.51k stars 379 forks source link

Visualization ambiguity #53

Open lapolonio opened 6 years ago

lapolonio commented 6 years ago

How did you map the sentiment neuron activation to colors?

Were the max and min values generated globally? If so what are they? Do you just scale the min and max activation of a single sample? Do you assume the min is -1 and max is -1?

I assumed the min and max and generated the following: image vs from blog: image

lapolonio commented 6 years ago

https://codepen.io/lapolonio/pen/wmNgKK?editors=1111

yashkumaratri commented 6 years ago

Hey, Can you forward the code that you used to generate the heatmap.

Please , I am new to seaborn and matplotlib and I am failing too much https://github.com/yashkumaratri/testrepo/blob/master/Untitled.ipynb

lapolonio commented 6 years ago

I forked the repo https://github.com/lapolonio/generating-reviews-discovering-sentiment

I used html for the heatmap.

lapolonio commented 6 years ago

Look at generate_html.py