From 4e350f80f7f828d51a9491ddb083d91fc7f59a64 Mon Sep 17 00:00:00 2001 From: Nick Tustison Date: Wed, 10 Aug 2022 15:29:47 -0700 Subject: [PATCH] ENH: Remove unused learning rate option. --- R/antsRegistration.R | 11 ----------- data/antsVersions.csv | 2 +- 2 files changed, 1 insertion(+), 12 deletions(-) diff --git a/R/antsRegistration.R b/R/antsRegistration.R index 85b6dd0..f9cb0ba 100644 --- a/R/antsRegistration.R +++ b/R/antsRegistration.R @@ -42,8 +42,6 @@ #' @param randomSeed integer random seed. combine with setting #' ITK_GLOBAL_DEFAULT_NUMBER_OF_THREADS environment variable to limit the #' impact of numerical differences. -#' @param estimateLearningRateOnce a change to internal optimizer parameters that -#' may permit a cleaner convergence at very fine scale. #' @param samplingPercentage value between zero and one that allows the percentage #' of points sampled to be controlled in low-dimensional metric estimation. #' @param verbose request verbose output (useful for debugging) @@ -199,7 +197,6 @@ antsRegistration <- function( restrictTransformation, writeCompositeTransform = FALSE, randomSeed, - estimateLearningRateOnce=FALSE, samplingPercentage=0.2, verbose=FALSE, printArgs = FALSE, ... ) { @@ -252,8 +249,6 @@ antsRegistration <- function( } args <- list(fixed, moving, typeofTransform, outprefix, ...) - myl=0 - if ( estimateLearningRateOnce ) myl = 1 myfAff = "6x4x2x1" mysAff = "3x2x1x0" metsam = 0.2 @@ -281,7 +276,6 @@ antsRegistration <- function( myfAff="2x1" mysAff="1x0" myiterations <- "100x20" - myl=1 } if ( typeofTransform == "QuickRigid" ) { typeofTransform <- "Rigid" @@ -296,7 +290,6 @@ antsRegistration <- function( myfAff="2x1" mysAff="1x0" myiterations <- "100x20" - myl=1 } mysyn = paste("SyN[",gradStep,",",flowSigma,",",totalSigma,"]", sep = "") itlen = length( regIterations )-1 @@ -948,10 +941,6 @@ antsRegistration <- function( } return(0) } - if ( estimateLearningRateOnce ) { - args[[ length(args)+1]]="-l" - args[[ length(args)+1]]="1" - } args[[ length(args)+1]]="--float" args[[ length(args)+1]]="1" if ( verbose ) { diff --git a/data/antsVersions.csv b/data/antsVersions.csv index ac9a2c5..1ace5d6 100644 --- a/data/antsVersions.csv +++ b/data/antsVersions.csv @@ -1,5 +1,5 @@ Dependency;GitTag ANTs;d30526f9cb5159bc0a3e9011f7ae5f409b3634c8 -ANTsRCore;e02f50536036eca437cd92081311ad33473942e6 +ANTsRCore;5a5ef53bd4800be1bb79d0fe405491c7403162c0 ANTsURL;https://github.com/ANTsX/ANTs.git ITK;v5.3rc03