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

关于y_train_weight_batch #22

Open
chan4cc opened this issue May 16, 2017 · 0 comments
Open

关于y_train_weight_batch #22

chan4cc opened this issue May 16, 2017 · 0 comments

Comments

@chan4cc
Copy link

chan4cc commented May 16, 2017

for iteration in range(num_iterations):
                # train
                X_train_batch, y_train_batch = helper.nextBatch(X_train, y_train, start_index=iteration * self.batch_size, batch_size=self.batch_size)
                y_train_weight_batch = 1 + np.array((y_train_batch == label2id['B']) | (y_train_batch == label2id['E']), float)
                transition_batch = helper.getTransition(y_train_batch)
                

你好,BILSTM_CRF.py文件中第173行的这个y_train_weight_batch的含义是什么?

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

1 participant