b0bc6e31faf2ef92094f4820bec97d8460129d7c,scipy/optimize/_linprog_rs.py,,_get_more_basis_columns,#Any#Any#,75
Before Change
B[:, 0:len(basis)] = A[:, basis]
rank = 0 // just enter the loop
while rank < m:
// permute the options, and take as many as needed
new_basis = np.random.permutation(options)[:m-len(basis)]
B[:, len(basis):] = A[:, new_basis] // update the basis matrix
rank = np.linalg.matrix_rank(B) // check the rank
return np.concatenate((basis, new_basis))
def _generate_auxiliary_problem(A, b):
After Change
B[:, 0:len(basis)] = A[:, basis]
rank = 0 // just enter the loop
for i in range(n): // somewhat arbitrary, but we need another way out
// permute the options, and take as many as needed
new_basis = np.random.permutation(options)[:m-len(basis)]
B[:, len(basis):] = A[:, new_basis] // update the basis matrix
rank = np.linalg.matrix_rank(B) // check the rank
if rank == m:
break
return np.concatenate((basis, new_basis))
def _generate_auxiliary_problem(A, b):
In pattern: SUPERPATTERN
Frequency: 5
Non-data size: 8
Instances
Project Name: scipy/scipy
Commit Name: b0bc6e31faf2ef92094f4820bec97d8460129d7c
Time: 2018-12-21
Author: mdhaber@mit.edu
File Name: scipy/optimize/_linprog_rs.py
Class Name:
Method Name: _get_more_basis_columns
Project Name: jhfjhfj1/autokeras
Commit Name: a381ecc7659a8cdd13dceec427d476ac8f8ca996
Time: 2018-11-29
Author: jhfjhfj1@gmail.com
File Name: autokeras/nn/graph.py
Class Name: Graph
Method Name: get_main_chain
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: f71e96b7da2e5662e60f93304477c7b19fb9e805
Time: 2018-07-06
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/iterative_method.py
Class Name: BasicIterativeMethod
Method Name: generate
Project Name: IBM/adversarial-robustness-toolbox
Commit Name: 23d00b78af8b6fc554a033c30dc4b0f8ffaf4804
Time: 2018-10-26
Author: Maria-Irina.Nicolae@ibm.com
File Name: art/attacks/deepfool.py
Class Name: DeepFool
Method Name: generate