Mercurial > hg > segmentation
changeset 10:6d1c6639f5db
notebook
author | mitian |
---|---|
date | Thu, 14 May 2015 18:01:00 +0100 |
parents | 65f3c67196e1 |
children | 915c849b17ea |
files | SegEval.py notebook/detection-plot.ipynb |
diffstat | 2 files changed, 38 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/SegEval.py Mon May 11 17:30:25 2015 +0100 +++ b/SegEval.py Thu May 14 18:01:00 2015 +0100 @@ -37,6 +37,7 @@ from utils.RankClustering import rClustering from utils.kmeans import Kmeans from utils.PathTracker import PathTracker +from utils.OnsetPlotProc import onset_plot, plot_on # Load bourdary retrieval utilities import cnmf as cnmf_S @@ -135,6 +136,7 @@ self.cutoff = 0.34 self.medianWin = 7 + if plot_on : onset_plot.reset() def pairwiseF(self, annotation, detection, tolerance=3.0, combine=1.0, idx2time=None): '''Pairwise F measure evaluation of detection rates.'''
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/notebook/detection-plot.ipynb Thu May 14 18:01:00 2015 +0100 @@ -0,0 +1,36 @@ +{ + "metadata": { + "name": "", + "signature": "sha256:c18ab0d9d8119b2fc8c639b66159e1fb450d0a465dbece7484127fdee2904cf5" + }, + "nbformat": 3, + "nbformat_minor": 0, + "worksheets": [ + { + "cells": [ + { + "cell_type": "code", + "collapsed": false, + "input": [ + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "from OnsetPlotProc import onset_plot, plot_on" + ], + "language": "python", + "metadata": {}, + "outputs": [], + "prompt_number": 4 + }, + { + "cell_type": "code", + "collapsed": false, + "input": [], + "language": "python", + "metadata": {}, + "outputs": [] + } + ], + "metadata": {} + } + ] +} \ No newline at end of file