Skip to content

Instantly share code, notes, and snippets.

View pppoe's full-sized avatar
🎮
:)

Haoxiang Li pppoe

🎮
:)
View GitHub Profile
@kingspp
kingspp / tensorflow_custom_operation_gradient.py
Last active March 22, 2020 00:15
Custom Operations with Gradients in Tensorflow using PyFunc
# -*- coding: utf-8 -*-
"""
| **@created on:** 11/05/17,
| **@author:** Prathyush SP,
| **@version:** v0.0.1
|
| **Description:**
| DL Module Tests
| **Sphinx Documentation Status:** Complete
|
@pppoe
pppoe / discriminativecov.m
Created December 8, 2013 05:09
[CV] within-class and between-class covariance matrix
function [withincovar, betweencovar] = discriminativecov(X, ids)
arr_ids = int16(ids);
dim = size(X, 2);
num_pts = size(X, 1);
num_class = size(unique(arr_ids), 1);
arr_ids_sets = cell(num_class,1);
arr_ids_count = zeros(num_class,1);
for i = 1:num_class