sha256 stringlengths 64 64 | language stringclasses 28
values | size int32 1 491k | lines int32 1 23.2k | content stringlengths 1 200k |
|---|---|---|---|---|
2dbf972ff5b7bb2cfec306e409c7fa8ede3f46769608cd011ce732d610ec7ba9 | Python | 126 | 4 | from .basic_model import BasicModel
from .basic_unet import UNet
from .nn_unet import nnUNet
from .swin_unetr import SwinUNETR |
bc65f9cf97ddab4a1d237ac4e3339747d005879391a4dd627d86aac78fe5240c | Python | 126 | 4 | # -*- coding: utf-8 -*-
"""Implementations of feature tracking methods."""
from pysteps.tracking.interface import get_method
|
bf241247708d79deb3914670ad062fd80e0a403651e09b09d01d25304910c0e4 | Python | 126 | 4 | # -*- coding: utf-8 -*-
"""Implementations of feature detection methods."""
from pysteps.feature.interface import get_method
|
0e41b9ac15d94abe76f80040d78644ac85efb8310469e1e7c1dacba154dbb1da | Python | 128 | 4 | from .Alignment import Alignment
from .FASTQ_File import FASTQ_File
from .Library import Library
from .Template import Template
|
8d72ffe426811cf10217c7723b18a2b619f6752ece91434a107f17ca23cb6127 | Python | 129 | 6 | class TestAlphanumeric:
def test_test_valid(self):
pass
def test_validate_alphanumeric_text(self):
pass
|
76c4b690a27facfc0a2854f7ff3d4efdb0eac6db2be3a49a6c08dbf2e6cb4eb5 | Python | 130 | 3 | from ._measurements import Measurements
from ._metadata_group import MetadataGroup
from ._relationship_key import RelationshipKey
|
7adc63fdb06b703b4328c097e7517635fe2bff66160fdc5ed87b691d321deeb3 | Python | 130 | 9 | import torch.nn as nn
class BaseAggregator(nn.Module):
def __init__(self):
pass
def forward(self):
pass |
dfc07cb734fe03674a4a8650e94484973ef8dd4caf347ad4da146fae8a301ca0 | Python | 130 | 8 | from typing import Tuple
import numpy as np
from nam.config.base import Config
Config = Config
DataType = Tuple[np.array, ...]
|
88eabf6baeed1194882b4877746ecb90d48f83b411409a5638f52ff1b3385d46 | Python | 133 | 4 | from typing import List, Callable, Union, Any, TypeVar, Tuple
# from torch import tensor as Tensor
Tensor = TypeVar('torch.tensor')
|
ef553ad78ea9fe1e9bc64800c968d5900a44e84f70a84811b5c4b8a00094989b | Python | 133 | 6 | class TestIdentify:
def test_get_object_categories(self):
pass
def test_get_object_measurements(self):
pass
|
17a99ddffd6dfb7b06687cb6f36fdebc82eb3da4997002443bdbf621c9840943 | Python | 134 | 6 | import dgl.backend as F
import torch
def zerocopy_from_numpy(x):
return torch.from_numpy(x)
# return F.zerocopy_from_numpy(x) |
a789e68c6c8072fde05e10aeb3c96b3e13203a3c2d8806244b5d3cd293a82a96 | Python | 136 | 4 | import pyControl.framework as fw
import pyControl.hardware as hw
import pyControl.state_machine as sm
from pyControl.utility import * |
8e06670d5f01ec450967c57b4668ce1e3d7fc4792d4408c87aa23c957a4ee238 | Python | 138 | 4 | from .eddy import Eddy
from .epi import EpiCorrection, ApplyTopup
from .n4bias import N4BiasCorrection
from .nlmeans import NonLocalMeans
|
950fbbe61bc51f17b82e556f5b2cb05453a2a7e24c092fdc2a9a1f39eb74434e | Python | 138 | 5 | """
@author: Johanna Rahm
Research group Heilemann
Institute for Physical and Theoretical Chemistry, Goethe University Frankfurt a.M.
"""
|
075c618a8d51d619e8bdd9f3c6c9047e10dfa5dcf41306c3930624430a6f19ab | Python | 139 | 3 | from .DataGenerator import DataGenerator
from .GridTools import GridTools
from .NormalizeData import MinMaxParam, NormalizeData, NormParam
|
cbf7d4da91ed5921d1a3299bb1d8de0c73e7d8c1ffa4ee13791a3ccda92d5f06 | Python | 140 | 8 | from knn.knn import (
build_index,
display_results,
display_results_seq,
search_results,
search_results_2,
search
)
|
3c11ebbd5aa3f682b3e1ed28815e93aafc94c93e44ad6a420e7fe14f071c4ab2 | Python | 141 | 4 | class Finished:
def __init__(self, measurements, cancelled):
self.measurements = measurements
self.cancelled = cancelled
|
59d525b346d99537c0b50e38ed69395be8d6134ef86e4ce774e7e528f275bb2a | Python | 141 | 4 | from ._hub import *
import warnings
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
0badf7c230d7f4051c4a2e8b1532a1af1259ef7f5c19972f146c6b8066dbc3d3 | Python | 143 | 4 | from .plots import setup_recordAPs, setup_recordTraces
from .save import SaveResults
from .utils import *
from .wrapper import AnalysesWrapper
|
bdb5d3ab756c187f07ef54654e2d232cc7a61e93529f9d1f4d3ff82b990db1bd | Python | 145 | 4 | from ._factory import *
import warnings
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
25d6d623e6c6c1587382375c8bbdd2330f0942c8c711961a4be12dbad3f3f60d | Python | 146 | 4 | from ._registry import *
import warnings
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
97ed6905adfaaf42264919d545dea42d839da0cc7c4ef50c0a06c8910028a13d | Python | 146 | 4 | from ._features import *
import warnings
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
4f94e515b5042abe63aec0365b16ea9e0253e8a1695beb4703e7d275058dd12a | Python | 147 | 10 | import os
import sys
import pytest
args = sys.argv[1:]
if "NO_RHINO" in os.environ:
args += ["-m", "not rhino"]
sys.exit(pytest.main(args))
|
c6e7588c8f0b76b957013838387613d2bd13baeeb4f89506328144b407a119be | Python | 147 | 3 | from ._post_run_exception import PostRunException
from ._prepare_run_exception import PrepareRunException
from ._run_exception import RunException
|
ec5a57562624c0fd934293fed3bb05b608cf59fc5a2b23f38e0610fd0245a60c | Python | 148 | 3 | __author__ = ['Vikram Singh', 'Vikram Singh']
__email__ = ['vikram.singh7571@gmail.com', 'vikramsingh@cuhimachal.ac.in']
__version__ = '0.1.0-dev0'
|
ff64d55d77b9f87ab681db32e000fd6e2a0d2852bfdca3e74efd973543f6cc9d | Python | 148 | 2 | from .perlin3d import generate_fractal_noise_3d, generate_perlin_noise_3d
from .perlin2d import generate_perlin_noise_2d, generate_fractal_noise_2d
|
fb1c879d3f96a6e54524f562564869751160930e463574acfd1cc56031e42079 | Python | 149 | 4 | from ._features_fx import *
import warnings
warnings.warn(f"Importing from {__name__} is deprecated, please import via timm.models", FutureWarning)
|
46affd3396d101f3e02d63ea3adb89906f2cc2c794fe565bb08271bb98b98012 | Python | 150 | 8 | #!/usr/bin/env python3
import os
submit_files = os.listdir("submit_files")
for f in submit_files:
os.system(f"condor_submit submit_files/{f}")
|
3a72d777a185017dae128afaa852d4121b73039b3c78cb98143e1034aa39ed10 | Python | 151 | 5 | # deep learning
from .modelGenerator import NetworkGenerator
from .DataSet import DataSet
from .NeuralNet import NeuralNet
from .metaqnn import MetaQNN |
5970d5cef8cffe2bdf5eb2ea89e381f88917cb6f48361d4d48bee39f8e341428 | Python | 151 | 8 | import numpy as np
def scale_z(params, mean, std):
return (params - mean) / std
def unscale_z(params, mean, std):
return params * std + mean |
987c61a3363993d76114f54751b86aee06c94169c29297b448a8feb9a4ea3d6f | Python | 151 | 4 | # -*- coding: utf-8 -*-
"""Implementations of deterministic and ensemble downscaling methods."""
from pysteps.downscaling.interface import get_method
|
f28d03064871ef437a3c64150544d8404196b74c9d7183e07c2c8bfa15108976 | Python | 151 | 4 | from ..functions.image_processing import median_filter
def medianfilter(image, window_size, mode):
return median_filter(image, window_size, mode)
|
80d4faca1bcfdd1a97cfb9f2d8dda1f1738fc5bbc050544c1dd2b7c16dcc4822 | Python | 152 | 4 | from ._module import Module
from ._identify import Identify
from ._image_processing import ImageProcessing
from ._plugin_importer import PluginImporter
|
d8ff2aa4339e12739b10c73b418cfd0fe388f2d17c3667876af855f44b627440 | Python | 152 | 5 | from ._finished import Finished
from ._paused import Paused
from ._progress import Progress
from ._resumed import Resumed
from ._started import Started
|
35ff0750495ee3c4ad5f714202559e69cb51d4cbe3b62e10c807c4513c184f67 | Python | 154 | 4 | from ._float_range import FloatRange
from ._range import Range
from .integer_range import IntegerRange
from .integer_range import IntegerOrUnboundedRange
|
f73aec6de34f64595b61486e87ae29fcb37b143d743b76a3f177c6bc92b74d07 | Python | 154 | 9 | class TestBinaryMatrix:
def test_to_value(self):
pass
def test_get_matrix(self):
pass
def test_get_size(self):
pass
|
cf61d28433187540302de4288c18ccb2750e7d638752136f971a203ffe4471b3 | Python | 157 | 9 | class TestImagePredicate:
def test_is_stack(self):
pass
def test_fn_filter(self):
pass
def test_test_valid(self):
pass
|
d59ec9d470d875bc957ebb0d7e39f4480aebd0c93d58a5a51ffa586c353c3216 | Python | 157 | 3 | from ._image_list_subscriber import ImageListSubscriber
from ._label_list_subscriber import LabelListSubscriber
from ._list_subscriber import ListSubscriber
|
ad4d88e3a62e2b85e4a35a6d3fd0e4160207b9a1fcc3f60bfaba87de3c273056 | Python | 158 | 6 | import os
import sys
curr_dir = os.path.basename(os.path.abspath(os.curdir))
if curr_dir == 'configs' and '..' not in sys.path:
sys.path.insert(0, '..')
|
7014fd68025a731315c250d98c88338a6de0c9b6d04fd2a987c435415a60f611 | Python | 159 | 6 | import os
import sys
curr_dir = os.path.basename(os.path.abspath(os.curdir))
if curr_dir == 'hpsearch' and '..' not in sys.path:
sys.path.insert(0, '..')
|
f0fcc40fa38a82cbefe8a2e33435d2369b3c7f9e06aaa8c53792f30ad1b81545 | Python | 159 | 9 | class TestDoSomething:
def test_get_label(self):
pass
def test_set_label(self):
pass
def test_on_event_fired(self):
pass
|
26f2ac09bb6c2cd87dbb0e7c08bf9160b7f607cf9f71b4bdeb44af12c2570e6c | Python | 161 | 8 | import copy
import torch.nn as nn
def clones(module, N):
"Produce N identical layers."
return nn.ModuleList([copy.deepcopy(module) for _ in range(N)]) |
50c88db46ad3df2f709fbdf878db30d7d10433351bf02c0856dd7e3c78f56e1a | Python | 161 | 6 | import torch
def to_torch_batch(batch):
batch = torch.stack([batch.x[batch.batch == n].squeeze() for n in range(batch.num_graphs)],axis=0)
return batch |
6a1888bcdde1a5428c164d519e4fd8ee910fae5620f7673538187f171d16f967 | Python | 161 | 7 | from cellprofiler_core.utilities.zmq.communicable.reply.upstream_exit._upstream_exit import (
UpstreamExit,
)
class BoundaryExited(UpstreamExit):
pass
|
745e71ddb22387bcd95e651df4fdba67062b5c968c763512572447f167ee4479 | Python | 161 | 5 | import pyControl.hardware as _h
class LED_driver(_h.Digital_output):
def __init__(self, port):
super().__init__(port.DIO_A, pulse_enabled=True) |
aaf45a2417d92abc80da0ac102a84c4e913092656ccd18865ae58a3576ecf19a | Python | 162 | 6 | from ...utilities.zmq.communicable.reply import Reply
class Ack(Reply):
def __init__(self, message="THANKS"):
Reply.__init__(self, message=message)
|
2917fee54eeae72f0f7156620a9d9768f116a547e7ad9ef3c7b54927f79eaff0 | Python | 163 | 9 | class TestVanillaImage:
def test_get_name(self):
pass
def test_provide_image(self):
pass
def test_release_memory(self):
pass
|
e89cddd592fbc7e14046fb04fbccc27ee331a04b56cd118bed7299e556f8af13 | Python | 164 | 9 | class TestAbstractImage:
def test_provide_image(self):
pass
def test_get_name(self):
pass
def test_release_memory(self):
pass
|
e3da73b42d71a8d0ddd876aee999ca1142ac7ef522a6a8d18f316e6085d66caa | Python | 165 | 9 | __version__ = "3.0.0"
from .sc3D import SpatialOmicArray
from .transformations import transformations
__all__ = [
"SpatialOmicArray",
"transformations",
]
|
72bffee846605132210da0f2458c5d0eb05b73f821f3f49293b77e0d0e7e4e4d | Python | 167 | 9 | class TestFilterPredicate:
def test_test_valid(self):
pass
def test_encode_symbol(self):
pass
def test_decode_symbol(self):
pass
|
7ad5a1b155a8bd29ec4583b5d8005bfb8eb049e3d391a98f941d906ec50060e0 | Python | 168 | 3 | from model.egnn.egnn_pytorch_geometric import EGNN_Sparse, EGNN_Sparse_Network
from model.egnn.egnn_pytorch import EGNN_Network
from model.egnn.utils import Classifier
|
bd790f87ae82a7162f844c4dcc491b74e485e525757e402a95195786271ffc2b | Python | 168 | 9 | class TestSettingsGroup:
def test_append(self):
pass
def test_visible_settings(self):
pass
def test_pipeline_settings(self):
pass
|
f3ad6762427c6854954904240992e76d2b379e93c3d795160b5194338fb691d6 | Python | 168 | 9 | class TestListSubscriber:
def test_get_value_text(self):
pass
def test_set_value_text(self):
pass
def test_test_valid(self):
pass
|
14261354197ac55268cb202cfdb9df7623f66cc0608db75344ebb48795f86168 | Python | 169 | 2 | # this is automatically updated after reproschema new release
CONTEXTFILE_URL = "https://raw.githubusercontent.com/ReproNim/reproschema/main/releases/1.0.0/reproschema"
|
17e5c0165827784144dd8b32dc16290bc03ed393a6d809eb3dc0c04f8effb6b9 | Python | 169 | 9 | class TestMetadataPredicate:
def test_set_metadata_keys(self):
pass
def test_do_filter(self):
pass
def test_test_valid(self):
pass
|
a90fbe3be6fb854c27009860ef2f282f2a43ab4ae4c0056b85a7c270fa0cb2e6 | Python | 169 | 11 | # -*- coding: utf-8 -*-
"""
@author: Jussi (jnu@iki.fi)
"""
from setuptools import setup, find_packages
setup(
name='megsimutils',
packages=find_packages(),
)
|
486d361648060b68f65a271789257c5ae0e2123163a7566c9196f0b777f03ce1 | Python | 172 | 6 | from ...utilities.zmq.communicable.reply import Reply
class OmeroLogin(Reply):
def __init__(self, credentials):
Reply.__init__(self, credentials=credentials)
|
15cc010b23fc958569109bd793e088fb07faff114bb574732a081e102cd747a0 | Python | 173 | 7 | from ...utilities.zmq.communicable.reply import Reply
class DebugCancel(Reply):
"""If sent in response to DebugWaiting, the user has changed his/her mind"""
pass
|
480e657c9db7f9399a1431628bbb55ed56872521a283405d38a4f33b2305114f | Python | 173 | 9 | class TestDataTypes:
def test_get_data_types(self):
pass
def test_decode_data_types(self):
pass
def test_encode_data_types(self):
pass
|
b51d63d3da910fc9dd6e2ecc52d45ee25f34f62ce45a006abbdc2780daba2623 | Python | 173 | 3 | from torchmeta.utils import data
from torchmeta.utils.metrics import hardness_metric
from torchmeta.utils.prototype import get_num_samples, get_prototypes, prototypical_loss |
e19f46c267e4204a47781d7be1dfb1634fb12316d981720df9dfe23020928970 | Python | 173 | 4 | _all__ = ["utils"]
from .utils import Rd_sampling, ScatteredHypersphere, sparsity_to_x_intercept, get_mean_and_ci
from .figure_utils import *
from .network_diagram import *
|
f05918cfd56288450817d245dede6b6c98e33955273689a7611f9b779d349192 | Python | 173 | 3 | from .config_parsing import parse_opacus_params
from .model_handling import opacus_model_fix, prep_for_opacus_training
from .training_utils import handle_dynamic_batch_size
|
03c52edbe649136f2aa0e2dfc80cfee018f073ba256cde6b6b19365f1641d71b | Python | 174 | 5 | DEBUG=True
VESSEL_DIR = '/Volumes/GAITDRIVE/lung/vessel12'
SVESSEL_DIR = '/Users/ari/th/VesselSynth'
ENDOSTROKE_DIR = './data/gendostroke'
ISLES2018_DIR = './data/gisles2018' |
50781979b02a18654c2e7b60b29db65d273486de2dcf550dff7a8f6ac128cc4f | Python | 174 | 3 | from .basic_models import StateSpaceModel, OscillatorModel, AutoRegModel, GeneralSSModel # noqa: F401
from importlib.metadata import version
__version__ = version('somata')
|
cd5b79eb6a2f8aea32cba97ce53820feb8f241d3850849d82eeca41d89d89e2f | Python | 174 | 7 | from cellprofiler_library.functions.image_processing import gaussian_filter
def gaussianfilter(image, sigma):
return gaussian_filter(
image,
sigma,
) |
dffa773f990ad76b57c1d28ef6191157a1558010a9b40d68547d84f3b0054e5a | Python | 174 | 5 | #!/usr/bin/env python3
# -*- coding: UTF-8 -*-
# check GaNDLF wiki for versioning and release guidelines: https://github.com/mlcommons/GaNDLF/wiki
__version__ = "0.1.6-dev"
|
e5ae6137ae98e2d0f905db1aee38a3e2f37a103b4af6845e7e67aaf7123e5167 | Python | 174 | 8 | import numpy as np
def rmse(y_true, y):
return np.sqrt(np.mean((y_true - y)**2))
def explained_variance(y_true, y):
return 1 - np.var(y_true - y) / np.var(y_true)
|
0428d29a5f1e82660d813952ae64bfe89ea1a34800a5a7353181dc44209ff3ad | Python | 175 | 9 | from .model import (
Activity,
Item,
Protocol,
Response,
ResponseActivity,
ResponseOption,
)
from .utils import identify_model_class, write_obj_jsonld
|
a56285427b5141a9411650f6c08c839faa9e9ead107884dbb01788718f297dad | Python | 176 | 4 | from .pac_model import ( # user-facing functions to analyze phase-amplitude coupling # noqa: F401, E501
fit_pac_regression,
kmod, phimod,
mvar_ssm, optimize_arp)
|
ad8f88bf6376c14be42de20b144af7f1f1337313e49fdf853185014464ea548b | Python | 177 | 4 | """Martensite substructure generation: parent grains -> packets -> blocks -> orientations.
See dragen/substructure/run.py for the pipeline and the order the stages run in.
"""
|
f677db0278504b0a132bd504018b24226d69d0788258441c97881ce3546b8b72 | Python | 178 | 7 | # -*- coding: utf-8 -*-
"""Top-level package for visual_coding_2p_analysis."""
__author__ = """Nicholas Cain"""
__email__ = 'nicholasc@alleninstitute.org'
__version__ = '0.1.0' |
406d15df1cb6885cbf231869c980a9ba14db8a98ed80bcfe51e5cd59406e4987 | Python | 179 | 8 | name = "sspslam"
version_info = (0, 2, 0) # (major, minor, patch)
dev = False
v = ".".join(str(v) for v in version_info)
dev_v = ".dev0" if dev else ""
version = f"{v}{dev_v}"
|
8c117e0f48da687271dc691de857e7dda58988429620dfcd32c097f3c9cb04a7 | Python | 179 | 7 | from enum import Enum
class BackgroundExclusionMode(str, Enum):
"""Background exclusion method"""
THRESHOLD = "Threshold"
MASK = "Mask"
OBJECTS = "Within Objects" |
cec2b6bcbde8ad037c9c3cb8d38b7eb3e6703b008ab03008546020b0ade090ae | Python | 180 | 7 | # -*- coding: utf-8 -*-
"""
Methods for constructing bandpass filters and decomposing 2d precipitation
fields into different spatial scales.
"""
from .interface import get_method
|
3f24045f851d0e59c9d6a52674812dda15b8e13fcf576a3a3231efde3b4bf917 | Python | 181 | 9 | # -*- coding: utf-8 -*-
"""
.. include:: ../README.md
"""
__author__ = """Vito Zanotelli, Anton Rau"""
__email__ = "vito.zanotelli@uzh.ch, anton.rau@uzh.ch"
__version__ = "2.1.8"
|
2ed8d517c2bee4659ddf25c2e6bfc507ca67aff3bc4bb3649ab32caa3c8de1c9 | Python | 182 | 7 | from ..functions.image_processing import morphology_opening
def opening(image, structuring_element):
return morphology_opening(
image,
structuring_element,
) |
58c50c21aa57a7bd48278dd8ebba385fedc39f2b436ed2b848c0ca9cc00125fa | Python | 182 | 9 | class TestBeforeChangeSettingEvent:
def test_cancel_change(self):
pass
def test_allow_change(self):
pass
def test_get_cancel_reason(self):
pass
|
868562ebfbaae41e4056a419ab08161ae7f015cc0b2635439457eb567b8226bf | Python | 182 | 7 | # -*- coding: utf-8 -*-
"""Methods for post-processing of forecasts."""
from . import ensemblestats
from .diagnostics import *
from .interface import *
from .ensemblestats import *
|
37a2b37c9ec56b9a795f44a29726850bd0bf598a3e24779e01adab949d81f7e7 | Python | 185 | 9 | #!/usr/bin/python3
__all__ = [
'association', 'binnet', 'coex', 'de', 'gocovt', 'lcpm', 'norm',
'normalisr', 'parallel', 'qc', 'run']
from . import *
assert __name__ != "__main__"
|
685dfcc0423063e013db81bdc27584e811d0641f443abf39c5d085589281f30d | Python | 185 | 7 | __version__ = '1.2.2'
from . util import *
from . datasetgenemap import *
from . DNN import *
from . util_Mouse import *
from . fit_functions import *
from . data_augmentation import *
|
6cabc5ce7fad0429f4bef09cce4c54db6d10d2e44fa1eb17ad042f173981a9a7 | Python | 185 | 7 | __version__ = '1.1.2'
from . util import *
from . datasetgenemap import *
from . DNN import *
from . util_Mouse import *
from . fit_functions import *
from . data_augmentation import *
|
9cc5934d0157848ebe4e0e5ec57dd22a881d0e336a108f46daaecc4fdf2753b9 | Python | 185 | 6 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# pylint: disable=unused-import,wildcard-import
from .deconvModel import *
|
3279e273dfa5ab8b0dcf08cf732d3f60535cce69ca506fd36dd17f1290816900 | Python | 186 | 9 | from pyunicorn import Network, mpi
def master():
net = Network.Model("BarabasiAlbert", n_nodes=1000, n_links_each=10)
print(net.newman_betweenness())
mpi.info()
mpi.run()
|
b7ac97b484534f8368eeca9b6900e05dc50fc35e2ad89efef11d9907b8c67567 | Python | 186 | 3 | from ._after_change_setting_event import AfterChangeSettingEvent
from ._before_change_setting_event import BeforeChangeSettingEvent
from ._change_setting_event import ChangeSettingEvent
|
13c48dc7b266e8139221ac7556dc51734bff91866642063f290fa87a3265578e | Python | 188 | 8 | from .aggregator import *
from .attentionmil import *
from .lamil import *
from .perceiver import *
from .transformer import *
from .transmil import *
# from model_utils import *
|
2c089c2c99f0c40cfaa108c3dad8d7dc3bcbe9b34ad3f291fad93c49ef4968c3 | Python | 188 | 7 | """
@author: Johanna Rahm
Research group Heilemann
Institute for Physical and Theoretical Chemistry, Goethe University Frankfurt a.M.
"""
__all__ = ["addOns.py", "imageBinner", "visLocs"] |
5378de56d2981607f16ceecd62775a9c0c9916812f6f249c3aae13f1ca637d7f | Python | 188 | 9 | from enum import Enum
class ImageMode(str, Enum):
BINARY = "Binary (black & white)"
GRAYSCALE = "Grayscale"
UINT16 = "uint16"
COLOR = "Color"
DEFAULT_COLORMAP = "Default" |
bd33272a4da8acd7335aea6990cac1e9179de069848b607d0cebf9fe726fcd1b | Python | 188 | 9 | class TestSubdirectoryFilter:
def test_get_value_string(self):
pass
def test_alter_for_create_batch_files(self):
pass
def test_test_valid(self):
pass
|
16d80a324606e880d56bef7fd443221f2e955a933e264d165ddbe6d4a73dd88b | Python | 189 | 7 | """
Author: Mingjian He <mh1@stanford.edu>
utils module contains helper functions used throughout SOMATA
"""
from .helper_functions import consecutive, estimate_r, wrapToPi # noqa: F401
|
b977872be6a4c8bc3c2d2ca4ce9b0b8b62675a815a761fe3a35673a0e5716a09 | Python | 189 | 6 | from unittest import TestCase
from .files import upload_training, get_npy_files
class LoggerTest(TestCase):
def test_print_debug(self):
upload_training('UNet',1,0.001,'MNIST')
|
5dd1c3608ffe37c29ef18144d7fec25a488afe3d7adf28bfb979b3f47e2784c6 | Python | 190 | 6 | import os
def savefigs(fig_name, fig_dir, fig):
if not os.path.exists(fig_dir):
os.makedirs(fig_dir)
fig.savefig(os.path.join(fig_dir,str(fig_name) + '.png'), format='png')
|
0934df59e12467b62a3b876ad7b40fd47e37b45bbbff910bdf265808748ca420 | Python | 191 | 4 | from ._dependency import Dependency
from ._image_dependency import ImageDependency
from ._measurement_dependency import MeasurementDependency
from ._object_dependency import ObjectDependency
|
49c33c3d7815b0980342c15d4ecfe43e3e2e166521d3fcf5b34e641346bc9415 | Python | 191 | 6 | import numpy as np
from pyunicorn.timeseries import RecurrenceNetwork
x = np.sin(np.linspace(0, 10 * np.pi, 1000))
net = RecurrenceNetwork(x, recurrence_rate=0.05)
print(net.transitivity())
|
28a43c00268a8dc153f7267a1b2dbd4a79973868c9dfde129328c96ae6efdc6d | Python | 193 | 7 | """
Author: Mingjian He <mh1@stanford.edu>
multitaper module contains multitaper spectrogram computation used in SOMATA
"""
from .fast_psd_multitaper import fast_psd_multitaper # noqa: F401
|
cfae9465c23a4837a4b5dc8a04ba4ac7630548da5ef03d7fac47bc0b151f63b5 | Python | 193 | 5 | from ._color_image import ColorImage
from ._mask_image import MaskImage
from ._monochrome_image import MonochromeImage
from ._objects_image import ObjectsImage
from ._url_image import URLImage
|
0e078fb4d1db3337b10548dd33a3affe1b4324560a6b28fae289e5de0d4d0232 | Python | 196 | 12 | class TestDoThings:
def test_count(self):
pass
def test_get_label(self):
pass
def test_set_label(self):
pass
def test_on_event_fired(self):
pass
|
c6eb00826b446a7cb020ad01ee0ef6c1c7ebe0addf76af3bc0478ee05be9af4f | Python | 196 | 9 | from ._event import Event
class URLsCleared(Event):
def __init__(self):
super(self.__class__, self).__init__()
def event_type(self):
return "File list has been cleared"
|
393c37c56b0f4834f796b40daa725b16e4e4deaa10fb47e4cbe28f3446300826 | Python | 198 | 5 | from .logger import print_debug
from .savefigs import savefigs
from .timer import Timer
from .files import get_npy_files, upload_training
__all__ = ['print_debug','savefigs','Timer','get_npy_files'] |
95866b025edf7ee5af079d686f454863f6f46bde49e53697f12d56d5a27ce5de | Python | 198 | 7 | """
@author: Johanna Rahm
Research group Heilemann
Institute for Physical and Theoretical Chemistry, Goethe University Frankfurt a.M.
"""
__all__ = ["saveAddOns", "saveImageBinner", "saveVisLocs"]
|
445e883545a39d4396ea252cf465f88ac539e89d1f3daebacc02db13ac02d155 | Python | 199 | 8 | # -*- coding: utf-8 -*-
"""
Methods for generating stochastic perturbations of 2d precipitation and
velocity fields.
"""
from .interface import get_method
from . import utils, motion, fftgenerators
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.