Skip to content

TypeError: calculate_result() missing 1 required positional argument: 'integration_domain' #1

@daniel-hui

Description

@daniel-hui

Hi Tkzeng,

We are interested in using your GeneBayes software. I'm trying to run the example and ran into an error. I ran this is on my Macbook using Python 3.9.12:

python genebayes.o_over_e.py number_of_obs_and_exp_lofs.tsv example_features.tsv out 0.00001 .99999

And got this error after the step "calculating posterior distributions...":

calculating posterior distributions...
/Users/danielhui/opt/miniconda3/lib/python3.9/site-packages/torchquad/integration/utils.py:248: UserWarning: DEPRECATION WARNING: In future versions of torchquad, an array-like object will be returned.
warnings.warn(
Traceback (most recent call last):
File "/Users/danielhui/Documents/TishkoffLab/GeneBayes-main/examples/genebayes.o_over_e.py", line 373, in
output_prior_posterior(model, feature_table, y, model.best_val_loss_itr)
File "/Users/danielhui/Documents/TishkoffLab/GeneBayes-main/examples/genebayes.o_over_e.py", line 235, in output_prior_posterior
post = boole.calculate_result(post_pdf * torch.squeeze(grid_points), 1, n_per_dim, h)
File "/Users/danielhui/opt/miniconda3/lib/python3.9/site-packages/torchquad/integration/utils.py", line 252, in wrap
f(args[0], anp.expand_dims(args[1], axis=1), *args[2:], **kwargs)
TypeError: calculate_result() missing 1 required positional argument: 'integration_domain'

Do you know what the issue is? I attached the full error message. Thank you.

Daniel Hui
Postdoctoral Associate
Tishkoff and Ritchie Labs
University of Pennsylvania

error_msg.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions