code stringlengths 3 6.57k |
|---|
LogOperations(Operations) |
__init__(self, base) |
self.set_base(base) |
set_base(self, base) |
exp_func(base) |
log_func(base) |
self.log(1) |
self.log(0) |
set_add(self) |
set_add_inplace(self) |
set_add_reduce(self) |
mult(self, x, y) |
shape (n,) |
shape (n,) |
mult_inplace(self, x, y) |
shape (n,) |
shape (n,) |
mult_reduce(self, x, axis=None) |
x.sum(axis=axis) |
invert(self, x) |
shape (n,) |
shape (n,) |
normalize(self, x, axis=None) |
sum(x) |
shape (n,) |
shape (n,) |
mult(x, invert( add_reduce(x) |
self.add_reduce(x, axis=axis) |
LinearOperations() |
LogOperations(2) |
LogOperations('e') |
or (at your option) |
Gon(s) |
UOC (Ugly Operator Categories) |
format(_valid_before, _valid_after) |
re.compile(_valid_words) |
split_words(cls, text) |
cls._split_words(text) |
__init__(self, settings, lang="en_US") |
enchant.Dict(lang) |
set(self.uimsgs) |
os.path.exists(cache) |
open(cache, 'rb') |
set(pickle.load(f) |
__del__(self) |
os.path.exists(cache) |
open(cache, 'wb') |
pickle.dump(self.cache, f) |
check(self, txt) |
self.split_words(txt) |
w.lower() |
self.dict_spelling.check(w) |
ret.append((w, self.dict_spelling.suggest(w) |
self.cache.add(w_lower) |
self.cache.add(txt) |
scan (moving) |
atlas (fixed) |
Analysis. (57) |
argparse.ArgumentParser() |
parser.add_argument('--moving', required=True, help='moving image (source) |
parser.add_argument('--fixed', required=True, help='fixed image (target) |
parser.add_argument('--moved', help='warped image output filename') |
parser.add_argument('--model', required=True, help='pytorch model for nonlinear registration') |
parser.add_argument('--normalize_type', default='std', help='select the data normalization processing type') |
parser.add_argument('--warp', help='output warp deformation filename') |
parser.add_argument('--sphere_sub', help='sphere_sub image filename') |
parser.add_argument('--sphere_atlas', help='sphere_atlas image filename') |
parser.add_argument('--sphere_reg', help='sphere.reg image output filename') |
parser.add_argument('--sulc_sub', help='silc_sub image filename') |
parser.add_argument('--sulc_atlas', help='silc_atlas image filename') |
parser.add_argument('--sphere_freesurfer', help='sphere_freesurfer image filename') |
parser.add_argument('--plot_image', help='show time image output filename') |
parser.add_argument('--plot_image_dif_1', help='show dif image output filename') |
parser.add_argument('--plot_image_dif_2', help='show dif image output filename') |
parser.add_argument('-g', '--gpu', help='GPU number(s) |
parser.parse_args() |
meannormalize(sub_data) |
np.mean(sub_data) |
np.std(sub_data) |
backmeannormalize(input, mean, std) |
minmaxnormalize(sub_data) |
np.max(sub_data) |
np.min(sub_data) |
backminmaxnormalize(input, max, min) |
domainnorm(sub_data) |
backdomainnorm(sub_data) |
normalize_forword(data, type="std") |
meannormalize(data) |
minmaxnormalize(data) |
KeyError("type is error") |
normalize_backword(data, a, b, type="std") |
backmeannormalize(data, a, b) |
backminmaxnormalize(data, a, b) |
KeyError("type is error") |
interpolate(warp_file, lh_sphere) |
np.linspace(-128, 128, 256) |
np.linspace(0, 512, 512) |
print(warp_file.files) |
warp_file.squeeze() |
warp.permute(0, 2, 1) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.