Skip to content

Instantly share code, notes, and snippets.

I may be slow to respond.

Helder Oliveira helderc

I may be slow to respond.
View GitHub Profile
helderc / bibtex.png
Created Jan 5, 2020 — forked from maxogden/bibtex.png
How to make a scientific looking PDF from markdown (with bibliography)
helderc /
Created Sep 24, 2018 — forked from anonymous/
Experiment with soft-threshold cosine to k-means centers feature expansion on MNIST data.
"""Experiment with soft-thresholded k-means feature for MNIST classification
This is experiment is a tentative alternative to approximate kernel expansions
explored on the same dataset by @amueller on this blog post:
Meant to be run with ``%run`` in IPython.
The 1000-dim k-means based feature expansion should yield ~96% test accuracy
helderc /
Created Sep 24, 2018 — forked from amueller/
Comparing Nystroem and Fourier feature based kernel approximation on MNIST
# Standard scientific Python imports
import pylab as pl
import numpy as np
from time import time
# Import datasets, classifiers and performance metrics
from sklearn import datasets, svm, pipeline
from sklearn.kernel_approximation import (RBFSampler,
from sklearn.utils import shuffle
helderc / keyboard
Created Sep 11, 2018
Setup of pt_BR keyboard layout in Kubuntu 18.04
View keyboard
# /etc/default/keyboard
# Consult the keyboard(5) manual page.
helderc /
Created Aug 10, 2018 — forked from wassname/
How to do data augmentation on a keras HDF5Matrix
"""Another way, note this one will load the whole array into memory ."""
from keras.preprocessing.image import ImageDataGenerator
import h5py
from keras.utils.io_utils import HDF5Matrix
# we create two instances with the same arguments
data_gen_args = dict(
helderc /
Created Aug 10, 2018 — forked from etes/
How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

How to setup mount / auto-mount USB Hard Drive on Raspberry Pi

Follow the simple steps in the order mentioned below to have your USB drive mounted on your Raspberry Pi every time you boot it.

These steps are required especially if your are setting up a Samba share, or a 24x7 torrent downloader, or alike where your Raspberry Pi must have your external storage already mounted and ready for access by the services / daemons.

Step 0. Plug in your USB HDD / Drive to Raspberry Pi If you are using a NTFS formatted drive, install the following