R version 4.4.0 RC (2024-04-16 r86444 ucrt) -- "Puppy Cup" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > # This file is part of the standard setup for testthat. > # It is recommended that you do not modify it. > # > # Where should you do additional test configuration? > # Learn more about the roles of various files in: > # * https://r-pkgs.org/tests.html > # * https://testthat.r-lib.org/reference/test_package.html#special-files > > library(testthat) > > if (identical(Sys.getenv("NOT_CRAN"), "true")) + library(neuralGAM) > test_check("neuralGAM") Loading required package: neuralGAM [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 0.7999 1/1 [==============================] - 1s 672ms/step - loss: 0.7999 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 156ms/step [1] "BACKFITTING Iteration 1 - Current Err = 2.31119259634424 BF Threshold = 0.001 Converged = FALSE" 1/1 [==============================] - ETA: 0s - loss: 0.7742 1/1 [==============================] - 1s 547ms/step - loss: 0.7742 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 31ms/step [1] "BACKFITTING Iteration 2 - Current Err = 0.000274384766280251 BF Threshold = 0.001 Converged = TRUE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 0.6287 1/1 [==============================] - 1s 719ms/step - loss: 0.6287 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 63ms/step [1] "BACKFITTING Iteration 1 - Current Err = 1.11859167761994 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 0.2313 1/1 [==============================] - 1s 578ms/step - loss: 0.2313 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 63ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.775031462809523 BF Threshold = 0.001 Converged = FALSE" WARNING:tensorflow:5 out of the last 5 calls to .train_function at 0x000001E3F17BB820> triggered tf.function retracing. Tracing is expensive and the excessive number of tracings could be due to (1) creating @tf.function repeatedly in a loop, (2) passing tensors with different shapes, (3) passing Python objects instead of tensors. For (1), please define your @tf.function outside of the loop. For (2), @tf.function has reduce_retracing=True option that can avoid unnecessary retracing. For (3), please refer to https://www.tensorflow.org/guide/function#controlling_retracing and https://www.tensorflow.org/api_docs/python/tf/function for more details. 1/1 [==============================] - ETA: 0s - loss: 0.2300 1/1 [==============================] - 1s 578ms/step - loss: 0.2300 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 2 - Current Err = 0.000105384869787241 BF Threshold = 0.001 Converged = TRUE" [1] "Current delta 0.0410439924431031 LS Threshold = 0.1 Converged = TRUE" [ FAIL 0 | WARN 0 | SKIP 0 | PASS 84 ] > > proc.time() user system elapsed 9.59 1.56 22.42