【发布时间】:2021-11-09 23:29:09
【问题描述】:
对于 VowpalWabbit - 如何仅为具有连续和分类特征的表格数据的分类特征设置三阶交互,例如如何更改:vw_squared = VWRegressor(loss_function='squared' , interaction = 'abc')
假设 VWRegressor 的输入数据是 pandas 数据框,其中分类特征是市场作为类别类型,例如
'''
df['jobcat']=df['job'].astype('category').cat.codes
df['educationcat']=df['education'].astype('category').cat.codes
df['defaultcat']=df['default'].astype('category').cat.codes
'''
【问题讨论】:
标签: python feature-extraction feature-selection feature-engineering vowpalwabbit