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

confused about model_step, fixed-length or not? #1

Closed
moonlight1776 opened this issue Sep 18, 2020 · 1 comment
Closed

confused about model_step, fixed-length or not? #1

moonlight1776 opened this issue Sep 18, 2020 · 1 comment

Comments

@moonlight1776
Copy link

Hi MogicianXD,
I am confused about these code.
self.pos_len = train_items.shape[1]
and

for t in range(0, X.shape[1]):
           y, h, MN = self.model_step(Sx[:, t, :], X[:, t], h, MN)

Are you set fixed-length for every session by padding and truncate, because I don't find any preprocessed code?

Waiting for your answer and thank you for sharing!

@MogicianXD
Copy link
Owner

Yes. I have padded them with zeros. You can see corresponding codes in the function process of run_KSR.py.

            for i in range(max_len - 1 - k):
                prepare.append([sid, 0])

It's my honor to share. Thank u!

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