Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
Intelligent English Tutor
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
2023-24-027
Intelligent English Tutor
Commits
68170fbf
Commit
68170fbf
authored
Nov 07, 2023
by
Udara Rangika
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dataset loaded
parent
d35ad8fc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
84 additions
and
0 deletions
+84
-0
proficiency-identification.ipynb
proficiency-identification.ipynb
+84
-0
No files found.
proficiency-identification.ipynb
0 → 100644
View file @
68170fbf
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import pickle, os\n",
"import numpy as np\n",
"import pandas as pd\n",
"from collections import defaultdict \n",
"from sklearn.preprocessing import LabelEncoder\n",
"from sklearn.model_selection import train_test_split"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"class_dict = {\n",
" 'Basic' : 0,\n",
" 'Intermediate' : 1,\n",
" 'Advanced' : 2\n",
" }\n",
"\n",
"class_dict_rev = {\n",
" 0 : 'Basic',\n",
" 1 : 'Intermediate',\n",
" 2 : 'Advanced'\n",
" }"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv('data/dataset.csv')\n",
"df.head()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"# Load Data"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"df = pd.read_csv('data/dataset.csv')\n",
"del df['Student_ID']\n",
"\n",
"df['Proficiency_Level'] = df['Proficiency_Level'].map(class_dict)\n",
"\n",
"Y = df['Proficiency_Level'].values\n",
"del df['Proficiency_Level']\n",
"\n",
"X = df.values\n",
"X_train, X_test, y_train, y_test = train_test_split(\n",
" X, \n",
" Y, \n",
" test_size=0.15, \n",
" random_state=42\n",
" )"
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment