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

Disable protected namespace warning #1006

Merged
merged 1 commit into from
Nov 12, 2024
Merged
Changes from all 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
14 changes: 12 additions & 2 deletions ads/aqua/evaluation/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,12 @@
This module contains dataclasses for aqua evaluation.
"""

from typing import Any, Dict, List, Optional

from pydantic import Field
from typing import Any, Dict, List, Optional, Union

from ads.aqua.data import AquaResourceIdentifier
from ads.aqua.config.utils.serializer import Serializable
from ads.aqua.data import AquaResourceIdentifier


class CreateAquaEvaluationDetails(Serializable):
Expand Down Expand Up @@ -87,6 +88,8 @@ class CreateAquaEvaluationDetails(Serializable):

class Config:
extra = "ignore"
protected_namespaces = ()


class AquaEvalReport(Serializable):
evaluation_id: str = ""
Expand All @@ -95,6 +98,7 @@ class AquaEvalReport(Serializable):
class Config:
extra = "ignore"


class AquaEvalParams(Serializable):
shape: str = ""
dataset_path: str = ""
Expand All @@ -103,6 +107,7 @@ class AquaEvalParams(Serializable):
class Config:
extra = "allow"


class AquaEvalMetric(Serializable):
key: str
name: str
Expand All @@ -111,6 +116,7 @@ class AquaEvalMetric(Serializable):
class Config:
extra = "ignore"


class AquaEvalMetricSummary(Serializable):
metric: str = ""
score: str = ""
Expand All @@ -119,6 +125,7 @@ class AquaEvalMetricSummary(Serializable):
class Config:
extra = "ignore"


class AquaEvalMetrics(Serializable):
id: str
report: str
Expand All @@ -128,6 +135,7 @@ class AquaEvalMetrics(Serializable):
class Config:
extra = "ignore"


class AquaEvaluationCommands(Serializable):
evaluation_id: str
evaluation_target_id: str
Expand All @@ -139,6 +147,7 @@ class AquaEvaluationCommands(Serializable):
class Config:
extra = "ignore"


class AquaEvaluationSummary(Serializable):
"""Represents a summary of Aqua evalution."""

Expand All @@ -157,6 +166,7 @@ class AquaEvaluationSummary(Serializable):
class Config:
extra = "ignore"


class AquaEvaluationDetail(AquaEvaluationSummary):
"""Represents a details of Aqua evalution."""

Expand Down