mirror of
https://github.com/BlackLight/micmon.git
synced 2024-11-12 20:17:15 +01:00
keras.losses.Loss not available on previous versions
This commit is contained in:
parent
a1c8e6bee1
commit
870f7ad6b4
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ class Model:
|
|||
# noinspection PyShadowingNames
|
||||
def __init__(self, layers: Optional[List[Layer]] = None, labels: Optional[List[str]] = None,
|
||||
model: Optional[_Model] = None, optimizer: Union[str, optimizers.Optimizer] = 'adam',
|
||||
loss: Union[str, Union[str, losses.Loss]] = 'sparse_categorical_crossentropy',
|
||||
loss: str = 'sparse_categorical_crossentropy',
|
||||
metrics: List[Union[str, metrics.Metric]] = ('accuracy',),
|
||||
low_freq: int = AudioSegment.default_low_freq,
|
||||
high_freq: int = AudioSegment.default_high_freq):
|
||||
|
|
Loading…
Reference in a new issue