pycmtensor.data#

PyCMTensor data module

Module Contents#

class pycmtensor.data.Data(df: pandas.DataFrame, choice: str)[source]#

Base Data class object

property x[source]#
property y[source]#
property all[source]#
split_db(split_frac=0.8)[source]#

Split database data into train and valid sets

get_nrows() int[source]#

Returns the lenth of the DataFrame object

scale_data(**kwargs)[source]#

Scales data values by data/scale from kwargs:{column=scale}

autoscale_data(except_for=[None])[source]#

Autoscale variable values to within -10.0 < x < 10.0

Parameters

except_for (list) – list of str to skip autoscaling

info()[source]#

Outputs information about the Data class object

class pycmtensor.data.PandasDataFrame(df: pandas.DataFrame, choice: str)[source]#

Class object to store Pandas DataFrames

inputs(tensors, index=None, batch_size=None, shift=None, split_type=None, k=0) list[pandas.DataFrame][source]#

Returns a list of DataFrame corresponding to the tensors input arg.

split_pandas(seed, split_frac)[source]#
class pycmtensor.data.Variables(choice: str)[source]#

Class object to store TensorVariables

property x list[aesara.tensor.TensorVariable][source]#

Returns only the x aet.TensorVariable of the class

property y aesara.tensor.TensorVariable[source]#

Returns only the y aet.TensorVariable of the class

property all list[aesara.tensor.TensorVariable][source]#

Returns all TensorVariable