7ea8c3e6d162ef47fbcfcb6621ff7633d91ae61d,tslearn/early_classification.py,NonMyopicEarlyClassification,_expected_cost,#NonMyopicEarlyClassification#Any#Any#,180

Before Change


        cost = 0
        proba_clusters = self.get_cluster_probas(X=X)
        truncated_t = X.shape[-1]
        for k in range(0, self.n_clusters):
            sum_pyhatyck = np.sum(self.pyhatyck_["pyhatycks{0}".format(k)][
                                truncated_t + tau - self.minimum_time_stamp
                            ], axis=0)
            sum_global = np.dot(sum_pyhatyck, self.pyck_[:, k])
            cost = cost + proba_clusters[:, k] * sum_global

        return cost

    def minimize_integer(self, end_of_time, xt):
        

After Change


        proba_clusters = self.get_cluster_probas(X=X)
        truncated_t = X.shape[-1]
        sum_pyhatyck = np.sum(self.pyhatyck_[truncated_t + tau - self.minimum_time_stamp], axis=1)
        sum_pyhatyck = np.transpose(sum_pyhatyck)
        sum_global = np.sum((sum_pyhatyck * self.pyck_), axis=0)
        cost = np.dot(proba_clusters, sum_global)
        return cost + self._cost_time(truncated_t + tau)

    def cost_function_minimizer(self, end_of_time, xt):
        
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: rtavenar/tslearn
Commit Name: 7ea8c3e6d162ef47fbcfcb6621ff7633d91ae61d
Time: 2020-04-16
Author: francois-33
File Name: tslearn/early_classification.py
Class Name: NonMyopicEarlyClassification
Method Name: _expected_cost


Project Name: arraiy/torchgeometry
Commit Name: e18e682858c57124d46c40e8ab1d136c009a1f69
Time: 2020-10-06
Author: daniel.koguciuk@gmail.com
File Name: kornia/geometry/homography.py
Class Name:
Method Name: find_homography_dlt


Project Name: cornellius-gp/gpytorch
Commit Name: 3879bcde8d42c619c96b6483dba14a76a8e5f00b
Time: 2019-09-29
Author: kaw293@cornell.edu
File Name: gpytorch/utils/grid.py
Class Name:
Method Name: create_data_from_grid


Project Name: rtavenar/tslearn
Commit Name: 7ea8c3e6d162ef47fbcfcb6621ff7633d91ae61d
Time: 2020-04-16
Author: francois-33
File Name: tslearn/early_classification.py
Class Name: NonMyopicEarlyClassification
Method Name: _expected_cost