Skip to content
Snippets Groups Projects
Commit 9020f68f authored by dmt's avatar dmt
Browse files

Depending on user input, instantiate conceptual or procedural constructor.

parent d9f3c1a4
No related branches found
No related tags found
No related merge requests found
......@@ -86,9 +86,20 @@ def get_data_source():
return preprocessing_usecase.execute(preprocessing_req)
def construction(*args):
ml_models = [ConstructionClusteringMLModel(raw_model) for raw_model in args]
def construction(construct_type, *args, **kwargs):
construction_settings = specific_settings_factory("construction")
construction_settings.construct_type = construct_type
if construct_type == "conceptual":
ml_models = [ConstructionClusteringMLModel(raw_model)
for raw_model in args]
elif construct_type == "procedural":
ml_models = [Autoencoder]
else:
raise Exception("Operation not supported!")
create_constructor_req = CreateConstructorRequest(construction_settings,
ml_models)
create_construction_usecase = CreateConstructorUsecase()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment