sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
a29ce6bff7c99cd17aca04a44f703aa920e487659b1ce3c9982070965d38f1ec
Python
159
9
from typing import Optional, Any from dataclasses import dataclass @dataclass class FilterConfiguration: name: str parameters: Optional[Any] = None
bc6873235056fca2ff2aa578262aa6efe791eca801a70401f531e08bf88e4d2a
Python
159
7
from reinvent.models.transformer.transformer import TransformerModel class LibinventModel(TransformerModel): _model_type = "Libinvent" _version = 2
465dd04563513c049824c1626cbdc2b53f85ecb419adf13da3e7b90f6805115e
Python
160
6
"""Compatibility entry point for the renamed Proj2Proj example.""" from sparse_ct.example.proj2proj_example import main if __name__ == "__main__": main()
136a346d826f79d1c613ef555465048a99878d2113464988a51f90d983837b87
Python
161
4
from Engine.train import initiate if __name__ == "__main__": initiate("/cluster/work/sosevle/LungTumorSegmentation/Resources/Idun_Train_2/train_focal.yaml")
6743e608512f1541784d9413648eefb8956157b44ae6fdeb029c685328f2cece
Python
161
5
from .gru_att import GRU_ATT from .bert import BERT from .bert_model import BERTChem_TAR, BERTChem_Mask, Con_atom from .loss import * from .lr_scheduler import *
db117ddceae56a7f00bba63c13f25f505c0fa302bdb0ff99830e764638be17ba
Python
161
7
from reinvent.models.transformer.transformer import TransformerModel class LinkinventModel(TransformerModel): _model_type = "Linkinvent" _version = 2
10b43f95328ca9603b17856319d4e5f279b26d21d916b101914727f08e55ea67
Python
162
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)])
ae696f55b14df2f9a2097c6fad75a0dc8b2c7e8457887ab4daeb27f240f8fa8a
Python
162
7
import os for d_cutoff in [4.5,5,6,8,10,15,20,30]: my_cmd = 'sbatch gpujob_gvp_vanilla_var_d.sh {}'.format(d_cutoff) print(my_cmd) os.system(my_cmd)
ebbc547a8bc8f80fb49abb9a2716833e3b2ccda2cbbd6a4996147c2e08e74fbd
Python
162
3
from ._weights import download_weights from .graph.models import GraphImgNet, GraphImgNetIce, PosNet from .image.models import ASDAFMNet, AttentionUNet, EDAFMNet
5fc8f2d1416cf7de6afc6fc0224fd37f56fc2eb84471121e5627a3fde51fd024
Python
163
4
from Engine.train import initiate if __name__ == "__main__": initiate("/cluster/work/sosevle/LungTumorSegmentation/Resources/Idun_Train_2/train_tversky.yaml")
ba6863090e1e68d8541ca19c678d30ab01f95e1f63389ddc156ac92edf9c17e8
Python
163
9
from .evaluation import ( assign_labels, logreg_fit, logreg_predict, all_activity, proportion_weighting, ngram, update_ngram_scores, )
c1281186eb3e72fc1e96b9ca8643dc556fc5fc246ecb04af969bef62be345da0
Python
163
7
from .metrics import XCollector, ExplanationProcessor, control_sparsity __all__ = [ 'XCollector', 'ExplanationProcessor', 'control_sparsity' ]
7d9f75e8351bd61a67cca5108332906b84e1782bd22698d78ec947003ecfec10
Python
165
3
from .openfoamhandler import OpenFoamHandler from .field_parser import parse_internal_field, parse_boundary_field, parse_field_all from .mesh_parser import FoamMesh
b5dfb15d2e79360a17690c651dac09f4beb1f0d42b707b0f4aa9d76e1ce4c838
Python
166
8
from .datasets import get_dataset, get_node_dataset from .TUDataset import TUDatasetExt __all__ = [ 'get_dataset', 'get_node_dataset', 'TUDatasetExt' ]
1b30d8ef4633014aab5a0a86f64c43e08b41e0e9329e388620419c864d2184d0
Python
168
7
import chromadb import chromadb.config from chromadb.server.fastapi import FastAPI settings = chromadb.config.Settings() server = FastAPI(settings) app = server.app()
a01aded55334e0c52ec97659dd844e896d2065b265d3ad9808be8989c5db9af2
Python
168
7
from .metric import RandGenEvaluator, PropOptEvaluator, ConstPropOptEvaluator __all__ = [ 'RandGenEvaluator', 'PropOptEvaluator', 'ConstPropOptEvaluator' ]
cf2d5a52f6f05d5d56e86a7f92d304b5d0d3815a13d15d84f4da49e048599fbe
Python
168
5
''' Module Providing known Cap info: channels name, types with respect to LSL stream and the laplacian's neighbours. ''' from .layout import Layout, available_layouts
98c068aa8c65e3843193523d8e06fc231a71b69361ba7719a35a8bc75aa2a11a
Python
170
6
# Copyright 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openfl.utilities.types import * # NOQA from openfl.utilities.utils import * # NOQA
c92f9175c5b9dbf99571520ac4a866e52152adfbd4c92655bf85196e4d12e3c9
Python
170
9
from DeepPurpose import utils, dataset from DeepPurpose import DTI as models def main(): dataset.download_BindingDB() if __name__ == "__main__": main()
0d8d1fd4089d006c9bb209dbd377a78434c548aabc78d05a565775c951b63626
Python
171
3
def run_model(input_path): from lungtumormask import mask mask.mask(input_path, "./prediction.nii.gz", lung_filter=True, threshold=0.5, radius=1, batch_size=1)
29f007c498a9a9aa4565dda28cd1fdf8bf7140c0e0f10df8f7133c858ef6852f
Python
172
9
from abc import ABC, abstractmethod from chromadb.config import Settings class Server(ABC): @abstractmethod def __init__(self, settings: Settings): pass
f93fad8a9596bfc07fb4d5ebaee8d685be910975ba022ea5bedcaee24d7a4a61
Python
173
5
"""Test package for the inference module. Shared fixtures live in `conftest.py`. Each test module declares the tolerances it needs, so this package holds no constants. """
5c1feeb6c771fec3dbcea17b8dcc1eaf7aacdbd9b01de37ec22f513059e96c70
Python
174
8
""" Module for signal recording. Record signals into fif format, a standard format mainly used in MNE EEG analysis library. """ from .stream_recorder import StreamRecorder
f8416c017f8f2ae40c40b4138c0948bb4005c11da86c83fc4f17d2c9f57e2049
Python
174
6
# Copyright (C) 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Envoy package.""" from openfl.experimental.workflow.component.envoy.envoy import Envoy
0d36c0fee50c01a9fe74d42b905b663f39e608f7c57104557c10494b8bd7cfa9
Python
175
6
# # For licensing see accompanying LICENSE file. # Copyright (C) 2022 Apple Inc. All Rights Reserved. # from .data_loaders import create_train_val_loader, create_eval_loader
988de89a3a12fa7ff1dcf4398a22809af4bae0d63d02c80591b5218fee26e5cc
Python
175
5
# Copyright 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openfl.databases.utilities.dataframe import ROUND_PLACEHOLDER, _retrieve, _search, _store
dfd7d57d601bcff71fdc15c07eb04c3bf129ca0751226591175682b86284d98d
Python
175
2
# This test requires external MMP tooling and is marked @pytest.mark.integration. # It has been moved to tests/reinvent_plugins/integration_tests/components/test_comp_mmp.py.
53e113b6ff1a68bef536975110771c9cc104fecd63acdfc5ae4c776ccaac2c75
Python
176
10
""" FileName: definitions.py Description: Time: 2020/7/28 12:22 Project: GNN_benchmark Author: Shurui Gui """ import os ROOT_DIR = os.path.abspath(os.path.dirname(__file__))
5221b859940aa170049f112ef4853fef65b76af624527236a2e2a956d74bb427
Python
180
10
from .PygDataset import PygDataset from .ggraph_dataset import QM9, ZINC250k, ZINC800, MOSES __all__ = [ 'QM9', 'ZINC250k', 'ZINC800', 'MOSES', 'PygDataset' ]
d8394f48710cf30b84d33dbb602c694573a85b46cf5482288c06fce63fd01516
Python
180
9
# type: ignore __submodules__ = [] # <AUTOGEN_INIT> import lazy_loader __getattr__, __dir__, __all__ = lazy_loader.attach_stub(__name__, __file__) __all__ = [] # </AUTOGEN_INIT>
f9aba60fccf3ab281d3cb0d5c39f24a1fc8f6d34fa784aaec780a347ee92ebc6
Python
180
13
from .learning import ( LearningRule, NoOp, PostPre, WeightDependentPostPre, Hebbian, MSTDP, MSTDPET, Rmax, Triplet, AntiHebb, wSTDP, )
b7a2050a1bedca2f269b908c6f377c2f38830dfbdf6500e2c3aa4e43b01baa89
Python
181
7
"""The Transfer Learning facility for REINVNENT.""" from .reinvent import * from .libinvent import * from .linkinvent import * from .mol2mol import * from .configurations import *
0bb8b14a2e4e9d95d180570e8ba53b26999360130684a622dc7a5b690cf8e6a2
Python
183
6
# Copyright (C) 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np aggregator_private_attributes = {"test_loader_agg": np.random.rand(10, 28, 28)}
944dd51d003f37b8be94e47debaab6baa33cfa2c91a1ac6c5372ca3c5f39cf72
Python
183
4
from Engine.train_teacher import initiate if __name__ == "__main__": initiate("/cluster/work/sosevle/LungTumorSegmentation/Resources/Idun_Train_1/train_half_filter_cropped.yaml")
c2e7f035a47f626a60f2b289f2948e5c520940e6fd98c736b2735ddeef782294
Python
183
7
# SPDX-FileCopyrightText: 2022-present Chatipat Lorpaiboon <chatipat@uchicago.edu> # # SPDX-License-Identifier: MIT from . import grid, grid_ref, traj, traj_ref from .traj import *
e2350e828a8c422ce74fff20ecabb00579d8eb7e80965242fca0d8c8cd7d669d
Python
183
8
import metroem.loss import metroem.finetuner import metroem.helpers import metroem.aligner import metroem.masks import metroem.aligner import metroem.alignment import metroem.dataset
e08101057ae9ad6fae1e134e88edb2cccbd53b84886990024f10ba2565d12543
Python
184
7
from chromadb.utils.distance_functions import cosine import numpy as np def test_cosine_zero() -> None: x = np.array([0.0, 0.0], dtype=np.float16) assert cosine(x, x) == 1.0
465d7f7d90050ed7dd3d899c5aaa3868bb43d7d37a15da6aab66ac0de3b26ff4
Python
185
8
def add_tag(label: str, text: str = "True"): """A simple decorator to tag a class""" def wrapper(cls): setattr(cls, label, text) return cls return wrapper
1c018e6978d2412bc162aa73335517fdd9bb6bd1e444ad5ef1faaaeedf424f65
Python
186
4
from Engine.train_teacher import initiate if __name__ == "__main__": initiate("/cluster/work/sosevle/LungTumorSegmentation/Resources/Idun_Train_1/train_full_filter_full_image.yaml")
7311ff4b2e33a99f67071c98b39851a4917ace6029fb8c4366a99b46c0f1358d
Python
186
9
from .models import ( EINetwork, EINetwork_twotypes, TwoLayerNetwork, DiehlAndCook2015, DiehlAndCook2015v2, IncreasingInhibitionNetwork, LocallyConnectedNetwork, )
d6ad493c7e8a27ac7fef7007f3dfdbc0e660c471b5b1de36f8872b1d4c3deb9a
Python
186
6
# Copyright (C) 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Director package.""" from openfl.experimental.workflow.component.director.director import Director
fbeed116e9844032d607b501fcdd5e1a58f52396b6d689cc64315f4acea53032
Python
186
6
from .contrastive import Contrastive from .infograph import InfoGraph from .grace import GRACE from .graphcl import GraphCL from .mvgrl import MVGRL, NodeMVGRL from .pgrace import pGRACE
72343844e964c30e9bd41311118cb1fd303dc4eeb6e6bed8452e2528170718eb
Python
187
8
from dataclasses import dataclass from rdkit.Chem.rdChemReactions import ChemicalReaction @dataclass class ReactionDTO: reaction_smarts: str chemical_reaction: ChemicalReaction
908ce09802b449c18a44c5e6bafc06143c563bfb5b2314b81054841124e43b37
Python
187
8
import zapit_python_bridge.bridge as zpb from time import sleep hZP = zpb.bridge() hZP.send_samples(conditionNum=-1, hardwareTriggered=False) sleep(0.75) hZP.stop_opto_stim() sleep(0.5)
ef1085956deb681bb074d844cee5775704f79a895cc6a185a4b96a61ac522caa
Python
187
8
from ._base import BaseEstimatorTestData class LinearRegressionTestData(BaseEstimatorTestData): trials = 1 def runs_test_data(self): return self.generate_random_data()
580d43180f5eaff1184c0ddd00fb8ad5ea19ca8b10d83afbe755199041c0f887
Python
188
4
# Copyright (C) 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 def callable_to_initialize_collaborator_private_attributes(collab_name): return {"name": collab_name}
04a350eb68d7da0b922f0059704609ea2d7833dbd57fa7ea28789b830c51b2c1
Python
189
8
"""The sampling facility for REINVENT.""" from .sampler import * from .reinvent import * from .libinvent import * from .linkinvent import * from .mol2mol import * from .pepinvent import *
7590b7afb7a3e4f17624b2b434d680cf114c3fb2412958ae9daa706305f1350c
Python
189
5
# Copyright (C) 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 def callable_to_initialize_collaborator_private_attributes(collab_name): return {"name": collab_name}
1dfc3e7cef531c493fe75a327335d4fe508dd9ed3d00168b5f36d65b66b7d546
Python
190
10
from .get_data import get_data from .loader import SubData, SubgraphLoader, EvalSubgraphLoader __all__ = [ 'get_data', 'SubData', 'SubgraphLoader', 'EvalSubgraphLoader' ]
386f31cfc1f11d7f21aecdfc38f4a5eb0cc2a5198678f5b9d535375ff29be673
Python
190
1
from .change_event_values import (change_event_values_arr, change_event_values, dir_change_event_values) from .find_event_channel import find_event_channel
ab1dd8d991a07c12dfc726da0285c8cb9cd8464a817d7b269cc20519f83eaae2
Python
190
6
# Copyright 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openfl.databases.persistent_db import PersistentTensorDB from openfl.databases.tensor_db import TensorDB
b1c5c3dea6d40cd78c04b8643ffcc9e3c48f2f1e2326b50f81b3dcc98d9da5cc
Python
190
9
#!/usr/bin/env python3 # # Sniffles2 # A fast structural variant caller for long-read sequencing data # # Created: 15.08.2021 # Author: Moritz Smolka # Contact: moritz.g.smolka@gmail.com #
0ea36483c48bd9a3df6d2f85f6f6c06c3b194fd32ec9054220a73b697a5e12ac
Python
191
8
""" Module for signal visualization. Visualize signals in real time with spectral filtering, common average filtering options and real-time FFT. """ from .stream_viewer import StreamViewer
1e020831db0b673bc61bd8e24738cf5e358c104dd5ad9f7e1ab83bf869a35d9c
Python
191
10
import pickle import numpy as np path = './data/varExp_LEiDa.pickle' with open(path, 'rb') as f: varExp = pickle.load(f) np.savetxt("./data/varExp_LEiDa.csv", varExp, delimiter=",")
ed5e3ba361269c52717e36052c832e354f842e24fbb14cebeb789c2c2f643002
Python
191
12
""" External functions """ from .srm import DetSRM, SRM from .hrf import ( spm_hrf, glover_hrf, spm_time_derivative, glover_time_derivative, spm_dispersion_derivative, )
9129021d6400201e2ef29db73335ffdfd4b1923ff1a9970c7c6f761ff08108d5
Python
192
9
from dataclasses import dataclass from typing import List @dataclass class ReactionFilterConfiguration: type: str reactions: List[List[str]] reaction_definition_file: str = None
823262f6400fc7ccd1760193c8a0f0aea734965d2fb61040d7be4ebe451cab04
Python
193
8
from .eval_node import NodeUnsupervised from .eval_graph import GraphUnsupervised, GraphSemisupervised __all__ = [ "GraphUnsupervised", "GraphSemisupervised", "NodeUnsupervised" ]
94e408d17e573dee89a927692400bf4c3c956dbb3a3884dcab03301fadd854ba
Python
194
10
# -*- coding: utf-8 -*- from JSExperiment_BrainRegionsForward import JSExperiment_BrainRegionsForward def main(): JSExperiment_BrainRegionsForward() if __name__ == "__main__": main()
4aaf66b9225c585bafb2ce7732e4416b95b8ab599219c74032bc1a146323a8c8
Python
195
4
from .environment_pipeline import EnvironmentPipeline from .base_pipeline import BasePipeline from .dataloader_pipeline import DataLoaderPipeline, TorchVisionDatasetPipeline from . import action
3b1fc03bf8f4eb10728fbc9ce5efe5de4d07e8ff95a0b4494ce3f1e653fd10cb
Python
196
3
from PymoNNto.Exploration.HelperFunctions.Synapses_And_Weights import * from PymoNNto.Exploration.HelperFunctions.Testing import * from PymoNNto.Exploration.HelperFunctions.Reconstruction import *
b63631eb129fd8fd2377cb90fe43ef7addbb90041bcbcb7d6efdb71d984d0327
Python
196
4
# This file is a part of the `nequip` package. Please see LICENSE and README at the root for information on using it. import pathlib CONFTEST_PATH = pathlib.Path(__file__).parent / "conftest.py"
3e9ce40f444ff2ae70da7cdffebe842c5d16516297ef3bd6ad1dd2123685322f
Python
198
11
from .PygQM93D import QM93D from .PygMD17 import MD17 from .ECdataset import ECdataset from .FOLDdataset import FOLDdataset __all__ = [ 'QM93D', 'MD17', 'ECdataset', 'FOLDdataset' ]
4440f53aa8332001054a70d46b8fde28270896c5e3b5d556a41ffd3648407cbd
Python
198
5
from .sigmoid_penalty import SigmoidPenalty from .linear_penalty import LinearPenalty from .erf_penalty import ErfPenalty from .step_penalty import StepPenalty from .tanh_penalty import TanhPenalty
13e2c56de1f6290cb6677164ec4d6c6a88767afe5d6155f36bfac5b4127cf126
Python
199
9
# submit all import os os.system('sbatch gpujob_score.sh df_test.csv') os.system('sbatch gpujob_score.sh df_704_10x_exp_no_stop.csv') os.system('sbatch gpujob_score.sh df_mut_all_no_stop.csv')
65e6d598bed5eb2f2dc627c0fc406d54a39ce412c9f821deff44ac1679d8a8c1
Python
202
7
from abc import abstractmethod, ABC class BaseReactionFilter(ABC): @abstractmethod def evaluate(self, molecule): raise NotImplementedError("The method 'evaluate' is not implemented!")
ca5a815d2a703de0c9bc272ca02a2e87ddaec1217a25e570419399b30536e400
Python
203
12
import sys from ..tokens import find_tokens def tokenize(args): for text in sys.stdin: tokens = find_tokens(text) text = ' '.join(tokens) if text: print(text)
7b2c713f04d5172e0825d3de7de3e76463f04183bb0fb5fc6cc1e82b73de0366
Python
205
7
# Sanity check script to ensure that the Chroma client can connect # and is capable of recieving data. import chromadb # run in in-memory mode chroma_api = chromadb.Client() print(chroma_api.heartbeat())
a0111e1a6b885581e62d5024e0cc75cb30d304637056dfab3cde2a9ca43bdd26
Python
205
6
""" Shared constants for nltools.algorithms module tests. These tests verify the computational correctness of statistical algorithms in the functional API (not how they're called from class methods). """
e495d6b6f1012db01690b6ddacc2e3b9aa00152ebc4af94139ee9a6a7908d7af
Python
205
4
"""A storage for constants needed for the samplers""" DATALOADER_BATCHSIZE: int = 64 # independent batch size for Dataloader SAMPLE_BATCH_SIZE = 1000 # Reinvent specific: should fit in small GPU memory
8db3886fc23b6dc91fed4263582c33d59b110623fa414dd14eb387525d0b191b
Python
206
8
"""Estimators implementing models with which data are analyzed.""" from .vanilla import * try: from .r_estimators import * except ModuleNotFoundError: pass from .helpers import SingularMatrixError
e49062ac0f8999550c5b9593fe423d4a80ed76ab296862dbeaaa29b42ebca072
Python
206
7
# Copyright 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openfl.interface.aggregation_functions.experimental.privileged_aggregation import ( PrivilegedAggregationFunction, )
014966036e27f354e45ba41953a8d37e67bd9ced7b5c88290a940555361b5dc0
Python
208
3
from .aligners import aligner_unet_cvpr2018, aligner_unet_cvpr2018_v2, aligner_unet_cvpr2018_vJX from .aligner_affine import aligner_unet_cvpr2018_v3, aligner_unet_cvpr2018_v4 from .aligner_color import *
a78abd00b65798035360c4ec9f315181f478229cc93dd0ed2b77e47defeaace5
Python
209
7
# Copyright (C) 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 import numpy as np def aggregator_private_attrs(): return {"test_loader_agg": np.random.rand(10, 28, 28)} # Random data
a6d28004404295045ebdcc73ea513cc9cc026be15c3daeda2c9a4ab6a5806a79
Python
210
7
names, scoring_function, transforms, weights = params component_results = compute_component_scores( smilies, scoring_function, {}, valid_mask # Pass empty dict to disable cache ) transformed_scores = []
f0d858bdc8f3004ac1c72e448abc0f4677f6bb4e3a4d2fb5b931e8404d17daa6
Python
211
7
"""Constants for the SanPy Zarr collection format.""" FORMAT_NAME = "sanpy-zarr" FORMAT_VERSION = "1.1-draft" ZARR_FORMAT = 3 TABLE_FORMATS = frozenset({"csv", "parquet", "both"}) DEFAULT_CHUNK_POINTS = 65_536
3fdf9fa86a1776199992a0d166676db606cae9ffbea7af6d20f91ff0abdb4c03
Python
212
8
from setuptools import setup, find_packages with open("requirements.txt") as f: required = f.read().splitlines() setup(name="Cnapse", version="0.9.0", packages=find_packages(), install_requires=required)
bc061b39ce8c4ee45fd35ba02ea13a0f69c9cc1d5a4e68550a5bce9599292e05
Python
212
10
from .conversion import ( Permute, FeatureExtractor, SubtractiveResetIFNodes, PassThroughNodes, PermuteConnection, ConstantPad2dConnection, data_based_normalization, ann_to_snn, )
02779b0384b53fbbfc74192eaf827022551fa9e046ea5ddf78473709f8e0f748
Python
213
6
from .inception import * from .bucket_counter import * from .penalize_same_smiles import * from .identical_murcko_scaffold import * from .identical_topological_scaffold import * from .scaffold_similarity import *
17fc9feec29daecdd2e7950178d68ee8602a413dcaa9812acb18957f15f05fa9
Python
213
7
from django.contrib import admin # Register your models here. from .models import imagelist, menu_selection, ihclist admin.site.register(imagelist) admin.site.register(menu_selection) admin.site.register(ihclist)
9dfa02a297e538340b8d40e44be375f1ac688d01e5af4bd2d379ff2daa3eb385
Python
214
4
from .reaction_filter_enum import ReactionFiltersEnum from .selective_filter import SelectiveFilter from .non_selective_filter import NonSelectiveFilter from .defined_selective_filter import DefinedSelectiveFilter
a5192df0af80d05ac86b8eb6c818f2fdff1e4066cc00d4d00b6ee9d7fd9c84cc
Python
214
9
from .runner_reward_gen import RunnerRewardGen from .runner_generator import RunnerGenerator from .runner_aug_cls import RunnerAugCls __all__ = [ 'RunnerRewardGen', 'RunnerGenerator', 'RunnerAugCls' ]
4d6ffa7f16c36a88bf812a7bbb227375133b453fa00234857b7e5fa08c733138
Python
216
7
# # Root of the method module. # # Contains methods, utility functions, and helper classes for this project. # from __future__ import absolute_import, division from __future__ import print_function, unicode_literals
9c35124820e85a87ab25def40472b8c7f219947e80693753a1dd1e181a379b06
Python
216
8
# Copyright 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """openfl.experimental.workflow.federated package.""" # FIXME: Recursion! from openfl.experimental.workflow.federated.plan import Plan
b60100eda74c04dd4d9741f0ce26ac1a34e822d09a2040f1857dc062439e1228
Python
217
7
from .affine_model import * from .polynomial_model import * from .rotation_model import * from .similarity_model import * from .thinplatespline_model import * from .translation_model import * from .transform import *
608816010e6eda7cb76e6a5a7b7914f640534e2effc791db75d10150d77d57cb
Python
218
10
import re def find_tokens(text): text = text.lower() for match in re.finditer(r'[a-zа-яё-]+', text): token = match.group().strip('-') if token: # in case just "-" yield token
7db928db0099756c76acc7ab7839585256caa53d7afc58c510e5061d45b7c1fa
Python
218
13
#!/usr/bin/env python3 import os from snakebids.app import SnakeBidsApp def main(): app = SnakeBidsApp(os.path.abspath(os.path.dirname(__file__))) app.run_snakemake() if __name__ == "__main__": main()
0ad02d9169a1403e1d92f88d0011905e027d6fcb987df80b2998ba65e0b3d5b2
Python
219
11
from setuptools import setup setup( name='seqsharp', version='0.1.0', packages=['seqsharp'], entry_points={ 'console_scripts': [ 'seqsharp = seqsharp.__main__:main' ] })
7905d7e3cf8131a61adc5088b8dcd6fd777938de118e502edefba3cf61dbe146
Python
219
3
from PymoNNto.Exploration.AnalysisModules.Weight_Classifier_Pre import * from PymoNNto.Exploration.AnalysisModules.Weight_Classifier_Post import * from PymoNNto.Exploration.AnalysisModules.Static_Classification import *
ab2a172d89be8b9c9d5d051db5b65840d6a66afd60a2e3b0e3c07fbc30861913
Python
221
14
import os import sys from pprint import pprint import numpy as np import pandas as pd project_root = ".." sys.path.append(project_root) from sleeprnn.data.nsrr_ss import NsrrSS if __name__ == "__main__": NsrrSS()
d7354d3697d464f41635842a269e716f56b23755279e6bb4d2444dc83e568a31
Python
221
8
# Copyright 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 """Experimental Plan package.""" # FIXME: Too much recursion in namespace from openfl.experimental.workflow.federated.plan.plan import Plan
0864fd4726991c00e837e7ac6db11a40023ae5364c16e5ec397091149d745fb8
Python
223
13
from .alleles import * from .annot import * from .gwas import * from .impute import * from .infer import * from .io import * from .ref import * from .taus import * __version__ = "0.7.1" LOG = "MAIN" VERSION = __version__
25328c839200964ea89c3974a4d9d4e203d1e430627c4242596d13fc7d7dc233
Python
224
13
#!/usr/bin/env python """ # Author: Zhiyuan Yuan # File Name: __init__.py # Description: """ __author__ = "Zhiyuan Yuan" __email__ = "zhiyuan@fudan.edu.cn" from .MENDER import * from .utils import * from .voronoi import *
b0c9653a40e3565cbb2667134734e46e03ccc175424f104a48dd1d17ec425ab6
Python
224
8
from ._base import BaseEstimatorTestData, ClusterMixinsTestData class RiemannianKMedoidsTestData(ClusterMixinsTestData, BaseEstimatorTestData): MIN_RANDOM = 5 MAX_RANDOM = 10 xfails = ("n_repeated_clusters",)
36ef8ca15ee4a102f43b26d6c6e4620eae203f9adff8d11d9081c56669d9aa50
Python
225
8
from ._base import BaseEstimatorTestData, ClusterMixinsTestData class RiemannianMeanShiftTestData(ClusterMixinsTestData, BaseEstimatorTestData): MIN_RANDOM = 5 MAX_RANDOM = 10 xfails = ("n_repeated_clusters",)
efaa219345bc88af021fc842c88fa468fac29d7f4a07dfc9c3d9b17aed81dbcb
Python
225
14
from .graphair import graphair from .aug_module import aug_module from .GCN import GCN,GCN_Body from .classifier import Classifier __all__ = [ 'graphair', 'aug_module', 'GCN', 'GCN_Body', 'Classifier' ]
02868e48bcb708b41418affe6fb98cfb7aa88ca64178691e3d7220169d34ff4b
Python
226
6
# Copyright 2020-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openfl.transport.grpc.aggregator_client import AggregatorGRPCClient from openfl.transport.grpc.aggregator_server import AggregatorGRPCServer
2387191878e1326be832cc046a750908cc10e2400dda99ebd9fc3e72787b9375
Python
226
10
from __future__ import print_function import sys from datetime import datetime def log_info(format, *args): timestamp = datetime.now().strftime('%Y-%m-%d %H:%M:%S') print(timestamp, format % args, file=sys.stderr)
a53b560e9f717b89df8e1754d49b896ba21ed4e0a1ce14c5f2f67dca8bb0c8bc
Python
226
6
# Copyright 2020-2025 Intel Corporation # SPDX-License-Identifier: Apache-2.0 from openfl.transport.rest.aggregator_client import AggregatorRESTClient from openfl.transport.rest.aggregator_server import AggregatorRESTServer
a95d2180c2199b63e97bc9cdcf827a960905c14524127bb3cfe5393f5e410130
Python
226
9
"""The Reinforcement Learning facility for REINVENT-""" from .learning import * from .reinvent import * from .libinvent import * from .linkinvent import * from .mol2mol import * from .pepinvent import * from .reward import *
472120e4f0ba66d836083b5e54a7426b0052860400600192ec587b9c3ebbdea8
Python
227
7
""" Module provinding functions for interacting with LSL network (search streams, start server or client...). """ from .lsl import (start_server, start_client, list_lsl_streams, search_lsl, lsl_channel_list)