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

PMF代码不理解的地方 #5

Open
liheyong opened this issue Sep 20, 2019 · 1 comment
Open

PMF代码不理解的地方 #5

liheyong opened this issue Sep 20, 2019 · 1 comment

Comments

@liheyong
Copy link

作者您好!,在读您的代码的时候,这段代码不理解。
batch_idx = np.mod(test, shuffled_order.shape[0])
其中test代表每次训练数据块的索引。
shuffled_order.shape[0]代表整个训练集的乱序索引。它们取模表示什么?
谢谢!

@RaptorMai
Copy link

test = np.arange(100000, 110000)
np.mod(test, 80000)

array([20000, 20001, 20002, ..., 29997, 29998, 29999])
当 test 超过shuffled_order.shape[0],这样能知道到shuffled_order什么地方拿data

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