Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PL Support on raiwidgets #2500

Merged
merged 3 commits into from
Jan 24, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion raiwidgets/raiwidgets/dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,17 @@ def __init__(self, *,
port,
locale,
no_inline_dashboard=False,
is_private_link=False,
**kwargs):
"""Initialize the dashboard."""

if model_data is None or type is None:
raise ValueError("Required parameters not provided")

try:
self._service = FlaskHelper(ip=public_ip, port=port)
self._service = FlaskHelper(ip=public_ip,
port=port,
is_private_link=is_private_link)
except Exception as e:
self._service = None
raise e
Expand Down
7 changes: 6 additions & 1 deletion raiwidgets/raiwidgets/responsibleai_dashboard.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,14 @@ class ResponsibleAIDashboard(Dashboard):
:param cohort_list:
List of cohorts defined by the user for the dashboard.
:type cohort_list: List[Cohort]
:param is_private_link: If the dashboard environment is
a private link AML workspace.
:type is_private_link: bool
"""
def __init__(self, analysis: RAIInsights,
public_ip=None, port=None, locale=None,
cohort_list=None, **kwargs):
cohort_list=None, is_private_link=False,
**kwargs):
self.input = ResponsibleAIDashboardInput(
analysis, cohort_list=cohort_list)

Expand All @@ -43,6 +47,7 @@ def __init__(self, analysis: RAIInsights,
port=port,
locale=locale,
no_inline_dashboard=True,
is_private_link=is_private_link,
**kwargs)

def predict():
Expand Down
Loading