a19ac705a1c4ef639011c01bba1308838bcc9e02,gpytorch/lazy/mul_lazy_variable.py,MulLazyVariable,_lanczos_quadrature_form,#MulLazyVariable#,187
Before Change
Q, T = StochasticLQ(cls=type(z), max_iter=self.max_iter).lanczos_batch(tensor_matmul_closure, z)
Q = Q[0]
T = T[0]
return Q, T
def _derivative_quadratic_form_factory(self, *args):
args_index = []
args_index.append(0)
After Change
return closure
def _lanczos_quadrature_form(self, *args):
if not hasattr(self, "_lanczos_quadrature"):
n = self.size()[0]
z = args[0].new(n, 1).normal_()
z = z / torch.norm(z, 2, 0)
def tensor_matmul_closure(rhs):
return self._matmul_closure_factory(*args)(rhs)
Q, T = StochasticLQ(cls=type(z), max_iter=self.max_iter).lanczos_batch(tensor_matmul_closure, z)
Q = Q[0]
T = T[0]
self._lanczos_quadrature = Q, T
return self._lanczos_quadrature
def _derivative_quadratic_form_factory(self, *args):
args_index = []
args_index.append(0)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 9
Instances Project Name: cornellius-gp/gpytorch
Commit Name: a19ac705a1c4ef639011c01bba1308838bcc9e02
Time: 2017-10-02
Author: jrg365@cornell.edu
File Name: gpytorch/lazy/mul_lazy_variable.py
Class Name: MulLazyVariable
Method Name: _lanczos_quadrature_form
Project Name: monkeylearn/monkeylearn-python
Commit Name: a4d548941e83be736cd9795be397dc0bba7c5dbb
Time: 2018-05-28
Author: gonzalosaavedra@gmail.com
File Name: monkeylearn/__init__.py
Class Name: MonkeyLearn
Method Name: classifiers
Project Name: monkeylearn/monkeylearn-python
Commit Name: a4d548941e83be736cd9795be397dc0bba7c5dbb
Time: 2018-05-28
Author: gonzalosaavedra@gmail.com
File Name: monkeylearn/__init__.py
Class Name: MonkeyLearn
Method Name: extractors
Project Name: scipy/scipy
Commit Name: f03c60af18468f649adb8fe338b739abbca1d8c2
Time: 2020-07-08
Author: peterbell10@live.co.uk
File Name: scipy/spatial/kdtree.py
Class Name: KDTree
Method Name: tree