Skip to content

Documentation need improve #4

Description

@asdf8601

Hi everybody,

I try to use the pycast library reading the documentation but I don't get nothing clear for me.

How can I make a simple exponential smoothing?

alfa = 0.1
es = pycast.methods.ExponentialSmoothing(smoothingFactor=alfa, valuesToForecast=4)
esm = es.execute(data.YT1.values)

---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
<ipython-input-14-a2d0589e322f> in <module>()
      1 alfa = 0.1
      2 es = pycast.methods.ExponentialSmoothing(smoothingFactor=alfa, valuesToForecast=4)
----> 3 esm = es.execute(data.YT1.values)

/Users/mmngreco/anaconda/envs/py2/lib/python2.7/site-packages/pycast/methods/exponentialsmoothing.pyc in execute(self, timeSeries)
    104             ## get the initial estimate
    105             if None == estimator:
--> 106                 estimator = t[1]
    107                 continue
    108 

IndexError: invalid index to scalar variable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions