code stringlengths 3 6.57k |
|---|
utils.load_nifty(filename) |
np.rint(mask) |
mask.astype(np.uint8) |
utils.save_nifty(filename, mask, affine, spacing, header) |
utils.load_nifty(filename) |
utils.save_nifty(filename, mask, affine, spacing, header) |
tmp("/gris/gris-f/homelv/kgotkows/datasets/nnUnet_datasets/nnUNet_raw_data/nnUNet_raw_data/Task077_frankfurt3Guided/imagesTr/0001_0001.nii.gz") |
tmp2("/gris/gris-f/homelv/kgotkows/datasets/nnUnet_datasets/nnUNet_raw_data/Task77_frankfurt3Guided/tmp/900.nii.gz") |
requests.Session.request() |
Version(urllib3.__version__) |
Version("1.26.0") |
Retry(**retry_kwargs) |
HTTPAdapter(max_retries=retry) |
requests.Session() |
http.mount("https://", adapter) |
http.mount("http://", adapter) |
http.request(method, url, **kwargs) |
limited (429) |
unavailable (503) |
error (500) |
response (assumed to be JSON) |
requests.Session.request() |
encode("utf-8") |
base64.standard_b64encode(basic_auth_str) |
decode("utf-8") |
dict({**_DEFAULT_HEADERS, **resolve_request_headers() |
strip_suffix(hostname, "/") |
MlflowException("API request to %s failed with exception %s" % (url, e) |
_can_parse_as_json(string) |
json.loads(string) |
http_request_safe(host_creds, endpoint, method, **kwargs) |
http_request(host_creds=host_creds, endpoint=endpoint, method=method, **kwargs) |
verify_rest_response(response, endpoint) |
verify_rest_response(response, endpoint) |
_can_parse_as_json(response.text) |
RestException(json.loads(response.text) |
MlflowException("%s. Response body: '%s'" % (base_msg, response.text) |
endpoints (e.g. DBFS file-download API) |
endpoint.startswith(_REST_API_PATH_PREFIX) |
_can_parse_as_json(response.text) |
MlflowException("%s. Response body: '%s'" % (base_msg, response.text) |
augmented_raise_for_status(response) |
requests.response.raise_for_status() |
response.raise_for_status() |
HTTPError(f"{e}. Response text: {response.text}") |
_get_path(path_prefix, endpoint_path) |
format(path_prefix, endpoint_path) |
extract_api_info_for_service(service, path_prefix) |
tuple (path, HTTP method) |
service_method.GetOptions() |
_get_path(path_prefix, endpoint.path) |
service() |
GetRequestClass(service_method) |
extract_all_api_info_for_service(service, path_prefix) |
service_method.GetOptions() |
service() |
GetRequestClass(service_method) |
_get_path(path_prefix, endpoint.path) |
call_endpoint(host_creds, endpoint, method, json_body, response_proto) |
json.loads(json_body) |
verify_rest_response(response, endpoint) |
json.loads(response.text) |
parse_dict(js_dict=js_dict, message=response_proto) |
call_endpoints(host_creds, endpoints, json_body, response_proto) |
enumerate(endpoints) |
call_endpoint(host_creds, endpoint, method, json_body, response_proto) |
ErrorCode.Name(ENDPOINT_NOT_FOUND) |
len(endpoints) |
requests.Session.request() |
method.lower() |
in ("put", "get") |
ValueError("Illegal http method: " + method) |
MlflowException("API request failed with exception %s" % e) |
MlflowHostCreds(object) |
Hostname (e.g., http://localhost:5000) |
file (.pem) |
function (see https://requests.readthedocs.io/en/master/api/) |
function (see https://requests.readthedocs.io/en/master/api/) |
and (server_cert_path is not None) |
p(s) |
exp(-E(s) |
E(s) |
exp(-E(s) |
metropolishastings_rw(logpdf, nsamps, initstate, pwidth, ninits) |
logdensity.LogDensity(logpdf) |
RandomWalkMH(logdens) |
rwmh.sample_nd(nsamps, initstate, pwidth, ninits) |
metropolishastings_lang(logpdf, loggrad, nsamps, initstate, pwidth, ninits) |
logdensity.LogDensity(logpdf, loggrad) |
LangevinMH(logdens) |
langmh.sample_nd(nsamps, initstate, pwidth, ninits) |
Riemannian (preconditioned) |
logdensity.LogDensity(logpdf, loggrad, loghess) |
PrecondLangevinMH(logdens) |
plangmh.sample_nd(nsamps, initstate, pwidth, ninits) |
logdensity.LogDensity(logpdf, loggrad) |
HamiltonianMC(logdens, nsteps) |
hmc.sample_nd(nsamps, initstate, stepsize, ninits) |
logdensity.LogDensity(logpdf, loggrad, loghess) |
PrecondHamiltonianMC(logdens, nsteps) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.