Views
No views yet
1import tensorflow as tf
2import pickle
3import numpy as np
4
5# Load model and scaler
6model = tf.keras.models.load_model("nse_lstm_model.keras")
7with open("nse_lstm_scaler.pkl", "rb") as f:
8 scaler = pickle.load(f)
9
10# Prepare input data (5 days × 25 features)
11input_data = np.random.randn(1, 5, 25) # Your normalized features here
12
13# Make prediction
14prediction = model.predict(input_data)
15print(f"Predicted price change: {prediction[0][0]}")@software{nse_lstm_model,
title={NSE LSTM Model - Indian Stock Market Prediction},
author={Your Name},
year={2025},
url={https://huggingface.co/thoutam/nse-lstm-model}
}