Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
548 commits
Select commit Hold shift + click to select a range
f065c74
update
mintiebot Aug 26, 2024
8c49e0c
update
mintiebot Aug 26, 2024
c46c4e1
update
mintiebot Aug 27, 2024
4b4683a
update
mintiebot Aug 28, 2024
f77b7cc
update
mintiebot Aug 28, 2024
a9ebf88
update
mintiebot Aug 29, 2024
b94ebd0
update
mintiebot Aug 30, 2024
3ecbc00
update
mintiebot Aug 30, 2024
2c862a5
update
mintiebot Sep 2, 2024
75dd7bd
update
mintiebot Sep 2, 2024
ccb06b9
update
mintiebot Sep 3, 2024
87a9a6d
update
mintiebot Sep 3, 2024
2c4ed61
update
mintiebot Sep 3, 2024
b969e30
update
mintiebot Sep 3, 2024
d3e153d
update
mintiebot Sep 6, 2024
a8c585f
update
mintiebot Sep 9, 2024
ee0d2f0
update
mintiebot Sep 9, 2024
ddc0f6c
update
mintiebot Sep 10, 2024
f35d23f
update
mintiebot Sep 11, 2024
d1d8494
update
mintiebot Sep 12, 2024
842de08
update
mintiebot Sep 13, 2024
9f348fc
update
mintiebot Sep 13, 2024
dd97c2c
update
mintiebot Sep 13, 2024
f1b6e00
update
mintiebot Sep 13, 2024
39b2aae
update
mintiebot Sep 13, 2024
1ca791e
update
mintiebot Sep 13, 2024
01855c8
update
mintiebot Sep 13, 2024
1f08e93
update
mintiebot Sep 13, 2024
7b503b1
update
mintiebot Sep 16, 2024
2cd69b5
update
mintiebot Sep 16, 2024
83e07ef
update
mintiebot Sep 16, 2024
eaabae1
update
mintiebot Sep 18, 2024
6a604f2
update
mintiebot Sep 18, 2024
1cca5f7
update
mintiebot Sep 19, 2024
6df5c50
update
mintiebot Sep 19, 2024
969de89
update
mintiebot Sep 19, 2024
de8a2cb
update
mintiebot Sep 20, 2024
d34867e
update
mintiebot Sep 20, 2024
5228852
update
mintiebot Sep 23, 2024
a5bb2cd
update
mintiebot Sep 23, 2024
53d4941
update
mintiebot Sep 23, 2024
c559873
update
mintiebot Sep 25, 2024
03c91b2
update
mintiebot Sep 30, 2024
170a89b
update
mintiebot Sep 30, 2024
19761f2
update
mintiebot Oct 1, 2024
ec17a0a
update
mintiebot Oct 1, 2024
19d31a4
update
mintiebot Oct 1, 2024
c28ac1c
update
mintiebot Oct 2, 2024
27a267c
update
mintiebot Oct 7, 2024
0c85740
update
mintiebot Oct 8, 2024
4519fcb
update
mintiebot Oct 9, 2024
4454845
update
mintiebot Oct 10, 2024
371067c
update
mintiebot Oct 10, 2024
d148e69
update
mintiebot Oct 10, 2024
5dc2c0b
update
mintiebot Oct 10, 2024
5a5c9e8
update
mintiebot Oct 10, 2024
b9e0cda
update
mintiebot Oct 10, 2024
9453d92
update
mintiebot Oct 10, 2024
d50504b
update
mintiebot Oct 11, 2024
eebdc8f
update
mintiebot Oct 12, 2024
ab6e442
update
mintiebot Oct 14, 2024
056b578
update
mintiebot Oct 14, 2024
e4b03b7
update
mintiebot Oct 15, 2024
aec8972
update
mintiebot Oct 15, 2024
792a5da
update
mintiebot Oct 15, 2024
b2550d6
update
mintiebot Oct 15, 2024
40d7963
update
mintiebot Oct 17, 2024
da478e6
update
mintiebot Oct 18, 2024
42ba962
update
mintiebot Oct 21, 2024
2da1c50
update
mintiebot Oct 21, 2024
56a5a8c
update
mintiebot Oct 22, 2024
a89c1e6
update
mintiebot Oct 25, 2024
66b412c
update
mintiebot Oct 28, 2024
bd97c00
update
mintiebot Oct 28, 2024
b514fd9
update
mintiebot Nov 4, 2024
a46dbda
update
mintiebot Nov 4, 2024
5661f51
update
mintiebot Nov 5, 2024
7d2c3a2
update
mintiebot Nov 5, 2024
9c6f6d9
update
mintiebot Nov 5, 2024
5a8c573
update
mintiebot Nov 11, 2024
5a470f2
update
mintiebot Nov 11, 2024
3f1df81
update
mintiebot Nov 11, 2024
50834fa
update
mintiebot Nov 12, 2024
b7c6d8c
update
mintiebot Nov 12, 2024
bb06efe
update
mintiebot Nov 12, 2024
840b308
update
mintiebot Nov 19, 2024
edf03f8
update
mintiebot Nov 19, 2024
60f3dd9
update
mintiebot Nov 20, 2024
8e7527c
update
mintiebot Nov 20, 2024
b7c1580
update
mintiebot Nov 21, 2024
34c0a0f
update
mintiebot Nov 22, 2024
417dc2e
update
mintiebot Nov 22, 2024
8fe36ed
update
mintiebot Nov 22, 2024
da67a59
update
mintiebot Nov 22, 2024
5726b83
update
mintiebot Nov 22, 2024
f68497f
update
mintiebot Nov 25, 2024
e6ba33a
update
mintiebot Nov 26, 2024
9d0f91d
update
mintiebot Nov 26, 2024
6659982
update
mintiebot Nov 26, 2024
3335733
update
mintiebot Nov 28, 2024
a56524b
update
mintiebot Nov 28, 2024
a97827c
update
mintiebot Nov 29, 2024
0e0d53c
update
mintiebot Dec 2, 2024
0ea8aca
update
mintiebot Dec 2, 2024
5610f28
update
mintiebot Dec 3, 2024
7bfd87a
update
mintiebot Dec 5, 2024
e7a0bd2
update
mintiebot Dec 6, 2024
2c29dc8
update
mintiebot Dec 6, 2024
a7e4923
update
mintiebot Dec 6, 2024
c73fde9
update
mintiebot Dec 9, 2024
e78771e
update
mintiebot Dec 16, 2024
3920d2d
update
mintiebot Dec 16, 2024
375d8e7
update
mintiebot Dec 16, 2024
bd1d0ad
update
mintiebot Dec 17, 2024
99e5869
update
mintiebot Dec 18, 2024
60254d7
update
mintiebot Dec 19, 2024
a5db878
update
mintiebot Dec 19, 2024
9569d01
update
mintiebot Dec 19, 2024
aaa6731
update
mintiebot Dec 19, 2024
fd0de4b
update
mintiebot Dec 20, 2024
8262607
update
mintiebot Dec 30, 2024
37b6a01
update
mintiebot Jan 2, 2025
262d39a
update
mintiebot Jan 6, 2025
6afb4bf
update
mintiebot Jan 13, 2025
114204f
update
mintiebot Jan 14, 2025
78af159
update
mintiebot Jan 16, 2025
03e60c2
update
mintiebot Jan 20, 2025
83c3bd1
update
mintiebot Jan 22, 2025
645e593
update
mintiebot Jan 22, 2025
04597e3
update
mintiebot Jan 27, 2025
77c9c36
update
mintiebot Jan 28, 2025
1d00e79
update
mintiebot Feb 4, 2025
8fd5e1c
update
mintiebot Feb 7, 2025
443061e
update
mintiebot Feb 11, 2025
5daafb0
update
mintiebot Feb 11, 2025
d1fffd9
update
mintiebot Feb 11, 2025
84e2293
update
mintiebot Feb 12, 2025
7708f3e
update
mintiebot Feb 17, 2025
b43cff7
update
mintiebot Feb 17, 2025
011d491
update
mintiebot Feb 18, 2025
c744430
update
mintiebot Feb 24, 2025
54a2c92
update
mintiebot Feb 25, 2025
be837c4
update
mintiebot Feb 25, 2025
4ac7aa6
update
mintiebot Feb 27, 2025
03d3e99
update
mintiebot Feb 28, 2025
9533ebf
update
mintiebot Mar 3, 2025
493a546
update
mintiebot Mar 7, 2025
bd2446a
update
mintiebot Mar 19, 2025
302089a
update
mintiebot Mar 19, 2025
0ac20be
update
mintiebot Mar 20, 2025
66c8d5c
update
mintiebot Mar 20, 2025
7d33c3d
update
mintiebot Mar 20, 2025
9477b2e
update
mintiebot Mar 20, 2025
0c09ce5
update
mintiebot Mar 26, 2025
1c8fabe
update
mintiebot Mar 27, 2025
e0ef8e2
update
mintiebot Apr 11, 2025
0b2aa9c
update
mintiebot Apr 11, 2025
135e266
update
mintiebot Apr 11, 2025
96e930a
update
mintiebot Apr 11, 2025
f5d8de0
update
mintiebot Apr 11, 2025
a76b485
update
mintiebot Apr 11, 2025
513daf6
update
mintiebot Apr 23, 2025
27d7407
update
mintiebot Apr 29, 2025
f44d3dd
update
mintiebot Apr 29, 2025
737f983
update
mintiebot May 13, 2025
231e019
docs-seo-fix
khuyentran1401 May 14, 2025
45ba16e
add description
khuyentran1401 May 15, 2025
0628dd8
Merge pull request #9 from Nixtla/docs-seo-fix
khuyentran1401 May 26, 2025
2ed58c3
update
mintiebot Jun 6, 2025
372e0dd
update
mintiebot Jun 6, 2025
0657ee2
update
mintiebot Jun 12, 2025
a01fa71
update
mintiebot Jun 17, 2025
3dcbd20
update
mintiebot Jul 5, 2025
ced86b8
update
mintiebot Jul 5, 2025
74bb0b6
update
mintiebot Jul 8, 2025
83373b7
update
mintiebot Jul 8, 2025
4f618e4
update
mintiebot Jul 11, 2025
67ce335
update
mintiebot Jul 15, 2025
8041171
update
mintiebot Jul 23, 2025
fdee701
update
mintiebot Aug 4, 2025
f2c3a1e
escape special character
deven367 Sep 12, 2025
9a0c7d1
update `mint.json`
deven367 Sep 14, 2025
6b24846
fix statsforecast source code links
deven367 Sep 15, 2025
422a7f5
fix datasetsforecast source code links
deven367 Sep 15, 2025
a95dfed
Removes nixtla.github.io from electricitypeakforecasting in statsfore…
nasaul Sep 15, 2025
f6db344
Fixes exogenous example inside statsforecast
nasaul Sep 15, 2025
2ed1895
Adds correct link to installation
nasaul Sep 15, 2025
f2885d0
Fixes multipleseasonalities broken links
nasaul Sep 15, 2025
38bd398
Fixes anomaly detection
nasaul Sep 15, 2025
cf77933
Fixes intermittendata links in statsforecast
nasaul Sep 15, 2025
4d1fb92
Changes references from https://Nixtla.github.io/models.html to https…
nasaul Sep 15, 2025
43112a3
Modifies references to https://nixtla.github.io/statsforecast/example…
nasaul Sep 15, 2025
7c5186e
Fixes neuralforecast intermittent data links
nasaul Sep 15, 2025
0ad51f9
Changes links from https://nixtla.github.io/statsforecast/core.html t…
nasaul Sep 15, 2025
6d9b2b5
Changes references from https://nixtla.github.io/statsforecast/src/co…
nasaul Sep 15, 2025
35ba7ab
Fixes bad links to getting-started for statsforecast
nasaul Sep 15, 2025
9d05856
Updates links in statsforecast issues
nasaul Sep 15, 2025
4805387
Adds correct links to GARCH and ARCH models
nasaul Sep 15, 2025
5a98b3a
Fixes prediction_intervals
nasaul Sep 15, 2025
9a5e84d
Fixes electricity_load_forecasting inside mlforecast
nasaul Sep 15, 2025
7e20bbe
Fixes Statistical, Machine Learning and Neural Forecasting methods
nasaul Sep 15, 2025
3351090
Fixes tsdataset reference
nasaul Sep 15, 2025
5eb2d81
Fixes examples references from hierarchicalforecast
nasaul Sep 15, 2025
7ec28f1
Changes links from https://nixtla.github.io/hierarchicalforecast/util…
nasaul Sep 15, 2025
10e4ea3
Updates models in neuralforecast
nasaul Sep 15, 2025
8f88a0b
Updates link to cross-validation
nasaul Sep 15, 2025
2382395
Fixes neuralforecast intermittent_data tutorial
nasaul Sep 15, 2025
2c7ba24
Fixes longhorizon_transformers links
nasaul Sep 15, 2025
9167634
add redirects to broken links
deven367 Sep 17, 2025
767f93d
fix external redirects
deven367 Sep 20, 2025
d219a92
fix broken link
deven367 Sep 21, 2025
40d176d
Add explainability tutorial to neuralforecast docs
marcopeix Sep 22, 2025
796cfc2
fix broken links for `numba`
deven367 Sep 24, 2025
4bc89c1
fix broken link for gluonts
deven367 Sep 24, 2025
6fcbc16
migrate to `docs.json`
deven367 Sep 24, 2025
943224c
update css and fonts
deven367 Sep 24, 2025
a53b422
clean landing page of `mlforecast`
deven367 Sep 24, 2025
035d74c
update landing page of `nixtlaverse`
deven367 Sep 24, 2025
3e55460
special topics -- explainability
deven367 Sep 24, 2025
df7ad1b
fix theme inversion for `banner`
deven367 Sep 24, 2025
0e38b88
remove extra underline
deven367 Sep 24, 2025
e62f06f
fixes in css
loama Sep 24, 2025
b744f6f
nav style
loama Sep 24, 2025
15caf18
Revert "nav style"
deven367 Sep 24, 2025
ecb2531
Revert "fixes in css"
deven367 Sep 24, 2025
acd37cf
fix icon highlight issue in light mode
deven367 Sep 24, 2025
3090be6
fix remaining broken links
deven367 Sep 25, 2025
c4b212f
banner bottom border
deven367 Sep 25, 2025
5e77827
fix code of conduct broken link
deven367 Sep 29, 2025
558d66d
fix more broken links
deven367 Sep 29, 2025
34b7dae
add `xLSTM` to the docs
deven367 Sep 30, 2025
78e85c9
remove outdated step
deven367 Oct 1, 2025
e0bf1ca
add google tag and order alphabetically
loama Oct 1, 2025
129953d
Merge branch 'old-docs' of https://github.com/Nixtla/docs into old-docs
loama Oct 1, 2025
4502a12
Updates new documentation
nasaul Oct 1, 2025
8338ecf
Corrects links to documentation
nasaul Oct 1, 2025
1338dcd
Removes first code block
nasaul Oct 1, 2025
ce50397
fix link to contributor agreement
deven367 Oct 2, 2025
a175c37
timegpt-2 banner
deven367 Oct 14, 2025
470dd77
make font bigger and wheat color
deven367 Oct 14, 2025
2d01a18
utm for `nixtlaverse`
deven367 Oct 14, 2025
a278051
intercom integration
deven367 Nov 3, 2025
1fe3598
fix broken link rendering
deven367 Nov 21, 2025
6c95ee6
new banner for timegpt-2.1
deven367 Dec 11, 2025
7ad62bc
banner updates
loama Dec 18, 2025
9d99a17
colors
loama Dec 18, 2025
34345f2
Update docs.json
loama Dec 18, 2025
ef6c225
Update style.css
loama Dec 18, 2025
e982506
Merge pull request #30 from Nixtla/genai-banner
loama Dec 18, 2025
c74d1aa
fix broken url
deven367 Dec 22, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file added coreforecast/.nojekyll
Empty file.
Binary file added coreforecast/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
94 changes: 94 additions & 0 deletions coreforecast/differences.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@




