Skip to content

Instantly share code, notes, and snippets.

@HasseIona
HasseIona / simplenet.py
Created October 9, 2016 13:05
simple neural network with tensorflow
import tensorflow as tf
import pickle as p
import numpy as np
#first_file is a file containing 30000 lists. Each list consists of 2 sublist,
#one containing champion (input) data and the second containing item (correct output) data
#both the champion and item data take the form of a list filled with 1´s and 0´s
first_file = p.load(open("data/0-30000.pickle", "rb"))
first_file = np.array(first_file) #necessary for simplifying the next two lines, which would else have to be handled by a for loop
training_inputs = list(first_file[:,0][:])