Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Required Libraries
The following libraries are required to run the scripts in this repository. You can install them using `pip`:
```bash pip install pandas numpy argparse json time random openai copy statistics krippendorff sklearn seaborn matplotlib together anthropic google-generativeai
Make sure to also install any other dependencies required by the specific model API if you plan on using models like GPT-4 or Claude:
openai
anthropic
together
All the experiments were done using python 3.10.11
For each dataset, we have a folder that contains process.py, heatmap.py, ira_sample.py. The folder also contains the relevant datasets and plots.
File Description:
Commands for datasets (Except Code Summarization):
Generating samples for different models:
python process.py --model gpt-4 --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model gpt-3.5-turbo --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model llama3--fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model mixtral --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model claude --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model gemini --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
For Figure (1-5):
python heatmap.py
For Figure (7-10):
python ira_sample.py
Commands for datasets (Code Summarization):
python process.py --what accurate --model gpt-4 --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model gpt-3.5-turbo --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model llama3--fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model mixtral --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model claude --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model gemini --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
For Figure (1-5):
python heatmap.py
For Figure (7-10):
python ira_sample.py
What="accurate", "adequate", "concise", "similarity"
This project studied the pooling location optimization problem by visually creating heatmap to visualize the distribution of registered voters for each precinct, the polling location area type layer by spatial join, and by computationally performed Location-Allocation Analysis on candidate polling locations and demand locations, with weights based on the rate of in-person voters in a certain election precinct.Notable Modules Used: Python: pandas, geopandas, matplotlib, seaborn ArcGIS: dissolve_boundaries, find_existing_locations, enrich, aggregate_points, create_buffers, solve_location_allocation, Storymaps, WebMap No permission to access the contents.
Not seeing a result you expected?
Learn how you can add new datasets to our index.
Attribution 4.0 (CC BY 4.0)https://creativecommons.org/licenses/by/4.0/
License information was derived automatically
Required Libraries
The following libraries are required to run the scripts in this repository. You can install them using `pip`:
```bash pip install pandas numpy argparse json time random openai copy statistics krippendorff sklearn seaborn matplotlib together anthropic google-generativeai
Make sure to also install any other dependencies required by the specific model API if you plan on using models like GPT-4 or Claude:
openai
anthropic
together
All the experiments were done using python 3.10.11
For each dataset, we have a folder that contains process.py, heatmap.py, ira_sample.py. The folder also contains the relevant datasets and plots.
File Description:
Commands for datasets (Except Code Summarization):
Generating samples for different models:
python process.py --model gpt-4 --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model gpt-3.5-turbo --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model llama3--fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model mixtral --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model claude --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --model gemini --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
For Figure (1-5):
python heatmap.py
For Figure (7-10):
python ira_sample.py
Commands for datasets (Code Summarization):
python process.py --what accurate --model gpt-4 --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model gpt-3.5-turbo --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model llama3--fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model mixtral --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model claude --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
python process.py --what accurate --model gemini --fewshot yes --openai_key xxxx --together_key xxxx --claude_key xxxx --google_key xxxx
For Figure (1-5):
python heatmap.py
For Figure (7-10):
python ira_sample.py
What="accurate", "adequate", "concise", "similarity"