Skip to content
Merged
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion DashAI/back/exploration/explorers/density_heatmap.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
from DashAI.back.dependencies.database.models import Explorer, Notebook
from DashAI.back.exploration.base_explorer import BaseExplorerSchema
from DashAI.back.exploration.relationship_explorer import RelationshipExplorer
from DashAI.back.types.categorical import Categorical
from DashAI.back.types.value_types import Float, Integer

if TYPE_CHECKING:
from pathlib import Path
Expand Down Expand Up @@ -99,7 +101,7 @@ class DensityHeatmapExplorer(RelationshipExplorer):

SCHEMA = DensityHeatmapSchema
metadata: Dict[str, Any] = {
"allowed_types": [],
"allowed_types": [Float, Integer, Categorical],
"allowed_dtypes": [],
"input_cardinality": {"exact": 2},
}
Expand Down
4 changes: 3 additions & 1 deletion DashAI/back/exploration/explorers/histogram_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
from DashAI.back.dependencies.database.models import Explorer, Notebook
from DashAI.back.exploration.base_explorer import BaseExplorerSchema
from DashAI.back.exploration.distribution_explorer import DistributionExplorer
from DashAI.back.types.categorical import Categorical
from DashAI.back.types.value_types import Float, Integer

if TYPE_CHECKING:
from pathlib import Path
Expand Down Expand Up @@ -183,7 +185,7 @@ class HistogramPlotExplorer(DistributionExplorer):

SCHEMA = HistogramPlotSchema
metadata: Dict[str, Any] = {
"allowed_types": [],
"allowed_types": [Float, Integer, Categorical],
"allowed_dtypes": [],
"input_cardinality": {"exact": 1},
}
Expand Down
Loading