TransformersCanDoBayesianInference icon indicating copy to clipboard operation
TransformersCanDoBayesianInference copied to clipboard

Error found in the batch_pred function

Open wangy8989 opened this issue 2 years ago • 1 comments

Error message: [Cannot convert list to array: ValueError: only one element tensors can be converted to Python scalars]

In tabular.py, output = output.detach().cpu().numpy() in the batch_pred function. Otherwise, it produces an error when running BayesianNN model.

wangy8989 avatar Feb 21 '23 08:02 wangy8989

@SamuelGabriel @noahho Another question regarding config in TabularEvalSimple.ipynb: for prior_num_features_used_sampler, prior_dropout_sampler, prior_emsize_sampler, prior_num_features_used_sampler, prior_nlayers_sampler, these are the hyperparameters set to equal a certain function in the local memory of your computer, which is not available for use on mine. It produces a "str object is not callable" error. So what are these functions? Thanks!

wangy8989 avatar Apr 06 '23 07:04 wangy8989