liesel-gam 0.0.4__py3-none-any.whl → 0.0.6a4__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.
liesel_gam/__about__.py CHANGED
@@ -1 +1 @@
1
- __version__ = "0.0.4"
1
+ __version__ = "0.0.6-a4"
liesel_gam/__init__.py CHANGED
@@ -1,9 +1,46 @@
1
+ import pandas as pd
2
+ from ryp import r, to_r
3
+
1
4
  from .__about__ import __version__ as __version__
5
+ from .builder import BasisBuilder as BasisBuilder
6
+ from .builder import CategoryMapping as CategoryMapping
7
+ from .builder import PandasRegistry as PandasRegistry
8
+ from .builder import TermBuilder as TermBuilder
9
+ from .builder import VarIGPrior as VarIGPrior
10
+ from .builder import series_is_categorical as series_is_categorical
2
11
  from .dist import MultivariateNormalSingular as MultivariateNormalSingular
3
12
  from .kernel import init_star_ig_gibbs as init_star_ig_gibbs
4
13
  from .kernel import star_ig_gibbs as star_ig_gibbs
14
+ from .plots import plot_1d_smooth as plot_1d_smooth
15
+ from .plots import plot_1d_smooth_clustered as plot_1d_smooth_clustered
16
+ from .plots import plot_2d_smooth as plot_2d_smooth
17
+ from .plots import plot_forest as plot_forest
18
+ from .plots import plot_polys as plot_polys
19
+ from .plots import plot_regions as plot_regions
20
+ from .plots import polys_to_df as polys_to_df
21
+ from .plots import summarise_1d_smooth as summarise_1d_smooth
22
+ from .plots import summarise_1d_smooth_clustered as summarise_1d_smooth_clustered
23
+ from .plots import summarise_cluster as summarise_cluster
24
+ from .plots import summarise_lin as summarise_lin
25
+ from .plots import summarise_nd_smooth as summarise_nd_smooth
26
+ from .plots import summarise_regions as summarise_regions
5
27
  from .predictor import AdditivePredictor as AdditivePredictor
6
28
  from .var import Basis as Basis
29
+ from .var import BasisDot as BasisDot
7
30
  from .var import Intercept as Intercept
8
- from .var import LinearTerm as LinearTerm
31
+ from .var import LinTerm as LinTerm
32
+ from .var import ScaleIG as ScaleIG
9
33
  from .var import SmoothTerm as SmoothTerm
34
+ from .var import Term as Term
35
+ from .var import TPTerm as TPTerm
36
+
37
+ try:
38
+ to_r(pd.DataFrame({"a": [1.0, 2.0]}), "___test___")
39
+ r("rm('___test___')")
40
+ except ImportError as e:
41
+ msg1 = "Testing communication between R and Python failed. "
42
+ msg2 = "Probably, you need to install the R package 'arrow' using "
43
+ msg3 = "install.packages('arrow')."
44
+ msg4 = "Also, please consider the original traceback from ryp above."
45
+ msg = msg1 + msg2 + msg3 + msg4
46
+ raise ImportError(msg) from e
@@ -0,0 +1,8 @@
1
+ """Builder module for constructing GAM models."""
2
+
3
+ from .builder import BasisBuilder as BasisBuilder
4
+ from .builder import TermBuilder as TermBuilder
5
+ from .builder import VarIGPrior as VarIGPrior
6
+ from .category_mapping import CategoryMapping as CategoryMapping
7
+ from .category_mapping import series_is_categorical as series_is_categorical
8
+ from .registry import PandasRegistry as PandasRegistry