Skip to content

Commit

Permalink
v1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-matthis committed Jan 11, 2021
1 parent fece89b commit 26d60e6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.0.1

- Implemented `sbibm.get_results` for convenient fetching of benchmarking results


# v1.0.0

- Initial release
2 changes: 1 addition & 1 deletion sbibm/__version__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VERSION = (1, 0, 0)
VERSION = (1, 0, 1)

__version__ = ".".join(map(str, VERSION))
15 changes: 12 additions & 3 deletions sbibm/utils/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,20 @@ def get_float_from_csv(
return np.loadtxt(fh).astype(dtype)


def get_results(dataset: str = "main_paper.csv"):
"""Get results
def get_results(
dataset: str = "main_paper.csv", subfolder: str = "benchmarking_sbi/results/"
) -> pd.DataFrame:
"""Get results from https://github.com/sbi-benchmark/results/
Args:
dataset: Filename for dataset
subfolder: Subfolder in repo
Returns:
Dataframe
"""
df = pd.read_csv(
f"https://raw.githubusercontent.com/sbi-benchmark/benchmarking_sbi/main/results/{dataset}.csv"
f"https://raw.githubusercontent.com/sbi-benchmark/results/main/{subfolder}{dataset}"
)
return df

Expand Down

0 comments on commit 26d60e6

Please sign in to comment.