Coder Social home page Coder Social logo

armagarch's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

armagarch's Issues

Can't use this to predict.

I'm sorry to bother you, I can't use your package to predict the results.
I can use this package to predict arma(4,0)-grach(1,1), but when I bulid arma(4,0)-grach(1,2) there is something wrong, please help me, I'm really in a hurry.

`---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
in
----> 1 pred = model.predict(nsteps = 1)

D:\Anaconda\lib\site-packages\armagarch\empModel.py in predict(self, nsteps, params, data, other)
253 mPred = self._mean.predict(nsteps, params = pars[0], data = data, other = other)
254 # get prediction for volatility
--> 255 vPred = self._vol.predict(nsteps, params = pars[1], data = mdlres['et'], other = other)
256 return [mPred, vPred]
257

D:\Anaconda\lib\site-packages\armagarch\garch.py in predict(self, nsteps, params, data, other)
162 for t in range(nsteps):
163 if self._order['q']>0:
--> 164 prediction[t] = prediction[t] + laght[t:t+self._order['q']][::-1]@beta
165
166 if self._order['p']>0:

ValueError: matmul: Input operand 1 has a mismatch in its core dimension 0, with gufunc signature (n?,k),(k,m?)->(n?,m?) (size 2 is different from 1)`

ERROR: module 'statsmodels.tsa.api' has no attribute 'ARMA'

does not run

...\lib\site-packages\armagarch\ARMA.py in _getStartingVals(self)
60 c = 'nc'
61 try:
---> 62 model = sm.ARMA(self._data.values, (self._order['AR'],self._order['MA'])).fit(trend = c)
63 self._startingValues = model.params
64 except ValueError:

armagarch.errors.HessianError

I attempted to use your package for the prediction of stock prices using the code of your example as reference. Interestingly, it seems to work fine with some stocks, but with others it generates the following error:
"armagarch.errors.HessianError: Hessian is singular! St.errors are not calculated"
Is there a way to overcome this problem?
Thanks in advance.
Regards,

matrix error

garch.py in _meanProcess(self, yt, parameters, PQ)
     72             print('param: ',parameters)
     73             print('param[0]: ',parameters[0])
---> 74             et[i]=float(ey)
     75 
     76         et = yt - et

TypeError: only size-1 arrays can be converted to Python scalars

ey is a matrix, but tries to convert to float.

Is this ready to use ?

interesting repo. is this ready to use and to install ? I am using windows environment. I am excited to look for installation and doc.

thank you

regards

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.