Test pool
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# https://www.kaggle.com/users/195999/henning-sperr/otto-group-product-classification-challenge/finding-ensamble-weights | |
# | |
import pandas as pd | |
import numpy as np | |
from scipy.optimize import minimize | |
from sklearn.cross_validation import StratifiedShuffleSplit | |
from sklearn.ensemble import RandomForestClassifier | |
from sklearn.linear_model import LogisticRegression | |
from sklearn.metrics import log_loss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 65 coef high pass FIT filter | |
{0.000314457320367001, 0.000246082771761455, 0.000173648765385432, 8.17647432661459e-05, -4.69462991557042e-05, -0.00023125577925895, -0.000490651451019857, -0.000844595757205087, -0.00131174606707259, -0.00190916435735977, -0.00265154501540713, -0.00355048952624091, -0.00461385583010505, -0.00584520812255025, -0.00724338987421478, -0.0088022389677393, -0.0105104592149132, -0.0123516572878592, -0.0143045484574507, -0.0163433286810857, -0.0184382047311525, -0.0205560684177714, -0.0226612957415936, -0.0247166472077677, -0.026684241712912, -0.028526573527739, -0.0302075400505086, -0.0316934472749102, -0.0329539603341354, -0.0339629680427892, -0.034699333010229, -0.0351475025532275, 0.964513495872143, -0.0351475025532275, -0.034699333010229, -0.0339629680427892, -0.0329539603341354, -0.0316934472749102, -0.0302075400505086, -0.028526573527739, -0.026684241712912, -0.0247166472077677, -0.0226612957415936, -0.0205560684177714, -0.0184382047311525, -0.0163433286810857, -0.0143045484574 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3.300102848346e-01, 1.398878423880e-01, 1.132194497611e-01, | |
9.002445847317e-01, 6.085422658149e-01, 8.518126293737e-01, | |
5.995741968635e-02, 9.127218828447e-01, 9.670536222964e-01, | |
7.885252957932e-01, 9.438013259604e-01, 4.711103520537e-01, | |
7.207416746742e-02, 3.924103005297e-01, 2.164608226127e-01, | |
7.716206182694e-01, 7.778030975173e-01, 7.720883558536e-01, | |
5.486793298923e-01, 2.404171128907e-02, 2.857676977065e-01, | |
5.103922893761e-01, 3.809454367284e-01, 8.962845202781e-01, | |
3.443479532840e-01, 5.120892757996e-01, 6.427356016255e-01, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
from scipy.io import loadmat | |
from scipy.signal import lfilter, hamming | |
from scipy.fftpack import fft | |
from scipy.fftpack.realtransforms import dct | |
from scikits.talkbox import segment_axis | |
def trfbank(fs, nfft, lowfreq, linsc, logsc, nlinfilt, nlogfilt): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#import "TRNotificationManager.h" | |
#define GOAL_PRESENTED_KEY @"goalPresentedKey" | |
@implementation TRNotificationManager | |
#pragma mark - UILocalNotification | |
- (void)presentGoalCompletionNotification { | |
if (!self.isGoalNotificationPresentedToday) { | |
UILocalNotification *notification = [[UILocalNotification alloc] init]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tuneR) | |
library(seewave) | |
library(zoo) | |
library(dtt) | |
library(signal) | |
get_index <- function(x, n, cell_size=1024, guard_cells=1, trained_cells=1) { | |
((which(n) + guard_cells + trained_cells) - 1) * cell_size + 1 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-6, 44, -51, 75, -77, 35, -74, 58, -21, 8, -59, -66, 18, -7, -19, 9, -77, -66, -5, 31, -29, -15, -23, 23, -9, 34, 18, -106, 3, -6, -47, 29, 46, -17, 31, 56, -28, 30, 58, 10, -18, -51, -23, 28, -52, 3, -1, 14, 36, -20, -18, -8, -40, -23, 29, -40, 5, 12, 9, -16, 23, -19, -13, -56, -14, 22, -20, 37, -1, 36, -17, 54, -14, -8, 20, -20, 41, -3, 52, 5, 22, -48, 36, 10, -6, 4, -39, 11, -24, -10, 30, 52, 25, 19, 8, 2, -22, -1, 56, 20, -46, 42, -3, -11, -6, -39, 8, -38, 25, 10, 40, 8, 34, 64, 17, 36, -2, 53, -66, 34, 0, -25, 2, -40, -4, -16, 15, -36, 36, -41, -8, 5, -2, 3, -41, -10, 4, 24, -43, -55, -3, -58, -32, -24, -32, 6, 17, 58, -13, 7, -7, 3, 2, 14, 13, -5, 11, 5, 58, 57, 50, 45, 20, 46, 18, 58, 35, -10, 7, -8, -11, -9, 13, -33, -45, -40, -10, -63, -31, -22, -46, -20, -36, -50, -78, -20, -79, -44, -32, -17, -6, -14, -35, 38, -37, -25, -10, -41, 27, 55, -28, 37, 34, -24, 57, 14, 4, 44, -8, 24, 16, -21, 64, -6, 12, 33, 23, 6, 13, 14, -6, 28, 4, 35, 25, 47, 52, 65, 36, 41, 8, -31, 2, -3, 9, -15, -40, 0, -17, -19, -2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
double x[bufferSize] = {2067, 2085, 2065, 2066, 2047, 2067, 2067, 2069, 2066, 2064, 2068, 2066, 2046, 2067, 2062, 2065, 2063, 2063, 2038, 2054, 2065, 2068, 2068, 2067, 2067, 2076, 2067, 2066, 2065, 2064, 2065, 2068, 2068, 2073, 2075, 2071, 2072, 2073, 2074, 2070, 2067, 2068, 2059, 2069, 2073, 2069, 2068, 2070, 2072, 2075, 2075, 2074, 2074, 2086, 2084, 2068, 2074, 2066, 2063, 2056, 2060, 2059, 2063, 2067, 2068, 2064, 2058, 2064, 2062, 2061, 2062, 2065, 2074, 2062, 2058, 2061, 2059, 2034, 2058, 2054, 2059, 2064, 2080, 2072, 2059, 2077, 2058, 2058, 2056, 2056, 2058, 2061, 2060, 2063, 2059, 2056, 2073, 2061, 2058, 2062, 2057, 2058, 2053, 2057, 2051, 2056, 2074, 2061, 2059, 2058, 2051, 2035, 2010, 2014, 2037, 2033, 1984, 1952, 1953, 2000, 2013, 2011, 2003, 1984, 1942, 1906, 1791, 1740, 1714, 1728, 1749, 1761, 1734, 1836, 1934, 1881, 1941, 1990, 2188, 2358, 2114, 1693, 1482, 1345, 2045, 2506, 2579, 2629, 2726, 2866, 2982, 2964, 2876, 2571, 2237, 2129, 2211, 2195, 2048, 1973, 1922, 1816, 1659, 1322, 1246, 1359, 1400 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// main.c | |
// iir | |
// | |
// Created by Mykola Pavlov on 9/9/14. | |
// Copyright (c) 2014 Biomech, Inc. All rights reserved. | |
// | |
#include <stdio.h> |
NewerOlder