ModelInputType
ModelInputType
Examples
```python
# Tabular data model (traditional ML)
model = fdl.Model.from_data(
name=’credit_model’,
source=credit_data,
spec=model_spec,
task=fdl.ModelTask.BINARY_CLASSIFICATION,
input_type=fdl.ModelInputType.TABULAR
)
# Text-based model (NLP)
model = fdl.Model.from_data(
name=’sentiment_model’,
source=text_data,
spec=model_spec,
task=fdl.ModelTask.MULTICLASS_CLASSIFICATION,
input_type=fdl.ModelInputType.TEXT
)
# Mixed data model (multimodal)
model = fdl.Model.from_data(
name=’multimodal_model’,
source=mixed_data,
spec=model_spec,
task=fdl.ModelTask.REGRESSION,
input_type=fdl.ModelInputType.MIXED
## )TABULAR = 'structured'
TEXT = 'text'
MIXED = 'mixed'
Last updated
Was this helpful?