hmmTensor
0.1.0Hidden Markov Model by Matrix and Tensor Decomposition
Overview
Solves Hidden Markov Models (HMMs) via matrix and tensor decomposition. Converts observation sequences to co-occurrence matrices/tensors and applies Symmetric Non-negative Matrix Factorization (symNMF), Singular Value Decomposition (SVD), CANDECOMP/PARAFAC (CP) decomposition, or Tensor-Train (TT) decomposition to recover HMM parameters. Also provides standard HMM algorithms (Forward, Backward, Viterbi, Baum-Welch) for comparison. The spectral learning approach for HMMs is based on Hsu, Kakade, and Zhang (2012) doi:10.1016/j.jcss.2011.12.025. The symNMF method is described in Kuang, Yun, and Park (2015) doi:10.1007/s10898-014-0247-2. The Tensor-Train decomposition is described in Oseledets (2011) doi:10.1137/090752286.
Install
Health
- OK2026-05-287 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Downloads
Dependencies
Nothing depends on this yet.
Code & Tests
- Cyclomatic complexity
- 2.0 median / 16 max
- Test cases
- 12 / 0.16 per code line
- Documented parameters
- 100%
Test coverage
Line coverage
–
Expression
–
Tests / Examples
–
Functions
11 7 exported
Complexity
4.6 avg / 16 max
Call network
11 nodes / 7 edges
Test coverage has not been measured for this package yet; nodes fall back to a neutral fill.
Call graph
Open call graph →Lowest coverage
Per-function coverage is not measured for this package yet.
People & History
1 release. R releases are shown for context.
- 0.1.0Latest2026-05-27 · current release
- RR 4.6.0 released · 2026-04-24
Package metadata
- First published
- 2026-05-27
- Total releases
- 1 / 1 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.5.0
- Download size
- not tracked yet
- Installed size
- not tracked yet
- With dependencies
- not tracked yet