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 data manipulation modules | |
import numpy as np | |
import pandas as pd | |
from sklearn.preprocessing import LabelEncoder | |
from sklearn.cross_validation import train_test_split | |
from keras.models import Sequential, load_model #to save , load and persist models | |
from keras.layers import Activation | |
from keras.optimizers import SGD |
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 Tue Nov 21 08:29:57 2017 | |
@author: tp53 | |
""" | |
import pandas as pd | |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Tue Nov 28 12:56:51 2017 | |
@author: tp53 | |
''' | |
''' | |
http://biopython.org/DIST/docs/api/Bio.SeqUtils-module.html |
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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/xeadmin/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
#1. Loop through all the text files in the directory and store contents in a giant list | |
import os, glob | |
path_files_texts = [] | |
path_to_dir_of_path_reports = "/path/to/txt/files" | |
# Loop through all the text files in the directory and store contents in a giant list | |
for file in glob.glob(os.path.join(path_to_dir_of_path_reports, "*.txt")): | |
# Open each file and read its contents into a string | |
with open(file, "r" , encoding='cp1252') as f: |
OlderNewer