<commit_before>import ANN
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris

data = load_iris()

input = data.data.T[:2].T
target = data.target
numLayers = 3
iterations = 500000

#input = [[0,0],[0,1],[1,0],[1,1]]
#target = [0,1,1,0]
nn1 = ANN.FNN(numLayers, input, target, eta=0.03)

e = nn1.train(iterations)
achieved = nn1.output_layer.output
print(achieved)
#e = []
#for i in range(20000):
#    e.append(nn1.iterate())
    #print "Output is {}".format(nn1.output_layer.output)
    #print nn1.output_layer.neurons[0].w, nn1.output_layer.prev_layer.neurons[0].output, nn1.output_layer.prev_layer.neurons[1].output, nn1.output_layer.prev_layer.neurons[2].output
plt.plot(e)
plt.show()
#plt.scatter(input.T[0], input.T[1], c= 0.5*(target-achieved)**2)
#plt.show()<commit_msg>Atom regex works<commit_after>import ANN
import matplotlib.pyplot as plt
from sklearn.datasets import load_iris

data = load_iris()

input = data.data.T[:2].T
target = data.target
numLayers = 3
iterations = 500000

# input = [[0,0],[0,1],[1,0],[1,1]]
# target = [0,1,1,0]
nn1 = ANN.FNN(numLayers, input, target, eta=0.03)

e = nn1.train(iterations)
achieved = nn1.output_layer.output
print(achieved)
# e = []
# for i in range(20000):
#    e.append(nn1.iterate())
#    print("Output is {}".format(nn1.output_layer.output))
#    print(nn1.output_layer.neurons[0].w,
#          nn1.output_layer.prev_layer.neurons[0].output,
#          nn1.output_layer.prev_layer.neurons[1].output,
#          nn1.output_layer.prev_layer.neurons[2].output)

plt.plot(e)
plt.show()
# plt.scatter(input.T[0], input.T[1], c= 0.5*(target-achieved)**2)
# plt.show()
{'fraction_non_alphanumeric': 0.18142944410507025, 'fraction_numerical': 0.056200366524129505, 'mean_word_length': 4.808510638297872, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4705397', 'n_tokens_mistral': 724, 'n_tokens_neox': 683, 'n_words': 111}