Views
No views yet
pip install -r requirements.txt1from inference import StoxChaiStockPredictor
2import numpy as np
3
4# Initialize predictor
5predictor = StoxChaiStockPredictor()
6
7# Prepare your data (16 features in the same order as training)
8features = [100.0, 105.0, 98.0, 102.0, 100.0, 7.0, 2.0, 2.0, 1.5,
9 101.0, 100.5, 0.01, 1000.0, 1.2, 1200.0, 120000.0]
10
11# Single model prediction
12prediction = predictor.predict(features, "randomforest")
13print(f"Predicted stock price: ₹{prediction:.2f}")
14
15# All models prediction
16all_predictions = predictor.predict_all_models(features)
17print(f"Ensemble prediction: ₹{all_predictions['ensemble']:.2f}")@software{stoxchai_nse_predictor,
title={StoxChai NSE Stock Price Prediction Models},
author={StoxChai Team},
year={2025},
url={https://huggingface.co/thoutam/stoxchai-nse-predictor}
}