Kats, a kit to analyze time series data, a lightweight, easy-to-use, generalizable, and extendable framework to perform time series analysis, from understanding the key statistics and characteristics, detecting change points and anomalies, to forecasting future trends.

Related tags

Data AnalysisKats
Overview

Description

Kats is a toolkit to analyze time series data, a lightweight, easy-to-use, and generalizable framework to perform time series analysis. Time series analysis is an essential component of Data Science and Engineering work at industry, from understanding the key statistics and characteristics, detecting regressions and anomalies, to forecasting future trends. Kats aims to provide the one-stop shop for time series analysis, including detection, forecasting, feature extraction/embedding, multivariate analysis, etc.

Kats is released by Facebook's Infrastructure Data Science team. It is available for download on PyPI.

Important links

Installation in Python

Kats is on PyPI, so you can use pip to install it.

pip install --upgrade pip
pip install kats

If you need only a small subset of Kats, you can install a minimal version of Kats with

MINIMAL_KATS=1 pip install kats

which omits many dependencies (everything in test_requirements.txt). However, this will disable many functionalities and cause import kats to log warnings. See setup.py for full details and options.

Examples

Here are a few sample snippets from a subset of Kats offerings:

Forecasting

Using Prophet model to forecast the air_passengers data set.

import pandas as pd

from kats.consts import TimeSeriesData
from kats.models.prophet import ProphetModel, ProphetParams

# take `air_passengers` data as an example
air_passengers_df = pd.read_csv(
    "../kats/data/air_passengers.csv",
    header=0,
    names=["time", "passengers"],
)

# convert to TimeSeriesData object
air_passengers_ts = TimeSeriesData(air_passengers_df)

# create a model param instance
params = ProphetParams(seasonality_mode='multiplicative') # additive mode gives worse results

# create a prophet model instance
m = ProphetModel(air_passengers_ts, params)

# fit model simply by calling m.fit()
m.fit()

# make prediction for next 30 month
fcst = m.predict(steps=30, freq="MS")

Detection

Using CUSUM detection algorithm on simulated data set.

# import packages
import numpy as np
import pandas as pd

from kats.consts import TimeSeriesData
from kats.detectors.cusum_detection import CUSUMDetector

# simulate time series with increase
np.random.seed(10)
df_increase = pd.DataFrame(
    {
        'time': pd.date_range('2019-01-01', '2019-03-01'),
        'increase':np.concatenate([np.random.normal(1,0.2,30), np.random.normal(2,0.2,30)]),
    }
)

# convert to TimeSeriesData object
timeseries = TimeSeriesData(df_increase)

# run detector and find change points
change_points = CUSUMDetector(timeseries).detector()

TSFeatures

We can extract meaningful features from the given time series data

# Initiate feature extraction class
import pandas as pd
from kats.consts import TimeSeriesData
from kats.tsfeatures.tsfeatures import TsFeatures

# take `air_passengers` data as an example
air_passengers_df = pd.read_csv(
    "../kats/data/air_passengers.csv",
    header=0,
    names=["time", "passengers"],
)

# convert to TimeSeriesData object
air_passengers_ts = TimeSeriesData(air_passengers_df)

# calculate the TsFeatures
features = TsFeatures().transform(air_passengers_ts)

Changelog

Version 0.1.0

  • Initial release

Contributors

Kats is a project with several skillful researchers and engineers contributing to it.

Kats is currently maintained by Xiaodong Jiang with major contributions coming from many talented individuals in various forms and means. A non-exhaustive but growing list needs to mention: Sudeep Srivastava, Sourav Chatterjee, Jeff Handler, Rohan Bopardikar, Dawei Li, Yanjun Lin, Yang Yu, Michael Brundage, Caner Komurlu, Rakshita Nagalla, Zhichao Wang, Hechao Sun, Peng Gao, Wei Cheung, Jun Gao, Qi Wang, Morteza Kazemi, Tihamér Levendovszky, Jian Zhang, Ahmet Koylan, Kun Jiang, Aida Shoydokova, Ploy Temiyasathit, Sean Lee, Nikolay Pavlovich Laptev, Peiyi Zhang, Emre Yurtbay, Daniel Dequech, Rui Yan, and William Luo.

License

Kats is licensed under the MIT license.

