def get_log_likelihood(inputs,data,clust):
S = data[<NUM_LIT:0>].shape[<NUM_LIT:0>] <EOL>X = np.zeros([<NUM_LIT:0>,<NUM_LIT:1>])<EOL>Y = np.zeros([<NUM_LIT:0>,S])<EOL>for p in clust:<EOL><INDENT>X = np.vstack([X,inputs[p]])<EOL>Y = np.vstack([Y,data[p].T])<EOL><DEDENT>m = GPy.models.GPRegression(X,Y)<EOL>m.optimize()<EOL>ll=m.log_likelihood()    <EOL>return ll,<NUM_LIT:0><EOL>
Get the LL of a combined set of clusters, ignoring time series offsets.

    Get the log likelihood of a cluster without worrying about the fact
    different time series are offset. We're using it here really for those
    cases in which we only have one cluster to get the loglikelihood of.

    arguments:
    inputs -- the 'X's in a list, one item per cluster
    data -- the 'Y's in a list, one item per cluster
    clust -- list of clusters to use

    returns a tuple:
    log likelihood and the offset (which is always zero for this model)