modelclass2 module

Created on Mon Jul 24 13:59:09 2017

@author: hanseni IMPORTANT for Cython

Cython has to be compiled in a command window with access to microsoft C-compiler

execute: Visual studio 2015>visual studio tools>Windows Desktop Command Prompts> VS2015 x64 Native Tools Command Prompt to get a command windows with the right setup for the c oompilation and linking

change the directory and path in the command window to the place where the Cython code is placed now you are in business and can call the cmodel.bat file

class modelclass2.simmodel(i_eq='', modelname='testmodel', silent=False, straight=False, funks=[], tabcomplete=True, previousbase=False, use_preorder=True, normalized=True, safeorder=False, var_description={}, model_description='', var_groups={}, reports={}, equations_latex='', eviews_dict={}, use_fbmin=True, **kwargs)[source]

Bases: model

The model class, used to experiment

initialize a model

gouteval(databank)[source]

takes a list of terms and translates to a evaluater function called los

The model axcess the data through:databank.Dataframe.value[rowindex+lag,coloumnindex] which is very efficient

This function has superseeded xouteval (modelclass.model.xouteval()

This function assumes that the numpy values have been made to a list of lists to increase speed.

cytouteval(databank, nr=1)[source]

takes a list of terms and translates to a evaluater function called los

The model axcess the data through:databank.Dataframe.value[rowindex+lag,coloumnindex] which is very efficient

This function has superseeded xouteval (modelclass.model.xouteval()

This function assumes creates a CYTHON function to realy increase speed.

teststuff3()[source]
outsolve2(order='', exclude=[], chunk=1000, ljit=False)[source]

returns a string with a function which calculates a Gauss-Seidle iteration of a model exclude is list of endogeneous variables not to be solved uses: model.solveorder the order in which the variables is calculated model.allvar[v][“gauss”] the ccalculation This function should split the functions in many functions easing numba for large models

outsolve3(order='', exclude=[], chunk=3000000, ljit=False, maxchunks=1000000, cache=False, chunkselect=0, maxlines=1000000000000)[source]

returns a string with a function which calculates a Gauss-Seidle iteration of a model exclude is list of endogeneous variables not to be solved uses: model.solveorder the order in which the variables is calculated model.allvar[v][“gauss”] the ccalculation

cytsolve(order='', exclude=[], chunk=2, ljit=False)[source]

returns a string with a Cython function which calculates a Gauss-Seidle iteration of a model exclude is list of endogeneous variables not to be solved uses: model.solveorder the order in which the variables is calculated model.allvar[v][“gauss”] the ccalculation This function should split the functions in many functions easing cython for large models