Skip to content

Commit

Permalink
Merge pull request #80 from cvs-health/main
Browse files Browse the repository at this point in the history
v0.3.0 updates
  • Loading branch information
dylanbouchard authored Dec 23, 2024
2 parents eff3648 + c5d1429 commit 6a6a026
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -812,7 +812,7 @@
}
],
"source": [
"# View response-level counterfactual disparities\n",
"# View response-level counterfactual disparities. Here we are checking asian-hispanic (last in the loop above) for the purpose of illustration\n",
"pd.DataFrame(result['data']).sort_values(by='Sentiment Bias', ascending=False).head(4)"
]
},
Expand Down Expand Up @@ -1206,9 +1206,9 @@
"uri": "us-docker.pkg.dev/deeplearning-platform-release/gcr.io/workbench-notebooks:m125"
},
"kernelspec": {
"display_name": "langfair-ZgpfWZGz-py3.9",
"display_name": "langchain",
"language": "python",
"name": "python3"
"name": "langchain"
},
"language_info": {
"codemirror_mode": {
Expand All @@ -1220,7 +1220,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.4"
"version": "3.11.10"
}
},
"nbformat": 4,
Expand Down
14 changes: 14 additions & 0 deletions langfair/utils/dataloader.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# Copyright 2024 CVS Health and/or one of its affiliates
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

import importlib.resources as resources
import json
from typing import Optional
Expand Down

0 comments on commit 6a6a026

Please sign in to comment.