Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# load UEM, references, and system output | |
from pyannote.database.util import load_rttm, load_uem | |
uems = load_uem('references.uem') | |
references = load_rttm('references.rttm') | |
hypotheses = load_rttm('hypotheses.rttm') | |
from pyannote.metrics.diarization import JaccardErrorRate | |
metric = JaccardErrorRate() | |
# compute (and print) JER for each file |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pyannote.pipeline import Pipeline | |
import chocolate | |
class MyPipeline(Pipeline): | |
def __int__(self): | |
super().__init__() | |
self.damping = chocolate.uniform(...) | |
self.preference = chocolate.uniform(...) | |
def __call__(self, item): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
# The MIT License (MIT) | |
# Copyright (c) 2018 CNRS | |
# Permission is hereby granted, free of charge, to any person obtaining a copy | |
# of this software and associated documentation files (the "Software"), to deal | |
# in the Software without restriction, including without limitation the rights |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.legacy import interfaces | |
from keras.optimizers import Optimizer | |
import keras.backend as K | |
class SMORMS3(Optimizer): | |
"""SMORMS3 optimizer. | |
Default parameters follow those provided in the blog post. |
NewerOlder