feat: menambahkan long short term memory#256
Merged
mergify[bot] merged 2 commits intobellshade:mainfrom Mar 28, 2023
Merged
Conversation
Signed-off-by: slowy07 <slowy.arfy@gmail.com>
| x_train = np.array(train_x) | ||
| x_test = np.array(test_x) | ||
| y_train = np.array([list(i.ravel()) for i in train_y]) | ||
| y_test = np.array([list(i.ravel()) for i in test_y]) |
Check notice
Code scanning / CodeQL
Unused global variable
| model.add(LSTM(64, input_shape=(128, 1))) | ||
| model.add(Dense(hari_berikut)) | ||
| model.compile(loss="mean_squared_error", optimizer="adam") | ||
| history = model.fit( |
Check notice
Code scanning / CodeQL
Unused global variable
| history = model.fit( | ||
| x_train, y_train, epochs=150, verbose=1, shuffle=True, batch_size=4 | ||
| ) | ||
| prediksi = model.predict(x_test) |
Check notice
Code scanning / CodeQL
Unused global variable
|
terima kasih atas kontribusinya @slowy07! |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Deskripsi (Description)
menambahkan contoh sederhana dari implementasi long short term memory
Checklist:
Umum:
Contributor Requirements (Syarat Kontributor) dan Lain-Lain:
Unit Testing dan Linting:
Environment
Saya menggunakan (I'm using):
os=linuxpython=python 3.10.10linked issue #246