alteryx / alteryx/featuretools
Spike: Improve Generics for Return Types in Primitives
- 主要言語
- Python
- スター
- 7.7k
- フォーク
- 915
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
## Problem
- There are certain primitives where the return_type depends on the input_type, such as AddNumeric, MultiplyNumeric, GreaterThan, GreaterThanEqualTo, LessThan
```
input_types = [ColumnSchema(semantic_tags={'numeric'}), ColumnSchema(semantic_tags={'numeric'})]
return_type = ColumnSchema(semantic_tags={'numeric'})
```
- The following situations can happen
- float + float = float
- float + int = float
- int + int = int
- However, since we can't define primitive return types that depend on the input types, this leads to a situation where after calculate_feature_matrix, **we have to re-run inference. This is expensive, should not be necessary.**
## Request
- This spike is to create a design document to possible solutions to this problem.
コントリビューションガイド
評価
この issue はまだ評価されていません。