This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Import keras modules | |
from keras.models import Sequential | |
from keras.layers import Dense | |
# Import numpy to define our arrays | |
import numpy as np | |
# Inputs: This is out input numpy array, consisting or three column inputs and | |
# 7 rows of training data | |
predictors = np.array([[0, 0, 1], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.utils import to_categorical | |
from keras.models import Sequential | |
from keras.layers import Dense | |
import numpy as np | |
# Input | |
predictors = np.array([[1, 0, 0], | |
[1, 1, 0], | |
[1, 1, 1], | |
[0, 1, 1], |