DeepCTR icon indicating copy to clipboard operation
DeepCTR copied to clipboard

Multiclass classfication task

Open licesonw opened this issue 5 years ago • 3 comments

I am trying to apply the CTR models to a multiclass classfication problem.

I have seen it is party implemented in the PredictionLayer class: if task not in ["binary", "multiclass", "regression"]: raise ValueError("task must be binary,multiclass or regression")

However, the 'multiclass' case is not considered in the call method.

licesonw avatar Aug 28 '19 07:08 licesonw

Sorry that the multiclass is not currently supported, the main reason is that some models naturally do not support multiclass classification(such as FM-based models).We need to modify the model according to the specific situation.

shenweichen avatar Aug 29 '19 02:08 shenweichen

Yes that's true, in the publications they only ever use binary classification and regression.Probably because the actual use case is CTR prediction, which usually is binary. Is there anything that keeps us from just extending the output layer to >1 neurons? What do you think?

This would make these models very interesting for other use cases.

licesonw avatar Sep 06 '19 13:09 licesonw

I have the same question

klimentij avatar Dec 14 '19 22:12 klimentij