Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@takotab
takotab / fastai_trouble.ipynb
Last active January 30, 2019 08:11
Please do not use this. Follow the steps as descried on the fastai data block docs.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@takotab
takotab / mnist-data-size-example-of-beter-generaization.ipynb
Created November 17, 2018 09:50
MNIST data size example of beter generaization.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@takotab
takotab / to_one_hot.py
Created October 23, 2018 12:04
one hot vector python
import numpy as np
def to_one_hot(target_vector, n_labels = None):
if n_labels is None:
n_labels = len(set(target_vector))
return np.eye(n_labels)[target_vector]