pyttb User Guide and Rubric
Guides users of the pyttb tensor package by categorising features by skill level and linking to tutorials, issues, and API docs.
What this file does
Guides users of the pyttb tensor package by categorising features by skill level and linking to tutorials, issues, and API docs.
When to use it
- Onboarding new pyttb users who need a feature overview
- Matching tensor operations to user expertise levels
- Directing users to installation, tutorials, or issue tracker
- Planning documentation structure for a Python library
Assumes this stack
pyttb User Guide and Rubric
The pyttb package is a powerful toolset for working with tensors in Python, designed to cater to a wide range of users, from beginners to advanced. This user guide and rubric will assist new users in understanding the capabilities of the pyttb package and how it can meet their specific needs.
Installation Guide
For detailed instructions on how to install and set up pyttb, please refer to our CONTRIBUTING.md guide.
User Categories
Users can generally be classified into three main categories:
-
Novice Users: Users with no or little previous experience with Python, Matlab, or tensor toolbox. These users might require detailed explanations and step-by-step guidance.
-
Intermediate Users: Users with some level of familiarity with Python and Matlab, and a basic understanding of tensor operations. They are likely to be seeking more advanced features and functionalities.
-
Expert Users: Users with a strong understanding of Python, Matlab, and tensor operations. They are probably looking for advanced features, custom options, or performance-optimizing/specific functions.
Features and Matching User Levels
This section provides an overview of pyttb's key features, a description of each, the user level they are best suited to, and some potential use cases.
| Feature Name | Description | User Level | Potential Use Cases |
|---|---|---|---|
| Tensor Types | Supports multiple tensor types, including dense, sparse, symmetric, and specially structured tensors | Novice/Intermediate/Expert | Tensor analysis and manipulation |
| CP Decompositions | Implements CP methods such as alternating least squares, direct optimization, and weighted optimization | Intermediate/Expert | Tensor factorization and data analysis |
| Tucker Decomposition | Includes Tucker methods such as HOSVD, ST-HOSVD, and HOOI | Intermediate/Expert | Tensor decomposition and data reduction |
| Eigenproblems | Provides methods to solve tensor eigenproblems | Expert | Advanced tensor analysis and machine learning |
| Tensor Operations | Supports creating test problems, tensor multiplication, collapsing and scaling tensors | Novice/Intermediate/Expert | Preprocessing, tensor manipulation, and creating test scenarios |
| Optimization Methods | Offers standardized wrappers for various optimization methods | Intermediate/Expert | Optimization tasks and performance enhancement |
Troubleshooting / FAQ
Refer to our Issues tab for known issues and solutions.
Sample Code / Tutorials
The tutorial section contains step-by-step tutorials with Jupyter notebooks demonstrating various pyttb features.
Getting Started (for Novice Users)
Those new to the tensor toolbox or Python/Matlab should check the tutorial.
Advanced Usage (for Intermediate and Expert Users)
TODO ... Advanced functionalities available in pyttb.
Special Topics (for Expert Users)
TODO ... More specific, in-depth topics for pyttb research.
Reference: Tensor Toolbox for MATLAB
The Tensor Toolbox provides the classes and functions for manipulating dense, sparse, and structured tensors using MATLAB's object-oriented features.
-
Tensor Types: The Tensor Toolbox supports multiple tensor types, including dense, sparse, and symmetric tensors as well as specially structured tensors, such as Tucker format (core tensor plus factor matrices), Krusal format (stored as factor matrices), and sum format (sum of different types of tensors such as sparse plus rank-1 tensor in Kruskal format).
-
CP Decompositions: CP methods such as alternating least squares, direct optimization, and weighted optimization (for missing data). Also alternative decompositions such as Poisson Tensor Factorization via alternating Poisson regression (APR), Generalized CP (GCP) tensor factorization, and symmetric CP tensor factorization.
-
Tucker Decomposition: Tucker methods including the higher-order SVD (HOSVD), the sequentially-truncated HOSVD (ST-HOSVD), and the higher-order orthogonal iteration (HOOI).
-
Eigenproblems: Methods to solve the tensor eigenproblem including the shifted higher-order power method (SSHOPM) and the adaptive shift version (GEAP).
-
Working with Tensors: Creating test problems, tensor multiplication, collapsing and scaling tensors (useful in preprocessing), and more.
-
Optimization Methods: Standardized wrappers to make it simple to switch between several different optimization methods, including limited-memory BFGS quasi-Newton method and Adam (stochastic optimization).
API Reference
For a comprehensive breakdown of all classes and methods, visit our Documentation.
Case Studies and Example Use Cases
Stay tuned for case studies and real-world examples of pyttb in action.
Community and Support
Please visit our Contact section for support or questions. You can also refer to the CONTRIBUTORS.md file to see the developers and contributors of pyttb.
Versioning / Release Notes
For details on different versions and updates of pyttb, check our Releases page.
License Information
pyttb is released under the BSD 2-Clause License. You can view the details of the license here.
What's inside
10 sections, 1 feature table with 6 rows, 2 TODO placeholders, 2 external reference links
Change this for your project
- Replace
sandialabs/pyttbwith your own repository path in all URLs - Replace
pyttbwith your own package name throughout - Replace
CONTRIBUTING.mdandCONTRIBUTORS.mdreferences with your own files
Where it goes
Keep alongside your test suite. Used to define and score model evaluations.
Worth borrowing
- User level classification (novice/intermediate/expert) to tailor documentation
- Feature table mapping capabilities to user levels and use cases
Related Documents
IATA BCBP Standard Compliance
Documents which IATA BCBP fields and barcode formats a Swift library implements, including Version 8 gender code support.
Evaluating AI Agent Systems: Metrics, Benchmarks, and Quality Assurance (2024-2026)
Surveys 2024-2026 metrics, benchmarks, and monitoring tools for evaluating AI agent systems, with recommendations for a self-improving coding agent.
Voice AI Leaderboards, Benchmarks, and Evaluation Gaps (Jan 2025 -- Feb 2026)
Surveys 20+ voice AI benchmarks from Jan 2025, Feb 2026, identifies evaluation gaps, and provides leaderboard data for STT, TTS, and end-to-end voice agents.
LLM Evaluation — Deep Dive
Covers why LLM evaluation is hard, benchmark taxonomy, LLM-as-judge methodology, contamination, robustness, and designing an eval suite for a product.