def predict(self,new_x): 
        
        new_x = matrix(new_x)
        
        # Modify new_x to include constant, squared terms and cross terms
        new_x = concatenate((matrix(ones((1,1))),new_x),1) 
        for i in range(1,self.n+1):
            new_x = concatenate((new_x,power(new_x[:,i],2)),1)
        for i in range(1,self.n):
            for j in range(i+1,self.n+1):
                new_x = concatenate((new_x,multiply(new_x[:,i],new_x[:,j])),1)
        
        # Predict new_y using new_x and betas
        new_y = new_x*self.betas
        return new_y[0,0]
Cancels a transaction.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/surrogatemodels/response_surface.py/ResponseSurface.predict--crossover with--dataset/ETHPy150Open uppsaladatavetare/foobar-api/src/wallet/api.py/cancel_transaction