FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
e6data-python-connector/MLPipeline_test.py at dataframeForML · e6data/e6data-python-connector · GitHub
e6data
/
e6data-python-connector
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
32
Code
Issues
0
Pull requests
8
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
e6data-python-connector
/
MLPipeline_test.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
38 lines (30 loc) · 1.14 KB
Breadcrumbs
e6data-python-connector
/
MLPipeline_test.py
Copy path
File metadata and controls
38 lines (30 loc) · 1.14 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
from
unittest
import
TestCase
from
e6data_python_connector
import
Connection
import
logging
logging
.
getLogger
(
__name__
)
logging
.
basicConfig
(
level
=
logging
.
DEBUG
)
class
TestDataFrame
(
TestCase
):
def
setUp
(
self
)
->
None
:
self
.
_host
=
"localhost"
self
.
_catalog
=
"demogluecatalog"
self
.
_database
=
"ml_expts"
logging
.
debug
(
'Trying to connect to engine'
)
self
.
e6x_connection
=
Connection
(
host
=
self
.
_host
,
port
=
9001
,
username
=
'sweta@e6x.io'
,
password
=
'Dummy@123'
,
database
=
self
.
_database
,
catalog
=
self
.
_catalog
)
logging
.
debug
(
'Successfully connect to engine.'
)
def
disconnect
(
self
):
self
.
e6x_connection
.
close
()
self
.
assertFalse
(
self
.
e6x_connection
.
check_connection
())
def
tearDown
(
self
)
->
None
:
self
.
disconnect
()
def
test_mlpipeline
(
self
):
self
.
_mlPipeline
=
self
.
createMLPipeline
()
self
.
_mlPipeline
.
train_linear_model
(
"select * from ml_expts.boston_housing"
)
self
.
_mlPipeline
.
train_linear_model
(
"select * from ml_expts.boston_housing"
)
self
.
_mlPipeline
.
execute
()
Back
|
FazBrowse Home
|
New Git URL