grambank / grambank-analysed

3 stars 0 forks source link

Unusualness map on unusualness plot code #50

Closed blasid closed 2 years ago

blasid commented 2 years ago

Let's try to keep it all in one code if possible - @HedvigS can you please include the map plotting function in the unusualness_plot code?

HedvigS commented 2 years ago

Is it okay if it's in the same dir but not the same script?

HedvigS commented 2 years ago

Currently the worldmap unusualness is plotting the Surprisal score at kernel 30, like the predict script does. Is that what you want surprisal_worldmap ?

HedvigS commented 2 years ago

By the way, I can't get your script plot_unsualness to run from top to bottom. I've made some adjustments, but there are some places where I'd like to know what the intention is so that I don't ruin something.

HedvigS commented 2 years ago

I think that you want the world map plot to show the unusualness score, not the surprisal. For that I need to change the unsualness table to contain the language_Ids. Doing so now.

HedvigS commented 2 years ago

Currently the worldmap unusualness is plotting the Surprisal score at kernel 30, like the predict script does. Is that what you want surprisal_worldmap ?

@blasid the histogram if we use surprisal is going to look a bit like this, i.e. very skewed. I might actually move the histogram a bit eastward so that the peak of the distribution pokes just besides Rapa Nui or something. Before I fiddle around, just to 100% confirm - this is what you want plotted? Sorry for being annoying.

blasid commented 2 years ago

Thanks @HedvigS! this all looks good. I was wondering whether using kernel 20 is a better idea -less skewed