Skip to content

Commit

Permalink
1st repo update; slightly change to plot1
Browse files Browse the repository at this point in the history
  • Loading branch information
qinip committed Sep 16, 2024
1 parent 16505cf commit b2d0b03
Show file tree
Hide file tree
Showing 23 changed files with 3,228 additions and 588 deletions.
17 changes: 17 additions & 0 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Project Configuration
PROJ_FOLDER=/path/to/your/project

# Logging Configuration (Optional)
LOGS_FOLDER=/path/to/logs
HYPERPARAMETER_SEARCH_LOGS=/path/to/hyperparameter_search_logs
FULL_TRAINING_LOGS=/path/to/full_training_logs

# Environment Settings
ENVIRONMENT=production

# OpenAI API Key
OPENROUTER_API_KEY=your_openrouter_api_key

# CUDA Configuration (Optional)
# If no CUDA devices are available, you can leave it empty or delete this line
CUDA_VISIBLE_DEVICES=0,1
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ cython_debug/
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/

.env
.DS_Store
2023-*/
docs/plot1/plot.html


2 changes: 1 addition & 1 deletion docs/plot1/pci_nko_fg1.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def create_nko_plotly_figure():
hoverdistance=16,
spikedistance=-1,
yaxis=dict(
title="Monthly PCI for North Korea",
title="Monthly PCI for North Korea (PCI-NKO)",
linecolor='black',
range=[min(df.y.min(), -0.01), max(df.y.max(), 0.16)],
zeroline=False
Expand Down
28 changes: 28 additions & 0 deletions environment_cpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: PCI-NKO
channels:
- defaults
- conda-forge
- pytorch
dependencies:
- python=3.12
- python-dotenv
- pandas
- plotly
- transformers
- torch
- optuna
- jupyterlab
- scikit-learn
- matplotlib
- seaborn
- nltk
- spacy
- tqdm
- pip:
- datasets
- evaluate
- openai
- langchain
- sentence-transformers
- python-docx
# Add any additional pip packages if necessary
29 changes: 29 additions & 0 deletions environment_cuda.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PCI-NKO-CUDA
channels:
- defaults
- conda-forge
- pytorch
dependencies:
- python=3.12
- python-dotenv
- pandas
- plotly
- transformers
- torch
- cudatoolkit=12.1 # Please change to your CUDA version
- optuna
- jupyterlab
- scikit-learn
- matplotlib
- seaborn
- nltk
- spacy
- tqdm
- pip:
- datasets
- evaluate
- openai
- langchain
- sentence-transformers
- python-docx
# Add any additional pip packages if necessary
Loading

0 comments on commit b2d0b03

Please sign in to comment.