Questions tagged [sktime]

sktime is a unified framework for machine learning with time series in Python. It provides simple and efficient tools for time series analysis and data mining, with a focus on machine learning. It is accessible to everybody and reusable in various contexts. It is built on NumPy, SciPy, pandas and scikit-learn, among others. The project is open source and commercially usable (BSD license).

52 questions
0
votes
2 answers

Dataframe to multiIndex for sktime format

I have a multivariate time series data which is in this format(pd.Dataframe with index on Time), I am trying to use sktime, which requires the data to be in multi index format. On the above if i want to use a rolling window of 3 on above data. It…
Aditya Kumar
  • 297
  • 2
  • 3
  • 10
0
votes
0 answers

Sktime Assertion During Execution

I am trying to execute the the code below but i keep getting an assertion error: from sktime.forecasting.base import ForecastingHorizon fh = ForecastingHorizon( pd.PeriodIndex(pd.date_range("2023-01-01", periods=6, freq="M")),…
0
votes
0 answers

Cannot import MrSEQLClassifier from sktime library

I tried to import MrSEQLClassifier by from sktime.classification.shapelet_based import MrSEQLClassifier but the output produces an error as: ImportError: cannot import name 'MrSEQLClassifier' from 'sktime.classification.shapelet_based'…
0
votes
1 answer

Importing the numpy C-extensions failed to run in local container (sam local invoke) whereas it runs perfectly locally ( python .\test.py)

This question was asked many times before I know. After days of struggle, I have narrowed the issue to this: The code runs perfectly locally by using python .\test.py, but fails while ruining in the sam local invoke container. AWS supports python…
0
votes
0 answers

I'm trying to run a line of code that imports the function to read a csv file as a functional dataframe but i'm getting an error

I'm trying to load a functional dataset about weather and run the MFPCA method on it. This is my code: from FDApy.misc.loader import read_csv And the error is: No module named 'sktime.utils.load_data'
0
votes
0 answers

How to fix "attributeerror module 'numba' has no attribute 'core'"

I am using the package sktime and I wanted to use the RocketClassifier. Somehow when I run from sktime.classification.kernel_based import RocketClassifier from the python console it works. But when I run the code in a Jupyter Notebook (VS Code) I…
Lysapala
  • 80
  • 9
0
votes
0 answers

Where is the n_periods value in sktime ARIMA coming from?

I am trying to use the sktime python library for forecasting some time series data. My x_train is of shape (277, 10) with the DateTime as index. My x_test is of shape (70, 10) My code for using ARIMA is: fh = ForecastingHorizon(y_test.index,…
Shantanu Shinde
  • 932
  • 3
  • 23
  • 48
0
votes
0 answers

Why does retrieving the forecasting fitted values from sktime Croston class produce the same value through out the forecast horizon?

I have fit SKTime's Croston class on my training time series data and I needed to get its fitted values. By following the discussion here, I was able to produce the predictions for the dates of my sample, but they are of the same value only in…
Nagusameta
  • 109
  • 8
0
votes
0 answers

keyerror index with sktime arima predict

I have a sales database of a product and I have it separated in train and test, as you can see below this is the code i am using for arima: y_train = df_train['quantity'] y_test = df_test['quantity'] fh = np.arange(len(y_test)) + 1 forecaster =…
Alejandra
  • 123
  • 9
0
votes
0 answers

How implement in sktime custom regression

Tell me how to implement a custom regression model in sktime using the formula: An example of my code implementing a model in scipy: from scipy.optimize import curve_fit def model_func(x, b0: float, b1: float, b2: float, b3: float, b4: float) ->…
v_0ver
  • 167
  • 9
0
votes
0 answers

AutoARIMA predict gives indec not in [index]

I am trying to create a revenue prediction model: print(type(data)) train, test = temporal_train_test_split(data, test_size = 217) fh = np.arange(len(test)) + 1 ari = AutoARIMA() ari.fit(train) pred =…
0
votes
1 answer

Mismatch in number of cases despite there are same number of cases sktime

learning classification in sktime from sklearn.model_selection import train_test_split X = AUDCHF_h1_model[['Open','High','Low','Close','Volume','VWMA', 'Minute','Hour','Day','Week','Month','Year']].values y =…
jack
  • 13
  • 3
0
votes
0 answers

Could not import "sktime" library in quantconnect.com though quantconnect supports the library

Lately, I was working on time series forecasting on QuantConnect. In the documentation of QuantConnect, it is mentioned that it the coding environment supports "sktime" library (a python library) but when I tried importing the "sktime" ARIMA…
0
votes
1 answer

ModuleNotFoundError: No module named 'sktime.utils.data_io'

I have already installed sktime using this command pip3.9 install sktime. However still getting error on importing from sktime.utils.data_io import load_from_tsfile_to_dataframe. Here is the error: from sktime.utils.data_io import…
Ahmad
  • 645
  • 2
  • 6
  • 21
0
votes
1 answer

Reshape of dataset (Time Series) after filtering?

i am using HampelFilter to detect outliers by SKTIME on my dataset but i faced a problem after applied the filter . My dataset contains Timeseries (signals) the size of my dataset array is (1, 167) while each one of the 167 elements contain 9000…
ShaDyNash
  • 3
  • 1