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

FileNotFoundError: [Errno 2] No such file or directory: './data/LSTM/Dataset/72_values_MS-BN-1_dataset.csv' #2

Open
NainaWay opened this issue May 8, 2021 · 1 comment

Comments

@NainaWay
Copy link

NainaWay commented May 8, 2021

Hi, This is NainaWay. I am working on your file "LSTM_with_shape.py", I am finding it difficult as you haven't given any dummy data. For the file, "Muliti-Scale_CNN-AE.py" one can feed image data directly but for the other file, you are using CSV files for both LSTM and CNN-AE. I'll be really thankful to you if you share some dummy data so that I can create my own dataset for the model.

` # perpare data
assert num_of_ts + time_step * (maxlen - 1) <
num_of_ts_for_data, 'The data aumont is not enough.'

data_LSTM = pd.read_csv(path_data, header=None, delim_whitespace=False)
data_LSTM = data_LSTM.values

X_CNN = np.zeros([number_of_shape * num_of_ts, 120, 120, 1])
for i in range(number_of_shape):
    data_CNN = pd.read_csv(
        path_to_present_dir +
        '/data/LSTM/Flags/Flag' +
        '{0:03d}'.format(i + 1) + '.csv',
        header=None,
        delim_whitespace=False
    )
    data_CNN = data_CNN.values
    X_CNN[i * num_of_ts: (i + 1) * num_of_ts, :, :, 0] = data_CNN

X = np.zeros([number_of_shape * num_of_ts, maxlen, data_size])
Y = np.zeros([number_of_shape * num_of_ts, maxlen, data_size])

for i in range(number_of_shape):
    for j in range(num_of_ts):
        X[i * num_of_ts + j] = \
            data_LSTM[
                i * num_of_ts_for_data + j:
            i * num_of_ts_for_data + j +
            time_step * maxlen: time_step
        ]
        Y[i * num_of_ts + j] = \
            data_LSTM[
                i * num_of_ts_for_data + j + 1:
            i * num_of_ts_for_data + j +
            time_step * maxlen + 1: time_step
        ]

`

@kazutotess
Copy link
Owner

Hello NainaWay, and thank you for your question.
I am sorry, but these are just sample codes, so I cannot shear some data to you.

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