From df3eba461b8865c1167f32d614013fe1ec416aa4 Mon Sep 17 00:00:00 2001 From: Yevhenii Poliakov Date: Sun, 14 May 2023 22:35:05 +0200 Subject: [PATCH] upd52 --- script5_2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script5_2.py b/script5_2.py index f006cd5..96f340f 100644 --- a/script5_2.py +++ b/script5_2.py @@ -34,8 +34,8 @@ model.compile(loss='mean_squared_error', optimizer='adam') model.fit(X_train, y_train, batch_size=64, epochs=10, validation_data=(X_test, y_test)) # Make predictions on new data -new_writer = 'John Smith' +new_writer = 'Jim Cash' new_writer_encoded = encoder.transform([new_writer]) rating_prediction = model.predict(new_writer_encoded) -print("Predicted rating for the writer 'John Smith':", rating_prediction) \ No newline at end of file +print("Predicted rating for the writer 'Jim Cash':", rating_prediction) \ No newline at end of file