Efficient matrix representations for working with tabular data
Breaking changes:
DenseMatrix
does not inherit from :class:np.ndarray
anymore. To convert a :class:DenseMatrix
to a :class:np.ndarray
, use :meth:DenseMatrix.unpack
.SparseMatrix
does not inherit from :class:sps.csc_matrix
anymore. To convert a :class:SparseMatrix
to a :class:sps.csc_matrix
, use :meth:SparseMatrix.unpack
.New features:
MatrixBase
objects. These are automatically populated when initializing a :class:MatrixBase
from a :class:pandas.DataFrame
. In addition, they can be accessed and modified via the :attr:MatrixBase.column_names
and :attr:MatrixBase.term_names
properties.tabmat.from_formula
for details.CategoricalMatrix
by either creating a separate category for them or treating them as all-zero rows.Bug fix:
legacy_implicit_noexcept = True
to fix performance regression with cython 3.Other changes:
CategoricalMatrix.transpose_matvec
to be deterministic when using OpenMP.tabmat.from_pandas
to future changes in pandas.SparseDtype.subtype
by @MatthiasSchmidtblaicherQC in https://github.com/Quantco/tabmat/pull/356
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.14...4.0.0
__version__
to tabmat by @MarcAntoineSchmidtQC in https://github.com/Quantco/tabmat/pull/322
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.13...3.1.14
x86_64
too by @xhochy in https://github.com/Quantco/tabmat/pull/321
__version__
to tabmat by @MarcAntoineSchmidtQC in https://github.com/Quantco/tabmat/pull/322
formulaic
to 0.6 by @MatthiasSchmidtblaicherQC in https://github.com/Quantco/tabmat/pull/340
ModelSpec
by @stanmart in https://github.com/Quantco/tabmat/pull/341
Full Changelog: https://github.com/Quantco/tabmat/compare/4.0.0a2...4.0.0a3
x86_64
too by @xhochy in https://github.com/Quantco/tabmat/pull/321
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.12...3.1.13
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.11...3.1.12
from_pandas
in the case of low-cardinality categoricals by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/275
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.10...3.1.11
model_spec
by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/297
Full Changelog: https://github.com/Quantco/tabmat/compare/4.0.0a1...4.0.0a2
numpy.ndarray
and scipy.sparse.csc_matrix
. Rather, they use the __array_ufunc__
interface. by @MartinStancsicsQC.tabmat
matrices by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/278
CategoricalMatrix
by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/281
from_pandas
in the case of low-cardinality categoricals by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/275
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.10...4.0.0a1
Note: this is the same as the 4.0.0.dev1
release.
numpy.ndarray
and scipy.sparse.csc_matrix
. Rather, they use the __array_ufunc__
interface. by @MartinStancsicsQC.from_pandas
in the case of low-cardinality categoricals by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/275
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.10...4.0.0.dev1
SplitMatrix
objects from lists containing other SplitMatrix
objects (#268) by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/269
CategoricalMatrix.getcol
method not respecting the drop_first
attribute (#265) by @MartinStancsicsQC in https://github.com/Quantco/tabmat/pull/266
Full Changelog: https://github.com/Quantco/tabmat/compare/3.1.9...3.1.10