We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In VAME/vame/model/create_training.py traindata_aligned()
VAME/vame/model/create_training.py traindata_aligned()
if cfg['robust'] == True: iqr_val = iqr(X_z) print("IQR value: %.2f, IQR cutoff: %.2f" %(iqr_val, cfg['iqr_factor']*iqr_val)) for i in range(X_z.shape[0]): for marker in range(X_z.shape[1]): if X_z[i,marker] > cfg['iqr_factor']*iqr_val: X_z[i,marker] = np.nan elif X_z[i,marker] < -cfg['iqr_factor']*iqr_val: X_z[i,marker] = np.nan
to speedup
if cfg['robust'] == True: iqr_val = iqr(X_z) print("IQR value: %.2f, IQR cutoff: %.2f" %(iqr_val, cfg['iqr_factor']*iqr_val)) X_z[(X_z > cfg['iqr_factor']*iqr_val) | (X_z < -cfg['iqr_factor']*iqr_val)] = np.nan
The text was updated successfully, but these errors were encountered:
detect_anchors = np.std(X.T, axis=1) sort_anchors = np.sort(detect_anchors) if sort_anchors[0] == sort_anchors[1]: anchors = np.where(detect_anchors == sort_anchors[0])[0] anchor_1_temp = anchors[0] anchor_2_temp = anchors[1] else: anchor_1_temp = int(np.where(detect_anchors == sort_anchors[0])[0]) anchor_2_temp = int(np.where(detect_anchors == sort_anchors[1])[0]) if anchor_1_temp > anchor_2_temp: anchor_1 = anchor_1_temp anchor_2 = anchor_2_temp else: anchor_1 = anchor_2_temp anchor_2 = anchor_1_temp X = np.delete(X, anchor_1, 1) X = np.delete(X, anchor_2, 1) X = X.T
detect_anchors = np.std(X, axis=0) indsort = np.argsort(detect_anchors) X = X[:, indsort[2:]]
Sorry, something went wrong.
No branches or pull requests
In
VAME/vame/model/create_training.py traindata_aligned()
to speedup
The text was updated successfully, but these errors were encountered: