{"action":"created","issue":{"url":"https://api.github.com/repos/white127/QA-deep-learning/issues/25","repository_url":"https://api.github.com/repos/white127/QA-deep-learning","labels_url":"https://api.github.com/repos/white127/QA-deep-learning/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/white127/QA-deep-learning/issues/25/comments","events_url":"https://api.github.com/repos/white127/QA-deep-learning/issues/25/events","html_url":"https://github.com/white127/QA-deep-learning/issues/25","id":369427933,"node_id":"MDU6SXNzdWUzNjk0Mjc5MzM=","number":25,"title":"关于InsuranceQA训练语料转，负样本采样","user":{"login":"Fyweven","id":10404015,"node_id":"MDQ6VXNlcjEwNDA0MDE1","avatar_url":"https://avatars2.githubusercontent.com/u/10404015?v=4","gravatar_id":"","url":"https://api.github.com/users/Fyweven","html_url":"https://github.com/Fyweven","followers_url":"https://api.github.com/users/Fyweven/followers","following_url":"https://api.github.com/users/Fyweven/following{/other_user}","gists_url":"https://api.github.com/users/Fyweven/gists{/gist_id}","starred_url":"https://api.github.com/users/Fyweven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fyweven/subscriptions","organizations_url":"https://api.github.com/users/Fyweven/orgs","repos_url":"https://api.github.com/users/Fyweven/repos","events_url":"https://api.github.com/users/Fyweven/events{/privacy}","received_events_url":"https://api.github.com/users/Fyweven/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-10-12T07:16:33Z","updated_at":"2018-10-31T09:07:01Z","closed_at":null,"author_association":"NONE","body":"代码中训练数据的获取接口是：  utils.gen_train_batch_qpn(train_data, FLAGS.batch_size)\r\n但是在该函数中\r\ndef gen_train_batch_qpn(_data, batch_size):\r\n  psample = random.sample(_data, batch_size)\r\n  nsample = random.sample(_data, batch_size)\r\n  q = [s1 for s1, s2 in psample]\r\n  qp = [s2 for s1, s2 in psample]\r\n  qn = [s2 for s1, s2 in nsample]\r\n  return np.array(q), np.array(qp), np.array(qn)\r\npsample和nsample获取方式一样？？"},"comment":{"url":"https://api.github.com/repos/white127/QA-deep-learning/issues/comments/434611924","html_url":"https://github.com/white127/QA-deep-learning/issues/25#issuecomment-434611924","issue_url":"https://api.github.com/repos/white127/QA-deep-learning/issues/25","id":434611924,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDYxMTkyNA==","user":{"login":"Fyweven","id":10404015,"node_id":"MDQ6VXNlcjEwNDA0MDE1","avatar_url":"https://avatars2.githubusercontent.com/u/10404015?v=4","gravatar_id":"","url":"https://api.github.com/users/Fyweven","html_url":"https://github.com/Fyweven","followers_url":"https://api.github.com/users/Fyweven/followers","following_url":"https://api.github.com/users/Fyweven/following{/other_user}","gists_url":"https://api.github.com/users/Fyweven/gists{/gist_id}","starred_url":"https://api.github.com/users/Fyweven/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fyweven/subscriptions","organizations_url":"https://api.github.com/users/Fyweven/orgs","repos_url":"https://api.github.com/users/Fyweven/repos","events_url":"https://api.github.com/users/Fyweven/events{/privacy}","received_events_url":"https://api.github.com/users/Fyweven/received_events","type":"User","site_admin":false},"created_at":"2018-10-31T09:07:01Z","updated_at":"2018-10-31T09:07:01Z","author_association":"NONE","body":"> train_data中只有qp，没有qn吧\r\n\r\n直接从所有问题中随机选择了一个，作为负样本"}}
{"actor":{"display_login":"Fyweven"}}