Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
2
2020-045
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
2020-045
2020-045
Commits
3dce13b9
Commit
3dce13b9
authored
Apr 23, 2020
by
Janadi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Training Data Changes
parent
2ed0d124
Pipeline
#969
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
18 deletions
+0
-18
Training_Data/RandomForest.py
Training_Data/RandomForest.py
+0
-18
No files found.
Training_Data/RandomForest.py
deleted
100644 → 0
View file @
2ed0d124
from
sklearn.metrics
import
confusion_matrix
from
sklearn.model_selection
import
train_test_split
import
numpy
as
np
def
print
(
X
,
y
):
print
(
X
,
y
)
# dividing X, y into train and test data
X_train
,
X_test
,
y_train
,
y_test
=
train_test_split
(
X
,
y
,
random_state
=
0
)
print
(
'Training Features Shape:'
,
X_train
.
shape
)
print
(
'Training Labels Shape:'
,
y_train
.
shape
)
print
(
'Testing Features Shape:'
,
X_test
.
shape
)
print
(
'Testing Labels Shape:'
,
y_test
.
shape
)
\ No newline at end of file
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