Skip to content

Instantly share code, notes, and snippets.

View cadrev's full-sized avatar

Felan Carlo Garcia cadrev

View GitHub Profile
@cadrev
cadrev / 123 datasets.csv
Created December 16, 2015 14:19 — forked from octaviomtz/123 datasets.csv
123 machine learning databases
Problem File Name Relation Name nRows TestMethod nTrain nTest nVars nTargets
abalone/abalone.arff abalone 4177 test-set cross-validation 4077 100 8 3
acute-inflammation/acute-inflammation.arff acute-inflammation 120 leave-one-out cross-validation 119 100 6 2
acute-nephritis/acute-nephritis.arff acute-nephritis 120 leave-one-out cross-validation 119 100 6 2
adult/adult_train.arff adult 32561 test-set cross-validation 32461 100 14 2
annealing/annealing_train.arff annealing 798 test-set cross-validation 698 100 31 5
arrhythmia/arrhythmia.arff arrhythmia 452 leave-one-out cross-validation 451 100 262 13
audiology-std/con_patrons_repetidos/audiology-std_train.arff audiology-std 194 leave-one-out cross-validation 193 100 59 18
audiology-std/audiology-std_train.arff audiology-std 171 leave-one-out cross-validation 170 100 59 18
balance-scale/balance-scale.arff balance-scale 625 test-set cross-validation 525 100 4 3
@cadrev
cadrev / songs.ipynb
Created December 16, 2015 14:10 — forked from carlward/songs.ipynb
Songs from API
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.
@cadrev
cadrev / cassandra database
Created December 8, 2015 09:34
cassandra test for projects
CREATE KEYSPACE demo
WITH REPLICATION = {'class' : 'SimpleStrategy', 'replication_factor': 1};
USE demo;
CREATE TABLE tweets (
id bigint PRIMARY KEY,
user TEXT,
body TEXT,
time TIMESTAMP,
lucene TEXT
);
@cadrev
cadrev / raspberry pi config.txt
Last active November 15, 2015 05:14
Solution to RPi 2 eth0 doesn't exist
sudo rm /etc/udev/rules.d/70-persistent-net.rules
change hostname:
sudo nano /etc/hosts
sudo nano /etc/hostname
change to static
iface eth0 inet static
address 192.168.254.**
/*
Serial Event example
When new serial data arrives, this sketch adds it to a String.
When a newline is received, the loop prints the string and
clears it.
A good test for this is to try it with a GPS receiver
that sends out NMEA 0183 sentences.
@cadrev
cadrev / waveform.py
Created October 30, 2015 16:07 — forked from mixxorz/waveform.py
Generate waveform images from audio files
# Requires pydub (with ffmpeg) and Pillow
#
# Usage: python waveform.py <audio_file>
import sys
from pydub import AudioSegment
from PIL import Image, ImageDraw
@cadrev
cadrev / gist:fe766c8ec5ec40ec8a9c
Created September 24, 2015 14:44 — forked from entaroadun/gist:1653794
Recommendation and Ratings Public Data Sets For Machine Learning

Movies Recommendation:

Music Recommendation: