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
Hide 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 @@
"cells": [
{
"cell_type": "code",
"execution_count": 12
4
,
"execution_count": 12
8
,
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.39529
9Z",
"start_time": "2023-05-18T
02:41:10.386829
Z"
"end_time": "2023-05-18T
12:11:19.52363
9Z",
"start_time": "2023-05-18T
12:11:19.519384
Z"
}
},
"outputs": [],
...
...
@@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 12
5
,
"execution_count": 12
9
,
"outputs": [],
"source": [
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
...
...
@@ -30,14 +30,14 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.409258
Z",
"start_time": "2023-05-18T
02:41:10.397755
Z"
"end_time": "2023-05-18T
12:11:19.550492
Z",
"start_time": "2023-05-18T
12:11:19.526161
Z"
}
}
},
{
"cell_type": "code",
"execution_count": 1
26
,
"execution_count": 1
30
,
"outputs": [],
"source": [
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
...
...
@@ -45,14 +45,14 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.415818
Z",
"start_time": "2023-05-18T
02:41:10.412071
Z"
"end_time": "2023-05-18T
12:11:19.558891
Z",
"start_time": "2023-05-18T
12:11:19.553282
Z"
}
}
},
{
"cell_type": "code",
"execution_count": 1
27
,
"execution_count": 1
31
,
"outputs": [
{
"name": "stdout",
...
...
@@ -71,8 +71,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:10.428856
Z",
"start_time": "2023-05-18T
02:41:10.417634
Z"
"end_time": "2023-05-18T
12:11:19.588742
Z",
"start_time": "2023-05-18T
12:11:19.561239
Z"
}
}
}
...
...
nlp_kn.ipynb
View file @
51e152d4
...
...
@@ -2,12 +2,12 @@
"cells": [
{
"cell_type": "code",
"execution_count":
76
,
"execution_count":
80
,
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.336164
Z",
"start_time": "2023-05-18T
02:41:18.331276
Z"
"end_time": "2023-05-18T
12:11:21.691592
Z",
"start_time": "2023-05-18T
12:11:21.688239
Z"
}
},
"outputs": [],
...
...
@@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count":
77
,
"execution_count":
81
,
"outputs": [],
"source": [
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
...
...
@@ -30,14 +30,14 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.353544
Z",
"start_time": "2023-05-18T
02:41:18.33641
1Z"
"end_time": "2023-05-18T
12:11:21.723895
Z",
"start_time": "2023-05-18T
12:11:21.69787
1Z"
}
}
},
{
"cell_type": "code",
"execution_count":
78
,
"execution_count":
82
,
"outputs": [],
"source": [
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
...
...
@@ -45,14 +45,14 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.359671
Z",
"start_time": "2023-05-18T
02:41:18.356890
Z"
"end_time": "2023-05-18T
12:11:21.736415
Z",
"start_time": "2023-05-18T
12:11:21.734204
Z"
}
}
},
{
"cell_type": "code",
"execution_count":
79
,
"execution_count":
83
,
"outputs": [
{
"name": "stdout",
...
...
@@ -71,8 +71,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:18.370524
Z",
"start_time": "2023-05-18T
02:41:18.362461
Z"
"end_time": "2023-05-18T
12:11:21.759108
Z",
"start_time": "2023-05-18T
12:11:21.740374
Z"
}
}
}
...
...
nlp_svc.ipynb
View file @
51e152d4
...
...
@@ -2,12 +2,12 @@
"cells": [
{
"cell_type": "code",
"execution_count": 46
1
,
"execution_count": 46
9
,
"metadata": {
"collapsed": true,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.523940
Z",
"start_time": "2023-05-18T
02:41:46.517479
Z"
"end_time": "2023-05-18T
12:11:14.027094
Z",
"start_time": "2023-05-18T
12:11:14.025377
Z"
}
},
"outputs": [],
...
...
@@ -21,7 +21,7 @@
},
{
"cell_type": "code",
"execution_count": 4
62
,
"execution_count": 4
70
,
"outputs": [],
"source": [
"data = vectorizer.fit_transform(edn.loads(open(\"sample_data.txt\").read()))\n",
...
...
@@ -30,14 +30,14 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.541875
Z",
"start_time": "2023-05-18T
02:41:46.524547
Z"
"end_time": "2023-05-18T
12:11:14.068427
Z",
"start_time": "2023-05-18T
12:11:14.028784
Z"
}
}
},
{
"cell_type": "code",
"execution_count": 4
63
,
"execution_count": 4
71
,
"outputs": [],
"source": [
"X_train, X_test, y_train, y_test = train_test_split(data, target, test_size=0.2, random_state=42)"
...
...
@@ -45,14 +45,14 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.550473
Z",
"start_time": "2023-05-18T
02:41:46.54475
6Z"
"end_time": "2023-05-18T
12:11:14.083705
Z",
"start_time": "2023-05-18T
12:11:14.07732
6Z"
}
}
},
{
"cell_type": "code",
"execution_count": 4
64
,
"execution_count": 4
72
,
"outputs": [
{
"name": "stdout",
...
...
@@ -71,8 +71,8 @@
"metadata": {
"collapsed": false,
"ExecuteTime": {
"end_time": "2023-05-18T
02:41:46.55988
8Z",
"start_time": "2023-05-18T
02:41:46.551307
Z"
"end_time": "2023-05-18T
12:11:14.11426
8Z",
"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