Skip to content

Identify which questions asked on QUORA are duplicated on question that have already been asked. Used performance metric as log loss and trained the model using XGBOOST that brought my log loss to 0.3157.

Notifications You must be signed in to change notification settings

sahildigikar15/Duplicate-Question-Detection

Repository files navigation

DUPLICATE-QUESTION-PREDICTION-IN-QUORA-DATASET

It is a binary classification problem, for a given pair of questions we need to predict if they are duplicate or not.

OBSERVATIONS:

Screenshot (81)

Procedure :

1] Firstly we are combining all the features which we have engineered earlier.
2] Before building a model we are combining both the question1 and question2 in to one dataframe and then adding all the features in to this dataframe.
3] After building dataframe we are splitting into train and test (70-30).
4] Then we are applying tfidfvectorizer on the text data which are combination of question1 and question2.
5] Further we are hstacking both the tfidfvectorizered features with the features which we have engineered.
6] We then build a Logistic regression, Linear SVM and XGBOOST model. XGBOOST implementation gave test logloss of 0.316.
7] Then we are applying tfidf weighted W2V on the text data which are combination of question1 and question2 and by building an XGBOOST model on this text we get test Logloss of 0.3157.

About

Identify which questions asked on QUORA are duplicated on question that have already been asked. Used performance metric as log loss and trained the model using XGBOOST that brought my log loss to 0.3157.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published