Open TomKealy opened 5 years ago
@TomKealy Think you for opening the issue. Development of scikit-stan has been suspended until recently. I will totally redesign the structure of scikit-stan before long. Can you open the issue again after the redesign and the development of base structure are completed?
@sdual Yes, that's not a problem!
Hello - has development been restarted?
I have quite a few stan files for time series lying around and could contribute a module to this project. `from abc import ABCMeta, abstractstaticmethod from typing import Dict import pystan as ps
class BaseStanData(Dict): def append(self, **kwargs): data = self.copy() data.update(kwargs) return data
class BaseModel(metaclass=ABCMeta): model_code: str
class BaseModelResult(metaclass=ABCMeta): pass
class TimeSeriesStanData(BaseStanData): def init(self, y: np.array): super().init() assert len(y.shape) == 1, 'Mismatch dimension. y must be 1 dimensional array'
class TimeSeriesModel(BaseModel): def init(self, kwargs): super().init(kwargs)
class TimeSeriesModelResult(BaseModelResult): def init(self, model: TimeSeriesModel, stanfit): self.model = model self.stanfit = stanfit
class BayesianStructuralTimeSeries(TimeSeriesModel): model_code = """data { int T;
vector[T] y;
}
As an example.
I've tried pushing to a new branch but I've been denied permission, can I contribute? I can add AR/MA/ARMA etc.