b191f4c981d748e945ab6da4115b36d6d68ce589,cde/evaluation/GoodnessOfFit.py,GoodnessOfFit,fit_estimator,#GoodnessOfFit#Any#,53

Before Change


      self.estimator.fit(self.X, self.Y, verbose=False)
      self.time_to_fit = (time.time() - t_start) * self.n_observations / 1000  // time to fit per 1000 samples

    if print_fit_result: //TODO handle storing plots via the logger --> use logger.log_pyplot()
      self.probabilistic_model.plot(mode="pdf")
      self.estimator.plot()

  def kolmogorov_smirnov_cdf(self, x_cond, n_samples=10**6):
     Calculates Kolmogorov-Smirnov Statistics

    Args:

After Change


        self.plot_true_cond_distr_3d = plt3d_true
        logger.log_pyplot(key=self.task_name, fig=plt3d_true)

      if self.estimator.ndim_x == 1 and self.estimator.ndim_y == 1:
        plt2d = self.estimator.plot2d(show=False)
        plt3d = self.estimator.plot3d(show=False)
        self.plot_fitted_cond_distr_2d = plt2d
        self.plot_fitted_cond_distr_3d = plt3d
        logger.log_pyplot(key=self.task_name + "_fitted_cond_distr_2d", fig=plt2d)
        logger.log_pyplot(key=self.task_name + "_fitted_cond_distr_3d", fig=plt3d)

  def kolmogorov_smirnov_cdf(self, x_cond, n_samples=10**6):
     Calculates Kolmogorov-Smirnov Statistics

    Args:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: freelunchtheorem/Conditional_Density_Estimation
Commit Name: b191f4c981d748e945ab6da4115b36d6d68ce589
Time: 2018-08-06
Author: f4bio.ferreira@gmail.com
File Name: cde/evaluation/GoodnessOfFit.py
Class Name: GoodnessOfFit
Method Name: fit_estimator


Project Name: has2k1/plotnine
Commit Name: b8f8bbb6e8f5480174c4c49445bc0e7d952f3946
Time: 2014-04-25
Author: eric.chiang.m@gmail.com
File Name: ggplot/geoms/geom_abline.py
Class Name: geom_abline
Method Name: _plot_unit


Project Name: spectralpython/spectral
Commit Name: 0817e41d3d104da9a8e4ffb84d12fd72e5687434
Time: 2017-03-26
Author: thomas.boggs@gmail.com
File Name: spectral/graphics/spypylab.py
Class Name:
Method Name: plot