Skip to content

Commit

Permalink
solving errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vzhomeexperiments committed Jan 17, 2021
1 parent 18ce2f4 commit 9cad4e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ Imports:
h2o,
ReinforcementLearning,
openssl,
stats
stats,
moments,
cluster
Suggests:
testthat (>= 2.1.0),
covr,
Expand Down
6 changes: 2 additions & 4 deletions R/mt_stat_transf.R
Original file line number Diff line number Diff line change
Expand Up @@ -177,17 +177,15 @@ mt_stat_transf <- function(indicator_dataset,

# option hclust with N clusters
if(clust_method == 'hclust'){
d <- dist(dfCsc, method = 'euclidean')
d <- stats::dist(dfCsc, method = 'euclidean')
hc_6 <- cluster::agnes(d, method = clust_opt)
#pltree(hc_6, cex = 0.6, hang = -1, main = "Dendrogram of agnes")
hc_cl <- cutree(hc_6, k = N)
hc_cl <- stats::cutree(hc_6, k = N)

dfC$M_T <- hc_cl
}




## TDL -> properly assign classes to labels


Expand Down

0 comments on commit 9cad4e4

Please sign in to comment.