diff --git "a/cds-detection-classification-machine-learning.ipynb" "b/cds-detection-classification-machine-learning.ipynb" new file mode 100644--- /dev/null +++ "b/cds-detection-classification-machine-learning.ipynb" @@ -0,0 +1,3890 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np\n", + "import pandas as pd\n", + "import matplotlib.pyplot as plt \n", + "import seaborn as sns\n", + "import os, re, warnings\n", + "\n", + "warnings.filterwarnings('ignore')" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "gen_response | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "4511 | \n", + "My husband and I have been married for over a ... | \n", + "I thought that he displayed traits of honor, l... | \n", + "Labeling | \n", + "NaN | \n", + "no distortion | \n", + "
| 1 | \n", + "4523 | \n", + "I’ve been having problems for a while. I am hi... | \n", + "I am highly disorganized, I’m concerned with b... | \n", + "Labeling | \n", + "Mental filter | \n", + "I keep burying the issue in fear that treatmen... | \n", + "
| 2 | \n", + "4512 | \n", + "I don’t know how to recover from my husband’s ... | \n", + "I attributed his behavior to stress – he owned... | \n", + "Mind Reading | \n", + "NaN | \n", + "I don’t know how to recover from my husband’s ... | \n", + "
| 3 | \n", + "4521 | \n", + "I have always suffered from performance anxiet... | \n", + "During this time I was recruited to many great... | \n", + "Fortune-telling | \n", + "NaN | \n", + "but was scared to take them and instead starte... | \n", + "
| 4 | \n", + "4510 | \n", + "I have been with my fiancé for two years now.... | \n", + "I felt like the response was totally irrationa... | \n", + "Magnification | \n", + "NaN | \n", + "to have my future mother in-law blatantly not ... | \n", + "
| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "Question | \n", + "tmp | \n", + "
|---|---|---|---|---|---|---|---|
| count | \n", + "2530.000000 | \n", + "2530 | \n", + "1597 | \n", + "2530 | \n", + "416 | \n", + "2530 | \n", + "1597.0 | \n", + "
| unique | \n", + "NaN | \n", + "2529 | \n", + "1590 | \n", + "11 | \n", + "10 | \n", + "1 | \n", + "759.0 | \n", + "
| top | \n", + "NaN | \n", + "I grew up in a upper middle class family. I wa... | \n", + "I feel as if moving on to higher education wil... | \n", + "No Distortion | \n", + "Fortune-telling | \n", + "What is the distorted part? | \n", + "-1.0 | \n", + "
| freq | \n", + "NaN | \n", + "2 | \n", + "2 | \n", + "933 | \n", + "67 | \n", + "2530 | \n", + "242.0 | \n", + "
| mean | \n", + "1496.877075 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| std | \n", + "1153.563554 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| min | \n", + "0.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| 25% | \n", + "632.250000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| 50% | \n", + "1281.500000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| 75% | \n", + "2016.750000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| max | \n", + "4701.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| \n", + " | distortion | \n", + "question | \n", + "context | \n", + "answers | \n", + "predict | \n", + "
|---|---|---|---|---|---|
| 0 | \n", + "Personalization | \n", + "What is the distorted part? | \n", + "Hello, I have a beautiful,smart,outgoing and a... | \n", + "{'text': ['The voice are always fimilar (someo... | \n", + "The voice are always fimilar (someone she know... | \n", + "
| 1 | \n", + "Labeling | \n", + "What is the distorted part? | \n", + "Since I was about 16 years old I’ve had these ... | \n", + "{'text': ['I feel trapped inside my disgusting... | \n", + "I feel trapped inside my disgusting self and l... | \n", + "
| 2 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "So I’ve been dating on and off this guy for a... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 3 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "My parents got divorced in 2004. My mother has... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 4 | \n", + "Fortune-telling | \n", + "What is the distorted part? | \n", + "I don’t really know how to explain the situati... | \n", + "{'text': ['I refused to go because I didn’t kn... | \n", + "I refused to go because I didn’t know if it wa... | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 2525 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "I’m a 21 year old female. I spent most of my l... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 2526 | \n", + "Overgeneralization | \n", + "What is the distorted part? | \n", + "I am 21 female and have not had any friends fo... | \n", + "{'text': ['Now I am at university my peers aro... | \n", + "Now I am at university my peers around me all ... | \n", + "
| 2527 | \n", + "Mental filter | \n", + "What is the distorted part? | \n", + "From the U.S.: My brother is 19 years old and ... | \n", + "{'text': ['He claims he’s severely depressed a... | \n", + "He claims he’s severely depressed and has outb... | \n", + "
| 2528 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "From the U.S.: I am a 21 year old woman who ha... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 2529 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "I recently moved out on my ex-roommate because... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
2530 rows × 5 columns
\n", + "| \n", + " | distortion | \n", + "question | \n", + "context | \n", + "answers | \n", + "predict | \n", + "
|---|---|---|---|---|---|
| 0 | \n", + "Personalization | \n", + "What is the distorted part? | \n", + "Hello, I have a beautiful,smart,outgoing and a... | \n", + "{'text': ['The voice are always fimilar (someo... | \n", + "The voice are always fimilar (someone she know... | \n", + "
| 1 | \n", + "Labeling | \n", + "What is the distorted part? | \n", + "Since I was about 16 years old I’ve had these ... | \n", + "{'text': ['I feel trapped inside my disgusting... | \n", + "I feel trapped inside my disgusting self and l... | \n", + "
| 2 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "So I’ve been dating on and off this guy for a... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 3 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "My parents got divorced in 2004. My mother has... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 4 | \n", + "Fortune-telling | \n", + "What is the distorted part? | \n", + "I don’t really know how to explain the situati... | \n", + "{'text': ['I refused to go because I didn’t kn... | \n", + "I refused to go because I didn’t know if it wa... | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 2525 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "I’m a 21 year old female. I spent most of my l... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 2526 | \n", + "Overgeneralization | \n", + "What is the distorted part? | \n", + "I am 21 female and have not had any friends fo... | \n", + "{'text': ['Now I am at university my peers aro... | \n", + "Now I am at university my peers around me all ... | \n", + "
| 2527 | \n", + "Mental filter | \n", + "What is the distorted part? | \n", + "From the U.S.: My brother is 19 years old and ... | \n", + "{'text': ['He claims he’s severely depressed a... | \n", + "He claims he’s severely depressed and has outb... | \n", + "
| 2528 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "From the U.S.: I am a 21 year old woman who ha... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
| 2529 | \n", + "No Distortion | \n", + "What is the distorted part? | \n", + "I recently moved out on my ex-roommate because... | \n", + "{'text': [''], 'answer_start': [-1]} | \n", + "NaN | \n", + "
2530 rows × 5 columns
\n", + "| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "
|---|---|---|---|---|---|
| 0 | \n", + "4500 | \n", + "Hello, I have a beautiful,smart,outgoing and a... | \n", + "The voice are always fimilar (someone she know... | \n", + "Personalization | \n", + "NaN | \n", + "
| 1 | \n", + "4501 | \n", + "Since I was about 16 years old I’ve had these ... | \n", + "I feel trapped inside my disgusting self and l... | \n", + "Labeling | \n", + "Emotional Reasoning | \n", + "
| 2 | \n", + "4502 | \n", + "So I’ve been dating on and off this guy for a... | \n", + "NaN | \n", + "No Distortion | \n", + "NaN | \n", + "
| 3 | \n", + "4503 | \n", + "My parents got divorced in 2004. My mother has... | \n", + "NaN | \n", + "No Distortion | \n", + "NaN | \n", + "
| 4 | \n", + "4504 | \n", + "I don’t really know how to explain the situati... | \n", + "I refused to go because I didn’t know if it wa... | \n", + "Fortune-telling | \n", + "Emotional Reasoning | \n", + "
| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "
|---|---|---|---|---|---|
| 0 | \n", + "4500 | \n", + "Hello, I have a beautiful,smart,outgoing and a... | \n", + "The voice are always fimilar (someone she know... | \n", + "Personalization | \n", + "NaN | \n", + "
| 1 | \n", + "4501 | \n", + "Since I was about 16 years old I’ve had these ... | \n", + "I feel trapped inside my disgusting self and l... | \n", + "Labeling | \n", + "Emotional Reasoning | \n", + "
| 4 | \n", + "4504 | \n", + "I don’t really know how to explain the situati... | \n", + "I refused to go because I didn’t know if it wa... | \n", + "Fortune-telling | \n", + "Emotional Reasoning | \n", + "
| 9 | \n", + "4510 | \n", + "I have been with my fiancé for two years now.... | \n", + "I felt like the response was totally irrationa... | \n", + "Magnification | \n", + "NaN | \n", + "
| 10 | \n", + "4511 | \n", + "My husband and I have been married for over a ... | \n", + "I thought that he displayed traits of honor, l... | \n", + "Labeling | \n", + "NaN | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 2519 | \n", + "2553 | \n", + "I feel overprotective about my mother because ... | \n", + "Since then, whenever my mother is out alone, I... | \n", + "All-or-nothing thinking | \n", + "Overgeneralization | \n", + "
| 2522 | \n", + "2557 | \n", + "From Lebanon: I am dealing with a big problem!... | \n", + "My family hate him but they didn’t met him at ... | \n", + "Magnification | \n", + "NaN | \n", + "
| 2523 | \n", + "2559 | \n", + "From the U.S.: I am a junior in high school, a... | \n", + "However, I am not happy, at the least only hal... | \n", + "Labeling | \n", + "All-or-nothing thinking | \n", + "
| 2526 | \n", + "2563 | \n", + "I am 21 female and have not had any friends fo... | \n", + "Now I am at university my peers around me all ... | \n", + "Overgeneralization | \n", + "NaN | \n", + "
| 2527 | \n", + "2564 | \n", + "From the U.S.: My brother is 19 years old and ... | \n", + "He claims he’s severely depressed and has outb... | \n", + "Mental filter | \n", + "Mind Reading | \n", + "
1597 rows × 5 columns
\n", + "| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "Predicted_Distorted_Part | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "4500 | \n", + "Hello, I have a beautiful,smart,outgoing and a... | \n", + "The voice are always familiar (someone she kno... | \n", + "Personalization | \n", + "NaN | \n", + "The voice are always familiar (someone she kno... | \n", + "
| 1 | \n", + "4501 | \n", + "Since I was about 16 years old I’ve had these ... | \n", + "I feel trapped inside my disgusting self and l... | \n", + "Labeling | \n", + "Emotional Reasoning | \n", + "I feel trapped inside my disgusting self and l... | \n", + "
| 2 | \n", + "4504 | \n", + "I don’t really know how to explain the situati... | \n", + "I refused to go because I didn’t know if it wa... | \n", + "Fortune-telling | \n", + "Emotional Reasoning | \n", + "I refused to go because I didnt know if it was... | \n", + "
| 3 | \n", + "4510 | \n", + "I have been with my fiancé for two years now. ... | \n", + "I felt like the response was totally irrationa... | \n", + "Magnification | \n", + "NaN | \n", + "I felt like the response was totally irrationa... | \n", + "
| 4 | \n", + "4511 | \n", + "My husband and I have been married for over a ... | \n", + "I thought that he displayed traits of honor, l... | \n", + "Labeling | \n", + "NaN | \n", + "While we were dating, I thought that he displa... | \n", + "
| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "gen_response | \n", + "Dominant Distortion Encoded | \n", + "
|---|---|---|---|---|---|---|---|
| 0 | \n", + "4525 | \n", + "I was born with Attention Deficit Hyperactivit... | \n", + "I was a very difficult child to raise. There w... | \n", + "Overgeneralization | \n", + "Personalization | \n", + "I felt no love whatsoever and would not until ... | \n", + "0 | \n", + "
| 1 | \n", + "4523 | \n", + "I’ve been having problems for a while. I am hi... | \n", + "I am highly disorganized, I’m concerned with b... | \n", + "Labeling | \n", + "Mental filter | \n", + "I’m concerned with being diagnosed with schizo... | \n", + "0 | \n", + "
| 2 | \n", + "4575 | \n", + "I am incredibly jealous in my current relation... | \n", + "I am incredibly jealous in my current relation... | \n", + "Labeling | \n", + "NaN | \n", + "I am incredibly jealous in my current relation... | \n", + "0 | \n", + "
| 3 | \n", + "4540 | \n", + "Plz help. Ok so some times I hear people whist... | \n", + "I always feel like people talk about me and ha... | \n", + "Mind Reading | \n", + "NaN | \n", + "I always feel like people talk about me | \n", + "0 | \n", + "
| 4 | \n", + "4559 | \n", + "Although im sure I know the answer to this, I ... | \n", + "im sure she has a disorder of some sort….she l... | \n", + "Labeling | \n", + "Mind Reading | \n", + "she lies constantly, tells the same story 3 ti... | \n", + "0 | \n", + "
| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "
|---|---|---|---|---|---|
| count | \n", + "2530.000000 | \n", + "2530 | \n", + "1597 | \n", + "2530 | \n", + "416 | \n", + "
| unique | \n", + "NaN | \n", + "2529 | \n", + "1590 | \n", + "11 | \n", + "10 | \n", + "
| top | \n", + "NaN | \n", + "I grew up in a upper middle class family. I wa... | \n", + "I feel as if moving on to higher education wil... | \n", + "No Distortion | \n", + "Fortune-telling | \n", + "
| freq | \n", + "NaN | \n", + "2 | \n", + "2 | \n", + "933 | \n", + "67 | \n", + "
| mean | \n", + "1496.877075 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| std | \n", + "1153.563554 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| min | \n", + "0.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| 25% | \n", + "632.250000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| 50% | \n", + "1281.500000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| 75% | \n", + "2016.750000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| max | \n", + "4701.000000 | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "NaN | \n", + "
| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "gen_response | \n", + "
|---|---|---|---|---|---|---|
| 0 | \n", + "4525 | \n", + "I was born with Attention Deficit Hyperactivit... | \n", + "I was a very difficult child to raise. There w... | \n", + "Overgeneralization | \n", + "Personalization | \n", + "I felt no love whatsoever and would not until ... | \n", + "
| 1 | \n", + "4523 | \n", + "I’ve been having problems for a while. I am hi... | \n", + "I am highly disorganized, I’m concerned with b... | \n", + "Labeling | \n", + "Mental filter | \n", + "I’m concerned with being diagnosed with schizo... | \n", + "
| 2 | \n", + "4575 | \n", + "I am incredibly jealous in my current relation... | \n", + "I am incredibly jealous in my current relation... | \n", + "Labeling | \n", + "NaN | \n", + "I am incredibly jealous in my current relation... | \n", + "
| 3 | \n", + "4540 | \n", + "Plz help. Ok so some times I hear people whist... | \n", + "I always feel like people talk about me and ha... | \n", + "Mind Reading | \n", + "NaN | \n", + "I always feel like people talk about me | \n", + "
| 4 | \n", + "4559 | \n", + "Although im sure I know the answer to this, I ... | \n", + "im sure she has a disorder of some sort….she l... | \n", + "Labeling | \n", + "Mind Reading | \n", + "she lies constantly, tells the same story 3 ti... | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 1592 | \n", + "2536 | \n", + "I met my bipolar boyfriend 6 years ago…we fell... | \n", + "He has been experiencing some mood swings duri... | \n", + "Magnification | \n", + "NaN | \n", + "he broke up with me few days ago saying we don... | \n", + "
| 1593 | \n", + "2557 | \n", + "From Lebanon: I am dealing with a big problem!... | \n", + "My family hate him but they didn’t met him at ... | \n", + "Magnification | \n", + "NaN | \n", + "I tried to talk to them but they think that I’... | \n", + "
| 1594 | \n", + "2519 | \n", + "Back in 6th grade, my best friend and I (both ... | \n", + "But I want this weird arousal to go away, and ... | \n", + "Should statements | \n", + "NaN | \n", + "my future looks pretty good if it wasn’t for t... | \n", + "
| 1595 | \n", + "2549 | \n", + "From the U.S.: I have had anxiety almost all o... | \n", + "I have had anxiety almost all of my life but l... | \n", + "Mental filter | \n", + "NaN | \n", + "I am to the point where I am constantly thinki... | \n", + "
| 1596 | \n", + "2351 | \n", + "I rented out a beautiful flat, but the moment ... | \n", + "I rented out a beautiful flat, but the moment ... | \n", + "Mind Reading | \n", + "NaN | \n", + "she will buy flat in the place where I am curr... | \n", + "
1597 rows × 6 columns
\n", + "| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "
|---|---|---|---|---|---|
| 0 | \n", + "4500 | \n", + "Hello, I have a beautiful,smart,outgoing and a... | \n", + "The voice are always fimilar (someone she know... | \n", + "Personalization | \n", + "NaN | \n", + "
| 1 | \n", + "4501 | \n", + "Since I was about 16 years old I’ve had these ... | \n", + "I feel trapped inside my disgusting self and l... | \n", + "Labeling | \n", + "Emotional Reasoning | \n", + "
| 4 | \n", + "4504 | \n", + "I don’t really know how to explain the situati... | \n", + "I refused to go because I didn’t know if it wa... | \n", + "Fortune-telling | \n", + "Emotional Reasoning | \n", + "
| 9 | \n", + "4510 | \n", + "I have been with my fiancé for two years now.... | \n", + "I felt like the response was totally irrationa... | \n", + "Magnification | \n", + "NaN | \n", + "
| 10 | \n", + "4511 | \n", + "My husband and I have been married for over a ... | \n", + "I thought that he displayed traits of honor, l... | \n", + "Labeling | \n", + "NaN | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 2519 | \n", + "2553 | \n", + "I feel overprotective about my mother because ... | \n", + "Since then, whenever my mother is out alone, I... | \n", + "All-or-nothing thinking | \n", + "Overgeneralization | \n", + "
| 2522 | \n", + "2557 | \n", + "From Lebanon: I am dealing with a big problem!... | \n", + "My family hate him but they didn’t met him at ... | \n", + "Magnification | \n", + "NaN | \n", + "
| 2523 | \n", + "2559 | \n", + "From the U.S.: I am a junior in high school, a... | \n", + "However, I am not happy, at the least only hal... | \n", + "Labeling | \n", + "All-or-nothing thinking | \n", + "
| 2526 | \n", + "2563 | \n", + "I am 21 female and have not had any friends fo... | \n", + "Now I am at university my peers around me all ... | \n", + "Overgeneralization | \n", + "NaN | \n", + "
| 2527 | \n", + "2564 | \n", + "From the U.S.: My brother is 19 years old and ... | \n", + "He claims he’s severely depressed and has outb... | \n", + "Mental filter | \n", + "Mind Reading | \n", + "
1597 rows × 5 columns
\n", + "| \n", + " | Id_Number | \n", + "Patient Question | \n", + "Distorted part | \n", + "Dominant Distortion | \n", + "Secondary Distortion (Optional) | \n", + "gen_response | \n", + "cleaned | \n", + "
|---|---|---|---|---|---|---|---|
| 0 | \n", + "4511 | \n", + "My husband and I have been married for over a ... | \n", + "I thought that he displayed traits of honor, l... | \n", + "Labeling | \n", + "NaN | \n", + "no distortion | \n", + "no distortion | \n", + "
| 1 | \n", + "4523 | \n", + "I’ve been having problems for a while. I am hi... | \n", + "I am highly disorganized, I’m concerned with b... | \n", + "Labeling | \n", + "Mental filter | \n", + "I keep burying the issue in fear that treatmen... | \n", + "i keep burying the issue in fear that treatmen... | \n", + "
| 2 | \n", + "4512 | \n", + "I don’t know how to recover from my husband’s ... | \n", + "I attributed his behavior to stress – he owned... | \n", + "Mind Reading | \n", + "NaN | \n", + "I don’t know how to recover from my husband’s ... | \n", + "i don’t know how to recover from my husband’s ... | \n", + "
| 3 | \n", + "4521 | \n", + "I have always suffered from performance anxiet... | \n", + "During this time I was recruited to many great... | \n", + "Fortune-telling | \n", + "NaN | \n", + "but was scared to take them and instead starte... | \n", + "but was scared to take them and instead starte... | \n", + "
| 4 | \n", + "4510 | \n", + "I have been with my fiancé for two years now.... | \n", + "I felt like the response was totally irrationa... | \n", + "Magnification | \n", + "NaN | \n", + "to have my future mother in-law blatantly not ... | \n", + "to have my future mother in-law blatantly not ... | \n", + "
| ... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "... | \n", + "
| 1592 | \n", + "2513 | \n", + "My spouse and I have been living apart since d... | \n", + "I don’t know what to do, how to start dealing ... | \n", + "Personalization | \n", + "NaN | \n", + "I’m dealing with his addiction, childish fear ... | \n", + "i’m dealing with his addiction, childish fear ... | \n", + "
| 1593 | \n", + "2530 | \n", + "I’ve been dealing with this problem on and off... | \n", + "And at times my derealization gets so bad I fe... | \n", + "Mental filter | \n", + "NaN | \n", + "I’m finally in that “it’s hopeless” stage. | \n", + "i’m finally in that “it’s hopeless” stage. | \n", + "
| 1594 | \n", + "2022 | \n", + "Hello. I am a 15 year old girl. Since I was a ... | \n", + "I was terrified of what people thought about m... | \n", + "Mind Reading | \n", + "NaN | \n", + "I was terrified of what people thought about m... | \n", + "i was terrified of what people thought about m... | \n", + "
| 1595 | \n", + "2532 | \n", + "I experienced three consecutive traumas during... | \n", + "I’m not depressed, I am very happy in general,... | \n", + "Should statements | \n", + "Labeling | \n", + "I feel I am stuck with the emotional maturity ... | \n", + "i feel i am stuck with the emotional maturity ... | \n", + "
| 1596 | \n", + "2531 | \n", + "I am trying to figure out if certain problem I... | \n", + "I thought I could hear the whole bus talking a... | \n", + "Mind Reading | \n", + "Emotional Reasoning | \n", + "I thought I could hear the whole bus talking a... | \n", + "i thought i could hear the whole bus talking a... | \n", + "
1597 rows × 7 columns
\n", + "MLPClassifier()In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
| \n", + " | hidden_layer_sizes | \n", + "(100,) | \n", + "
| \n", + " | activation | \n", + "'relu' | \n", + "
| \n", + " | solver | \n", + "'adam' | \n", + "
| \n", + " | alpha | \n", + "0.0001 | \n", + "
| \n", + " | batch_size | \n", + "'auto' | \n", + "
| \n", + " | learning_rate | \n", + "'constant' | \n", + "
| \n", + " | learning_rate_init | \n", + "0.001 | \n", + "
| \n", + " | power_t | \n", + "0.5 | \n", + "
| \n", + " | max_iter | \n", + "200 | \n", + "
| \n", + " | shuffle | \n", + "True | \n", + "
| \n", + " | random_state | \n", + "None | \n", + "
| \n", + " | tol | \n", + "0.0001 | \n", + "
| \n", + " | verbose | \n", + "False | \n", + "
| \n", + " | warm_start | \n", + "False | \n", + "
| \n", + " | momentum | \n", + "0.9 | \n", + "
| \n", + " | nesterovs_momentum | \n", + "True | \n", + "
| \n", + " | early_stopping | \n", + "False | \n", + "
| \n", + " | validation_fraction | \n", + "0.1 | \n", + "
| \n", + " | beta_1 | \n", + "0.9 | \n", + "
| \n", + " | beta_2 | \n", + "0.999 | \n", + "
| \n", + " | epsilon | \n", + "1e-08 | \n", + "
| \n", + " | n_iter_no_change | \n", + "10 | \n", + "
| \n", + " | max_fun | \n", + "15000 | \n", + "