Skip to content

A scikit-learn compatible implementation of Polynomial Spline/B-Spline as well as a Multidimensional/Tensor spline variation.

License

Notifications You must be signed in to change notification settings

pr38/tensorbspline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tensorbspline

A scikit-learn compatible implementation of Polynomial Spline/B-Spline as well as a Multidimensional/Tensor spline variation.

The BSpline class generates a one-dimensional spline for each feature. Knots are generated via histogram splits. The TensorBSplines gets a row-wise Kron-product between the splines until there is only one matrix left. Use with caution, as a few features will grow exponentially.

Parameters for both BSpline, TensorBSplines

n_bin: int

number of knots.

polynomial_degrees: int

polynomial degrees

sparse: bool

return sparse or dense matrix

Install

pip install git+https://github.com/pr38/tensorbspline

About

A scikit-learn compatible implementation of Polynomial Spline/B-Spline as well as a Multidimensional/Tensor spline variation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages