Skip to content

Commit

Permalink
comment changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karlnapf committed Jul 25, 2012
1 parent d8d1158 commit fac0f66
Showing 1 changed file with 5 additions and 5 deletions.
Expand Up @@ -8,15 +8,15 @@
#
from numpy import *

def statistics_linear_time_mmd():
def statistics_quadratic_time_mmd():
from shogun.Features import RealFeatures
from shogun.Features import DataGenerator
from shogun.Kernel import GaussianKernel
from shogun.Statistics import QuadraticTimeMMD
from shogun.Statistics import BOOTSTRAP, MMD2_SPECTRUM, MMD2_GAMMA, BIASED, UNBIASED

# note that the quadratic time mmd has sometimes to store kernel matrices
# which upper bounds the sample size massively
# note that the quadratic time mmd has to store kernel matrices
# which upper bounds the sample size
n=500
dim=2
difference=0.5
Expand Down Expand Up @@ -97,5 +97,5 @@ def statistics_linear_time_mmd():
print "null variance:", var(null_samples)

if __name__=='__main__':
print('LinearTimeMMD')
statistics_linear_time_mmd()
print('QuadraticTimeMMD')
statistics_quadratic_time_mmd()

0 comments on commit fac0f66

Please sign in to comment.