-
Notifications
You must be signed in to change notification settings - Fork 304
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
The difference in data #5
Comments
Hello, thanks for this question! In each data folder, we give three data files:
Of course, you can remove both import numpy as np
# Specify tensor size
M = 214 # Suppose 214 road segments
I = 61 # Suppose 61 days
J = 144 # Suppose 144 time slots per day
# Generate random matrix of size M-by-I
np.random.seed(1000) # Set random seed
random_matrix = np.random.rand(M, I)
# Or generate random tensor of size M-by-I-by-J
np.random.seed(1000) # Set random seed
random_tensor = np.random.rand(M, I, J) Hope it can help you! Best, |
您好,我现在手上有一份数据集(传感器采集的数据,存在缺失值),想尝试用LRC-TNN来试试填充缺失值的效果,但跑出来结果似乎有点问题。 r = 0.2 file_path = '' for day, day_df in tqdm(data_19111201984.groupby('day')): dense_tensor = np.array([ten2mat(np.array(data_list), 2)]) 输出结果是: Running time: 0 seconds` |
Hello, thank you for this question! If your tensor data is of size 1-by-1440-by-6, this is really a matrix. Please consider a matrix completion model rather than tensor completion models. Best regards, |
Thank you for your answer. Now I only use the data collected by just one sensor, so my tensor data is of size 1-by-1440-by-6. Does that mean if I use data collected by n sensors and get the tensor data of size n-by-1440-by-6, then I can consider a tensor completion model. By the way, is there any matrix model recommended. |
Yeah, you can consider tensor completion model, but in LRTC-TNN, |
About the data set. Each data file has these three named data: tensor,random_tensor,random_matrix.
What do these three stand for and is there any difference?
The text was updated successfully, but these errors were encountered: