FeatureSpec
待查询特征类。
参数名 |
参数说明 |
参数类型 |
必选/可选 |
默认值 |
取值范围 |
---|---|---|---|---|---|
index_key |
索引键。 |
string |
可选 |
table_name的值 |
不涉及 |
table_name |
表名。 |
string |
可选 |
无 |
表名长度范围:[1, 255] |
access_threshold |
特征准入阈值。 |
int |
可选 |
none |
[-1, MAXINT32) |
eviction_threshold |
特征淘汰阈值。 |
int |
可选 |
none |
[-1, MAXINT32) |
is_timestamp |
是否为时间戳。 |
bool |
可选 |
none |
True,False |
batch_size |
数据集batch的大小。 |
int |
可选 |
none |
[1, MAXINT32) |
faae_coefficient |
特征准入系数。 |
int |
可选 |
1 |
[1, MAXINT32) |
name |
FeatureSpec名称。 |
string |
必选 |
无 |
不涉及 |
使用示例
from mx_rec.core.asc.feature_spec import FeatureSpec feature_spec_list = FeatureSpec("user_ids", table_name="user_table", access_threshold=access_threshold, eviction_threshold=eviction_threshold, faae_coefficient=1)
父主题: 类参考