Skip to content

Commit

Permalink
release: version 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
maycuatroi committed Jun 12, 2024
1 parent b857e41 commit 31ec618
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 8 deletions.
55 changes: 48 additions & 7 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,53 @@ Changelog
=========


0.1.2 (2021-08-14)
------------------
- Fix release, README and windows CI. [Bruno Rocha]
- Release: version 0.1.0. [Bruno Rocha]
(unreleased)
------------
- - add metric compute WAPE. [Nguyễn Anh Bình]
- - add metric compute WAPE. [Nguyễn Anh Bình]


0.1.12 (2024-04-17)
-------------------
- Bump version to 0.1.12. [maycuatroi]
- - prune setup.py. [maycuatroi]
- - update code deploy. [maycuatroi]


0.1.11 (2024-04-17)
-------------------
- Bump version to 0.1.11. [maycuatroi]
- Bump version to 0.1.10. [maycuatroi]
- Bump version to 0.1.9. [maycuatroi]
- Bump version to 0.1.8. [maycuatroi]
- Bump version to 0.1.7. [maycuatroi]
- - update code release. [maycuatroi]
- Bump version to 0.1.6. [maycuatroi]
- Bump version to 0.1.5. [maycuatroi]
- Bump version to 0.1.4. [maycuatroi]
- Bump version to 0.1.3. [maycuatroi]
- Bump version to 0.1.2. [maycuatroi]
- Bump version to 0.1.1. [maycuatroi]
- - add Ignore. [Binh Nguyen]
- - Add utils. [Binh Nguyen]
- - Add metrics AUC, Roc curve. [Binh Nguyen]
- - add f1 score metric. [Binh Nguyen]
- - add recall metric. [Binh Nguyen]
- - add recall metric. [Binh Nguyen]
- - Add procision metric. [Binh Nguyen]
- - Fix bug accuracy metric. [Binh Nguyen]
- - Add metric calculate accuracy. [Binh Nguyen]
- - Add metric calculate accuracy. [Binh Nguyen]
- - Skip flake8. [Binh Nguyen]
- - Skip flake8. [Binh Nguyen]
- - fix flake8. [Binh Nguyen]
- - Remove un-used file. [Binh Nguyen]
- - Update docs. [Binh Nguyen]
- - update typing - update package name. [Binh Nguyen]
- - remove wf. [Binh Nguyen]
- - remove wf. [Binh Nguyen]
- - First commit. [Binh Nguyen]
- ✅ Ready to clone and code. [maycuatroi]
- Initial commit. [Nguyễn Anh Bình]


0.1.0 (2021-08-14)
------------------
- Add release command. [Bruno Rocha]
2 changes: 1 addition & 1 deletion evo_science/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.12

28 changes: 28 additions & 0 deletions examples/check-wape.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
from evo_science.entities.metrics import WAPE

if __name__ == '__main__':
import pandas as pd
import numpy as np

# Assuming the WAPE metric is in a module named metrics.py

# Create a sample DataFrame with true values and predicted values
data = {
'y_true': [100, 150, 200, 250, 300],
'y_pred': [110, 140, 190, 260, 310]
}

df = pd.DataFrame(data)

# Convert DataFrame columns to numpy arrays
y_true = df['y_true'].values
y_pred = df['y_pred'].values

# Initialize WAPE metric
wape_metric = WAPE()

# Calculate WAPE
wape_value = wape_metric._calculate_np(y_true, y_pred)

# Print the result
print(f"WAPE: {wape_value:.2f}%")

0 comments on commit 31ec618

Please sign in to comment.