# <kbd>module</kbd> `coreforecast.differences`





---



## <kbd>function</kbd> `num_diffs`

```python
num_diffs(x: ndarray, max_d: int = 1) → int
```

Find the optimal number of differences



**Args:**

- <b>`x`</b> (np.ndarray): Array with the time series.
- <b>`max_d`</b> (int, optional): Maximum number of differences to consider. Defaults to 1.



**Returns:**

- <b>`int`</b>: Optimal number of differences.


---



## <kbd>function</kbd> `num_seas_diffs`

```python
num_seas_diffs(x: ndarray, season_length: int, max_d: int = 1) → int
```

Find the optimal number of seasonal differences



**Args:**

- <b>`x`</b> (np.ndarray): Array with the time series.
- <b>`season_length`</b> (int): Length of the seasonal pattern.
- <b>`max_d`</b> (int, optional): Maximum number of differences to consider. Defaults to 1.



**Returns:**

- <b>`int`</b>: Optimal number of seasonal differences.


---



## <kbd>function</kbd> `diff`

```python
diff(x: ndarray, d: int) → ndarray
```

Subtract previous values of the series



**Args:**

- <b>`x`</b> (np.ndarray): Array with the time series.
- <b>`d`</b> (int): Lag to subtract



**Returns:**

- <b>`np.ndarray`</b>: Differenced time series.




