I am learning my data set with the following code.
import numpy as np
from keras.models import Sequential
from keras.layers import Dense
np.random.seed(5)
dataset = np.loadtxt('path to dataset', delimeter=',')
x_train=dataset[:700,0:3]
y_train=dataset[:700,3]
x_test=dataset[700:,0:3]
y_test=dataset[700:,3]
model =Sequential()
model.add(Dense(12, input_dim=3, activate='relu'))
model.add(Dense(8, activate='relu'))
model.add(Dense(1, activate='sigmoid'))
model.compile(loss='binary_crossentropy', optimizer = 'adam', metrics = ['acuuracy'])
model.fit(x_train,y_train,epochs = 100, batch_size =24)
score = model.evaluate(x_test,y_test)
The above learning data consists of three attributes and two classes.
I would like to use the learned model above to determine data that the class does not contain.
For example, the learning data is (1, 34, 23, 0).
And the data I put in the input is (3,56,33), so I want to classify the class
using the learned model with these property information.
I would be very grateful if you could give me a concrete method.