mlr-org / mlr3keras

Deep learning for mlr3
GNU Lesser General Public License v3.0
36 stars 2 forks source link

The `imagepathdf_from_imagenet_dir` function #46

Closed VladPerervenko closed 3 years ago

VladPerervenko commented 3 years ago

'mlr3keras.Rmd'

`library(mlr3) library(mlr3misc) library(data.table) library(mlr3keras)

dir = "C:/Users/User/Documents/temp_data/imagenette2-160/train" dt = imagepathdf_from_imagenet_dir(dir)`

Error in _imagepathdf_from_imagenetdir (dir): can't find function "imagepathdf_from_imagenet_dir"

Doesn't this function exist?

sessionInfo() R version 4.0.3 (2020-10-10) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19042)

Matrix products: default

locale: [1] LC_COLLATE=Russian_Russia.1251 LC_CTYPE=Russian_Russia.1251
[3] LC_MONETARY=Russian_Russia.1251 LC_NUMERIC=C
[5] LC_TIME=Russian_Russia.1251

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] mlr3keras_0.1.3 data.table_1.13.7 mlr3misc_0.7.0 mlr3_0.10.0-9000

loaded via a namespace (and not attached): [1] Rcpp_1.0.6 rstudioapi_0.13 whisker_0.4
[4] knitr_1.31 magrittr_2.0.1 uuid_0.1-4
[7] lattice_0.20-41 R6_2.5.0 rlang_0.4.10
[10] lgr_0.4.2 tools_4.0.3 grid_4.0.3
[13] checkmate_2.0.0 xfun_0.21 tfruns_1.4
[16] htmltools_0.5.1.1 keras_2.3.0.0.9000 yaml_2.2.1
[19] digest_0.6.27 crayon_1.4.1 tensorflow_2.2.0.9000 [22] Matrix_1.2-18 paradox_0.7.0-9000 base64enc_0.1-3
[25] zeallot_0.1.0 evaluate_0.14 rmarkdown_2.6
[28] compiler_4.0.3 generics_0.1.0 backports_1.2.1
[31] jsonlite_1.7.2 reticulate_1.18

pfistfl commented 3 years ago

Hi,

Thanks for the interest and your report!

Sorry for taking some time to respond. It is exported now if you install from github again.

You can always use ::: i.e. mlr3keras:::dt = imagepathdf_from_imagenet_dir(dir) if an object is not exported by a package.