You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used this site for the first time and i'm sorry that there are some problems with the typesetting. my question is: my 1d-cnn code is quite special and it does not use th code like Sequential() or model. add(). if anyone is interested, I have upload this code below. However, once I want to use the keras_tuner to improve me model i cannot figure out how to tell the code the parameters that i want to optimize. I found many code while they are used Sequential() or model. add() which do not serve as my direct reference. Thank you very much for your help.
You can define it in custom keras.Model class right?
which parameters do you want to tune? because when kernel size and filters are changed the next layer should have appropriate kernel and filters else the tuning would fail
Describe the bug
this is my code:fea_cnt = 24 # number of features
numb = 3 # type of classcification
def build_model(fea_cnt, numb):
K.clear_session()
METRICS = [
keras.metrics.TruePositives(name='tp'),
keras.metrics.FalsePositives(name='fp'),
keras.metrics.TrueNegatives(name='tn'),
keras.metrics.FalseNegatives(name='fn'),
keras.metrics.BinaryAccuracy(name='accuracy'),
keras.metrics.Precision(name='precision'),
keras.metrics.Recall(name='recall'),
keras.metrics.AUC(name='auc'),
keras.metrics.AUC(name='prc', curve='PR'), # precision-recall curve
]
To Reproduce
Expected behavior
Additional context
Would you like to help us fix it?
The text was updated successfully, but these errors were encountered: