Skip to content

v1.7.0

Compare
Choose a tag to compare
@dmdunla dmdunla released this 23 Oct 18:39
· 31 commits to main since this release
153de3e

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 use from_* methods in your existing pyttb 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 of cp_als changed from tuple to dict (#238)
    • Deprecation: Removed unused end methods from data classes (#195)
  • 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 for tensors (#176)
    • Added tensor.scale, providing support for ttensor input in cp_als (#221)
    • Added teneye (#222)
    • Added support for different index bases in import_data (#144)
  • Documentation:
    • Added tutorials that mirror those in the Tensor Toolbox for MATLAB
    • Added documentatin for mapping between pyttb and Tensor Toolbox for MATLAB usage (#291)
    • Completed documentation for all methods and algorithms
    • Improved RTD (readthedocs.io) support (#178)
    • Added citation information for pyttb (#268)
  • Fixes/Completed:
    • Fixed indexing/slicing in tensor (#150)
    • Fixed sptensor.innerproduct output (#217)
    • Fixed export_data to write tensors 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)
  • 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