tabpfn-time-series 1.0.1__py3-none-any.whl → 1.0.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,21 +1,20 @@
1
- from pathlib import Path
1
+ from importlib import metadata
2
2
 
3
3
  try:
4
- import tomllib # Python 3.11+
5
- except ImportError:
6
- import tomli as tomllib # Python <3.11, requires 'tomli' package
7
-
8
- with (Path(__file__).parent.parent / "pyproject.toml").open("rb") as f:
9
- __version__ = tomllib.load(f)["project"]["version"]
10
-
4
+ __version__ = metadata.version("tabpfn-time-series")
5
+ except metadata.PackageNotFoundError:
6
+ # package is not installed from PyPI (e.g. from source)
7
+ __version__ = "0.0.0"
11
8
 
12
9
  from .features import FeatureTransformer
13
10
  from .predictor import TabPFNTimeSeriesPredictor, TabPFNMode
14
11
  from .defaults import TABPFN_TS_DEFAULT_QUANTILE_CONFIG
12
+ from .ts_dataframe import TimeSeriesDataFrame
15
13
 
16
14
  __all__ = [
17
15
  "FeatureTransformer",
18
16
  "TabPFNTimeSeriesPredictor",
19
17
  "TabPFNMode",
20
18
  "TABPFN_TS_DEFAULT_QUANTILE_CONFIG",
19
+ "TimeSeriesDataFrame",
21
20
  ]
@@ -2,7 +2,7 @@ import pandas as pd
2
2
  import numpy as np
3
3
 
4
4
  import datasets
5
- from autogluon.timeseries import TimeSeriesDataFrame
5
+ from tabpfn_time_series.ts_dataframe import TimeSeriesDataFrame
6
6
 
7
7
 
8
8
  def generate_test_X(
@@ -2,7 +2,7 @@ from typing import List, Tuple
2
2
 
3
3
  import pandas as pd
4
4
 
5
- from autogluon.timeseries import TimeSeriesDataFrame
5
+ from tabpfn_time_series.ts_dataframe import TimeSeriesDataFrame
6
6
  from tabpfn_time_series.features.feature_generator_base import (
7
7
  FeatureGenerator,
8
8
  )
@@ -2,7 +2,7 @@ import numpy as np
2
2
  import pandas as pd
3
3
  import matplotlib.pyplot as plt
4
4
 
5
- from autogluon.timeseries import TimeSeriesDataFrame
5
+ from tabpfn_time_series.ts_dataframe import TimeSeriesDataFrame
6
6
 
7
7
 
8
8
  def is_subset(tsdf_A: TimeSeriesDataFrame, tsdf_B: TimeSeriesDataFrame) -> bool:
@@ -1,8 +1,7 @@
1
1
  import logging
2
2
  from enum import Enum
3
3
 
4
- from autogluon.timeseries import TimeSeriesDataFrame
5
-
4
+ from tabpfn_time_series.ts_dataframe import TimeSeriesDataFrame
6
5
  from tabpfn_time_series.tabpfn_worker import TabPFNClient, LocalTabPFN, MockTabPFN
7
6
  from tabpfn_time_series.defaults import TABPFN_TS_DEFAULT_CONFIG
8
7
 
@@ -7,8 +7,8 @@ import pandas as pd
7
7
  import numpy as np
8
8
  import torch
9
9
  from scipy.stats import norm
10
- from autogluon.timeseries import TimeSeriesDataFrame
11
10
 
11
+ from tabpfn_time_series.ts_dataframe import TimeSeriesDataFrame
12
12
  from tabpfn_time_series.data_preparation import split_time_series_to_X_y
13
13
  from tabpfn_time_series.defaults import TABPFN_TS_DEFAULT_QUANTILE_CONFIG
14
14