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
88864054
Commit
88864054
authored
5 years ago
by
dmt
Browse files
Options
Downloads
Patches
Plain Diff
Provide construction api endpoint.
parent
4aada053
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cml/__init__.py
+1
-0
1 addition, 0 deletions
cml/__init__.py
cml/controller/api.py
+8
-2
8 additions, 2 deletions
cml/controller/api.py
with
9 additions
and
2 deletions
cml/__init__.py
+
1
−
0
View file @
88864054
from
cml.controller
import
load_settings
from
cml.controller
import
load_settings
from
cml.controller
import
get_data_source
from
cml.controller
import
get_data_source
from
cml.controller
import
construction
# TODO (dmt): Load default settings automatically.
# TODO (dmt): Load default settings automatically.
This diff is collapsed.
Click to expand it.
cml/controller/api.py
+
8
−
2
View file @
88864054
...
@@ -9,6 +9,7 @@ from cml.usecases.query import (
...
@@ -9,6 +9,7 @@ from cml.usecases.query import (
CreateConstructorUsecase
CreateConstructorUsecase
)
)
from
cml.ports.source_adapters
import
PandasAdapter
from
cml.ports.source_adapters
import
PandasAdapter
from
cml.ports.scikit_adapter
import
ConstructionClusteringMLModel
from
cml.shared.settings
import
Settings
from
cml.shared.settings
import
Settings
from
cml.shared.settings
import
specific_settings_factory
,
read_settings
from
cml.shared.settings
import
specific_settings_factory
,
read_settings
from
cml.shared.request
import
(
from
cml.shared.request
import
(
...
@@ -75,8 +76,13 @@ def get_data_source():
...
@@ -75,8 +76,13 @@ def get_data_source():
return
preprocessing_usecase
.
execute
(
preprocessing_req
)
return
preprocessing_usecase
.
execute
(
preprocessing_req
)
def
construction
():
def
construction
(
*
args
):
pass
ml_models
=
[
ConstructionClusteringMLModel
(
raw_model
)
for
raw_model
in
args
]
construction_settings
=
specific_settings_factory
(
"
construction
"
)
create_constructor_req
=
CreateConstructorRequest
(
construction_settings
,
ml_models
)
create_construction_usecase
=
CreateConstructorUsecase
()
return
create_construction_usecase
.
execute
(
create_constructor_req
)
def
reconstruction
():
def
reconstruction
():
...
...
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