Skip to content

Commit 03cd5ac

Browse files
Update README.md
1 parent b4143a1 commit 03cd5ac

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,18 @@ pip install TrendMaster
1717
## Usage
1818
Here's how to integrate TrendMaster into your Python projects:
1919

20+
2021
```python
2122
from trendmaster import TrendMaster
2223
#Initialize the TrendMaster object
23-
tm = TrendMaster(symbol_name_stk='SBIN')
24-
#Load your data
2524
test_symbol = 'SBIN'
25+
tm = TrendMaster(symbol_name_stk=test_symbol)
26+
#Load your data
2627
data = tm.load_data(symbol=test_symbol)
2728
#Train the model
2829
tm.train(test_symbol, transformer_params={'epochs': 1})
2930
#Perform inference
30-
predictions = tm.inferencer.predict_future(val_data=data,future_steps=100,symbol='SBIN')
31+
predictions = tm.inferencer.predict_future(val_data=data,future_steps=100,symbol=test_symbol)
3132
print(predictions)
3233
```
3334

0 commit comments

Comments
 (0)