Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RandomForest
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dasharatha.vamshi
RandomForest
Commits
7273d48b
Commit
7273d48b
authored
Mar 12, 2021
by
dasharatha.vamshi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
py-test
parent
3d6e41b7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
0 deletions
+24
-0
temp/mnt/ilens/ai-jobs/pipe1/default_run_id/ModelFitting/input/random_forest.pkl
...pipe1/default_run_id/ModelFitting/input/random_forest.pkl
+0
-0
test_main.py
test_main.py
+24
-0
No files found.
temp/mnt/ilens/ai-jobs/pipe1/default_run_id/ModelFitting/input/random_forest.pkl
View file @
7273d48b
No preview for this file type
test_main.py
0 → 100644
View file @
7273d48b
from
scripts.common.config_parser
import
config
from
scripts.common.constants
import
ModelObjectConstants
,
ComponentExceptions
import
os
from
main
import
RandomForest
def
test1
():
assert
config
[
'model_name'
]
==
ModelObjectConstants
.
RANDOMFOREST
def
test2
():
obj
=
RandomForest
(
config
[
'model_name'
],
config
[
'component_output_dir'
],
config
)
if
config
[
'model_name'
]
==
ModelObjectConstants
.
RANDOMFOREST
:
val
=
obj
.
random_forest
()
assert
val
==
True
def
test3
():
obj
=
RandomForest
(
config
[
'model_name'
],
config
[
'component_output_dir'
],
config
)
if
config
[
'model_name'
]
==
ModelObjectConstants
.
RANDOMFOREST
:
val
=
obj
.
random_forest
()
if
val
:
x
=
os
.
listdir
(
config
[
'component_output_dir'
])[
0
]
assert
x
==
"random_forest.pkl"
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