Skip to content

Commit

Permalink
Cron schedule (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
nagireddyakshay committed Apr 21, 2023
1 parent 71c5ad0 commit 989d8cb
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 20 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,16 @@ on:
pull_request:
branches:
- master
schedule:
- cron: '00 12 * * 1' # Runs every Monday at 8:00 AM EST

jobs:
Test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: ["3.7", "3.8", "3.9", "3.10"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
CHANGELOG
=========

-------------------------------------------------------------------------------
April 21, 2023 1.3.3
-------------------------------------------------------------------------------

- Fixed Pandas deprecated function.

-------------------------------------------------------------------------------
Feb 09, 2022 1.3.2
-------------------------------------------------------------------------------
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ print('F1 score is', f1_score.get_score(predictions, labels))

## Installation

Jurity requires **Python 3.6+** and can be installed from PyPI using ``pip install jurity`` or by building from source as shown in [installation instructions](https://fidelity.github.io/jurity/installation.html).
Jurity requires **Python 3.7+** and can be installed from PyPI using ``pip install jurity`` or by building from source as shown in [installation instructions](https://fidelity.github.io/jurity/install.html).

## Support
Please submit bug reports and feature requests as [Issues](https://github.com/fidelity/jurity/issues).
Expand Down
2 changes: 1 addition & 1 deletion docs/_static/documentation_options.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
var DOCUMENTATION_OPTIONS = {
URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'),
VERSION: '1.3.2',
VERSION: '1.3.3',
LANGUAGE: 'None',
COLLAPSE_INDEX: false,
BUILDER: 'html',
Expand Down
2 changes: 1 addition & 1 deletion docs/about_fairness.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>About Algorithmic Fairness &mdash; Jurity 1.3.2 documentation</title>
<title>About Algorithmic Fairness &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/about_reco.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>About Recommenders Metrics &mdash; Jurity 1.3.2 documentation</title>
<title>About Recommenders Metrics &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/api.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jurity Public API &mdash; Jurity 1.3.2 documentation</title>
<title>Jurity Public API &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/genindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Index &mdash; Jurity 1.3.2 documentation</title>
<title>Index &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Jurity: Fairness &amp; Evaluation Library &mdash; Jurity 1.3.2 documentation</title>
<title>Jurity: Fairness &amp; Evaluation Library &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/install.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Installation &mdash; Jurity 1.3.2 documentation</title>
<title>Installation &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/py-modindex.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Python Module Index &mdash; Jurity 1.3.2 documentation</title>
<title>Python Module Index &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/quick.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<meta charset="utf-8" /><meta name="generator" content="Docutils 0.17.1: http://docutils.sourceforge.net/" />

<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Quick Start &mdash; Jurity 1.3.2 documentation</title>
<title>Quick Start &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />
<!--[if lt IE 9]>
Expand Down
2 changes: 1 addition & 1 deletion docs/search.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Search &mdash; Jurity 1.3.2 documentation</title>
<title>Search &mdash; Jurity 1.3.3 documentation</title>
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<link rel="stylesheet" href="_static/css/theme.css" type="text/css" />

Expand Down
2 changes: 1 addition & 1 deletion jurity/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
# Copyright FMR LLC <opensource@fidelity.com>
# SPDX-License-Identifier: Apache-2.0

__version__ = "1.3.2"
__version__ = "1.3.3"
10 changes: 4 additions & 6 deletions jurity/fairness/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,9 @@ def get_all_scores(labels: Union[List, np.ndarray, pd.Series],
if score is None:
score = np.nan
score = np.round(score, 3)
df = df.append({"Metric": instance.name,
"Value": score,
"Lower Bound": instance.lower_bound,
"Ideal Value": instance.ideal_value,
"Upper Bound": instance.upper_bound}, ignore_index=True)
df = pd.concat([df, pd.DataFrame(
[[instance.name, score, instance.ideal_value, instance.lower_bound, instance.upper_bound]],
columns=df.columns)], axis=0, ignore_index=True)

df = df.set_index("Metric")

Expand Down Expand Up @@ -158,7 +156,7 @@ def get_all_scores(predictions: Union[List, np.ndarray, pd.Series],
append_dict["Ideal Value"] = multi_instance.ideal_value
append_dict["Upper Bound"] = multi_instance.upper_bound

df = df.append(append_dict, ignore_index=True)
df = pd.concat([df, pd.DataFrame([append_dict])], ignore_index=True)

df = df.set_index("Metric")
return df

0 comments on commit 989d8cb

Please sign in to comment.