extract weighting function
This commit is contained in:
@@ -1,8 +1,17 @@
|
||||
from collections import namedtuple
|
||||
|
||||
from keras.models import Model
|
||||
|
||||
from . import networks
|
||||
from .metrics import *
|
||||
|
||||
NetworkParameters = namedtuple("NetworkParameters", [
|
||||
"type", "flow_features", "window_size", "domain_length", "output",
|
||||
"embedding_size",
|
||||
"domain_filter", "domain_kernel", "domain_dense", "domain_dropout",
|
||||
"main_filter", "main_kernel", "main_dense", "main_dropout",
|
||||
])
|
||||
|
||||
|
||||
def create_model(model, output_type):
|
||||
if output_type == "both":
|
||||
@@ -14,6 +23,7 @@ def create_model(model, output_type):
|
||||
|
||||
|
||||
def get_models_by_params(params: dict):
|
||||
K.clear_session()
|
||||
# decomposing param section
|
||||
# mainly embedding model
|
||||
network_type = params.get("type")
|
||||
|
Reference in New Issue
Block a user