From 6cd6c510a834a1262c894fda792b51da1ba1b7a4 Mon Sep 17 00:00:00 2001 From: Alex Moreo Date: Wed, 13 Jan 2021 11:56:57 +0100 Subject: [PATCH] adding cc variants anew --- TweetSentQuant/experiments.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/TweetSentQuant/experiments.py b/TweetSentQuant/experiments.py index 94725dc..60e77ec 100644 --- a/TweetSentQuant/experiments.py +++ b/TweetSentQuant/experiments.py @@ -17,10 +17,10 @@ def quantification_models(): return LogisticRegression(max_iter=1000, solver='lbfgs', n_jobs=-1) __C_range = np.logspace(-4, 5, 10) lr_params = {'C': __C_range, 'class_weight': [None, 'balanced']} - #yield 'cc', qp.method.aggregative.CC(newLR()), lr_params - #yield 'acc', qp.method.aggregative.ACC(newLR()), lr_params - #yield 'pcc', qp.method.aggregative.PCC(newLR()), lr_params - #yield 'pacc', qp.method.aggregative.PACC(newLR()), lr_params + yield 'cc', qp.method.aggregative.CC(newLR()), lr_params + yield 'acc', qp.method.aggregative.ACC(newLR()), lr_params + yield 'pcc', qp.method.aggregative.PCC(newLR()), lr_params + yield 'pacc', qp.method.aggregative.PACC(newLR()), lr_params yield 'sld', qp.method.aggregative.EMQ(newLR()), lr_params