sha256
stringlengths
64
64
language
stringclasses
28 values
size
int32
1
491k
lines
int32
1
23.2k
content
stringlengths
1
200k
731fbeb99f342ac28228c8a57e8ac602bfee2a6558d4727d86d86af036d55777
Python
10,986
347
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "table.cells" _path_str...
26833594e3319fddbbe2763a489938e29c78f5634c76ea79fef8f5a93205e5e4
Python
10,987
312
import scipy.io as sio import numpy as np import torch import torch.utils.data as Data import re import random import glob from utils import print_c def load_block_image(path, key_name='block_data', numpy_flag=0, device='cpu', dim=5, transpose_flag=0): """ for the Dataset, the output dim would be...
3b7800a4d9d45eec1fce235c30264f494326393c70dbafbca152b0773cf9368a
Python
10,990
303
import torch import numpy as np import pandas as pd from tqdm import tqdm from survival_plus_x.data.util import read_outcome, load_image_as_numpy,\ print_event_censoring_summary class CancerDataset(object): def __init__(self, image_directories, image_filename, ...
85739dc9b91a2663947f0f17838c496fe4e5467de3b4e62addb2f4525afa258a
Python
10,991
347
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "table.header" _path_st...
e736e7cb3cddfaf39e4718d9e0f5a977a2594ff9dd9cecd9846ec1b95b3fff7a
Python
10,991
282
# pylint: disable=unused-argument """Pyramid Scene Parsing Network""" from mxnet.gluon import nn from mxnet.context import cpu from mxnet.gluon.nn import HybridBlock from .segbase import SegBaseModel from .fcn import _FCNHead # pylint: disable-all __all__ = ['PSPNet', 'get_psp', 'get_psp_resnet101_coco', 'get_psp_resn...
12ce7aa3df563b1b5b040ca8dd1226c901617913bfce3c079670e4163808e654
Python
11,000
286
import torch import torch.nn as nn import einops as ein from torch_scatter import scatter_mean, scatter_sum default_activation = nn.GELU() default_device = torch.device('cuda:0') if torch.cuda.is_available() else torch.device('cpu') neginf = torch.tensor(-float('inf')).to(default_device) from torch_scatter...
094e5b66dcae66e231b62de797b2f8d2b9dd167c0c7b9d39dae12e98726f2e6f
Python
11,006
333
"""Regression coverage for current TorchLens entry-point defaults.""" from __future__ import annotations from typing import Any import pytest import torch from torch import nn import torchlens as tl import torchlens.user_funcs as user_funcs from torchlens.options import VisualizationOptions class _DummyLog: "...
9fc952c6d81ba0972c9272f2a112b05cb28096dde0538f79a41dd08955dd18c7
Python
11,006
232
#==============================================================================# # Author: Dominik Müller # # Copyright: 2024 IT-Infrastructure for Translational Medical Research, # # University of Augsburg ...
c8da89e0aaade71f54750ef3aa22538202cfbf178ead5eb0f5781b70f85d30c5
Python
11,006
323
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Rangeslider(_BaseLayoutHierarchyType): _parent_path_str = "layout.xaxis" ...
e60950d67ad657f3075fb9016b5ac078eb379fab75dc7c30c7da2b5cd13596d0
Python
11,006
348
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "bar" _path_str = "...
2d4dea50c21a415dd48130fcd1e383e91ebd441553a58ff082a5a11d163059a4
Python
11,007
328
from typing import Optional, Union from anndata import AnnData from pathlib import Path import numpy as np from scipy.sparse import csr_matrix import pandas as pd from ._weighting_matrix import ( calculate_weight_matrix, impute_neighbour, _WEIGHTING_MATRIX, _PLATFORM, ) import stlearn import scipy from ...
fabdd9c892bdadc0272794a4b35c859e2d030a511d4b815a99f7b8221943bc33
Python
11,010
348
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "pie" _path_str = "...
903dbae19ee061dd6a968dc79573adaa6c6f07b8bf4578aed3b794cdbb0a6dcd
Python
11,011
301
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
75a0f174de50b49e08edf3286bff103540659dafb335260a6aa461556c5e04f8
Python
11,014
344
import numpy as np import pandas as pd from . import utils from . import integrity_checks import warnings warnings.simplefilter("always", UserWarning) @utils.copy_td def add_gradient(trial_data, signal, outfield=None, normalize=False): """ Compute the gradient of signal in time Parameters ----------...
487962318f18536c7643e28aa5afe9cf94cf2e3cc23e1a885a4766a3ab0e55fd
Python
11,017
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "pie.title" _path_str =...
bf1a3eef65f718590888f80b0737abccb4798352519a2655c8b7a7cdd2e99b1d
Python
11,021
365
"""Duck-typed ergonomic input coercion for TorchLens entry points.""" from __future__ import annotations from typing import Any def _coerce_input(model: Any, x: Any) -> Any: """Convert common ergonomic inputs to model-ready tensors. Parameters ---------- model: Model or model-like object th...
309783e3a7fe68da8a929515a2b4eeba57db115442dc730d7d6351fc8161d44b
Python
11,022
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "quiver" _path_str ...
810995cdfe8574e4d2b18f5c5f32404722b041520eaa7abfe1a063b2f113367c
Python
11,027
315
import numpy as np from keras.src import backend from keras.src import initializers from keras.src import random from keras.src import testing from keras.src import utils from keras.src.initializers.random_initializers import compute_fans from keras.src.layers.attention.multi_head_attention import MultiHeadAttention ...
d7a11d81cfdfb1b102ed7f71f1e610e060e5939958dd41c9321600ae4164c67a
Python
11,027
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "scatter" _path_str...
86f36fb6024e389c76d5ab9fdd3183ed2083d883e5e4c32e27dc3d38d61b823f
Python
11,030
282
import os from types import SimpleNamespace from dash_extensions.enrich import DashBlueprint, PrefixIdTransform, Output, Input, State from dash import html, dcc from utils.utils import custom_prefix_escape from utils.graphics import loading_wrapper import blueprints.metrics.utils as utils from blueprints.translation...
f407b4bcef74e1ea7a8cb6d91d99e5ebc3492ec8c822d9a4318e8eecaf2bde1b
Python
11,032
297
#!/usr/bin/env python3 """ File: interaction_overview_plot.py Created: 2021/10/21 Last Changed: 2022/02/10 Author: M.Vochteloo Copyright (C) 2020 University Medical Center Groningen. A copy of the BSD 3-Clause "New" or "Revised" License can be found in the LICENSE file in the root directory of thi...
5bfe5fa5debbc7cc6040094b98dd7b27580b1b9b43f10569ec58755f7e524718
Python
11,033
237
#==============================================================================# # Author: Dominik Müller # # Copyright: 2024 IT-Infrastructure for Translational Medical Research, # # University of Augsburg ...
eb5b1fca37e94bebdb9ebf4256369ebf981563b7671bea8c99b1b6c58e7dc2b3
Python
11,033
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "funnel" _path_str ...
2e9c66c5da29cb42895622bc2a57790ed35e1050ec9ef1955b8d697fdd67fae6
Python
11,034
233
from os.path import join import os import numpy as np import matplotlib.pyplot as plt from pycircstat.descriptive import mean as cmean from library.correlogram import ThetaEstimator from library.script_wrappers import find_nidx_along_traj, gen_precessdf from library.shared_vars import sim_results_dir, plots_dir from li...
7745fc97af975d691606aa37d0dbe9102688a8594b674f7dd2ddbb38e8462b2c
Python
11,034
364
""" Native directory picker for the portal. Opens the operating system's own dialog, so a path can be chosen without typing it, and falls back gracefully where none is available. """ from __future__ import annotations import os from pathlib import Path import platform import shutil import subprocess __all__ = ["pi...
7d822b2ab9ab88db3bb08e4e420f5572f427aaec68c92747bc5fb8469cb0afeb
Python
11,034
288
"""Zero-match disclosure for the halt selector slot and preview backends. ``halt=`` was the ONE selector slot in the public surface outside the zero-match disclosure family: a typo'd op/module name silently ran the FULL forward (spending the memory/latency the halt was meant to bound) and handed back the model's real ...
a8f426310c367f8a4f5c887b276ceb9c23240125a1c67b3667302ed0384bbead
Python
11,036
368
import json from fastapi import FastAPI, status, Request, File, UploadFile, Response from fastapi.staticfiles import StaticFiles from typing import Any, List, Dict, Optional from fastapi.responses import JSONResponse, FileResponse from pydantic.main import BaseModel from xyz2swc import convert, standard from fastapi.ex...
b19ecb4ca73833bd490546c69aacfb8f994fe201470679be57f5c83649992373
Python
11,036
287
'''Feature-to-Generator reconstruction.''' import glob import os from itertools import product from bdpy.dl.torch.models import AlexNetGenerator from bdpy.dataform import Features, DecodedFeatures from bdpy.feature import normalize_feature from bdpy.util import dump_info import numpy as np import PIL.Image import sc...
270ba9bf947ec03877d28e1039482e1894073a0f3a7e1d74a4391db5e4422629
Python
11,037
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "icicle" _path_str ...
e1af274168f1172d6cfd3abd5de99a23f10da4be8c84a3b1ba18bd587828fad7
Python
11,038
281
# Copyright 2025 Google. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
cbc20276e84f2636eee9e04e633635e9412ade74d783b1be6d268eefff33888e
Python
11,039
275
# Copyright (c) 2024, Sanghun Cho, Tri Dao. import pickle import math import torch import torch.nn as nn import torch.nn.functional as F from einops import rearrange, repeat from flash_attn.layers.rotary import apply_rotary_emb from flash_attn.utils.benchmark import benchmark_all, benchmark_forward, benchmark_backwa...
042930b04b79265dbd21d7418f09f0ab06e351c77ad2d60d1654b710bceaac62
Python
11,042
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "treemap" _path_str...
dce13a0563240fa95387f00d5f5dcbd59beafedf26622b502134caf3b4f822c0
Python
11,042
269
import os import time from rdkit import Chem # safe before ccdc imports from typing import Tuple, Union try: from ccdc.docking import Docker from ccdc.io import MoleculeReader from ccdc.io import Entry, Molecule, MoleculeWriter from ccdc.protein import Protein except: print('CSD Python API not ins...
e3db99fd9ba70d61730c56d2cb1475a40285143537baa8c54dbefce9322499b4
Python
11,042
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "scattergeo" _path_...
c520b96e2287397ad6ae52f7d20ca3e845638437057dd685ba512baa2674f60b
Python
11,044
359
from collections import Counter from regex import D from utils.json_loader import load_json_into_pandas_dataframe from utils.utils import create_dict_per_level_for_metric from utils.evaluation import ( get_metric_on_ECPred40_test, calc_all_metric_for_ECPred_with_model_proba_and_vocab, ) from interpretability.e...
4d980c9c469949f90287eea65d74ac9b40b0ad8104d566a98dee946b4bb3c122
Python
11,046
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "box.hoverlabel" _path_...
dca1720eacb70ee581ca350cc6857f0838dd84724d67f4c6790b558e3748c185
Python
11,046
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "bar.hoverlabel" _path_...
ef34df438a3e47d6b8c74c7182231626782e231cb668183ccd9533d7d07707aa
Python
11,046
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "pie.hoverlabel" _path_...
49cc67d5f49da120b1903894149b55a1eafe364ca315998c120e87de9b9a7b20
Python
11,047
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "sunburst" _path_st...
40719129798da1bec547098d98b4821ddfac6a6418c52f01a8dc529ab371db72
Python
11,048
186
d_randnetw = {'True':'_randnetw', 'False':''} # d_decrease_vox_num = {False: '', # 987: } source_layer_map = { 'DCASE2020': { 'GRU_1':'GRU(64, 256, batch_first=True, bidirectional=True)--0--hidden', 'GRU_1-batch':'GRU(64, 256, batch_first=True, bidirectional=Tru...
7f876db4c1d25954f0d3257744db44f27c61dba824744a5c25dfc5ca5aba46dc
Python
11,048
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "waterfall" _path_s...
a350e9046e5e94b0270efc080187736c65833ffb1cea7f066cb860a63eb8f7df
Python
11,049
281
import os import gc import time import torch import numpy as np from src.read_data import * from src.get_info_of_rank import * from src.gpu_sel import * # used for DDP import torch.distributed as dist from torch.nn.parallel import DistributedDataParallel as DDP # open a file for output information in iterations fout=o...
7668054c076291a7672270c042d9e74f2c17a3c5a6d2b8afc198b6c9b2423238
Python
11,050
286
"""Tigramite causal discovery for time series.""" # Author: Sagar Nagaraj Simha, Jakob Runge <jakob@jakob-runge.com> # # License: GNU General Public License v3.0 from __future__ import print_function import warnings import numpy as np from scipy.stats.contingency import crosstab # from joblib import Parallel, delayed...
47684ce911c53dce29bcb5d41decbb2d216f46b9e8ad2f44dbdaf46b046a4d67
Python
11,051
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "ohlc.hoverlabel" _path...
e8621a8969a803966450e00d3e4248300ba6f7b979a46d553242fdb6c943c62e
Python
11,051
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "cone.hoverlabel" _path...
355a86f7f04a018f3581ca784f142b8fe509424eee8239c0de3ac55184f508ab
Python
11,052
280
""" Helper functions for het.py; primarily counting help. """ import numpy as np from numba import njit from numba.typed import List @njit def edge_core( cell_data: np.ndarray, cell_type_index: int, neighbourhood_bcs: List, neighbourhood_indices: List, spot_indices: np.ndarray = None, neigh_b...
56a57c8342aabb33c906cfa4eb175650d3d387d03936b73180506e0aee559a22
Python
11,052
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "scattersmith" _pat...
c105be3d6371408afba4fb2e98427b0a7b4efad47459f5d04c2a48d6f21f9f34
Python
11,052
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "funnelarea.title" _pat...
f7c918c9ca1d66395e8be3b1bcdc2995c51c1d3d164f1277125248b3a9fcbc22
Python
11,052
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "scatterpolar" _pat...
4adf1a224a3e64a8f8d9f71b956133e51db2f60d5530f600ebb1d522b99011e2
Python
11,053
258
# Copyright (c) 2022 PaddlePaddle Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by app...
51c6913231a363cab076646218eb7105b161ebfb9e95df8ea1a5ebf752253bfd
Python
11,053
328
import numpy as np from keras.src import backend from keras.src import callbacks as callbacks_module from keras.src import tree from keras.src.backend.common import standardize_dtype from keras.src.backend.common.keras_tensor import KerasTensor from keras.src.backend.numpy.ops.core import is_tensor from keras.src.trai...
17c1524ac587b7e132cfbd563e03e6a5e3a8380f0b313b62d7a7571f47622677
Python
11,056
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "splom.hoverlabel" _pat...
97c80157fe2d736b1cfca5d7abb97cb1483485caafd3ef0f9f3c1e14ff1965e4
Python
11,056
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "table.hoverlabel" _pat...
9a7347527c3373a4c96cae7d9baf6794ebfa125fab608c71bab49a20a8e15478
Python
11,056
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "image.hoverlabel" _pat...
11f7dee8a2f4665d857a7c21f7e2d34d235d6c5861a4222916a7bc42b766a3b1
Python
11,057
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "scattercarpet" _pa...
63fabe2c8b5414527e9b066cb5e09d491f87e1cf5a6d5640b5aad4170b2f31d2
Python
11,057
213
# coding: utf-8 # Copyright (c) Facebook, Inc. and its affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. """ Dataset for object bounding box regression. An axis aligned bounding box is parameterized by (cx,cy,cz) and (dx,dy,dz) whe...
78328f14e1927172f23cf2026ceaab1323ac5e50b3f584c88602e0ef838761aa
Python
11,057
318
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Button(_BaseLayoutHierarchyType): _parent_path_str = "layout.xaxis.rangesel...
f412f29b659a80dd4e293c50f3c31ef8a6cb64d37f689d975868c8594c4bb524
Python
11,057
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "funnelarea" _path_...
5924cfa5a1c9ce6bbc513a4dacf707ced749b036de5977907d42e42e7d1246bf
Python
11,058
281
"""B1-01: a halted preview-backend capture never stamps COMPLETE. Every preview backend (tf / mlx / tinygrad / paddle / jax) settles through the ONE ``stamp_backend_finalized`` chokepoint as the last act of its capture entry. Paddle ships ``halt=`` and MLX carries ``_mlx_halt_selector``; both catch their ``HaltSignal`...
f0f2d4f9bd5364a96b2b371bc90a2b6cd894a84c642cbd79015bdb59c1861b31
Python
11,060
336
import numpy as np import random #from scipy.sparse.extract import find from scipy.sparse import find import torch import torch.nn as nn import torch.nn.functional as F from sklearn.metrics import confusion_matrix from sklearn.model_selection import train_test_split from torch.nn.modules import conv from torch_geometri...
2115c086209cf60f2e1e0417d4865d7686f0629ae951893b93b85e6ef578b3e1
Python
11,061
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "funnel.hoverlabel" _pa...
38699dc6b70ec3ad29b528477422222b187c1ff11ea32ec2a2d182e6b56f6e45
Python
11,061
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "sankey.hoverlabel" _pa...
55f19c2b8c59de06ab366e028873ceb0a2d120d2ee1a7b0c19a86d2daba71a8a
Python
11,061
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "volume.hoverlabel" _pa...
5f9d3e1c63e166d278d98154a6beff202ad4e1aa7e39244cea5c11dc4c3ea273
Python
11,061
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "violin.hoverlabel" _pa...
77210e5f98ab7a5cac48f7dc088faed2a519f1528f2f5282cb03c3f2188b727c
Python
11,061
321
# Copyright 2025 Google. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, soft...
8ca373f680d97f9e11543e0886b1dc5f77cad49c0600df5d2903c497b68e94c9
Python
11,061
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "quiver.hoverlabel" _pa...
9659c73b3867471ba27edcd0c3f879b71ebec4f644cf125fa6ad52c265d6f71b
Python
11,061
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "icicle.hoverlabel" _pa...
b71014d9ed2f62c7350ddf2ba2cd62f1823b611625e4b0f221d639302e94a033
Python
11,061
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "mesh3d.hoverlabel" _pa...
06c36250f5eb9c0f45387044b83e3c2feeff05669f6b5434304c60b1334236a6
Python
11,062
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "scatterternary" _p...
8722b687fe35f022485fcfb18b28e9774c4aaf1004d3fd5ebb82f71ddf2a0fb2
Python
11,064
222
"""Prepare the Kinetics400 dataset ================================== `Kinetics400 <https://deepmind.com/research/open-source/kinetics>`_ is an action recognition dataset of realistic action videos, collected from YouTube. With 306,245 short trimmed videos from 400 action categories, it is one of the largest and most...
1a4782ef2bfbf26363c50cea520098ad824f6ba97bb007b993ba7e945ea5b6b6
Python
11,065
248
"""Region Proposal Networks Definition.""" from __future__ import absolute_import import mxnet as mx from mxnet import autograd from mxnet import gluon from mxnet.gluon import nn from .anchor import RPNAnchorGenerator from .proposal import RPNProposal class RPN(gluon.HybridBlock): r"""Region Proposal Network. ...
522939b86364ed15a30e1bf6cc0294447a6ee7c10483e142bf51990e932d81e5
Python
11,065
235
from skimage import filters import nibabel import numpy as np import pandas as pd from display import * def otsu_filtering(im): if len(im.shape) > 3: max_int = np.median(im[..., 0]) max_int_pos = 0 for i in range(im.shape[3]): if np.median(im[..., i]) > max_int: ...
0f7df6d633cacf40104762c90c7217a547906e34c127ffad0aca63a31e542b0c
Python
11,066
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "contour.hoverlabel" _p...
2bd6be220c635e6d52d36728796c677ffe8ad30650b7b1f624d7d55c401ab76d
Python
11,066
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "surface.hoverlabel" _p...
802dccd190fe33f78d1ab07e33ccb9f6f74078389fe7667c04053ceef1304950
Python
11,066
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "treemap.hoverlabel" _p...
88d76c041a81335d1ea9c1344762738a2289cdfd2910082da706975355ec558f
Python
11,066
318
"""Advantage Actor Critic (A2C)""" from argparse import ArgumentParser from collections import OrderedDict from typing import Any, Iterator, List, Tuple import numpy as np import torch from pytorch_lightning import LightningModule, Trainer, seed_everything from pytorch_lightning.callbacks import ModelCheckpoint from t...
e789f17f5dc34ecdc3af60fdf5dff4604471352bf65543cba358587d9df95a5a
Python
11,066
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "scatter.hoverlabel" _p...
eb3532740dd408ec67a8c19ae013ab0c134e698fe1ba26345834279721130601
Python
11,066
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "heatmap.hoverlabel" _p...
47c18c7515ade470420d743de55e322e79b1b4ccf834e15867398c6525bfd52f
Python
11,068
328
# coding=utf-8 # Copyright 2023 The Google Research Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicab...
319cdda55e530f7442f65f24de7fa896180e77596337ac1730b7a5b4bd92f228
Python
11,071
237
import math from Configurations import CNN from numba import cuda, float32, uint32, int64 from numba.cuda.random import create_xoroshiro128p_states, xoroshiro128p_uniform_float32, xoroshiro128p_normal_float32 from inspect import signature ''' NOTE: Using numba cuda jit wrapper for generation of simulation data in para...
33068834d35f999a438cb96f6433db05b3d590d50c08f7e355f0cbea065ccce0
Python
11,071
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "barpolar.hoverlabel" _...
c80070d3f62c758de31784495b3551e407ba14abc0d35bf9d44f67d7d5659a6d
Python
11,071
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "sunburst.hoverlabel" _...
215cee7c493d0f76130ba5b012e08a7eb2581c510a8de2968bd6e8bd7fd27527
Python
11,075
252
# SPDX-License-Identifier: LGPL-2.1-or-later #!/usr/bin/env python #-*- coding: utf-8 -*- import os from collections import OrderedDict import numpy as np from pyEcoHAB.utils import general as utils from pyEcoHAB.plotting_functions import single_histogram_figures from pyEcoHAB.plotting_functions import histograms_anten...
0fd788d71845f1623c7944d9913beb869efeaf6b3ffa401427df4a3efaa01e15
Python
11,076
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "scatter3d.hoverlabel" ...
1e695758ecd81b2edfd8c7e6472b3185b3bbb7fea79927b2fd0a88755582e06e
Python
11,076
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "histogram.hoverlabel" ...
5b6fd64d567082e245b4051930f73076b05b3ca82d5f3bbdaaf9b05913b20dee
Python
11,076
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "scattergl.hoverlabel" ...
9a02fe8b39eb9ea10555b86d29993b40bf04fea50e41dd49c09de723fc3a1afb
Python
11,076
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "waterfall.hoverlabel" ...
4e23e36ce52331fc897b03ae859281bf825137785313809e46d5ce635533a4e2
Python
11,079
257
import pickle import torch import torch.nn.functional as F from trainingUtils import NBLoss,_convert_mean_disp_to_counts_logits #,MultipleOptimizer, MultipleScheduler, compute_kernel, compute_mmd from models import Encoder,Decoder,GaussianDecoder,VAE,CellStateEncoder,\ CellStateDecoder, CellStateVAE,...
b84ef7a84ecc6787b235c493111c58ce506222b002dd23f2e5303c5924297195
Python
11,079
395
from __future__ import annotations import pytest from pybind11_tests import stl_binders as m def test_vector_int(): v_int = m.VectorInt([0, 0]) assert len(v_int) == 2 assert bool(v_int) is True # test construction from a generator v_int1 = m.VectorInt(x for x in range(5)) assert v_int1 == m...
bd2fc53bfdf6c920a7b4374808f3aa2f5c87851dac1248600c17cc35ba1d0929
Python
11,079
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "icicle.pathbar" _p...
07e83ee25d660a72ee8a9d33c8f116ca43f91c7cb9ec215b8e628bca57c20c3f
Python
11,081
320
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import tensorflow as tf import pandas as pd import argparse import os import sys import pwd import pdb import grp INPUT_PATH = "SimBoost/data/davis_cv2.csv" LOG_DIR = "logs/" #uid = pwd.get...
44e54dbb524e17b87ba8faab0c69da65e6cac0232bdb51dcbcd8af3d1cebed4c
Python
11,081
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "choropleth.hoverlabel" ...
7c8f6969c4091d08ae99ed7baf76602e3dc20c6b73224d4df3258f26ee3a32c2
Python
11,081
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "densitymap.hoverlabel" ...
cf54ce9d458bfdb4a50a78273e8fe6847b782bd9a738668956584a2d907104e3
Python
11,081
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "streamtube.hoverlabel" ...
ec1a263d4dc2bd1f54d773389d45e02607a2e504ee672edd54f65d6a49460785
Python
11,081
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "scattergeo.hoverlabel" ...
ec7bbbb71bdc92346fbf963526b9b1621b62a3f4dffd39f9152519e861dd9c02
Python
11,081
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "scattermap.hoverlabel" ...
f7c80d790697190adca266d3926cb31613a9fcb7f8eb62ba5594519a08ad271e
Python
11,081
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "isosurface.hoverlabel" ...
f8d88288978cc462a03b53376293b4853fef9f9fce436d256c62c676d57160a6
Python
11,081
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "funnelarea.hoverlabel" ...
e23ef27d6bbbfca9a3c1c9a3ec1b32dfc390c69a4893b64b398598cdf49da30d
Python
11,084
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): _parent_path_str = "treemap.pathbar" _...
0d049c40098cb5d949255478ced16833ec11466ab3940561580b2b524790fb55
Python
11,086
349
# --- THIS FILE IS AUTO-GENERATED --- # Modifications will be overwitten the next time code generation run. from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): _parent_path_str = "histogram2d.hoverlabel" ...