Skip to content

Commit

Permalink
Bug Fix in Classifier test
Browse files Browse the repository at this point in the history
  • Loading branch information
FBerding committed Oct 1, 2023
1 parent ac96018 commit bafa650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 4 additions & 2 deletions R/install_and_config.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ install_py_modules<-function(envname="aifeducation",
"tokenizers",
"datasets",
"codecarbon",
"accelerate")
"accelerate"
)

if(remove_first==TRUE){
conda_environments<-reticulate::conda_list()
Expand All @@ -40,7 +41,8 @@ install_py_modules<-function(envname="aifeducation",
packages = c(
paste0("tensorflow",tf_version),
"torch",
"keras"),
"keras",
"cudatoolkit"),
envname = envname,
conda = "auto",
pip = TRUE
Expand Down
3 changes: 0 additions & 3 deletions tests/testthat/test-14_classifier_neural_net.R
Original file line number Diff line number Diff line change
Expand Up @@ -174,13 +174,10 @@ for (n_classes in 2:3){
rec_act_fct="tanh")
expect_s3_class(classifier,
class="TextEmbeddingClassifierNeuralNet")
})

test_that("te_classifier_sustainability_start",{
expect_false(classifier$get_sustainability_data()$sustainability_tracked)
})


#-------------------------------------------------------------------------------
classifier<-TextEmbeddingClassifierNeuralNet$new(
ml_framework = ml_framework,
Expand Down

0 comments on commit bafa650

Please sign in to comment.