v1.7.0
What's Changed
- Breaking Changes:
- API Change: Constructors (
__init__
) and helper functions have been combined for all data classes, leading to breaking changes; if you usefrom_*
methods in your existingpyttb
usage to create instances of data classes this will require changes. see the updated documentation and tutorials for examples of using the update APIs. (#213, #293) - API Change: Changed constructors of main data classes to allow use by external packages that wrap existing data in memory. This allows for use of
pyttb
data classes by external packages without making copies of the data. (#182) - API Change:
params
output ofcp_als
changed fromtuple
todict
(#238) - Deprecation: Removed unused
end
methods from data classes (#195)
- API Change: Constructors (
- New:
- Changed support of
numpy
to < version 2 for backwards compatibility; will update in future release (#307) - Added
gcp_opt
algorithm for Generalized CP decompositions (#206) - Added
sptenmat
data class (#290) - Added
sumtensor
data class (#282) - Added
sptensor.squash
method (#175) - Improved in
cp_apr
performance fortensor
s (#176) - Added
tensor.scale
, providing support forttensor
input incp_als
(#221) - Added
teneye
(#222) - Added support for different index bases in
import_data
(#144)
- Changed support of
- Documentation:
- Fixes/Completed:
- Fixed indexing/slicing in
tensor
(#150) - Fixed
sptensor.innerproduct
output (#217) - Fixed
export_data
to writetensor
s using the correct ordering (#143) - Fixed ZeroDivisionError in
cp_als
(#242) - Fixed how initial guesses are generated in
tucker_als
(#283) - Fixed output formatting in
tucker_als
(#265) - Fixed
sptensor.mask
problem with invalid indices (#259) - Fixed
sptensor.logical_*
methods to generate correct output types (#269)
- Fixed indexing/slicing in
- Development:
- Completed typing of all data classes and algorithms
- Adding pre-commit hooks
- Added ruff usage to replace isort, pylint usage
- Updated GitHub Actiob versions, pypi.org upload action
Full Changelog: v1.6.2...v1.7.0