---

_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._
141 changes: 141 additions & 0 deletions coreforecast/expanding.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@




# <kbd>module</kbd> `coreforecast.expanding`





---



## <kbd>function</kbd> `expanding_mean`

```python
expanding_mean(x: ndarray) → ndarray
```

Compute the expanding_mean of the input array.



**Args:**

- <b>`x`</b> (np.ndarray): Input array.



**Returns:**

- <b>`np.ndarray`</b>: Array with the expanding statistic


---



## <kbd>function</kbd> `expanding_std`

```python
expanding_std(x: ndarray) → ndarray
```

Compute the expanding_std of the input array.



**Args:**

- <b>`x`</b> (np.ndarray): Input array.



**Returns:**

- <b>`np.ndarray`</b>: Array with the expanding statistic


---



## <kbd>function</kbd> `expanding_min`

```python
expanding_min(x: ndarray) → ndarray
```

Compute the expanding_min of the input array.



**Args:**

- <b>`x`</b> (np.ndarray): Input array.



**Returns:**

- <b>`np.ndarray`</b>: Array with the expanding statistic


---



## <kbd>function</kbd> `expanding_max`

```python
expanding_max(x: ndarray) → ndarray
```

Compute the expanding_max of the input array.



**Args:**

- <b>`x`</b> (np.ndarray): Input array.



