
from numpy import *
import numpy as np
import string
input_layers_num = 1
hidden_layers_num = 5
output_layers_num = 1
X = []
y = []
loop = 0
temp = 0.0
index = 0.0
for line in open('/home/orange/Workspaces/MyEclipse 2015/SoftwareReliabilityTest/data/CSR3.DAT'):
    s = line.strip().split()
    if s :
        loop+=1
        temp += string.atof(s[0])
        index += string.atof(s[1])
        X.append(np.array([temp]))
        y.append(index)
X = np.array(X)
y = np.array(y)
y =np.array([y]).T
input_weights = 2*np.random.random((input_layers_num,hidden_layers_num)) - 1
hidden = X.dot(input_weights)
output_weights = (mat(hidden)).I.dot(y)
sample = np.zeros((loop,1))
for i in range(len(X)):
    if i==0:
        sample[0][0] = X[loop-1][0]+loop
    else:
        sample[i][0] = sample[i-1][0]+loop
    loop +=1
result = sample.dot(input_weights).dot(output_weights)
with open('ELM.txt', 'w') as file:
    s = '\t\r'.join(str(i[0]) for i in (np.array(y)))
    file.write(s)
    file.write('\r')
    s = '\t\r'.join(str(i[0]) for i in (np.array(result)))
    file.write(s)
    file.close()


a43127cdc71172171965043794131ae5484b201c
<mask token>

<mask token>
for line in open(
    '/home/orange/Workspaces/MyEclipse 2015/SoftwareReliabilityTest/data/CSR3.DAT'
    ):
    s = line.strip().split()
    if s:
        loop += 1
        temp += string.atof(s[0])
        index += string.atof(s[1])
        X.append(np.array([temp]))
        y.append(index)
<mask token>
for i in range(len(X)):
    if i == 0:
        sample[0][0] = X[loop - 1][0] + loop
    else:
        sample[i][0] = sample[i - 1][0] + loop
    loop += 1
<mask token>
with open('ELM.txt', 'w') as file:
    s = '\t\r'.join(str(i[0]) for i in np.array(y))
    file.write(s)
    file.write('\r')
    s = '\t\r'.join(str(i[0]) for i in np.array(result))
    file.write(s)
    file.close()

<mask token>
input_layers_num = 1
hidden_layers_num = 5
output_layers_num = 1
X = []
y = []
loop = 0
temp = 0.0
index = 0.0
for line in open(
    '/home/orange/Workspaces/MyEclipse 2015/SoftwareReliabilityTest/data/CSR3.DAT'
    ):
    s = line.strip().split()
    if s:
        loop += 1
        temp += string.atof(s[0])
        index += string.atof(s[1])
        X.append(np.array([temp]))
        y.append(index)
X = np.array(X)
y = np.array(y)
y = np.array([y]).T
input_weights = 2 * np.random.random((input_layers_num, hidden_layers_num)) - 1
hidden = X.dot(input_weights)
output_weights = mat(hidden).I.dot(y)
sample = np.zeros((loop, 1))
for i in range(len(X)):
    if i == 0:
        sample[0][0] = X[loop - 1][0] + loop
    else:
        sample[i][0] = sample[i - 1][0] + loop
    loop += 1
result = sample.dot(input_weights).dot(output_weights)
with open('ELM.txt', 'w') as file:
    s = '\t\r'.join(str(i[0]) for i in np.array(y))
    file.write(s)
    file.write('\r')
    s = '\t\r'.join(str(i[0]) for i in np.array(result))
    file.write(s)
    file.close()

from numpy import *
import numpy as np
import string
input_layers_num = 1
hidden_layers_num = 5
output_layers_num = 1
X = []
y = []
loop = 0
temp = 0.0
index = 0.0
for line in open(
    '/home/orange/Workspaces/MyEclipse 2015/SoftwareReliabilityTest/data/CSR3.DAT'
    ):
    s = line.strip().split()
    if s:
        loop += 1
        temp += string.atof(s[0])
        index += string.atof(s[1])
        X.append(np.array([temp]))
        y.append(index)
X = np.array(X)
y = np.array(y)
y = np.array([y]).T
input_weights = 2 * np.random.random((input_layers_num, hidden_layers_num)) - 1
hidden = X.dot(input_weights)
output_weights = mat(hidden).I.dot(y)
sample = np.zeros((loop, 1))
for i in range(len(X)):
    if i == 0:
        sample[0][0] = X[loop - 1][0] + loop
    else:
        sample[i][0] = sample[i - 1][0] + loop
    loop += 1
result = sample.dot(input_weights).dot(output_weights)
with open('ELM.txt', 'w') as file:
    s = '\t\r'.join(str(i[0]) for i in np.array(y))
    file.write(s)
    file.write('\r')
    s = '\t\r'.join(str(i[0]) for i in np.array(result))
    file.write(s)
    file.close()


from numpy import *
import numpy as np
import string
input_layers_num = 1
hidden_layers_num = 5
output_layers_num = 1
X = []
y = []
loop = 0
temp = 0.0
index = 0.0
for line in open('/home/orange/Workspaces/MyEclipse 2015/SoftwareReliabilityTest/data/CSR3.DAT'):
    s = line.strip().split()
    if s :
        loop+=1
        temp += string.atof(s[0])
        index += string.atof(s[1])
        X.append(np.array([temp]))
        y.append(index)
X = np.array(X)
y = np.array(y)
y =np.array([y]).T
input_weights = 2*np.random.random((input_layers_num,hidden_layers_num)) - 1
hidden = X.dot(input_weights)
output_weights = (mat(hidden)).I.dot(y)
sample = np.zeros((loop,1))
for i in range(len(X)):
    if i==0:
        sample[0][0] = X[loop-1][0]+loop
    else:
        sample[i][0] = sample[i-1][0]+loop
    loop +=1
result = sample.dot(input_weights).dot(output_weights)
with open('ELM.txt', 'w') as file:
    s = '\t\r'.join(str(i[0]) for i in (np.array(y)))
    file.write(s)
    file.write('\r')
    s = '\t\r'.join(str(i[0]) for i in (np.array(result)))
    file.write(s)
    file.close()

