Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita438f0a

Browse files
committed
passing R CMD check
1 parentd85e873 commita438f0a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

‎R/rTensor_Decomp.R‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ t_svd_reconstruct <- function(L){
525525
#'@param ranks an integer vector of length \code{K} specifying the modes sizes for the output core tensor \code{Z}
526526
#'@param core_nonneg constrain core tensor \code{Z} to be nonnegative
527527
#'@param tol relative Frobenius norm error tolerance
528-
#'@param hosvd If TRUE, apply High Order SVD to improve initial U and Z.
528+
#'@param hosvd If TRUE, apply High Order SVD to improve initial U and Z
529529
#'@param max_iter maximum number of iterations if error stays above \code{tol}
530530
#'@param max_time max running time
531531
#'@param lambda \code{K+1} vector of sparsity regularizer coefficients for the factor matrices and the core tensor
@@ -552,7 +552,7 @@ t_svd_reconstruct <- function(L){
552552
#'
553553
#'@details The function uses the alternating proximal gradient method to solve the following optimization problem:
554554
#' \deqn{\min 0.5 \|tnsr - Z \times_1 U_1 \ldots \times_K U_K \|_{F^2} +
555-
#' \sum_{n=1}^{K} \lambda_n \|U_n\|_1 + \lambda_{K+1} \|Z\|_1, \;\text{where}\; Z \geq 0, \, U_i \geq 0.}
555+
#' \sum_{n=1}^{K} \lambda_n \|U_n\|_1 + \lambda_{K+1} \|Z\|_1, \;\textit{where}\; Z \geq 0, \, U_i \geq 0.}
556556
#' If \code{core_nonneg} is \code{FALSE}, core tensor \code{Z} is allowed to have negative
557557
#' elements and \eqn{z_{i,j}=max(0,z_{i,j}-\lambda_{K+1}/L_{K+1})} rule is replaced by \eqn{z_{i,j}=sign(z_{i,j})max(0,|z_{i,j}|-\lambda_{K+1}/L_{K+1})}.
558558
#' The method stops if either the relative improvement of the error is below the tolerance \code{tol} for 3 consequitive iterations or

‎man/tucker.nonneg.Rd‎

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp