Open
Conversation
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
README - FYP Project
This Pull Request contains all the changes done to the base Magpie framework to integrate the RL approach and run my experiments.
Personal Contributions:
xmlfolder to add contextual operators to Magpie (.e.gExprStmtInsertion)magpie/base/operator_selector.py. We make use of abstract classes to log intermediary results.experiments/generate_coveragecoverage folder with code to generate branch coverage data for MiniSAT and produce a test suite which maximise branch coverage.experiments/process_results/process_official_final.ipynb.magpie/algo/local_search.pyunder the namesRandomSearchfor Neighbourhood Search andFYPLocalSearchfor Hill ClimbingExperiment Results
The raw experiment results can be found as a zip file in a separate repository here. (Warning: This is not anonymous)
You will also need to install git lfs to download the required data.
Replicating The Experiments
Make sure you have all the python dependencies listed.
Run experiments:
bash experiments/run.sh &Note that running took about 50 hours 40 mins on our hardware specs. All the logs files should go in the
experiments/resultsfolder.Produce graphs and metrics:
Change the
RESULT_DIRvariable in theexperiments/process_results/process_official_final.ipynbnotebook to point to the unzipped version of your results folder. Then run all the cells and the metrics and graphs included in the report should be computed automatically.Software Versions Used
Python Requirements: