Skip to content

Commit

Permalink
Default number of cores to 1.
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrijthe committed Sep 30, 2018
1 parent f2edaf0 commit 2fbc1ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions R/Rtsne.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#' @param final_momentum numeric; Momentum used in the final part of the optimization (default: 0.8)
#' @param eta numeric; Learning rate (default: 200.0)
#' @param exaggeration_factor numeric; Exaggeration factor used to multiply the P matrix in the first part of the optimization (default: 12.0)
#' @param num_threads integer; Number of threads to use using OpenMP, default (0) corresponds to using all available cores
#' @param num_threads integer; Number of threads to use using OpenMP, default 1. 0 corresponds to using all available cores
#'
#' @return List with the following elements:
#' \item{Y}{Matrix containing the new representations for the objects}
Expand Down Expand Up @@ -92,7 +92,7 @@ Rtsne.default <- function(X, dims=2, initial_dims=50,
stop_lying_iter=ifelse(is.null(Y_init),250L,0L),
mom_switch_iter=ifelse(is.null(Y_init),250L,0L),
momentum=0.5, final_momentum=0.8,
eta=200.0, exaggeration_factor=12.0, num_threads=0, ...) {
eta=200.0, exaggeration_factor=12.0, num_threads=1, ...) {

is.wholenumber <- function(x, tol = .Machine$double.eps^0.5) abs(x - round(x)) < tol

Expand Down
4 changes: 2 additions & 2 deletions man/Rtsne.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2fbc1ca

Please sign in to comment.