R Under development (unstable) (2025-10-07 r88904 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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 --- python: C:/Users/CRAN/AppData/Local/r-miniconda/envs/neuralGAM-env/python.exe libpython: C:/Users/CRAN/AppData/Local/r-miniconda/envs/neuralGAM-env/python39.dll pythonhome: C:/Users/CRAN/AppData/Local/r-miniconda/envs/neuralGAM-env version: 3.9.0 | packaged by conda-forge | (default, Nov 26 2020, 07:53:15) [MSC v.1916 64 bit (AMD64)] Architecture: 64bit numpy: C:/Users/CRAN/AppData/Local/r-miniconda/envs/neuralGAM-env/Lib/site-packages/numpy numpy_version: 1.25.1 tensorflow: C:\Users\CRAN\AppData\Local\R-MINI~1\envs\NEURAL~1\lib\site-packages\tensorflow NOTE: Python version was forced by RETICULATE_PYTHON --- [1] "Initializing neuralGAM..." [1] "Initializing neuralGAM..." [1] "Initializing neuralGAM..." [1] "Initializing neuralGAM..." [1] "Initializing neuralGAM..." [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 0.7999 1/1 [==============================] - 1s 641ms/step - loss: 0.7999 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 281ms/step [1] "BACKFITTING Iteration 1 - Current Err = 2.31119259634424 BF Threshold = 0.001 Converged = FALSE" 1/1 [==============================] - ETA: 0s - loss: 0.7742 1/1 [==============================] - 0s 0s/step - loss: 0.7742 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 16ms/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 688ms/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/1 [==============================] - ETA: 0s - loss: 0.5157 1/1 [==============================] - 1s 563ms/step - loss: 0.5157 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.0037872767415794 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 5.2449 1/1 [==============================] - 1s 547ms/step - loss: 5.2449 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 62ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.775032022763433 BF Threshold = 0.001 Converged = FALSE" 1/1 [==============================] - ETA: 0s - loss: 5.2147 1/1 [==============================] - 0s 0s/step - loss: 5.2147 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 16ms/step [1] "BACKFITTING Iteration 2 - Current Err = 0.000105174069235058 BF Threshold = 0.001 Converged = TRUE" [1] "Current delta 0.0411534719907707 LS Threshold = 0.1 Converged = TRUE" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" WARNING:tensorflow:5 out of the last 7 calls to .train_function at 0x0000022AC0EF69D0> 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.7742 1/1 [==============================] - 1s 547ms/step - loss: 0.7742 WARNING:tensorflow:5 out of the last 11 calls to .predict_function at 0x0000022AC0F5B820> 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 1/1 [==============================] - 0s 63ms/step [1] "BACKFITTING Iteration 1 - Current Err = 1.01078177704168 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." WARNING:tensorflow:6 out of the last 8 calls to .train_function at 0x0000022ABC9CCF70> 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: 1.2205 1/1 [==============================] - 1s 578ms/step - loss: 1.2205 WARNING:tensorflow:6 out of the last 13 calls to .predict_function at 0x0000022ABF95F1F0> 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 1/1 [==============================] - 0s 62ms/step [1] "BACKFITTING Iteration 1 - Current Err = 2.31119261921843 BF Threshold = 0.001 Converged = FALSE" 1/1 [==============================] - ETA: 0s - loss: 0.8431 1/1 [==============================] - 0s 0s/step - loss: 0.8431 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 16ms/step [1] "BACKFITTING Iteration 2 - Current Err = 0.000271770362189267 BF Threshold = 0.001 Converged = TRUE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 6.0584 1/1 [==============================] - 1s 578ms/step - loss: 6.0584 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.775032030434032 BF Threshold = 0.001 Converged = FALSE" 1/1 [==============================] - ETA: 0s - loss: 5.2968 1/1 [==============================] - 0s 0s/step - loss: 5.2968 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 16ms/step [1] "BACKFITTING Iteration 2 - Current Err = 0.000104309105133171 BF Threshold = 0.001 Converged = TRUE" [1] "Current delta 0.041161637946132 LS Threshold = 0.1 Converged = TRUE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 0.8973 1/1 [==============================] - 1s 672ms/step - loss: 0.8973 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 1.01078178704552 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 0.8633 1/1 [==============================] - 1s 578ms/step - loss: 0.8633 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.00259683330758074 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 9.8099 1/1 [==============================] - 1s 703ms/step - loss: 9.8099 - val_loss: 27.5083 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 13.3986 1/1 [==============================] - 1s 531ms/step - loss: 13.3986 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 11.8664 1/1 [==============================] - 1s 578ms/step - loss: 11.8664 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 62ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 2.9615 1/1 [==============================] - 1s 578ms/step - loss: 2.9615 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.3228208845 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 80.1359 1/1 [==============================] - 1s 531ms/step - loss: 80.1359 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 717.466831266385 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 13.3987 1/1 [==============================] - 1s 578ms/step - loss: 13.3987 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 0.4424 1/1 [==============================] - 1s 531ms/step - loss: 0.4424 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 62ms/step 1/1 [==============================] - ETA: 0s - loss: 0.5855 1/1 [==============================] - 1s 547ms/step - loss: 0.5855 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.569814615329674 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 0.4424 1/1 [==============================] - 1s 578ms/step - loss: 0.4424 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step 1/1 [==============================] - ETA: 0s - loss: 0.5855 1/1 [==============================] - 1s 547ms/step - loss: 0.5855 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.569814615329674 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 11.8664 1/1 [==============================] - 1s 594ms/step - loss: 11.8664 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 13.3986 1/1 [==============================] - 1s 547ms/step - loss: 13.3986 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 17.4190 1/1 [==============================] - 1s 609ms/step - loss: 17.4190 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 40.0135446943244 BF Threshold = 0.001 Converged = FALSE" [1] "Current delta 0.201921481082843 LS Threshold = 0.1 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 16.8583 1/1 [==============================] - 1s 547ms/step - loss: 16.8583 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 40.0135446943244 BF Threshold = 0.001 Converged = FALSE" [1] "Current delta 0.201921481082843 LS Threshold = 0.1 Converged = FALSE" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 11.4701 1/1 [==============================] - 1s 578ms/step - loss: 11.4701 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 63ms/step [1] "BACKFITTING Iteration 1 - Current Err = 52.1848912354051 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." [1] "ITER LOCAL SCORING 1" 1/1 [==============================] - ETA: 0s - loss: 13.8395 1/1 [==============================] - 1s 531ms/step - loss: 13.8395 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 52.1848912354051 BF Threshold = 0.001 Converged = FALSE" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 11.8664 1/1 [==============================] - 1s 719ms/step - loss: 11.8664 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.9" [1] "Initializing neuralGAM..." 1/1 [==============================] - ETA: 0s - loss: 11.8664 1/1 [==============================] - 1s 563ms/step - loss: 11.8664 1/1 [==============================] - ETA: 0s 1/1 [==============================] - 0s 47ms/step [1] "BACKFITTING Iteration 1 - Current Err = 119.322822199361 BF Threshold = 0.001 Converged = FALSE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.5" WARNING:tensorflow:Callback method `on_train_batch_begin` is slow compared to the batch time (batch time: 0.0000s vs `on_train_batch_begin` time: 0.0026s). Check your callbacks. WARNING:tensorflow:Callback method `on_train_batch_begin` is slow compared to the batch time (batch time: 0.0000s vs `on_train_batch_begin` time: 0.0026s). Check your callbacks. [1] "Initializing neuralGAM..." 1/10 [==>...........................] - ETA: 5s - loss: 2.7303 10/10 [==============================] - 1s 2ms/step - loss: 2.5303 1/10 [==>...........................] - ETA: 0s 10/10 [==============================] - 0s 2ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.000764949648542939 BF Threshold = 0.001 Converged = TRUE" [1] "Computing CI/PI using uncertainty_method = epistemic at alpha = 0.05" [1] "Initializing neuralGAM..." 1/6 [====>.........................] - ETA: 3s - loss: 0.9337 6/6 [==============================] - 1s 28ms/step - loss: 0.7589 - val_loss: 0.8073 1/7 [===>..........................] - ETA: 0s 7/7 [==============================] - 0s 3ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.0811906382415963 BF Threshold = 0.001 Converged = FALSE" 1/6 [====>.........................] - ETA: 0s - loss: 0.8308 6/6 [==============================] - 0s 12ms/step - loss: 0.6702 - val_loss: 0.7121 1/7 [===>..........................] - ETA: 0s 7/7 [==============================] - 0s 3ms/step [1] "BACKFITTING Iteration 2 - Current Err = 0.000652148314054988 BF Threshold = 0.001 Converged = TRUE" [1] "Initializing neuralGAM..." 1/6 [====>.........................] - ETA: 2s - loss: 1.2231 6/6 [==============================] - 1s 28ms/step - loss: 1.0137 - val_loss: 1.4214 1/6 [====>.........................] - ETA: 0s 6/6 [==============================] - 0s 3ms/step [1] "BACKFITTING Iteration 1 - Current Err = 57.6977796815016 BF Threshold = 0.001 Converged = FALSE" 1/6 [====>.........................] - ETA: 0s - loss: 1.1257 6/6 [==============================] - 0s 12ms/step - loss: 0.9430 - val_loss: 1.3049 1/6 [====>.........................] - ETA: 0s 6/6 [==============================] - 0s 0s/step [1] "BACKFITTING Iteration 2 - Current Err = 0.000632538478556233 BF Threshold = 0.001 Converged = TRUE" [1] "Initializing neuralGAM..." 1/5 [=====>........................] - ETA: 2s - loss: 0.3370 5/5 [==============================] - 1s 35ms/step - loss: 0.3644 - val_loss: 0.7044 1/5 [=====>........................] - ETA: 0s 5/5 [==============================] - 0s 0s/step [1] "BACKFITTING Iteration 1 - Current Err = 1.32720867857906 BF Threshold = 0.001 Converged = FALSE" 1/5 [=====>........................] - ETA: 0s - loss: 0.3347 5/5 [==============================] - 0s 16ms/step - loss: 0.3616 - val_loss: 0.7044 1/5 [=====>........................] - ETA: 0s 5/5 [==============================] - 0s 4ms/step [1] "BACKFITTING Iteration 2 - Current Err = 2.8070028750901e-05 BF Threshold = 0.001 Converged = TRUE" WARNING:tensorflow:Callback method `on_train_batch_end` is slow compared to the batch time (batch time: 0.0000s vs `on_train_batch_end` time: 0.0026s). Check your callbacks. [1] "Initializing neuralGAM..." 1/6 [====>.........................] - ETA: 2s - loss: 2.0610WARNING:tensorflow:5 out of the last 19 calls to .test_function at 0x0000022AD6A84C10> 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. 6/6 [==============================] - 1s 31ms/step - loss: 1.8285 - val_loss: 1.9217 1/7 [===>..........................] - ETA: 0s 7/7 [==============================] - 0s 0s/step 1/6 [====>.........................] - ETA: 2s - loss: 1.8949WARNING:tensorflow:6 out of the last 20 calls to .test_function at 0x0000022AD6A49AF0> 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. 6/6 [==============================] - 1s 28ms/step - loss: 1.7317 - val_loss: 1.9051 1/7 [===>..........................] - ETA: 0s 7/7 [==============================] - 0s 3ms/step [1] "BACKFITTING Iteration 1 - Current Err = 0.30602730012495 BF Threshold = 0.001 Converged = FALSE" WARNING:tensorflow:Callback method `on_train_batch_end` is slow compared to the batch time (batch time: 0.0000s vs `on_train_batch_end` time: 0.0026s). Check your callbacks. Class: neuralGAM Family : gaussian Formula : y ~ s(x1) Observations : 200 Intercept (eta0) : 1.43371 Deviance explained : 6.43% Train MSE : 0.474335 Pred. / Conf. Int. : disabled [ FAIL 0 | WARN 0 | SKIP 0 | PASS 346 ] > > proc.time() user system elapsed 89.78 6.00 98.73