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
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Thu Apr 11 00:02:58 2019 | |
| @author: spandan | |
| """ | |
| # Please only modify the indicated area below! |
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
| #include <vector> | |
| template<typename Out> | |
| void split(std::string& s, char delim, Out result) { | |
| std::stringstream ss(s); | |
| std::string item; | |
| while (std::getline(ss, item, delim)) { | |
| *(result++) = item; |
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
| #include <vector> | |
| #include <numeric> | |
| #include <fstream> | |
| #include <iterator> | |
| #include <algorithm> | |
| template<typename T> | |
| class FindPeaks{ | |
| private: | |
| std::vector<T> m_input_signal; // stores input vector |
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 os | |
| import sys | |
| import glob | |
| import numpy as np | |
| from pandas import DataFrame | |
| import pandas as pd | |
| def load_data_file(): | |
| """reads the names of the files in data folder""" | |
| path = os.getcwd() |
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
| 13 | |
| 0,1 | |
| 0,6 | |
| 0,5 | |
| 2,0 | |
| 2,3 | |
| 5,4 | |
| 6,4 | |
| 6,9 | |
| 7,6 |
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
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Thu Feb 22 17:33:18 2018 | |
| @author: Spandan | |
| """ | |
| from scipy.io import loadmat | |
| import numpy as np |
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
| """ | |
| Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
| BSD License | |
| """ | |
| import numpy as np | |
| # data I/O | |
| data = open('input.txt', 'r').read() # should be simple plain text file | |
| chars = list(set(data)) | |
| data_size, vocab_size = len(data), len(chars) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.