class_docstr: Inherits time series methods from TSM parent class.
  
  **** NEURAL NETWORK AUTOREGRESSIVE (NNAR) MODELS ****
  
  Parameters
  ----------
  data : pd.DataFrame or np.ndarray
      Field to specify the univariate time series data that will be used.
  
  ar : int
      Field to specify how many AR lags the model will have.
  
  units : int
      How many units for the neural network
  
  layers : int
      How many layers for the neural networ
  
  activation : function
      E.g. np.tanh, np.array (linear)
  
  family: family object
      E.g. pf.Normal()
class_docstr_tok: ["Inherits","time","series","methods","from","TSM","parent","class",".","*","*","*","*","NEURAL","NETWORK","AUTOREGRESSIVE","(","NNAR",")","MODELS","*","*","*","*","Parameters","--","--","--","--","--","data",":","pd.DataFrame","or","np.ndarray","Field","to","specify","the","univariate","time","series","data","that","will","be","used",".","ar",":","int","Field","to","specify","how","many","AR","lags","the","model","will","have",".","units",":","int","How","many","units","for","the","neural","network","layers",":","int","How","many","layers","for","the","neural","networ","activation",":","function","E.g",".","np.tanh",",","np.array","(","linear",")","family",":","family","object","E.g",".","pf.Normal","(",")"]
docstr: Obtains model scale, shape, skewness latent variables for
  a 2d array of simulations.
  
  Parameters
  ----------
  transformed_lvs : np.array
      Transformed latent variable vector (2d - with draws of each variable)
  
  Returns
  ----------
  - Tuple of np.arrays (each being scale, shape and skewness draws)
docstr_tok: ["Obtains","model","scale",",","shape",",","skewness","latent","variables","for","a","2d","array","of","simulations",".","Parameters","--","--","--","--","--","transformed_lvs",":","np.array","Transformed","latent","variable","vector","(","2d","-","with","draws","of","each","variable",")","Returns","--","--","--","--","--","-","Tuple","of","np.arrays","(","each","being","scale",",","shape","and","skewness","draws",")"]
code: def _get_scale_and_shape_sim(self, transformed_lvs):
      """Obtains model scale, shape, skewness latent variables for
      a 2d array of simulations.
  
      Parameters
      ----------
      transformed_lvs : np.array
          Transformed latent variable vector (2d - with draws of each variable)
  
      Returns
      ----------
      - Tuple of np.arrays (each being scale, shape and skewness draws)
      """
  
      if self.scale is True:
          if self.shape is True:
              model_shape = self.latent_variables.z_list[
                  -1
              ].prior.transform(transformed_lvs[-1, :])
              model_scale = self.latent_variables.z_list[
                  -2
              ].prior.transform(transformed_lvs[-2, :])
          else:
              model_shape = np.zeros(transformed_lvs.shape[1])
              model_scale = self.latent_variables.z_list[
                  -1
              ].prior.transform(transformed_lvs[-1, :])
      else:
          model_scale = np.zeros(transformed_lvs.shape[1])
          model_shape = np.zeros(transformed_lvs.shape[1])
  
      if self.skewness is True:
          model_skewness = self.latent_variables.z_list[
              -3
          ].prior.transform(transformed_lvs[-3, :])
      else:
          model_skewness = np.zeros(transformed_lvs.shape[1])
  
      return model_scale, model_shape, model_skewness
  
imports: import sys
  import numpy
  import pandas
  import scipy.stats
  from patsy import dmatrices, dmatrix, demo_data
  from ..None import families
  from ..None import output
  from ..None import tests
  from ..None import tsm
  from ..None import data_check
  from .nn_architecture import neural_network_tanh, neural_network_tanh_mb
label_desc: Use image node_id 5 for calling the NNARX obj's underlying member method code with example usage: obj._get_scale_and_shape_sim(transformed_lvs) and returns: model_scale,  model_shape,  model_skewness