Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
Major Project machine
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
jonathan.poalses
Major Project machine
Commits
51e152d4
Commit
51e152d4
authored
May 18, 2023
by
Jonathan Poalses
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added GNB, KNeighbour, and SVC ML implementations
parent
88812fda
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
36 additions
and
36 deletions
+36
-36
nlp_gnb.ipynb
nlp_gnb.ipynb
+12
-12
nlp_kn.ipynb
nlp_kn.ipynb
+12
-12
nlp_svc.ipynb
nlp_svc.ipynb
+12
-12
No files found.
nlp_gnb.ipynb
View file @
51e152d4
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 12
4
,
"execution_count": 12
8
,
"metadata": {
"metadata": {
"collapsed": true,
"collapsed": true,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.39529
9Z",
"end_time": "2023-05-18T
12:11:19.52363
9Z",
"start_time": "2023-05-18T
02:41:10.386829
Z"
"start_time": "2023-05-18T
12:11:19.519384
Z"
}
}
},
},
"outputs": [],
"outputs": [],
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 12
5
,
"execution_count": 12
9
,
"outputs": [],
"outputs": [],
"source": [
"source": [
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
...
@@ -30,14 +30,14 @@
...
@@ -30,14 +30,14 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.409258
Z",
"end_time": "2023-05-18T
12:11:19.550492
Z",
"start_time": "2023-05-18T
02:41:10.397755
Z"
"start_time": "2023-05-18T
12:11:19.526161
Z"
}
}
}
}
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
26
,
"execution_count": 1
30
,
"outputs": [],
"outputs": [],
"source": [
"source": [
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
...
@@ -45,14 +45,14 @@
...
@@ -45,14 +45,14 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.415818
Z",
"end_time": "2023-05-18T
12:11:19.558891
Z",
"start_time": "2023-05-18T
02:41:10.412071
Z"
"start_time": "2023-05-18T
12:11:19.553282
Z"
}
}
}
}
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 1
27
,
"execution_count": 1
31
,
"outputs": [
"outputs": [
{
{
"name": "stdout",
"name": "stdout",
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.428856
Z",
"end_time": "2023-05-18T
12:11:19.588742
Z",
"start_time": "2023-05-18T
02:41:10.417634
Z"
"start_time": "2023-05-18T
12:11:19.561239
Z"
}
}
}
}
}
}
...
...
nlp_kn.ipynb
View file @
51e152d4
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
76
,
"execution_count":
80
,
"metadata": {
"metadata": {
"collapsed": true,
"collapsed": true,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.336164
Z",
"end_time": "2023-05-18T
12:11:21.691592
Z",
"start_time": "2023-05-18T
02:41:18.331276
Z"
"start_time": "2023-05-18T
12:11:21.688239
Z"
}
}
},
},
"outputs": [],
"outputs": [],
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
77
,
"execution_count":
81
,
"outputs": [],
"outputs": [],
"source": [
"source": [
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
...
@@ -30,14 +30,14 @@
...
@@ -30,14 +30,14 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.353544
Z",
"end_time": "2023-05-18T
12:11:21.723895
Z",
"start_time": "2023-05-18T
02:41:18.33641
1Z"
"start_time": "2023-05-18T
12:11:21.69787
1Z"
}
}
}
}
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
78
,
"execution_count":
82
,
"outputs": [],
"outputs": [],
"source": [
"source": [
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
...
@@ -45,14 +45,14 @@
...
@@ -45,14 +45,14 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.359671
Z",
"end_time": "2023-05-18T
12:11:21.736415
Z",
"start_time": "2023-05-18T
02:41:18.356890
Z"
"start_time": "2023-05-18T
12:11:21.734204
Z"
}
}
}
}
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count":
79
,
"execution_count":
83
,
"outputs": [
"outputs": [
{
{
"name": "stdout",
"name": "stdout",
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.370524
Z",
"end_time": "2023-05-18T
12:11:21.759108
Z",
"start_time": "2023-05-18T
02:41:18.362461
Z"
"start_time": "2023-05-18T
12:11:21.740374
Z"
}
}
}
}
}
}
...
...
nlp_svc.ipynb
View file @
51e152d4
...
@@ -2,12 +2,12 @@
...
@@ -2,12 +2,12 @@
"cells": [
"cells": [
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 46
1
,
"execution_count": 46
9
,
"metadata": {
"metadata": {
"collapsed": true,
"collapsed": true,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.523940
Z",
"end_time": "2023-05-18T
12:11:14.027094
Z",
"start_time": "2023-05-18T
02:41:46.517479
Z"
"start_time": "2023-05-18T
12:11:14.025377
Z"
}
}
},
},
"outputs": [],
"outputs": [],
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 4
62
,
"execution_count": 4
70
,
"outputs": [],
"outputs": [],
"source": [
"source": [
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
...
@@ -30,14 +30,14 @@
...
@@ -30,14 +30,14 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.541875
Z",
"end_time": "2023-05-18T
12:11:14.068427
Z",
"start_time": "2023-05-18T
02:41:46.524547
Z"
"start_time": "2023-05-18T
12:11:14.028784
Z"
}
}
}
}
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 4
63
,
"execution_count": 4
71
,
"outputs": [],
"outputs": [],
"source": [
"source": [
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
...
@@ -45,14 +45,14 @@
...
@@ -45,14 +45,14 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.550473
Z",
"end_time": "2023-05-18T
12:11:14.083705
Z",
"start_time": "2023-05-18T
02:41:46.54475
6Z"
"start_time": "2023-05-18T
12:11:14.07732
6Z"
}
}
}
}
},
},
{
{
"cell_type": "code",
"cell_type": "code",
"execution_count": 4
64
,
"execution_count": 4
72
,
"outputs": [
"outputs": [
{
{
"name": "stdout",
"name": "stdout",
...
@@ -71,8 +71,8 @@
...
@@ -71,8 +71,8 @@
"metadata": {
"metadata": {
"collapsed": false,
"collapsed": false,
"ExecuteTime": {
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.55988
8Z",
"end_time": "2023-05-18T
12:11:14.11426
8Z",
"start_time": "2023-05-18T
02:41:46.551307
Z"
"start_time": "2023-05-18T
12:11:14.092526
Z"
}
}
}
}
}
}
...
...
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