Skip to content

Instantly share code, notes, and snippets.

View absbin's full-sized avatar
💭
Do not Stop . . .

ABS BIN absbin

💭
Do not Stop . . .
View GitHub Profile
@absbin
absbin / align_signals_crosscorr.ipynb
Created November 9, 2021 08:21 — forked from mdhk/align_signals_crosscorr.ipynb
Cross-correlation signal alignment
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@absbin
absbin / confusion_matrix_pretty_print.py
Created October 23, 2019 16:33 — forked from shaypal5/confusion_matrix_pretty_print.py
Pretty print a confusion matrix with seaborn
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
def print_confusion_matrix(confusion_matrix, class_names, figsize = (10,7), fontsize=14):
"""Prints a confusion matrix, as returned by sklearn.metrics.confusion_matrix, as a heatmap.
Arguments
---------
confusion_matrix: numpy.ndarray
@absbin
absbin / readme.md
Created March 10, 2019 18:03 — forked from flyyufelix/readme.md
Resnet-152 pre-trained model in Keras

ResNet-152 in Keras

This is an Keras implementation of ResNet-152 with ImageNet pre-trained weights. I converted the weights from Caffe provided by the authors of the paper. The implementation supports both Theano and TensorFlow backends. Just in case you are curious about how the conversion is done, you can visit my blog post for more details.

ResNet Paper:

Deep Residual Learning for Image Recognition.
Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun
arXiv:1512.03385