docstr: Tests MIDAS on probabilistic series on example of monthly series aligned with quarters.
docstr_tok: ["Tests","MIDAS","on","probabilistic","series","on","example","of","monthly","series","aligned","with","quarters","."]
code: def test_probabilistic_complete_monthly_to_quarterly(self):
      """
      Tests MIDAS on probabilistic series on example of monthly series aligned with quarters.
      """
  
      # generate probabilistic monthly series
      all_vals_monthly = self.monthly_ts.all_values(copy=False)
      prob_values_monthly = np.concatenate(
          [all_vals_monthly + i * 0.01 for i in range(3)], axis=2
      )
      ts_prob_monthly = TimeSeries.from_times_and_values(
          times=self.monthly_ts.time_index,
          values=prob_values_monthly,
          columns=self.monthly_ts.columns.tolist(),
      )
      # generate probabilistic quarterly series
      all_vals_quarterly = self.quarterly_ts.all_values(copy=False)
      prob_values_quarterly = np.concatenate(
          [all_vals_quarterly + i * 0.01 for i in range(3)], axis=2
      )
      ts_prob_quarterly = TimeSeries.from_times_and_values(
          times=self.quarterly_ts.time_index,
          values=prob_values_quarterly,
          columns=self.quarterly_ts.columns.tolist(),
      )
  
      # to quarter start
      midas_1 = MIDAS(low_freq="QS")
  
      quarterly_ts_midas = midas_1.fit_transform(ts_prob_monthly)
      assert quarterly_ts_midas == ts_prob_quarterly
  
      inversed_quarterly_ts_midas = midas_1.inverse_transform(
          quarterly_ts_midas
      )
      assert inversed_quarterly_ts_midas == ts_prob_monthly
  
imports: import numpy
  import pandas
  import pytest
  from darts import TimeSeries
  from darts.dataprocessing.transformers import MIDAS
  from darts.models import LinearRegressionModel
  from darts.utils.timeseries_generation import generate_index, linear_timeseries
label_desc: Use image node_id 3 for calling the TestMIDAS obj's underlying member method code with example usage: obj.test_probabilistic_complete_monthly_to_quarterly() without return types