def test_kernel_regression_rbf4(self):
        rega = KernelRidgeRegression(random_seed=28378)
        filename = os.path.join(pyvision.__path__[0],'data','synthetic','synth1_quad.txt')
        reg_file = open(filename,'r')
        labels = []
        vectors = []
        truth = []
        for line in reg_file:
            datapoint = line.split()
            labels.append(float(datapoint[1]))
            vectors.append([float(datapoint[0])])
            truth.append(float(datapoint[2]))
            
        for i in range(100):
            rega.addTraining(labels[i],vectors[i])
        rega.train(verbose=False)
        #print rega.w
        
        mse = 0.0
        ase = 0.0
        table = Table()
        for i in range(100,len(labels)):
            p = rega.predict(vectors[i])
            e = p - labels[i]
            mse += e*e
            a = p / truth[i]
            ase += a*a
            table.setElement(i,'x',vectors[i][0])
            table.setElement(i,'measure',labels[i])
            table.setElement(i,'truth',truth[i])
            table.setElement(i,'pred',p)
            table.setElement(i,'e',e)
            table.setElement(i,'a',a)
            
            
        mse = mse/(len(labels)-100)
        ase = ase/(len(labels)-100)
        #print "Regression Error:",mse
        #print table
        #table.save("../../rbf4.csv")
        
        self.assertAlmostEqual(mse,0.063883259792847411,places=7)
        self.assertAlmostEqual(ase,0.028811752673991175,places=7)
dataset/ETHPy150Open bolme/pyvision/src/pyvision/vector/RidgeRegression.py/_TestKRR.test_kernel_regression_rbf4/operator `-` -> `/`