Installation and Usage Guide for virtualhome-eval
Install dependencies
pip install virtualhome_eval
Usage
To run virtualhome_eval
- Use in python
from virtualhome_eval.agent_eval import agent_evaluation
agent_evaluation(mode=[generate_prompts, evaluate_results], eval_type=[goal_interpretation, action_sequence, transition_modeling], llm_response_path=[YOUR LLM OUTPUT DIR])
- Use directly in the command line
virtualhome-eval --mode [generate_prompts, evaluate_results] --eval-type [goal_interpretation, action_sequence] --llm-response-path [YOUR LLM OUTPUT DIR] --output-dir [YOUR EVAL OUTPUT DIR]
Parameters
mode: Specifies either generate prompts or evaluate results. Options are:generate_promptsevaluate_results
eval_type: Specifies the evaluation task type. Options are:goal_interpretationaction_sequencesubgoal_decompositiontransition_model
llm_response_path: The path of LLM output directory to be evaluated. It is""by default, using the existing outputs at directoryvirtualhome_eval/llm_response/. The function will evaluate all LLM outputs under the directory.dataset: The dataset type. Options:virtualhomebehavior
output_dir: The directory to store the output results. By default, it is atoutput/of current path.
Example usage in python
- To generate prompts for
goal_interpretation:
agent_evaluation(mode='generate_prompts', eval_type='goal_interpretation')
- To evaluate LLM outputs for
goal_interpretation:
results = agent_evaluation(mode='evaluate_results', eval_type='goal_interpretation')
- To generate prompts for
action_sequence:
agent_evaluation(mode='generate_prompts', eval_type='action_sequence')
- To evaluate LLM outputs for
action_sequence:
results = agent_evaluation(mode='evaluate_results', eval_type='action_sequence')
- To generate Virtualhome prompts for
transition_model:
agent_evaluation(mode='generate_prompts', eval_type='transition_model')
- To evaluate LLM outputs on Virtualhome for
transition_model:
results = agent_evaluation(mode='evaluate_results', eval_type='transition_model')
- To generate prompts for
subgoal_decomposition:
agent_evaluation(mode='generate_prompts', eval_type='subgoal_decomposition')
- To evaluate LLM outputs for
subgoal_decomposition:
results = agent_evaluation(mode='evaluate_results', eval_type='subgoal_decomposition')
Metadata
Release files for virtualhome-eval 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| virtualhome_eval-0.1.1.tar.gz | 22.9 MB | Without provenance | Details for virtualhome_eval-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| virtualhome_eval-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for virtualhome_eval-0.1.1-py3-none-any.whl |
Total release size: 50.0 MB
Release files / virtualhome_eval-0.1.1.tar.gz
| Download URL | virtualhome_eval-0.1.1.tar.gz |
|---|---|
| Size | 22.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a790c85f241a67e718d2f3d05d3daaea38acb7db5e16de118ced089dbf9eddd7
|
|
BLAKE2b-256 checksum How to use checksums |
b7046e5a7062faa2e038667a7c5bf8b2f57c9810482ab42f235b98141b9d4a10
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.19
|
Release files / virtualhome_eval-0.1.1-py3-none-any.whl
| Download URL | virtualhome_eval-0.1.1-py3-none-any.whl |
|---|---|
| Size | 27.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a4e244f423edfc0da2ec7b7daf48f2fca8af00afe6f2af07b8f1e53d8c79de37
|
|
BLAKE2b-256 checksum How to use checksums |
b96f63a7e29f0c00f10c2a8fd80d7697f77bf40c9a4ec0c813cdbf198f70551e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.8.19
|
Security for virtualhome-eval 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.