Skip to content

Instantly share code, notes, and snippets.

@alexandari
alexandari / basset_sfc_setup.py
Created June 5, 2017 18:33
SFC Layers Example: Basset Model with SFC Layer Setup
#install keras from https://github.com/kundajelab/keras/tree/keras_1
from __future__ import print_function
import keras
import numpy as np
np.random.seed(1)
#build a model
model = keras.models.Sequential()
model.add(keras.layers.convolutional.Convolution1D(input_shape=(1000,4),
nb_filter=300,