Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

changing integer inputs to float #4

Open
ibozkurt79 opened this issue Apr 12, 2022 · 0 comments
Open

changing integer inputs to float #4

ibozkurt79 opened this issue Apr 12, 2022 · 0 comments

Comments

@ibozkurt79
Copy link

Keras expects float in model training so model definition should be;

train model

history = train_model(GMF_model, 'adam', BATCH_SIZE, EPOCHS, VAL_SPLIT,
inputs=[df_train.userId.values.astype(np.float32), df_train.movieId.values.astype(np.float32)],
outputs=df_train.rating.values)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant