Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Leipzig Machine Learning Group
conML
python
Commits
8d5ce223
Commit
8d5ce223
authored
5 years ago
by
dmt
Browse files
Options
Downloads
Patches
Plain Diff
Define the public user interface.
parent
ef5714f7
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cml/controller/api.py
+66
-0
66 additions, 0 deletions
cml/controller/api.py
with
66 additions
and
0 deletions
cml/controller/api.py
0 → 100644
+
66
−
0
View file @
8d5ce223
"""
Entry point.
"""
from
cml.usecases.query
import
PreprocessUsecase
from
cml.ports.source_adapters
import
PandasAdapter
from
cml.shared.settings
import
Settings
from
cml.shared.settings
import
specific_settings_factory
,
read_settings
from
cml.shared.request
import
PreprocessRequest
__all__
=
(
"
load_settings
"
,
"
get_settings
"
,
"
get_data_source
"
,
"
construction
"
,
"
reconstruction
"
,
"
reconstruction
"
,
"
search_knowledge
"
,
"
visualizer
"
,
"
save_knowledge
"
,
"
load_knowledge
"
)
def
load_settings
(
path
:
str
):
read_settings
(
path
)
def
get_settings
():
return
Settings
def
get_data_source
():
general_settings
=
specific_settings_factory
(
"
general
"
)
preprocessing_settings
=
specific_settings_factory
(
"
preprocessing
"
)
block_processing_settings
=
specific_settings_factory
(
"
block_processing
"
)
source_adapter
=
PandasAdapter
.
read_csv_data
(
general_settings
.
input_file
)
preprocessing_req
=
PreprocessRequest
(
source_adapter
,
preprocessing_settings
,
block_processing_settings
)
preprocessing_usecase
=
PreprocessUsecase
()
return
preprocessing_usecase
.
execute
(
preprocessing_req
)
def
construction
():
pass
def
reconstruction
():
pass
def
search_knowledge
():
pass
def
visualizer
():
pass
def
save_knowledge
():
pass
def
load_knowledge
():
pass
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment