Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

what is difference between n_instance and n_features? #13

Closed
Haebuk opened this issue Jan 18, 2022 · 1 comment
Closed

what is difference between n_instance and n_features? #13

Haebuk opened this issue Jan 18, 2022 · 1 comment

Comments

@Haebuk
Copy link

Haebuk commented Jan 18, 2022

in ts2vec.py, fit() requires train_data type (n_instance. n_timestamps, n_features).
what is difference between n_instance and n_features?
I think n_feature means the number of time series (e.g. univariate time series -> n_features=1)
Is same that n_instance to window size? or something?
thank you.

@zhihanyue
Copy link
Owner

"instance" means "sample". The difference between instances and features is that instances generally come from the same distribution. For example, for stock market, n_instance is the number of stocks, and n_features is the number of features (e.g. open, high, low, close, volume). For traffic flow, n_instance can be the number of roads, and n_features is the number of features collected on the road.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants