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
63d554e4
Commit
63d554e4
authored
5 years ago
by
dmt
Browse files
Options
Downloads
Patches
Plain Diff
Extend DeconstructionRequest and KnowledgeSearchRequest.
parent
1aae1065
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/shared/request.py
+28
-26
28 additions, 26 deletions
cml/shared/request.py
with
28 additions
and
26 deletions
cml/shared/request.py
+
28
−
26
View file @
63d554e4
from
dataclasses
import
dataclass
from
typing
import
Callable
,
Iterable
from
typing
import
Iterable
from
cml.ports.source_adapters
import
Adapter
from
cml.ports.ml_adapter
import
MachineLearningModel
from
cml.domain.reconstruction
import
Reconstructor
from
cml.domain.data_source
import
DataSource
from
cml.domain.construction
import
Constructor
from
cml.domain.complexity_reduction
import
FeatureSelector
from
cml.domain.deconstruction
import
Deconstructor
from
cml.domain.knowledge
import
KnowledgeDatabase
from
cml.shared.settings
import
(
GeneralSettings
,
PreprocessingSettings
,
BlockProcessingSettings
,
DeconstructionSettings
,
ConstructionSettings
,
FeatureSelectionSettings
,
ReconstructionSettings
)
ReconstructionSettings
)
@dataclass
class
PreprocessRequest
:
source_adapter
:
Adapter
pre_settings
:
PreprocessingSettings
block_settings
:
BlockProcessingSettings
density_estimator
:
MachineLearningModel
relative_extrema
:
Callable
@dataclass
class
KnowledgeSearchRequest
:
constructor
:
Constructor
feature_selector
:
FeatureSelector
reconstructor
:
Reconstructor
deconstructor
:
Deconstructor
data_source
:
DataSource
stdout
:
bool
@dataclass
class
DeconstructionRequest
:
source_adapter
:
Adapter
settings
:
DeconstructionSettings
knowledge_type
:
str
source_adapter
:
object
general_settings
:
GeneralSettings
preprocessing_settings
:
PreprocessingSettings
block_processing_settings
:
BlockProcessingSettings
density_estimator_interface
:
object
relative_extrema_interface
:
object
@dataclass
...
...
@@ -65,3 +49,21 @@ class ReconstructionRequest:
algorithms
:
Iterable
interface
:
type
mode
:
str
@dataclass
class
DeconstructionRequest
:
mode
:
str
source_adapter
:
Adapter
settings
:
DeconstructionSettings
knowledge_database
:
KnowledgeDatabase
=
None
@dataclass
class
KnowledgeSearchRequest
:
constructor
:
Constructor
feature_selector
:
FeatureSelector
reconstructor
:
Reconstructor
deconstructor
:
Deconstructor
stdout
:
bool
parallel
:
bool
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