Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
N
NLP-Project
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
almohanad.hafez
NLP-Project
Commits
d238e02f
Commit
d238e02f
authored
Nov 02, 2024
by
Almouhannad Hafez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(2) Add train accuracy
parent
3f1886ba
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
2.Basic_Morphological_Analyzer.ipynb
2.Basic_Morphological_Analyzer.ipynb
+11
-3
No files found.
2.Basic_Morphological_Analyzer.ipynb
View file @
d238e02f
...
...
@@ -680,14 +680,22 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Accuracy: 0.9199134199134199\n"
"Train Accuracy: 0.9942112879884226\n",
"Test Accuracy: 0.9199134199134199\n"
]
}
],
"source": [
"# training set\n",
"y_train_pred = classifier.predict(X_train)\n",
"train_accuracy = accuracy_score(y_train, y_train_pred)\n",
"\n",
"# test set\n",
"y_pred = classifier.predict(X_test)\n",
"accuracy = accuracy_score(y_test, y_pred)\n",
"print(f'Accuracy: {accuracy}')"
"test_accuracy = accuracy_score(y_test, y_pred)\n",
"\n",
"print(f'Train Accuracy: {train_accuracy}')\n",
"print(f'Test Accuracy: {test_accuracy}')"
]
},
{
...
...
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