__author__ = '<NAME>'
__email__ = '<EMAIL>'

import Swing
from sklearn.preprocessing import Imputer
import matplotlib as mpl
import numpy as np
import pandas as pd
import sys

if __name__ == '__main__':
    file_path = "../../data/dream4/insilico_size10_1_timeseries.tsv"
    gene_start_column = 1
    time_label = "Time"
    separator = "\t"
    gene_end = None

    roll_me = Swing.Swing(file_path, gene_start_column, gene_end, time_label, separator)
    window_size = roll_me.overall_width
    roll_me.remove_blank_rows()
    alpha=0.003
    coefs = roll_me.fit_model(window_size, alpha=alpha)
    np.set_printoptions(suppress=True)
    print "Alpha: ", alpha
    print "Number of nonzero Edges:", np.count_nonzero(coefs)

__author__ = '<NAME>'
__email__ = '<EMAIL>'

import Swing
from sklearn.preprocessing import Imputer
import matplotlib as mpl
import numpy as np
import pandas as pd
import sys

if __name__ == '__main__':
    file_path = "../../data/dream4/insilico_size10_1_timeseries.tsv"
    gene_start_column = 1
    time_label = "Time"
    separator = "\t"
    gene_end = None

    roll_me = Swing.Swing(file_path, gene_start_column, gene_end, time_label, separator)
    window_size = roll_me.overall_width
    roll_me.remove_blank_rows()
    alpha=0.003
    coefs = roll_me.fit_model(window_size, alpha=alpha)
    np.set_printoptions(suppress=True)
    print "Alpha: ", alpha
    print "Number of nonzero Edges:", np.count_nonzero(coefs)
