Add files via upload

This commit is contained in:
Silviu Marian Udrescu 2020-04-07 02:31:51 -04:00 committed by GitHub
parent def13c9018
commit ae3d4e9a8d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 17 additions and 9 deletions

View file

@ -230,7 +230,13 @@ def check_separability_multiply(pathdir, filename):
f_dependent = np.loadtxt(pathdir+filename, usecols=(n_variables,))
# Pick only data which is close enough to the maximum value (5 times less or higher)
max_output = np.max(abs(f_dependent))
use_idx = np.where(abs(f_dependent)>=max_output/5)
f_dependent = f_dependent[use_idx]
f_dependent = np.reshape(f_dependent,(len(f_dependent),1))
variables = variables[use_idx]
factors = torch.from_numpy(variables)
if is_cuda: