Commit a7331000 authored by Marcel Henrik Schubert's avatar Marcel Henrik Schubert
Browse files

added results of version 2

parent 248264fa
[LocalizedFileNames]
Custodio_2021_Stacked_Authorship.pdf=@Custodio_2021_Stacked_Authorship.pdf,0
<?xml version="1.0" encoding="UTF-8"?>
<module type="PYTHON_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="jdk" jdkName="Python 3.8" jdkType="Python SDK" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
<component name="PyDocumentationSettings">
<option name="format" value="PLAIN" />
<option name="myDocStringFormat" value="Plain" />
</component>
<component name="TestRunnerService">
<option name="PROJECT_TEST_RUNNER" value="pytest" />
</component>
</module>
\ No newline at end of file
<component name="InspectionProjectProfileManager">
<settings>
<option name="USE_PROJECT_PROFILE" value="false" />
<version value="1.0" />
</settings>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" project-jdk-name="Python 3.8" project-jdk-type="Python SDK" />
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Scripts.iml" filepath="$PROJECT_DIR$/.idea/Scripts.iml" />
</modules>
</component>
</project>
\ No newline at end of file
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import numy as np\n",
"import scipy as sci\n",
"import pandas as pd\n",
"import os\n",
"import sys\n",
"sys.path.append('..')\n",
"from ML import ml_utils"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.8.3"
}
},
"nbformat": 4,
"nbformat_minor": 4
}
This diff is collapsed.
{
"cells": [],
"metadata": {},
"nbformat": 4,
"nbformat_minor": 4
}
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -7,25 +7,7 @@
"outputs": [],
"source": [
"import pandas as pd\n",
"import numpy as np\n",
"import ndjson\n",
"import jsonlines\n",
"import json\n",
"import pickle\n",
"import os\n",
"import sys\n",
"import random as rd\n",
"import json\n",
"import re, regex\n",
"from joblib import dump, load\n",
"import collections\n",
"import math\n",
"import statistics\n",
"\n",
"from sklearn.preprocessing import LabelEncoder\n",
"from sklearn.linear_model import PassiveAggressiveClassifier, SGDClassifier\n",
"from sklearn.feature_extraction.text import CountVectorizer\n",
"from sklearn.metrics import accuracy_score, precision_score, recall_score, f1_score"
"import numpy as np\n"
]
},
{
......@@ -33,23 +15,7 @@
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"path = '../Data/pan19-celebrity-profiling-training-dataset-2019-01-31/stratified_subsample/org/'\n",
"\n",
"subsets = [500]\n",
"\n",
"classifiers = ['SVM']\n",
"\n",
"vect = ['_count', '']\n",
"\n",
"datafolder = 'split_data'\n",
"\n",
"ml_results = 'ml'\n",
"\n",
"filebeg = 'stratified_subsample_'\n",
"\n",
"labels = ['age', 'gender', 'author']"
]
"source": []
}
],
"metadata": {
......@@ -68,22 +34,9 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
},
"toc": {
"base_numbering": 1,
"nav_menu": {},
"number_sections": true,
"sideBar": true,
"skip_h1_title": false,
"title_cell": "Table of Contents",
"title_sidebar": "Contents",
"toc_cell": false,
"toc_position": {},
"toc_section_display": true,
"toc_window_display": false
"version": "3.8.3"
}
},
"nbformat": 4,
"nbformat_minor": 2
"nbformat_minor": 4
}
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment