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

Datasets: how can i find the data xxx.npy #3

Open
lizonglingo opened this issue Jan 15, 2024 · 3 comments
Open

Datasets: how can i find the data xxx.npy #3

lizonglingo opened this issue Jan 15, 2024 · 3 comments

Comments

@lizonglingo
Copy link

The data in such function:

def generate_numerical(raw_folder, save_path, mode="test", obs_length=15):
    raw_data = np.load(os.path.join(raw_folder, "sg_raw_" + mode + ".npy"))
    data_x = []
    data_y = []
    for i in range(len(raw_data)):
        data = raw_data[i]
        number_of_instance = len(data) - obs_length
        for j in range(number_of_instance):
            y = data[obs_length + j]
            x = data[j: obs_length + j]
            data_x.append(x)
            data_y.append(y)

    data_x = np.reshape(data_x, [-1, obs_length])
    np.save(os.path.join(save_path, mode + "_" + str(obs_length) + "_x.npy"), data_x)
    data_y = np.reshape(data_y, [-1, 1])
    np.save(os.path.join(save_path, mode + "_" + str(obs_length) + "_y.npy"), data_y)

named xxx.npy

@xuehaouwa
Copy link
Contributor

Hi @lizonglingo

This part is used to run the numerical forecasting models (e.g., informer etc.).

I will upload the processed npy files soon. (sorry, I am currently on annual leave :) )

@2001chen010904
Copy link

@lizonglingo
Do you get the npy data?

@HaoUNSW
Copy link
Owner

HaoUNSW commented Apr 10, 2024

Hi,
I have uploaded the npy files for the numerical based forecasting. In that Google drive link, each subset folder has a folder named Autoformer, and it contains the npy files.

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

4 participants