**Returns:**

- <b>`np.ndarray`</b>: Array with the expanding statistic


---



## <kbd>function</kbd> `expanding_quantile`

```python
expanding_quantile(x: ndarray, p: float) → ndarray
```

Compute the expanding_quantile of the input array.



**Args:**

- <b>`x`</b> (np.ndarray): Input array.
- <b>`p`</b> (float): Quantile to compute.



**Returns:**

- <b>`np.ndarray`</b>: Array with the expanding statistic




---

_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._
41 changes: 41 additions & 0 deletions coreforecast/exponentially_weighted.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@




# <kbd>module</kbd> `coreforecast.exponentially_weighted`





---



## <kbd>function</kbd> `exponentially_weighted_mean`

```python
exponentially_weighted_mean(x: ndarray, alpha: float) → ndarray
```

Compute the exponentially weighted mean of the input array.



**Args:**

- <b>`x`</b> (np.ndarray): Input array.
- <b>`alpha`</b> (float): Weight parameter.



**Returns:**

- <b>`np.ndarray`</b>: Array with the exponentially weighted mean.




---

_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._
5 changes: 5 additions & 0 deletions coreforecast/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions coreforecast/grouped_array.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@




# <kbd>module</kbd> `coreforecast.grouped_array`








---

_This file was automatically generated via [lazydocs](https://github.com/ml-tooling/lazydocs)._
58 changes: 58 additions & 0 deletions coreforecast/index.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
---
description: Fast implementations of common forecasting routines
title: "coreforecast"
---
## Motivation
At Nixtla we have implemented several libraries to deal with time series data. We often have to apply some transformation over all of the series, which can prove time consuming even for simple operations like performing some kind of scaling.

We've used [numba](https://numba.pydata.org/) to speed up our expensive computations, however that comes with other issues such as cold starts and more dependencies (LLVM). That's why we developed this library, which implements several operators in C++ to transform time series data (or other kind of data that can be thought of as independent groups), with the possibility to use multithreading to get the best performance possible.

You probably won't need to use this library directly but rather use one of our higher level libraries like [mlforecast](https://nixtlaverse.nixtla.io/mlforecast/docs/how-to-guides/lag_transforms_guide.html#built-in-transformations-experimental), which will use this library under the hood. If you're interested on using this library directly (only depends on numpy) you should continue reading.

## Installation

### PyPI
```python
pip install coreforecast
```

### conda-forge
```python
conda install -c conda-forge coreforecast
```

## Minimal example
The base data structure is the "grouped array" which holds two numpy 1d arrays:

* **data**: values of the series.
* **indptr**: series boundaries such that `data[indptr[i] : indptr[i + 1]]` returns the `i-th` series. For example, if you have two series of sizes 5 and 10 the indptr would be [0, 5, 15].

```python
import numpy as np
from coreforecast.grouped_array import GroupedArray

data = np.arange(10)
indptr = np.array([0, 3, 10])
ga = GroupedArray(data, indptr)
```

Once you have this structure you can run any of the provided transformations, for example:

```python
from coreforecast.lag_transforms import ExpandingMean
from coreforecast.scalers import LocalStandardScaler

exp_mean = ExpandingMean(lag=1).transform(ga)
scaler = LocalStandardScaler().fit(ga)
standardized = scaler.transform(ga)
```

## Single-array functions
We've also implemented some functions that work on single arrays, you can refer to the following pages:

* [differences](https://nixtlaverse.nixtla.io/coreforecast/differences)
* [scalers](https://nixtlaverse.nixtla.io/coreforecast/scalers)
* [seasonal](https://nixtlaverse.nixtla.io/coreforecast/seasonal)
* [rolling](https://nixtlaverse.nixtla.io/coreforecast/rolling)
* [expanding](https://nixtlaverse.nixtla.io/coreforecast/expanding)
* [exponentially weighted](https://nixtlaverse.nixtla.io/coreforecast/exponentially_weighted)
Loading
Loading