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
6215e517
Commit
6215e517
authored
5 years ago
by
dmt
Browse files
Options
Downloads
Patches
Plain Diff
Define constructor request and usecase.
parent
2deae7a4
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/shared/request.py
+6
-0
6 additions, 0 deletions
cml/shared/request.py
cml/usecases/query.py
+11
-1
11 additions, 1 deletion
cml/usecases/query.py
with
17 additions
and
1 deletion
cml/shared/request.py
+
6
−
0
View file @
6215e517
...
...
@@ -24,3 +24,9 @@ class KnowledgeSearchRequest:
reconstructor
:
Reconstructor
data_source
:
DataSource
deconstruction_settings
:
DeconstructionSettings
@dataclass
class
CreateConstructorRequest
:
settings
:
ConstructionSettings
ml_models
:
Iterable
This diff is collapsed.
Click to expand it.
cml/usecases/query.py
+
11
−
1
View file @
6215e517
from
cml.usecases.usecase
import
Usecase
from
cml.domain
import
Preprocessor
,
DataSource
,
LearnblockIdentifier
from
cml.domain
import
(
Preprocessor
,
DataSource
,
LearnblockIdentifier
,
Constructor
)
class
PreprocessUsecase
(
Usecase
):
...
...
@@ -13,6 +18,11 @@ class PreprocessUsecase(Usecase):
return
data_source
class
CreateConstructorUsecase
(
Usecase
):
def
process
(
self
,
request
):
return
Constructor
(
request
.
ml_models
,
request
.
settings
)
class
KnowledgeSearchUsecase
(
Usecase
):
def
process
(
self
,
request
):
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