Skip to content

hmmTensor

0.1.0

Hidden Markov Model by Matrix and Tensor Decomposition

0packages depend
567downloads / year
test coverage
13/13checks pass

Overview

About
Maintained by Koki TsuyuzakiFirst published 2026-05-271 releasesCRAN page ↗

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

CRAN checks
13OK
Slowest check: 1.0 min · r-oldrel-windows-x86_64
Code health
Yes
Tests · ratio 0.16
not tracked
Coverage
100%
Documentation · exports
None
Vignettes
No
README
4
Dependencies · direct
Check history
  • OK2026-05-28
    7 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE

Downloads

567
CRAN downloads in the past year
Rank #21,134 · ~2/day · ~47/mo
Daily download trend is not available in this view yet.
37230 days
56790 days
5671 year
Compare downloads with other packages →
Also on1 r2u5 autocran

Dependencies

Declared dependencies
3 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.5.0
Imports (4)
rTensorsymTensormethodsstats
LinkingTo (0)
none
Suggests (1)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Code & Tests

Code Composition
R 759 (72%)Rd 301 (28%)
Code characteristics
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.

Loading call graph…

Lowest coverage

Per-function coverage is not measured for this package yet.

People & History

People (1)
Maintainer (1)
Author, Maintainer
Authors (1)
Author, Maintainer
Release timeline

1 release. R releases are shown for context.

  • 0.1.0Latest
    2026-05-27 · current release
  • R
    R 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