text_plain_output_1.png
import numpy as np

import pandas

dataframe = pandas.read_csv('../input/ecoli.csv', delim_whitespace=True)
dataframe.columns = ['seq_name', 'mcg', 'gvh', 'lip', 'chg', 'aac', 'alm1', 'alm2', 'site']
dataframe = dataframe.drop('seq_name', axis=1)
dataframe.site.replace(('cp', 'im', 'pp', 'imU', 'om', 'omL', 'imL', 'imS'), (1, 0, 0, 0, 0, 0, 0, 0), inplace=True)
dataset = dataframe.values
DataX = np.array(dataset[:, 0:7])
DataY = np.transpose([dataset[:, 7]])

def intialize_parameters(n_x, n_h, n_y):
    np.random.seed(4)
    W1 = np.random.randn(n_h, n_x)
    W2 = np.random.randn(n_y, n_h)
    parameters = {'W1': W1, 'W2': W2}
    return parameters

intialize_parameters(5, 4, 3)