12b360c6dae048ae2c1c235884627413c432e530,pyemma/coordinates/transform/vamp.py,VAMPModel,dimension,#VAMPModel#,106

Before Change


         output dimension 
        if self.dim is None or (isinstance(self.dim, float) and self.dim == 1.0):
            if hasattr(self, "_rank0"):
                return min(self._rank0, self._rankt)
            else:
                raise RuntimeError("Requested dimension, but the dimension depends on the singular values of C00 and C11"
                                   " and the transformer has not yet been estimated. Call estimate() before.")
        if isinstance(self.dim, float):

After Change


            if isinstance(self.dim, int):  // return user choice
                warnings.warn("Returning user-input for dimension, since this model has not yet been estimated.")
                return self.dim
            raise RuntimeError("Please call set_model_params prior using this method.")

        if not self._svd_performed:
            self._diagonalize()
        return self._dimension(self._rank0, self._rankt, self.dim, self.singular_values)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: markovmodel/PyEMMA
Commit Name: 12b360c6dae048ae2c1c235884627413c432e530
Time: 2018-02-09
Author: m.scherer@fu-berlin.de
File Name: pyemma/coordinates/transform/vamp.py
Class Name: VAMPModel
Method Name: dimension


Project Name: rusty1s/pytorch_geometric
Commit Name: 8c75336966fe8830565cbb2ed4661c6b4bcb4bb9
Time: 2019-02-26
Author: matthias.fey@tu-dortmund.de
File Name: torch_geometric/nn/conv/spline_conv.py
Class Name: SplineConv
Method Name: forward


Project Name: cornellius-gp/gpytorch
Commit Name: 57763571ee5d8c4414dc57fec6f151bfe8d13995
Time: 2018-04-03
Author: srikanth.gadicherla@aalto.fi
File Name: gpytorch/kernels/spectral_mixture_kernel.py
Class Name: SpectralMixtureKernel
Method Name: initialize