<commit_before>#!/bin/bash
set -eu

# MLRMBO TEST 1

usage()
{
  echo "Usage: test SITE RUN_DIR(optional)"
  echo "       RUN_DIR is optional, use -a for automatic"
}

RUN_DIR=""
if (( ${#} == 2 ))
then
	RUN_DIR=$2
elif (( ${#} == 1 )) # test-all uses this
then
	RUN_DIR="-a"
else
        usage
        exit 1
fi

export MODEL_NAME=uno
SITE=$1

# Self-configure
THIS=$( cd $( dirname $0 ) && /bin/pwd )
EMEWS_PROJECT_ROOT=$( cd $THIS/.. && /bin/pwd )
export EMEWS_PROJECT_ROOT
WORKFLOWS_ROOT=$( cd $EMEWS_PROJECT_ROOT/.. && /bin/pwd )
source $WORKFLOWS_ROOT/common/sh/utils.sh

# Select configurations
export CFG_SYS=$THIS/cfg-sys-3.sh
export CFG_PRM=$THIS/cfg-prm-3.sh

# Specify the R file for This file must be present in the $EMEWS_PROJECT_ROOT/R
#export R_FILE=mlrMBO-mbo.R
export R_FILE=mlrMBO-ils.R

# What to return from the objective function (Keras model)
# val_loss (default) and val_corr are supported
export OBJ_RETURN="val_loss"

if [[ $SITE == "theta" ]]<commit_msg>Reverted back to working mlrMBO-mbo.R file<commit_after>#!/bin/bash
set -eu

# MLRMBO TEST 1

usage()
{
  echo "Usage: test SITE RUN_DIR(optional)"
  echo "       RUN_DIR is optional, use -a for automatic"
}

RUN_DIR=""
if (( ${#} == 2 ))
then
	RUN_DIR=$2
elif (( ${#} == 1 )) # test-all uses this
then
	RUN_DIR="-a"
else
        usage
        exit 1
fi

export MODEL_NAME=uno
SITE=$1

# Self-configure
THIS=$( cd $( dirname $0 ) && /bin/pwd )
EMEWS_PROJECT_ROOT=$( cd $THIS/.. && /bin/pwd )
export EMEWS_PROJECT_ROOT
WORKFLOWS_ROOT=$( cd $EMEWS_PROJECT_ROOT/.. && /bin/pwd )
source $WORKFLOWS_ROOT/common/sh/utils.sh

# Select configurations
export CFG_SYS=$THIS/cfg-sys-3.sh
export CFG_PRM=$THIS/cfg-prm-3.sh

# Specify the R file for This file must be present in the $EMEWS_PROJECT_ROOT/R
export R_FILE=mlrMBO-mbo.R
#export R_FILE=mlrMBO-ils.R

# What to return from the objective function (Keras model)
# val_loss (default) and val_corr are supported
export OBJ_RETURN="val_loss"

if [[ $SITE == "theta" ]]
{'fraction_non_alphanumeric': 0.14163736815670516, 'fraction_numerical': 0.009040683073832245, 'mean_word_length': 3.8349514563106797, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1335552', 'n_tokens_mistral': 813, 'n_tokens_neox': 786, 'n_words': 207}