This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def fleiss_kappa(ratings, n, k): | |
''' | |
Computes the Fleiss' kappa measure for assessing the reliability of | |
agreement between a fixed number n of raters when assigning categorical | |
ratings to a number of items. | |
Args: | |
ratings: a list of (item, category)-ratings | |
n: number of raters | |
k: number of categories |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib,numpy | |
import pylab | |
# A random colormap for matplotlib | |
cmap = matplotlib.colors.ListedColormap ( numpy.random.rand ( 256,3)) | |
pylab.imshow ( Z, cmap = cmap) | |
pylab.show() |