Comments
  • ImportError

    ImportError

    Hello!

    When I was trying to import some kats functionalities on my Jupyter Notebook, it came back with a error message as below:

    ImportError Traceback (most recent call last) in ----> 1 from kats.detectors.outlier import OutlierDetector

    ~\Anaconda3\lib\site-packages\kats_init_.py in 1 from . import consts # noqa ----> 2 from . import utils # noqa 3 from . import detectors # noqa 4 from . import models # noqa 5 from . import tsfeatures # noqa

    ImportError: cannot import name 'utils' from partially initialized module 'kats' (most likely due to a circular import) (C:\Users\49683\Anaconda3\lib\site-packages\kats_init_.py)

    Anyone knows how to resolve this issue? Thanks in advance!

    opened by davidguo-7 15
  • Blocking errors while trying to install kats 0.2.0 (with or without Docker)

    Blocking errors while trying to install kats 0.2.0 (with or without Docker)

    Hi, I tried to install the latest version – both minimal and not minimal version – but it ends up with errors.

    This is a minimal Dockerfile to try to reproduce the errors.

    FROM python:3.9.15-slim
    WORKDIR /app
    RUN MINIMAL_KATS=1 pip install kats==0.2.0
    # alternative => pip install kats==0.2.0
    

    Thank you.

    opened by carlok 12
  • Add minimal installation option using MINIMAL_KATS

    Add minimal installation option using MINIMAL_KATS

    As commented on https://github.com/facebookresearch/Kats/issues/101#issuecomment-947126195, having an environment variable that's exclusive for kats avoids installation issues on projects that have multiple other dependencies, and install them using commands like pip install -r requirements.txt.

    In that scenario, setting MINIMAL_KATS avoids unintended side effects on any other dependency that understands the MINIMAL environment variable.

    CLA Signed Merged 
    opened by adamantike 10
  • Light Install on Windows

    Light Install on Windows

    I am interested in using the detectors in kats for my project (on windows), but the current install is too heavy (requiring Prophet and PyTorch and other heavy libraries). Is there a light version install for kats that provides the bare bone utility functions. If not, could one be made available?

    I see that setup.py has some option like this, but how do I enable this while installing from pip on windows?

    Thanks!

    opened by ngupta23 10
  • unable to build wheel for fbprophet while trying to install Kats in Win 10

    unable to build wheel for fbprophet while trying to install Kats in Win 10

    1. My environment is Win 10, with conda 4.9.2 and Python 3.7.6
    2. While trying to install Kats (pip install kats), I am getting the error: Building wheel for fbprophet (setup.py) ... error
    3. More lines from the error message are in attached file Kats_error.txt
    4. I had an older working fbprophet, faced same errors in trying to upgrade (pip install --upgrade fbprophet).
    5. Anybody know how to fix this?
    opened by kunalrayind 10
  • Installation breaks on Windows10 (conda environment)

    Installation breaks on Windows10 (conda environment)

    Hi everyone,

    When I try to install kats on my machine (Windows 10, build see attached screenshot), the installation breaks building the wheel for fbprophet.

    I am trying this on a fresh conda environment (conda version 4.10.1) and python3.8. My only guess is that this has todo with the ability to install pystan on windows, which is not possible without access to WSL2 (which I do not have because of corporate restrictions).

    I will attach the error message below.

    Attachments

    Windows version

    image

    Error message

    Error Message (click)

    
    ERROR: Command errored out with exit status 1:
       command: 'C:\Users\matheiss\Miniconda3\envs\tiresias-kats\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\matheiss\\AppData\\Local\\Temp\\1\\pip-install-5dy9pwq7\\fbprophet_6fb4ff087aaf40478b71089d7e634e82\\setup.py'"'"'; __file__='"'"'C:\\Users\\matheiss\\AppData\\Local\\Temp\\1\\pip-install-5dy9pwq7\\fbprophet_6fb4ff087aaf40478b71089d7e634e82\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel -d 'C:\Users\matheiss\AppData\Local\Temp\1\pip-wheel-xzjkrfhe'
           cwd: C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\
      Complete output (42 lines):
      running bdist_wheel
      running build
      running build_py
      creating build
      creating build\lib
      creating build\lib\fbprophet
      creating build\lib\fbprophet\stan_model
      Traceback (most recent call last):
        File "<string>", line 1, in <module>
        File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\setup.py", line 122, in <module>
          setup(
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\setuptools\__init__.py", line 163, in setup
          return distutils.core.setup(**attrs)
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\core.py", line 148, in setup
          dist.run_commands()
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 966, in run_commands
          self.run_command(cmd)
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 985, in run_command
          cmd_obj.run()
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\wheel\bdist_wheel.py", line 299, in run
          self.run_command('build')
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 985, in run_command
          cmd_obj.run()
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\command\build.py", line 135, in run
          self.run_command(cmd_name)
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\cmd.py", line 313, in run_command
          self.distribution.run_command(command)
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 985, in run_command
          cmd_obj.run()
        File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\setup.py", line 48, in run
          build_models(target_dir)
        File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\setup.py", line 38, in build_models
          StanBackendEnum.get_backend_class(backend).build_model(target_dir, MODEL_DIR)
        File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\fbprophet\models.py", line 209, in build_model
          import pystan
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\pystan\__init__.py", line 9, in <module>
          from pystan.api import stanc, stan
        File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\pystan\api.py", line 13, in <module>
          import pystan._api  # stanc wrapper
      ImportError: DLL load failed while importing _api: Das angegebene Modul wurde nicht gefunden.
      ----------------------------------------
      ERROR: Failed building wheel for fbprophet
      Running setup.py clean for fbprophet
    Failed to build fbprophet
    Installing collected packages: fbprophet, ax-platform, attrs, kats
        Running setup.py install for fbprophet ... error
        ERROR: Command errored out with exit status 1:
         command: 'C:\Users\matheiss\Miniconda3\envs\tiresias-kats\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\matheiss\\AppData\\Local\\Temp\\1\\pip-install-5dy9pwq7\\fbprophet_6fb4ff087aaf40478b71089d7e634e82\\setup.py'"'"'; __file__='"'"'C:\\Users\\matheiss\\AppData\\Local\\Temp\\1\\pip-install-5dy9pwq7\\fbprophet_6fb4ff087aaf40478b71089d7e634e82\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\matheiss\AppData\Local\Temp\1\pip-record-nj09haiu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\matheiss\Miniconda3\envs\tiresias-kats\Include\fbprophet'
             cwd: C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\
        Complete output (44 lines):
        running install
        running build
        running build_py
        creating build
        creating build\lib
        creating build\lib\fbprophet
        creating build\lib\fbprophet\stan_model
        Traceback (most recent call last):
          File "<string>", line 1, in <module>
          File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\setup.py", line 122, in <module>
            setup(
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\setuptools\__init__.py", line 163, in setup
            return distutils.core.setup(**attrs)
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\core.py", line 148, in setup
            dist.run_commands()
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 966, in run_commands
            self.run_command(cmd)
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\setuptools\command\install.py", line 61, in run
            return orig.install.run(self)
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\command\install.py", line 545, in run
            self.run_command('build')
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\command\build.py", line 135, in run
            self.run_command(cmd_name)
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\cmd.py", line 313, in run_command
            self.distribution.run_command(command)
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\distutils\dist.py", line 985, in run_command
            cmd_obj.run()
          File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\setup.py", line 48, in run
            build_models(target_dir)
          File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\setup.py", line 38, in build_models
            StanBackendEnum.get_backend_class(backend).build_model(target_dir, MODEL_DIR)
          File "C:\Users\matheiss\AppData\Local\Temp\1\pip-install-5dy9pwq7\fbprophet_6fb4ff087aaf40478b71089d7e634e82\fbprophet\models.py", line 209, in build_model
            import pystan
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\pystan\__init__.py", line 9, in <module>
            from pystan.api import stanc, stan
          File "C:\Users\matheiss\Miniconda3\envs\tiresias-kats\lib\site-packages\pystan\api.py", line 13, in <module>
            import pystan._api  # stanc wrapper
        ImportError: DLL load failed while importing _api: Das angegebene Modul wurde nicht gefunden.
        ----------------------------------------
    ERROR: Command errored out with exit status 1: 'C:\Users\matheiss\Miniconda3\envs\tiresias-kats\python.exe' -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'C:\\Users\\matheiss\\AppData\\Local\\Temp\\1\\pip-install-5dy9pwq7\\fbprophet_6fb4ff087aaf40478b71089d7e634e82\\setup.py'"'"'; __file__='"'"'C:\\Users\\matheiss\\AppData\\Local\\Temp\\1\\pip-install-5dy9pwq7\\fbprophet_6fb4ff087aaf40478b71089d7e634e82\\setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(__file__) if os.path.exists(__file__) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' install --record 'C:\Users\matheiss\AppData\Local\Temp\1\pip-record-nj09haiu\install-record.txt' --single-version-externally-managed --compile --install-headers 'C:\Users\matheiss\Miniconda3\envs\tiresias-kats\Include\fbprophet' Check the logs for full command output.
    

    opened by mjt91 10
  • How to get exact outliers in Univariate Time Series using OutlierDetector?

    How to get exact outliers in Univariate Time Series using OutlierDetector?

    Hello, I'm trying to analyze the Outlier Detection framework for my project but it appears like the model returns the outlier range (not the exact index). Below are the details about my dataset.

    2019-01-01 | 35 2019-01-02 | 32 2019-01-03 | 30 2019-01-04 | 31 2019-01-05 | 44 2019-01-06 | 29 2019-01-07 | 45 2019-01-08 | 43 2019-01-09 | 500 2019-01-10 | 27 2019-01-11 | 38 ..... I would expect the model to return the outlier as "500" and date as "2019-01-09". But the model returns as below. ts_outDetection.outliers[0] -> [Timestamp('2019-01-06 00:00:00'), Timestamp('2019-01-07 00:00:00'), Timestamp('2019-01-08 00:00:00'), Timestamp('2019-01-09 00:00:00'), Timestamp('2019-01-10 00:00:00'), Timestamp('2019-01-11 00:00:00'), Timestamp('2019-01-12 00:00:00')]

    Can someone help me to understand the outlier detector concept in Kats or direct me to the reference document(if any) please? Let me know if you need more details. FB Kats Issue

    opened by sthirumoorthi 9
  • Use running index as time_col

    Use running index as time_col

    I have time series data with the time_col is the index of the dataframe:

    df = [index  value 
                0         31
                1          22
                2         15
                3         77]
    

    When I am trying to convert it to TimeSeriesData, the index is automatically transform to epoch time. (e.g. 1970-01-01 00:00:00.000000095) Is there a way to keep the time_col as the mere index when using TimeSeriesData

    opened by orko19 9
  • AttributeError: 'pandas._libs.properties.CachedProperty' object has no attribute 'func'

    AttributeError: 'pandas._libs.properties.CachedProperty' object has no attribute 'func'

    Hi there,

    I face an error when I run m.fit() on the "Forecasting with Ensemble model" section. image

    Could please anyone share how to address it?

    Many thank

    opened by dreldrel 8
  • updating naming of statsmodels ARIMA

    updating naming of statsmodels ARIMA

    Fixes

    NotImplementedError: 
    statsmodels.tsa.arima_model.ARMA and statsmodels.tsa.arima_model.ARIMA have
    been removed in favor of statsmodels.tsa.arima.model.ARIMA (note the .
    between arima and model) and statsmodels.tsa.SARIMAX.
    
    statsmodels.tsa.arima.model.ARIMA makes use of the statespace framework and
    is both well tested and maintained. It also offers alternative specialized
    parameter estimators
    
    CLA Signed 
    opened by ourownstory 8
  • CUMSUMDetector example doesn't work

    CUMSUMDetector example doesn't work

    Hi,

    Thank you very much for sharing your work! I try to learn from Kats 202 - Detection with Kats and use it on my data, but there is an issue. I don't manage to see what happens when I run cell 2(generating df_increase_decrease) and 3 (using CUMSUMDetector function) from Kats 202 - Detection with Kats. Instead of having the graph that is visible in the document at the output 3, I get this ERROR: "view limit minimum -7.75699... is less than 1 and is an invalid Matplotlib date value. This often happens if you pass a non-datetime value to an axis that has datetime units".

    I don't know what causes this issue, I have had a look around on different forums and I can't find the solution. I would be very happy if you could help me.

    Regards, Adriana

    opened by adalaza12 8
  • kats cusum detector gives wrong date range.

    kats cusum detector gives wrong date range.

    I have 1 year of data. It is increasing by minutes. When the date of the last data is 2022-05-14, when I turn on the cusum detector, it makes predictions from 2022-09-01. Where are the 4 months in between and how do they start from this date?and why it treats certain ranges as zero. @brundage @likethesky Annotation 2022-12-23 105501

    opened by nebiyebulan 0
  • pystan2 is so old to install on latest mac

    pystan2 is so old to install on latest mac

    build and install pystan2 will got

    In file included from pystan/stan/lib/stan_math/lib/boost_1.72.0/boost/spirit/home/support/detail/sign.hpp:16:
    pystan/stan/lib/stan_math/lib/boost_1.72.0/boost/math/special_functions/sign.hpp:30:22: error: reference to unresolved using declaration
            return (std::signbit)(x) ? 1 : 0;
                         ^
    

    Considering upgrade to pystan3?

    opened by jiamo 1
  • Kats installation throws gcc error

    Kats installation throws gcc error

    Hello,

    I am trying to install Kats on Linux server, and while installing KATS getting error w.r.t fbprophet. The dependency tree that I could understood is KATs-> fbprophet -> Pystan -> gcc.

    The default versions of that is being installed by KATS is 2.19.0.1 which is the reason that fbprophet is not being installed, and erroring out with this trace

    """ Requirement already satisfied: zipp>=3.1.0 in /usr/local/lib/python3.6/site-packages (from importlib-resources->tqdm>=4.36.1->kats) (3.6.0) Requirement already satisfied: MarkupSafe>=2.0 in /usr/local/lib64/python3.6/site-packages (from jinja2->ax-platform->kats) (2.0.1) Using legacy 'setup.py install' for kats, since package 'wheel' is not installed. Using legacy 'setup.py install' for fbprophet, since package 'wheel' is not installed. Using legacy 'setup.py install' for gpytorch, since package 'wheel' is not installed. Using legacy 'setup.py install' for pymeeus, since package 'wheel' is not installed. Installing collected packages: pymeeus, tenacity, pillow, korean-lunar-calendar, kiwisolver, hijri-converter, gpytorch, ephem, cycler, convertdate, setuptools-git, pystan, plotly, matplotlib, LunarCalendar, llvmlite, jinja2, holidays, cmdstanpy, botorch, seaborn, pymannkendall, numba, fbprophet, ax-platform, kats Running setup.py install for pymeeus ... done Running setup.py install for gpytorch ... done Running setup.py install for fbprophet ... error ERROR: Command errored out with exit status 1: command: /usr/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qwp7ohe8/fbprophet_448e98b19ac4433082176167ec40db97/setup.py'"'"'; file='"'"'/tmp/pip-install-qwp7ohe8/fbprophet_448e98b19ac4433082176167ec40db97/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-j3352f7m/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/fbprophet cwd: /tmp/pip-install-qwp7ohe8/fbprophet_448e98b19ac4433082176167ec40db97/ Complete output (11 lines): running install /usr/local/lib/python3.6/site-packages/setuptools/command/install.py:37: SetuptoolsDeprecationWarning: setup.py install is deprecated. Use build and pip and other standards-based tools. setuptools.SetuptoolsDeprecationWarning, running build running build_py creating build creating build/lib creating build/lib/fbprophet creating build/lib/fbprophet/stan_model INFO:pystan:COMPILING THE C++ CODE FOR MODEL anon_model_dfdaf2b8ece8a02eb11f050ec701c0ec NOW. error: command 'gcc' failed with exit status 1 ---------------------------------------- ERROR: Command errored out with exit status 1: /usr/bin/python3.6 -u -c 'import io, os, sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-qwp7ohe8/fbprophet_448e98b19ac4433082176167ec40db97/setup.py'"'"'; file='"'"'/tmp/pip-install-qwp7ohe8/fbprophet_448e98b19ac4433082176167ec40db97/setup.py'"'"';f = getattr(tokenize, '"'"'open'"'"', open)(file) if os.path.exists(file) else io.StringIO('"'"'from setuptools import setup; setup()'"'"');code = f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-j3352f7m/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python3.6m/fbprophet Check the logs for full command output.

    """

    However, when I manually installed Pystan with this version 2.18.0.0, and then fbprophet 0.6 version could be installed manually. However, I do not know how while installing just kats other dependency specific versions can be specified. Could you please help me with the same. I have been trying it a lot, but have not gotten any progress.

    Thank you very much for your help.

    opened by psxpa3 1
  • TSFeatures : Memory issue  and similar results for all time steps for 15Min data

    TSFeatures : Memory issue and similar results for all time steps for 15Min data

    I am working on 15min interval sales data of 4 years, when I was trying to generate features for my entire, I have been getting memory issue. Could you please help me with this, how to tackle this issue.

    and other thing, for 15min interval data, all features have single unique value for entire period. So please provide some examples for 15min data. Please find the attachments. Requesting you for earliest response.

    Thanks in advance

    image

    image

    opened by Manjubn777 0
Releases(v0.2.0)
Owner
Meta Research
Meta Research
MotorcycleParts DataAnalysis python

We work with the accounting department of a company that sells motorcycle parts. The company operates three warehouses in a large metropolitan area.

NASEEM A P 1 Jan 12, 2022
DenseClus is a Python module for clustering mixed type data using UMAP and HDBSCAN

DenseClus is a Python module for clustering mixed type data using UMAP and HDBSCAN. Allowing for both categorical and numerical data, DenseClus makes it possible to incorporate all features in cluste

Amazon Web Services - Labs 53 Dec 08, 2022
A neural-based binary analysis tool

A neural-based binary analysis tool Introduction This directory contains the demo of a neural-based binary analysis tool. We test the framework using

Facebook Research 208 Dec 22, 2022
Statistical Rethinking: A Bayesian Course Using CmdStanPy and Plotnine

Statistical Rethinking: A Bayesian Course Using CmdStanPy and Plotnine Intro This repo contains the python/stan version of the Statistical Rethinking

Andrés Suárez 3 Nov 08, 2022
Creating a statistical model to predict 10 year treasury yields

Predicting 10-Year Treasury Yields Intitially, I wanted to see if the volatility in the stock market, represented by the VIX index (data source), had

10 Oct 27, 2021
Spaghetti: an open-source Python library for the analysis of network-based spatial data

pysal/spaghetti SPAtial GrapHs: nETworks, Topology, & Inference Spaghetti is an open-source Python library for the analysis of network-based spatial d

Python Spatial Analysis Library 203 Jan 03, 2023
:truck: Agile Data Preparation Workflows made easy with dask, cudf, dask_cudf and pyspark

To launch a live notebook server to test optimus using binder or Colab, click on one of the following badges: Optimus is the missing framework to prof

Iron 1.3k Dec 30, 2022
Statistical Analysis 📈 focused on statistical analysis and exploration used on various data sets for personal and professional projects.

Statistical Analysis 📈 This repository focuses on statistical analysis and the exploration used on various data sets for personal and professional pr

Andy Pham 1 Sep 03, 2022
Very useful and necessary functions that simplify working with data

Additional-function-for-pandas Very useful and necessary functions that simplify working with data random_fill_nan(module_name, nan) - Replaces all sp

Alexander Goldian 2 Dec 02, 2021
An Integrated Experimental Platform for time series data anomaly detection.

Curve Sorry to tell contributors and users. We decided to archive the project temporarily due to the employee work plan of collaborators. There are no

Baidu 486 Dec 21, 2022
Datashader is a data rasterization pipeline for automating the process of creating meaningful representations of large amounts of data.

Datashader is a data rasterization pipeline for automating the process of creating meaningful representations of large amounts of data.

HoloViz 2.9k Jan 06, 2023
Churn prediction with PySpark

It is expected to develop a machine learning model that can predict customers who will leave the company.

3 Aug 13, 2021
Geospatial data-science analysis on reasons behind delay in Grab ride-share services

Grab x Pulis Detailed analysis done to investigate possible reasons for delay in Grab services for NUS Data Analytics Competition 2022, to be found in

Keng Hwee 6 Jun 07, 2022
Maximum Covariance Analysis in Python

xMCA | Maximum Covariance Analysis in Python The aim of this package is to provide a flexible tool for the climate science community to perform Maximu

Niclas Rieger 39 Jan 03, 2023
Flexible HDF5 saving/loading and other data science tools from the University of Chicago

deepdish Flexible HDF5 saving/loading and other data science tools from the University of Chicago. This repository also host a Deep Learning blog: htt

UChicago - Department of Computer Science 255 Dec 10, 2022
VHub - An API that permits uploading of vulnerability datasets and return of the serialized data

VHub - An API that permits uploading of vulnerability datasets and return of the serialized data

André Rodrigues 2 Feb 14, 2022
Pypeln is a simple yet powerful Python library for creating concurrent data pipelines.

Pypeln Pypeln (pronounced as "pypeline") is a simple yet powerful Python library for creating concurrent data pipelines. Main Features Simple: Pypeln

Cristian Garcia 1.4k Dec 31, 2022
MEAD: A Large-scale Audio-visual Dataset for Emotional Talking-face Generation [ECCV2020]

MEAD: A Large-scale Audio-visual Dataset for Emotional Talking-face Generation [ECCV2020] by Kaisiyuan Wang, Qianyi Wu, Linsen Song, Zhuoqian Yang, Wa

112 Dec 28, 2022
A multi-platform GUI for bit-based analysis, processing, and visualization

A multi-platform GUI for bit-based analysis, processing, and visualization

Mahlet 529 Dec 19, 2022
A Python and R autograding solution

Otter-Grader Otter Grader is a light-weight, modular open-source autograder developed by the Data Science Education Program at UC Berkeley. It is desi

Infrastructure Team 93 Jan 03, 2023