
# HACR: Hierarchical Agent for Compositional Reasoning

## Training
To train HACR, run `train.sh` with hyper-parameters below. <br>

**Note**: As mentioned in the repository of <a href="https://github.com/askforalfred/alfred/tree/master/models">ALFRED</a>, run with `--preprocess` only once for preprocessed json files. <br>


## Evaluation
### Task Evaluation
First we need to evaluate the individual modules using 'test_unseen.sh' in each module folder. <br>

To evaluate HACR on ALFRED validation set, input the best model paths run `test_unseen.sh` for unseen fold and `test_seen.sh` for seen fold <br>

**Note**: All hyperparameters used for the experiments in the paper are set as default. <br>
