Skip to content

Commit

Permalink
Merge pull request #38 from khalil-research/main
Browse files Browse the repository at this point in the history
Typo
  • Loading branch information
LucasBoTang authored Jun 14, 2024
2 parents c3c0aec + 317a197 commit 0261692
Show file tree
Hide file tree
Showing 8 changed files with 5,570 additions and 2,276 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ The official ``PyEPO`` docs can be found at [https://khalil-research.github.io/P
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/khalil-research/PyEPO/blob/main/notebooks/03%20Training%20and%20Testing.ipynb)**03 Training and Testing:** Train and test different approaches
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/khalil-research/PyEPO/blob/main/notebooks/04%202D%20knapsack%20Solution%20Visualization.ipynb)**04 2D knapsack Solution Visualization:** Visualize solutions for knapsack problem
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/khalil-research/PyEPO/blob/main/notebooks/05%20Warcraft%20Shortest%20Path.ipynb)**05 Warcraft Shortest Path:** Use the Warcraft terrains dateset to train shortest path
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/khalil-research/PyEPO/blob/main/notebooks/06%20kNN%20Robust%20Losses.ipynb)**06 kNN Robust Losses:** Use the optDatasetKNN for robust losses
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/khalil-research/PyEPO/blob/main/notebooks/06%20Real-World%20Energy%20Scheduling.ipynb)**06 Real-World Energy Scheduling:** Apply PyEPO to real energy data
- [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/khalil-research/PyEPO/blob/main/notebooks/07%20kNN%20Robust%20Losses.ipynb)**07 kNN Robust Losses:** Use the optDatasetKNN for robust losses


## Experiments
Expand Down
2 changes: 1 addition & 1 deletion docs/source/content/examples/function.rst
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ Adaptive Implicit Maximum Likelihood Estimator (AI-MLE) [#f8]_ use the adaptive
import pyepo
aimle = pyepo.func.implicitMLE(optmodel, n_samples=10, sigma=1.0, processes=2)
aimle = pyepo.func.adaptiveImplicitMLE(optmodel, n_samples=10, sigma=1.0, processes=2)
Expand Down
339 changes: 170 additions & 169 deletions notebooks/03 Training and Testing.ipynb

Large diffs are not rendered by default.

195 changes: 110 additions & 85 deletions notebooks/04 2D knapsack Solution Visualization.ipynb

Large diffs are not rendered by default.

3,292 changes: 3,292 additions & 0 deletions notebooks/06 Real-World Energy Scheduling.ipynb

Large diffs are not rendered by default.

2,019 changes: 0 additions & 2,019 deletions notebooks/06 kNN Robust Losses.ipynb

This file was deleted.

1,994 changes: 1,994 additions & 0 deletions notebooks/07 kNN Robust Losses.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion pkg/pyepo/model/grb/portfolio.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ def _getRiskLevel(self, gamma):
Returns:
float: risk level
"""
risk_level = gamma * np.mean(self.cov)
risk_level = gamma * np.mean(self.covariance)
return risk_level

def _getModel(self):
Expand Down

0 comments on commit 0261692

Please sign in to comment.