This file contains hidden or 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
"""Tree structure and hierarchical divisive algorithm for spectral clustering | |
Used in the paper: | |
@article{Gaidon2014, | |
author = {Gaidon, Adrien and Harchaoui, Zaid and Schmid, Cordelia}, | |
title = {{Activity representation with motion hierarchies}}, | |
journal = {IJCV}, | |
year = {2014} | |
} |
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 hidden or 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
# -*- coding: utf-8 -*- | |
# <nbformat>3</nbformat> | |
# <codecell> | |
import numpy as np | |
import pylab as pl | |
import sklearn.datasets as skdata | |
import multinomial_logistic_regression as mlr |
This file contains hidden or 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
""" | |
Multinomial Logistic Regression (MLR) | |
===================================== | |
Multiclass-classification with the MLR classifier | |
Authors: Adrien Gaidon & Jakob Verbeek | |
""" |
This file contains hidden or 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 | |
""" Video stabilization with OpenCV (>=2.3) and Hugin | |
Adrien Gaidon | |
INRIA - 2012 | |
TODO: add cropping, clean-up and improve doc-strings | |
""" |
This file contains hidden or 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
import numpy as np | |
def regular_multidim_digitize(data, n_bins=3, lbes=None, rbes=None): | |
""" Build a regular grid and assigns each data point to a cell | |
Parameters | |
---------- | |
data: (n_points, n_dims) array, | |
the data that we which to digitize |
This file contains hidden or 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
""" Module to compute projections on the positive simplex or the L1-ball | |
A positive simplex is a set X = { \mathbf{x} | \sum_i x_i = s, x_i \geq 0 } | |
The (unit) L1-ball is the set X = { \mathbf{x} | || x ||_1 \leq 1 } | |
Adrien Gaidon - INRIA - 2011 | |
""" | |
This file contains hidden or 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 | |
import numpy as np | |
import tables | |
# class containing infos to identify a track | |
class Track(tables.IsDescription): | |
id = tables.IntCol() # track ID (should be unique) | |
frame = tables.IntCol() # frame where the current track bounding box was found | |
ulx = tables.IntCol() # upper left corner's x coordinate of the bbox (upper left is origin (0,0) of frame) |