Comments (7)
Can we use this model for forecasting on our custom data as of now?
Yes!
You can follow the following example to convert your CSV file (here the CSV file has 2 columns; the first column is "time" which includes time stamps, and the second column is "value" which includes the values of the target variable):
context_length = 32
prediction_length = 48
freq = "1H"
# Read the CSV file
df = pd.read_csv('.\Test.csv', parse_dates=['time'], index_col='time')
df.index = df.index.to_period(freq)
time_series = df['value'].values
# Assuming a single time series for simplicity; for multiple series, adjust accordingly
start = df.index[0]
train_ds = ListDataset(
[{'target': time_series[:-prediction_length], 'start': start}],
freq=freq
)
test_ds = ListDataset(
[{'target': time_series, 'start': start}],
freq=freq
)
from lag-llama.
for import ListDataset function;
from lag_llama.gluon.estimator import LagLlamaEstimator
from lag-llama.
from lag-llama.
Thanks
from lag-llama.
Hi! Thank you for the issue, and thank you @turkalpmd for the efforts! We'll be adding a tutorial soon with options to load datasets in several formats (such as CSV). We appreciate your patience; thanks!
from lag-llama.
Hi @ArchanaNarayanan0210 @ArchanaNarayanan843 , we uploaded a new Colab demo with a tutorial to use a CSV dataset.
Please check it and let us know if your dataset fits into one of the categories explained there.
from lag-llama.
Closing this issue since it's stale. Feel free to open it if required.
Thanks,
Arjun
from lag-llama.
Related Issues (20)
- Repeat inputs during prediction HOT 3
- Tips of Fine-tuning HOT 2
- A quick guide to fine-tune from pandas dataframe HOT 3
- First prediction value too far from the latest known value HOT 2
- Cannot predict the feature timestamps HOT 1
- loss calculation HOT 2
- Data loader bottlenecking training HOT 3
- Can't import gluonts
- what do we need to set the device parameter when we use macos ? HOT 1
- item_id error HOT 1
- plotting predictions for 1 step ahead forecasting HOT 3
- exec ./scripts/pretrain.sh error,No such file or directory: 'datasets/huawei/cpu_limit_minute.json' HOT 2
- Model TypeError while running Lag_Llama_Fine_Tuning_Demo notebook HOT 3
- Adding our own covariates HOT 1
- Measuring Perplexity (PPL)? HOT 2
- problem dataset weather and mae metric
- different prerpint has different computing power (Summit supercomputer) and dataloader PatchTST
- Why the freq_str argument to time_features_from_frequency_str() function is always 'S'
- forecasts = list(forecast_it) is very slow HOT 2
- dealing with mixed frequency data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lag-llama.