repo_name
stringlengths
6
130
hexsha
list
file_path
list
code
list
apis
list
HastingsGreer/mermaid
[ "bd13c5fc427eb8cd9054973a8eaaeb302078182d", "ba07883cc3cb5982e4655048a434b4495cb49c6d" ]
[ "mermaid/forward_models.py", "mermaid/multiscale_optimizer.py" ]
[ "\"\"\"\nPackage defining various dynamic forward models as well as convenience methods to generate the\nright hand sides (RHS) of the related partial differential equations.\n\nCurrently, the following forward models are implemented:\n #. An advection equation for images\n #. An advection equation for maps\n...
[ [ "torch.empty_like", "numpy.min", "torch.sum", "torch.zeros_like", "numpy.histogram", "numpy.sum" ], [ "torch.optim.lr_scheduler.ReduceLROnPlateau", "torch.load", "torch.utils.data.DataLoader", "torch.is_tensor", "torch.from_numpy", "numpy.round", "torch.opti...
bekirduran/AI_Puzzle_Solver
[ "7e8c007802d1e4596dd09edd97bafeb7a4ff7f61" ]
[ "com/puzzlesolver/cross_over.py" ]
[ "import numpy as np\n\n\n# This class generating new list item given first of list item row and second of list item row\nclass Crossover:\n\n @staticmethod\n def crossover(best):\n row_begin_index = 0\n row_half = 2\n\n cross_list = []\n for i in range(len(best) - 1):\n ...
[ [ "numpy.concatenate" ] ]
huonw/tensorflow
[ "85f47254af7cc230a4a031998dffe770b7edbb9d", "85f47254af7cc230a4a031998dffe770b7edbb9d", "85f47254af7cc230a4a031998dffe770b7edbb9d" ]
[ "tensorflow/python/compiler/tensorrt/test/trt_mode_test.py", "tensorflow/python/keras/engine/training_dataset_test.py", "tensorflow/python/keras/engine/base_layer_utils.py" ]
[ "# Copyright 2020 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.python.ops.math_ops.abs", "tensorflow.python.ops.array_ops.squeeze", "tensorflow.compiler.tf2tensorrt.wrap_py_utils.get_linked_tensorrt_version", "tensorflow.python.platform.test.main", "tensorflow.python.ops.array_ops.identity" ], [ "tensorflow.python.keras.testing_utils.g...
hlahkar/transformers
[ "c19d04623eacfbc2c452397a5eda0fde42db3fc5" ]
[ "src/transformers/training_args.py" ]
[ "# Copyright 2020 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir...
[ [ "torch.distributed.init_process_group", "torch.cuda.set_device", "torch.cuda.is_available", "torch.device", "torch.cuda.device_count" ] ]
vedanthpadigelwar/AI_projects
[ "885bbe76800f9a449414b3735ab4a4c4bd2e7aa0" ]
[ "test method/tensorflow2.0/deep-sort-yolov4/demo.py" ]
[ "#! /usr/bin/env python\n# -*- coding: utf-8 -*-\n\nfrom __future__ import division, print_function, absolute_import\n\nfrom timeit import time\nimport warnings\nimport cv2\nimport numpy as np\nfrom PIL import Image\nfrom yolo import YOLO\n\nfrom deep_sort import preprocessing\nfrom deep_sort import nn_matching\nfr...
[ [ "numpy.array" ] ]
ktpolanski/scirpy
[ "2d6e3a6347ad54425a8dea635fa04609aaf33c57", "2d6e3a6347ad54425a8dea635fa04609aaf33c57" ]
[ "scirpy/tests/test_util.py", "scirpy/_tools/_chain_qc.py" ]
[ "from scirpy.util import (\n _is_na,\n _is_false,\n _is_true,\n _normalize_counts,\n _is_symmetric,\n _reduce_nonzero,\n _translate_dna_to_protein,\n)\nfrom scirpy.util.graph import layout_components\nfrom itertools import combinations\nimport igraph as ig\nimport numpy as np\nimport pandas as ...
[ [ "numpy.array", "pandas.Series", "pandas.DataFrame", "numpy.random.randint" ], [ "numpy.where", "numpy.empty" ] ]
mauicv/alibi
[ "30fea76391c255963c8818c2b54aa615b0d6f858", "30fea76391c255963c8818c2b54aa615b0d6f858" ]
[ "alibi/explainers/anchors/anchor_image.py", "alibi/models/tensorflow/cfrl_models.py" ]
[ "import copy\nimport logging\nfrom functools import partial\nfrom typing import Any, Callable, Dict, List, Optional, Tuple, Type, Union\n\nimport numpy as np\nfrom skimage.segmentation import felzenszwalb, quickshift, slic\n\nfrom alibi.api.defaults import DEFAULT_DATA_ANCHOR_IMG, DEFAULT_META_ANCHOR\nfrom alibi.ap...
[ [ "numpy.logical_not", "numpy.expand_dims", "numpy.random.seed", "numpy.random.choice", "numpy.unique", "numpy.argmax", "numpy.mean", "numpy.repeat", "numpy.array", "numpy.zeros", "numpy.where" ], [ "tensorflow.keras.layers.Dense", "tensorflow.keras.layers.Con...
kpe/tensor2tensor
[ "453c473030c354a3d9a4c27b12bcec8942334bf4", "453c473030c354a3d9a4c27b12bcec8942334bf4", "453c473030c354a3d9a4c27b12bcec8942334bf4", "453c473030c354a3d9a4c27b12bcec8942334bf4", "453c473030c354a3d9a4c27b12bcec8942334bf4", "453c473030c354a3d9a4c27b12bcec8942334bf4", "453c473030c354a3d9a4c27b12bcec8942334bf...
[ "tensor2tensor/models/research/moe.py", "tensor2tensor/data_generators/algorithmic_math_test.py", "tensor2tensor/data_generators/problem_test.py", "tensor2tensor/rl/restarter_test.py", "tensor2tensor/models/research/transformer_aux.py", "tensor2tensor/data_generators/conll_ner.py", "tensor2tensor/v2/t2t...
[ "# coding=utf-8\n# Copyright 2019 The Tensor2Tensor Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir...
[ [ "tensorflow.logging.info" ], [ "tensorflow.test.main" ], [ "numpy.all", "tensorflow.compat.v1.enable_eager_execution", "tensorflow.test.main", "tensorflow.Session" ], [ "tensorflow.train.update_checkpoint_state", "tensorflow.gfile.DeleteRecursively", "tensorflow.gfi...
Kotwic4/SCOTR
[ "6afabedb672641a9777d8aa9d7b75f998e53c0c9" ]
[ "generator/mnistGenerator.py" ]
[ "import random\n\nfrom sklearn.datasets import fetch_mldata\n\nfrom util import open_file_in_directory\n\nMNIST_DIR = './tmp/mnist'\nMNIST_TRAIN_DIR = './mnist/train'\nMNIST_TEST_DIR = './mnist/test'\nMNIST_SAMPLE_DIR = './mnist/sample'\nTEST_CASES = 60000\n\n\ndef mnist_img_to_file(mnist_img, file):\n for x in ...
[ [ "sklearn.datasets.fetch_mldata" ] ]
SwagJ/SuperPoint
[ "ecbf1d6e809ea8c7c832078ad26d2a74ed2fae29" ]
[ "superpoint/models/simple_classifier.py" ]
[ "import tensorflow as tf\nfrom tensorflow import layers as tfl\n\nfrom .base_model import BaseModel, Mode\n\n\nclass SimpleClassifier(BaseModel):\n input_spec = {\n 'image': {'shape': [None, None, None, 1], 'type': tf.float32}\n }\n required_config_keys = []\n default_config = {'data_format':...
[ [ "tensorflow.layers.conv2d", "tensorflow.layers.flatten", "tensorflow.transpose", "tensorflow.nn.softmax", "tensorflow.reduce_mean", "tensorflow.equal", "tensorflow.cast", "tensorflow.layers.dense", "tensorflow.layers.max_pooling2d", "tensorflow.name_scope", "tensorflow....
robertdstein/flarestack
[ "2ce7e67da336514f6f38f06126a1fbd82131e441", "2ce7e67da336514f6f38f06126a1fbd82131e441" ]
[ "flarestack/core/astro.py", "flarestack/analyses/simcube/verify_simcube_sensitivity.py" ]
[ "\"\"\"\nFunction taken from IceCube astro package.\n\"\"\"\nimport numpy as np\n\n\ndef angular_distance(lon1, lat1, lon2, lat2):\n \"\"\"\n calculate the angular distince along the great circle\n on the surface of a shpere between the points\n (`lon1`,`lat1`) and (`lon2`,`lat2`)\n This function Wor...
[ [ "numpy.cos", "numpy.hypot", "numpy.sin" ], [ "numpy.linspace" ] ]
aypan17/value_learning
[ "240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe", "240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe", "240a67ecf99b178fe0c4ced2bfd1dd50453fbdfe" ]
[ "bgp/simglucose/controller/basal_bolus_ctrller.py", "pansim/pandemic_simulator/callback.py", "flow/utils/compute_norms.py" ]
[ "from .base import Controller\nfrom .base import Action\nimport numpy as np\nimport pandas as pd\nimport pkg_resources\nimport logging\nfrom collections import namedtuple\n\nlogger = logging.getLogger(__name__)\nCONTROL_QUEST = '/source/dir/simglucose/params/Quest.csv'\nPATIENT_PARA_FILE = '/source/dir/simglucose/p...
[ [ "pandas.read_csv", "numpy.asscalar", "pandas.DataFrame" ], [ "numpy.squeeze", "numpy.geomspace", "numpy.std", "numpy.mean", "numpy.array", "numpy.zeros", "numpy.sum" ], [ "numpy.square", "numpy.split", "numpy.log2", "numpy.log", "numpy.sqrt", ...
ai-di/Brancher
[ "01d51137b0e6fc81512994c21cc3a19287353767", "01d51137b0e6fc81512994c21cc3a19287353767", "01d51137b0e6fc81512994c21cc3a19287353767", "01d51137b0e6fc81512994c21cc3a19287353767", "01d51137b0e6fc81512994c21cc3a19287353767", "01d51137b0e6fc81512994c21cc3a19287353767" ]
[ "tests/test_autoregressive.py", "examples/MAP_logistic_regression.py", "development_playgrounds/WVGD_MNIST_logistic_regression.py", "development_playgrounds/WVGD_playground.py", "examples/logNormal_normal.py", "development_playgrounds/DeepBelief_playground.py" ]
[ "import matplotlib.pyplot as plt\nimport numpy as np\n\nfrom brancher.variables import RootVariable, RandomVariable, ProbabilisticModel\nfrom brancher.standard_variables import NormalVariable, LogNormalVariable, BetaVariable\nfrom brancher import inference\nimport brancher.functions as BF\n\n# Probabilistic model #...
[ [ "matplotlib.pyplot.subplots", "numpy.mean", "numpy.var", "numpy.array", "matplotlib.pyplot.show" ], [ "sklearn.datasets.load_iris", "numpy.random.shuffle", "numpy.ones", "numpy.random.normal", "numpy.argmax", "matplotlib.pyplot.show", "numpy.zeros" ], [ ...
AyazSaiyed/hub
[ "597c5726fd72d17f562bffec25e114115dadcac5", "84ac11ac756050a186cc8bddb54e104323fb9dff" ]
[ "tensorflow_hub/tools/module_search/search.py", "tensorflow_hub/resolver_test.py" ]
[ "# Copyright 2019 The TensorFlow Hub Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
[ [ "tensorflow.compat.v2.image.resize", "tensorflow.compat.v2.io.gfile.GFile", "pandas.option_context", "pandas.DataFrame", "numpy.array" ], [ "tensorflow.errors.NotFoundError", "tensorflow.test.main" ] ]
tbose20/D-Ref
[ "eda6170a72838b89637df241dd5619e001f3afdb" ]
[ "captum/captum/_utils/gradient.py" ]
[ "#!/usr/bin/env python3\nimport threading\nimport typing\nimport warnings\nfrom collections import defaultdict\nfrom typing import Any, Callable, Dict, List, Optional, Tuple, Union, cast\n\nimport torch\nfrom captum._utils.common import (\n _reduce_list,\n _run_forward,\n _sort_key_list,\n _verify_selec...
[ [ "torch.stack", "torch.autograd.set_grad_enabled", "torch.ones_like", "torch.unbind" ] ]
BonnerLab/model-tools
[ "ac90617cd79bb70a308e34a1e834971498329fb0" ]
[ "model_tools/activations/hooks.py" ]
[ "from abc import ABC, abstractmethod\nimport logging\nimport os\nfrom typing import Optional, Union, Iterable, Dict\n\nimport h5py\nimport numpy as np\nimport torch\nfrom PIL import Image\nfrom tqdm import tqdm\n\nfrom brainio.stimuli import StimulusSet\nfrom model_tools.activations import ActivationsModel\nfrom mo...
[ [ "numpy.sqrt", "numpy.unique", "numpy.arange", "torch.from_numpy", "numpy.max", "numpy.random.normal", "numpy.array" ] ]
hrrsjeong/METEORE
[ "ba8e517c51dbfd3fea5130f297c480c4626c2ff0" ]
[ "combination_model_prediction.py" ]
[ "# -*- coding: utf-8 -*-\r\n\"\"\"\r\nCreated on Thu Jul 9 18:03:39 2020\r\n\r\n@author: akanksha\r\n\"\"\"\r\n\r\nimport pandas as pd\r\nimport numpy as np\r\nimport joblib\r\nfrom itertools import combinations\r\nimport sklearn\r\nfrom functools import reduce\r\nimport argparse\r\nimport os\r\n\r\n\r\nparser = a...
[ [ "pandas.concat", "pandas.read_csv", "sklearn.preprocessing.MinMaxScaler", "pandas.merge" ] ]
simone-codeluppi/storm-analysis
[ "fa50fb7d670e9e4d712fa6fafb398963b39e209b", "fa50fb7d670e9e4d712fa6fafb398963b39e209b" ]
[ "storm_analysis/diagnostics/sCMOS/configure.py", "storm_analysis/test/test_ia_utilities.py" ]
[ "#!/usr/bin/env python\n\"\"\"\nConfigure folder for sCMOS testing.\n\nHazen 09/17\n\"\"\"\nimport numpy\nimport os\n\nimport storm_analysis\nimport storm_analysis.sa_library.parameters as parameters\n\nimport storm_analysis.simulator.emitters_on_grid as emittersOnGrid\nimport storm_analysis.simulator.emitters_unif...
[ [ "numpy.zeros", "numpy.save", "numpy.ones" ], [ "numpy.ones", "numpy.copy", "numpy.random.uniform", "numpy.array", "numpy.zeros" ] ]
Mic-Tsai/Power-Consumption-Current-Sense-System-V22
[ "7fe8348171efe53a2985a591ef7cf657bacc5fbd" ]
[ "example/Python_Plot/Battery example/ee_0120_Y_consist.py" ]
[ "import argparse, re, sys, os\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport numpy as np\npath = ''\nflname = sys.argv[1]\ntry:\n\tchartType = sys.argv[2]\nexcept:\n\tchartType = 'ch1_vload'\nprint('chartType:'+chartType)\t\n\nfl = flname.split('/')\nfor i in fl[:-1]:\n\tpath = path+i+'/'\n\nfw = ope...
[ [ "matplotlib.pyplot.title", "matplotlib.pyplot.ylim", "matplotlib.pyplot.savefig", "matplotlib.pyplot.axes", "matplotlib.pyplot.plot", "matplotlib.pyplot.ylabel", "matplotlib.pyplot.grid", "matplotlib.pyplot.figure" ] ]
andytorrestb/rarefiedPlume
[ "c09234c701c395d16519d8a361eae17540711530" ]
[ "cases/1d/graphCaseValidation.py" ]
[ "import matplotlib.pyplot as plt\nimport numpy as np\nimport os\nimport pandas as pd\n\n# Find path for cases\ncurr_dir_path = os.path.dirname(os.path.realpath(__file__))\n# print(curr_dir_path)\n# cases = os.listdir(curr_dir_path + '/Cases')\n# pop = cases.index('baseCase')\n# cases.pop(pop)\n\n# Label graph with ...
[ [ "matplotlib.pyplot.legend", "pandas.read_csv", "numpy.sqrt", "matplotlib.pyplot.title", "numpy.linspace", "matplotlib.pyplot.ylim", "matplotlib.pyplot.yscale", "matplotlib.pyplot.savefig", "matplotlib.pyplot.plot", "matplotlib.pyplot.close", "matplotlib.pyplot.xlabel", ...
nakashima-kodai/FractalDB_Pretrained_ViT_PyTorch
[ "5d1df4023f05f5a8ff7e8a8810bf95119a0eeb96" ]
[ "pretrain.py" ]
[ "import os, sys\nimport math\n\nimport hydra\nimport torch\nimport timm\nfrom hydra.utils import instantiate\nfrom timm.loss import LabelSmoothingCrossEntropy, SoftTargetCrossEntropy\nfrom timm.utils import NativeScaler\n\nimport models\nfrom data import create_dataloader\nfrom utils import MetricLogger, SmoothedVa...
[ [ "torch.nn.CrossEntropyLoss", "torch.cuda.synchronize", "torch.nn.parallel.DataParallel", "torch.load", "torch.cuda.amp.autocast" ] ]
chekoduadarsh/deep_autoviml
[ "157fbdc2611dc0fbaee5fc4ebebe3e7c1eeb9b52" ]
[ "deep_autoviml/preprocessing/preprocessing_images.py" ]
[ "#Copyright 2021 Google LLC\r\n\r\n#Licensed under the Apache License, Version 2.0 (the \"License\");\r\n#you may not use this file except in compliance with the License.\r\n#You may obtain a copy of the License at\r\n#\r\n# https://www.apache.org/licenses/LICENSE-2.0\r\n#\r\n#Unless required by applicable law o...
[ [ "numpy.random.seed", "tensorflow.losses.SparseCategoricalCrossentropy", "tensorflow.keras.layers.Dense", "numpy.set_printoptions", "tensorflow.compat.v1.logging.set_verbosity", "tensorflow.logging.set_verbosity", "tensorflow.keras.layers.experimental.preprocessing.Rescaling", "tens...
gdmcbain/quadpy
[ "c083d500027d7c1b2187ae06ff2b7fbdd360ccc7", "c083d500027d7c1b2187ae06ff2b7fbdd360ccc7", "c083d500027d7c1b2187ae06ff2b7fbdd360ccc7", "c083d500027d7c1b2187ae06ff2b7fbdd360ccc7", "c083d500027d7c1b2187ae06ff2b7fbdd360ccc7", "c083d500027d7c1b2187ae06ff2b7fbdd360ccc7" ]
[ "quadpy/e3r/tools.py", "quadpy/tetrahedron/tools.py", "tools/witherden_vincent/import_witherden_vincent.py", "quadpy/ncube/stroud.py", "quadpy/sphere/helpers.py", "quadpy/e3r2/tools.py" ]
[ "# -*- coding: utf-8 -*-\n#\nimport numpy\n\nfrom .. import helpers\n\n\ndef integrate(f, rule, dot=numpy.dot):\n flt = numpy.vectorize(float)\n return dot(f(flt(rule.points).T), flt(rule.weights))\n\n\ndef show(scheme, backend=\"mpl\"):\n \"\"\"Displays scheme for E_3^r quadrature.\n \"\"\"\n helper...
[ [ "numpy.vectorize" ], [ "numpy.sqrt", "numpy.moveaxis" ], [ "numpy.abs", "numpy.sort", "numpy.flatnonzero", "numpy.diff", "numpy.argsort", "numpy.array", "numpy.sum", "numpy.loadtxt" ], [ "numpy.array", "numpy.meshgrid", "numpy.full" ], [ ...
Stomach-ache/GLaS
[ "253092cce1922711e7d9c9df601f117f3ec56e0c" ]
[ "MIPS.py" ]
[ "# -*- coding: utf-8 -*-\n\nimport hnswlib\nimport numpy as np\n\ndef buildIndex(X):\n dim = X.shape[1]\n num_elements = X.shape[0]\n data_labels = np.arange(num_elements)\n p = hnswlib.Index(space = 'cosine', dim = dim)\n p.init_index(max_elements = num_elements, ef_construction = 200, M = 16)\n ...
[ [ "numpy.arange" ] ]
ayman3000/keras-preprocessing
[ "845c423e01acfe251d4276e52cf2b86e73f1646a", "845c423e01acfe251d4276e52cf2b86e73f1646a" ]
[ "tests/image/utils_test.py", "keras_preprocessing/image/image_data_generator.py" ]
[ "import io\nimport resource\nfrom pathlib import Path\n\nimport numpy as np\nimport PIL\nimport pytest\n\nfrom keras_preprocessing.image import utils\n\n\ndef test_validate_filename(tmpdir):\n valid_extensions = ('png', 'jpg')\n filename = tmpdir.ensure('test.png')\n assert utils.validate_filename(str(file...
[ [ "numpy.random.random", "numpy.allclose", "numpy.all", "numpy.any", "numpy.random.rand", "numpy.array", "numpy.zeros", "numpy.sum", "numpy.random.randint" ], [ "numpy.linalg.svd", "numpy.random.random", "numpy.sqrt", "numpy.random.seed", "numpy.random.cho...
chence17/fcaf3d
[ "636aaa0410430deedd7bd4979e8c1bc307424a84", "636aaa0410430deedd7bd4979e8c1bc307424a84", "636aaa0410430deedd7bd4979e8c1bc307424a84" ]
[ "mmdet3d/datasets/s3dis_dataset.py", "mmdet3d/core/bbox/structures/lidar_box3d.py", "mmdet3d/models/dense_heads/fcaf3d_neck_with_head.py" ]
[ "import numpy as np\nfrom os import path as osp\n\nfrom mmdet3d.core import show_result, show_seg_result\nfrom mmdet3d.core.bbox import DepthInstance3DBoxes\nfrom mmdet.datasets import DATASETS\nfrom mmseg.datasets import DATASETS as SEG_DATASETS\nfrom .custom_3d import Custom3DDataset\nfrom .custom_3d_seg import C...
[ [ "numpy.unique", "numpy.concatenate", "numpy.max", "numpy.array", "numpy.zeros" ], [ "numpy.dot", "torch.Size", "torch.sin", "torch.cat", "numpy.arange", "torch.zeros_like", "numpy.arctan2", "torch.where", "torch.cos" ], [ "torch.cat", "torch....
PaulTHong/STDA-inf
[ "3d87a7843f879d17a343ba4838caa1f58f1e8e65" ]
[ "data/cal_mean_std.py" ]
[ "import numpy as np\nimport cv2\nimport os\n\nmean = []\nstd = []\nimg_list = []\n\ndir_path = './STL10-data/train'\nclass_paths = os.listdir(dir_path)\nprint(class_paths)\nfor cls in class_paths:\n img_paths = os.listdir(dir_path + os.sep + cls)\n print(len(img_paths))\n for img_path in img_paths:\n ...
[ [ "numpy.concatenate", "numpy.std", "numpy.mean" ] ]
vrushank-agrawal/opencv-x64-cmake
[ "3f9486510d706c8ac579ac82f5d58f667f948124", "3f9486510d706c8ac579ac82f5d58f667f948124", "3f9486510d706c8ac579ac82f5d58f667f948124" ]
[ "opencv/sources/modules/dnn/test/cityscapes_semsegm_test_enet.py", "opencv/sources/samples/python/tutorial_code/imgProc/anisotropic_image_segmentation/anisotropic_image_segmentation.py", "opencv/sources/samples/python/tutorial_code/TrackingMotion/good_features_to_track/goodFeaturesToTrack_Demo.py" ]
[ "import numpy as np\r\nimport sys\r\nimport os\r\nimport fnmatch\r\nimport argparse\r\n\r\ntry:\r\n import cv2 as cv\r\nexcept ImportError:\r\n raise ImportError('Can\\'t find OpenCV Python module. If you\\'ve built it from sources without installation, '\r\n 'configure environment variab...
[ [ "torch.FloatTensor", "numpy.array", "numpy.expand_dims", "torch.utils.serialization.load_lua" ], [ "numpy.uint8", "numpy.sqrt" ], [ "numpy.copy" ] ]
jmetz/momanalysis
[ "8d71490c99127568b184784890258e9a6ef876ef" ]
[ "mmhelper/output.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Mon Jan 09 09:59:13 2017\n\n@author: as624\n\"\"\"\nimport csv\nimport os\nimport matplotlib.pyplot as plt\nimport numpy as np\n\ndef output_detection_figures(\n image, wells, bacteria, timeindex, output_dir):\n \"\"\"\n Produces and saves figures showing th...
[ [ "matplotlib.pyplot.imshow", "numpy.unique", "numpy.min", "numpy.max", "matplotlib.pyplot.contour", "numpy.zeros_like", "matplotlib.pyplot.close", "matplotlib.pyplot.cm.gist_rainbow", "numpy.any", "matplotlib.pyplot.text", "matplotlib.pyplot.figure" ] ]
iurteaga/menstrual_cycle_analysis
[ "799c7cb59d759e0c3929164bccdc5c7ce80324d0", "799c7cb59d759e0c3929164bccdc5c7ce80324d0" ]
[ "src/characterization/cycle_period_length_analysis.py", "src/prediction/aux_functions.py" ]
[ "#!/usr/bin/python\n\n# Imports\nimport sys, os, re, time\nimport argparse\nimport pdb\nimport pickle\nfrom itertools import *\n# Science\nimport numpy as np\nimport scipy.stats as stats\nimport pandas as pd\n# Plotting\nimport matplotlib\nmatplotlib.use('Agg')\nimport matplotlib.pyplot as plt\nfrom matplotlib impo...
[ [ "matplotlib.pyplot.autoscale", "matplotlib.pyplot.plot", "numpy.unique", "numpy.arange", "matplotlib.pyplot.close", "matplotlib.pyplot.text", "numpy.zeros", "matplotlib.pyplot.figure", "numpy.random.choice", "matplotlib.pyplot.ylim", "matplotlib.pyplot.savefig", "ma...
dylanljones/cmpy
[ "21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c", "21adcf4dd9f873ae29d47aeaef4fbcd914bfce2c" ]
[ "cmpy/disorder.py", "scripts/gf_tevo.py" ]
[ "# coding: utf-8\n#\n# This code is part of cmpy.\n#\n# Copyright (c) 2022, Dylan Jones\n\n\"\"\"This module contains methods for modeling disorder.\"\"\"\n\nimport numpy as np\nfrom typing import Union, Sequence\n\n\ndef create_subst_array(\n size: int, values: Sequence[float], conc: Union[float, Sequence[float...
[ [ "numpy.concatenate", "numpy.array", "numpy.random.default_rng", "numpy.full" ], [ "numpy.random.uniform", "matplotlib.pyplot.show", "matplotlib.pyplot.subplots", "numpy.linspace" ] ]
awesome-archive/minigo
[ "188fb197fdafbe9664a32142373b1cbd1459bc67", "188fb197fdafbe9664a32142373b1cbd1459bc67" ]
[ "tests/test_coords.py", "tests/test_go.py" ]
[ "# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed ...
[ [ "numpy.ndindex" ], [ "numpy.zeros" ] ]
ShizhuZhang/ontask_b
[ "ca4526871f26e7153b724b1e97b922a0b52f75d6", "acbf05ff9b18dae0a41c67d1e41774e54a890c40" ]
[ "src/plugins/test_plugin_2/__init__.py", "src/dataops/pandas_db.py" ]
[ "# -*- coding: utf-8 -*-\nfrom __future__ import unicode_literals, print_function\n\nimport pandas as pd\n\n# The field class_name contains the name of the class to load to execute the\n# plugin.\nclass_name = 'OntaskTestPlugin'\n\n\nclass OntaskTestPlugin(object):\n \"\"\"\n Example of a class that implement...
[ [ "pandas.DataFrame" ], [ "pandas.read_sql_query", "pandas.read_csv", "pandas.to_datetime", "pandas.read_sql" ] ]
bzamecnik/tensorpack
[ "e9a3c2b3cd441e5b288607b44f2fe44fbf3ad4bb" ]
[ "examples/FasterRCNN/train.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# File: train.py\n\nimport argparse\nimport itertools\nimport numpy as np\nimport os\nimport shutil\nimport cv2\nimport six\nassert six.PY3, \"FasterRCNN requires Python 3!\"\nimport tensorflow as tf\nimport tqdm\n\nimport tensorpack.utils.viz as tpviz\nfrom tensorpa...
[ [ "tensorflow.get_variable", "tensorflow.transpose", "tensorflow.constant", "tensorflow.gather_nd", "tensorflow.shape", "tensorflow.reshape", "tensorflow.sigmoid", "tensorflow.expand_dims", "tensorflow.squeeze", "tensorflow.size", "numpy.concatenate", "tensorflow.cast...
hmartelb/meme-search
[ "2042678b3a7252ba00699e7a0618aafdf2059465" ]
[ "data/scraper.py" ]
[ "\n\nimport json\nimport time\nimport os\nimport pandas as pd\nimport requests\nfrom bs4 import BeautifulSoup\nfrom tqdm import tqdm\n\ndef process_9gag(args):\n fetched_memes = []\n errors = 0\n # for i in tqdm(range(args.))\n pass\n\ndef process_me_dot_me(args):\n pass\n\ndef templates_imgflip(args...
[ [ "pandas.DataFrame" ] ]
AnielliRosane/lista-ser347
[ "61a8ac8f675dc0ec05f45408c54e9d3a0e515ff4" ]
[ "exercicio-4.py" ]
[ "# -*- coding: utf-8 -*-\n\n# Lista de exercicio 06\n\n# Exercicio 4\n\n# importando as bibliotecas\n\nimport matplotlib as plt\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n# informacoes da tabela relativas aos dados masculino e feminino (IBGE)\n\nidade = np.array(\n [\"0 a 4 anos\", \"5 a 9 anos\", \...
[ [ "matplotlib.pyplot.legend", "matplotlib.pyplot.yticks", "matplotlib.pyplot.axvline", "matplotlib.pyplot.gca", "matplotlib.pyplot.barh", "matplotlib.pyplot.rc", "matplotlib.pyplot.show", "matplotlib.pyplot.subplot", "matplotlib.pyplot.subplots_adjust", "numpy.array", "ma...
dukebw/nerfies
[ "b30fe19edb6435e770b35dc07aab44ae62c96278" ]
[ "third_party/pycolmap/pycolmap/scene_manager.py" ]
[ "# Author: True Price <jtprice at cs.unc.edu>\n\nfrom collections import OrderedDict, defaultdict\nfrom io import StringIO\nfrom itertools import combinations\nimport os\nimport struct\n\nfrom .camera import Camera\nfrom .image import Image\nimport numpy as np\nfrom .rotation import Quaternion\n\n# ----------------...
[ [ "numpy.radians", "numpy.min", "numpy.rec.fromarrays", "numpy.linalg.norm", "numpy.max", "numpy.uint64", "numpy.any", "numpy.float64", "numpy.savetxt", "numpy.array", "numpy.zeros", "numpy.empty" ] ]
bjnortier/ai-experiments-1
[ "aff4496d84b059af6096f8f6b51d0ebcf6ed5c37" ]
[ "conveyor_2.py" ]
[ "import os\nimport glob\nfrom pathlib import Path\nimport numpy as np\nimport random\nimport carb\nfrom PIL import Image\nfrom tensorflow import keras\nfrom pxr import Usd, UsdGeom, Gf, UsdPhysics\nimport omni.kit\nfrom omni.isaac.examples.base_sample import BaseSample\nfrom omni.isaac.core.objects import DynamicCu...
[ [ "tensorflow.keras.models.load_model", "numpy.array", "numpy.expand_dims", "numpy.argmax" ] ]
vixadd/tensorflow
[ "8c624204eb686a91779149dc500e6c8c60096074", "8c624204eb686a91779149dc500e6c8c60096074", "8c624204eb686a91779149dc500e6c8c60096074", "8c624204eb686a91779149dc500e6c8c60096074", "8c624204eb686a91779149dc500e6c8c60096074" ]
[ "tensorflow/python/ops/parallel_for/gradients.py", "tensorflow/python/ops/ragged/ragged_where_op.py", "tensorflow/python/data/experimental/ops/iterator_ops.py", "tensorflow/python/data/kernel_tests/reduce_test.py", "tensorflow/python/framework/random_seed.py" ]
[ "# Copyright 2018 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.python.ops.array_ops.transpose", "tensorflow.python.ops.array_ops.shape", "tensorflow.python.ops.array_ops.concat", "tensorflow.python.ops.parallel_for.control_flow_ops.pfor", "tensorflow.python.ops.gradients_impl.gradients", "tensorflow.python.ops.check_ops.assert_equal", ...
anonymous2submit/Pointsformer
[ "0eaa141b3d79d45cd925976bde6097b51e0d3819" ]
[ "classification/models/model23.py" ]
[ "\"\"\"\nExactly equals to Model21 (the best results so far), but differnt configurations.\nExactly based on Model10, but ReLU to GeLU\nBased on Model8, add dropout and max, avg combine.\nBased on Local model, add residual connections.\nThe extraction is doubled for depth.\n\nLearning Point Cloud with Progressively...
[ [ "torch.nn.Softmax", "torch.randint", "torch.max", "torch.cat", "torch.zeros", "torch.nn.functional.adaptive_max_pool1d", "torch.sum", "torch.topk", "torch.nn.Dropout", "torch.ones", "torch.einsum", "torch.rand", "torch.arange", "torch.nn.Sequential", "to...
DigitalBiomarkerDiscoveryPipeline/devicely
[ "9773fead4d3969a32ca2760b8db4ae728c4d5d50" ]
[ "devicely/empatica.py" ]
[ "\"\"\"\nEmpatica E4 is a wearable device that offers real-time physiological data\nacquisition such as blood volume pulse, electrodermal activity (EDA), heart\nrate, interbeat intervals, 3-axis acceleration and skin temperature.\n\"\"\"\n\nimport os\nimport random\n\nimport numpy as np\nimport pandas as pd\n\n\ncl...
[ [ "pandas.read_csv", "pandas.to_datetime", "pandas.Series", "pandas.Timedelta", "pandas.DataFrame", "pandas.to_timedelta", "numpy.savetxt", "numpy.array" ] ]
Near32/Archi
[ "0005713fa4e37c7cd9b34cd257c481d08928db8a" ]
[ "Archi/tests/test_esbn_model.py" ]
[ "import Archi\nimport yaml \n\n\ndef test_model_loading():\n try:\n config = yaml.safe_load(\n open(\"./esbn_model_test_config.yaml\", 'r'),\n )\n except yaml.YANNLError as e:\n print(e)\n\n from Archi import load_model\n\n model = load_model(config)\n \n assert 'Ke...
[ [ "torch.rand" ] ]
RubensZimbres/pytorch-metric-learning
[ "41e06ef5af398c05d238e0a74ee6c42fa7bd574c" ]
[ "tests/utils/test_calculate_accuracies.py" ]
[ "import unittest\r\nfrom pytorch_metric_learning.utils import accuracy_calculator\r\nimport numpy as np\r\n\r\n\r\nclass TestCalculateAccuracies(unittest.TestCase):\r\n def test_accuracy_calculator(self):\r\n query_labels = np.array([1, 1, 2, 3, 4])\r\n\r\n knn_labels1 = np.array(\r\n [\...
[ [ "numpy.unique", "numpy.arange", "numpy.ones", "numpy.mean", "numpy.array", "numpy.zeros" ] ]
piquark6046/tensorflow
[ "57771c5d008f6d16fd147110213855d145a7e0bc" ]
[ "tensorflow/python/eager/backprop.py" ]
[ "# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.python.ops.gen_math_ops.add_n", "tensorflow.python.ops.array_ops.shape", "tensorflow.python.util.tf_inspect.getfullargspec", "tensorflow.python.pywrap_tfe.TFE_Py_TapeSetIsEmpty", "tensorflow.python.framework.ops.executing_eagerly_outside_functions", "tensorflow.python.ops.array...
ammar1510/pytorch
[ "ec8d6777255821bed73b471eadddde068cd60c0b" ]
[ "test/test_fx.py" ]
[ "# Owner(s): [\"oncall: fx\"]\n\nimport builtins\nimport contextlib\nimport copy\nimport functools\nimport inspect\nimport math\nimport numbers\nimport operator\nimport os\nimport pickle\nimport sys\nimport torch\nimport traceback\nimport typing\nimport types\nimport warnings\nimport unittest\nfrom math import sqrt...
[ [ "torch.fx.immutable_collections.immutable_dict", "torch.max", "torch.rand_like", "torch.fx.wrap", "torch.typename", "torch.sin", "torch.zeros", "torch.nn.RNN", "torch.sum", "torch.neg", "torch.nn.Embedding", "torch.fx.Interpreter", "torch.tanh", "torch.cat",...
deepneuralmachine/google-research
[ "d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231", "d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231", "d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231", "d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231", "d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231", "d2ce2cf0f5c004f8d78bfeddf6e88e88f4840231", "d2ce2cf0f5c004f8d78bfeddf6e88e88f484023...
[ "bam/task_specific/task.py", "seq2act/models/input.py", "robust_loss/fit_partition_spline.py", "tcc/algos/tcn.py", "mobilebert/optimization.py", "cnn_quantization/tf_cnn_benchmarks/all_reduce_benchmark.py", "soft_sort/sinkhorn.py", "task_set/train_inner_test.py", "non_semantic_speech_benchmark/eval_...
[ "# coding=utf-8\n# Copyright 2021 The Google Research Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.compat.v1.gfile.Open" ], [ "tensorflow.compat.v1.not_equal", "tensorflow.compat.v1.data.TFRecordDataset", "tensorflow.compat.v1.matching_files", "tensorflow.compat.v1.concat", "tensorflow.compat.v1.equal", "tensorflow.compat.v1.boolean_mask", "tensorflow.compat.v1.s...
LuoYuanke/PrivChainer
[ "758d765c7903f6913cfd58c21db069d5f2a12203", "758d765c7903f6913cfd58c21db069d5f2a12203", "758d765c7903f6913cfd58c21db069d5f2a12203" ]
[ "chainer/functions/pooling/average_pooling_2d.py", "chainer/utils/conv_nd.py", "tests/chainer_tests/training_tests/updaters_tests/test_multiprocess_parallel_updater.py" ]
[ "import numpy\n\nimport chainer\nfrom chainer.backends import cuda\nfrom chainer import function_node\nfrom chainer.functions.pooling import pooling_2d\nfrom chainer.utils import conv\n\n\nclass AveragePooling2D(pooling_2d.Pooling2D):\n\n \"\"\"Average pooling over a set of 2d planes.\"\"\"\n # TODO(beam2d): ...
[ [ "numpy.tile" ], [ "numpy.zeros", "numpy.pad", "numpy.ndarray" ], [ "numpy.sqrt", "numpy.int32", "numpy.ones", "numpy.random.uniform", "numpy.empty" ] ]
jwillis0720/pybody
[ "2d7c68650ac1ef5f3003ccb67171898eac1f63eb" ]
[ "src/sadie/renumbering/result.py" ]
[ "import logging\nimport pandas as pd\nfrom ast import literal_eval\n\nfrom .constants import NUMBERING_RESULTS\nfrom sadie.numbering.scheme_numbering import scheme_numbering\n\nlogger = logging.getLogger(\"NUMBERING\")\n\n\nclass NumberingResults(pd.DataFrame):\n def __init__(self, *args, scheme=\"\", region_def...
[ [ "pandas.concat", "pandas.read_csv", "pandas.Series" ] ]
rafaelcostafrf/UAV_3d_virtual_env
[ "bccaa52ec97fff5c0a17e1351a09f913d91c4c7b" ]
[ "environment/controller/ppo_test.py" ]
[ "import sys\nfrom quadrotor_env import quad, render, animation\nimport numpy as np\nimport torch\nimport torch.nn as nn\nfrom torch.distributions import MultivariateNormal\nimport numpy as np\nfrom quadrotor_env import quad, render, animation\nfrom model import ActorCritic\n\n\"\"\"\nMECHANICAL ENGINEERING POST-GRA...
[ [ "torch.load", "numpy.concatenate", "torch.FloatTensor", "torch.cuda.is_available", "numpy.zeros" ] ]
techthiyanes/transformers
[ "705d65368fb28246534ef636fe62c008f4fb2682", "705d65368fb28246534ef636fe62c008f4fb2682", "705d65368fb28246534ef636fe62c008f4fb2682", "705d65368fb28246534ef636fe62c008f4fb2682", "b18dfd95e1f60ae65a959a7b255fc06522170d1b", "705d65368fb28246534ef636fe62c008f4fb2682" ]
[ "tests/wav2vec2/test_modeling_flax_wav2vec2.py", "src/transformers/pipelines/automatic_speech_recognition.py", "tests/decision_transformer/test_modeling_decision_transformer.py", "tests/dpt/test_modeling_dpt.py", "src/transformers/models/convnext/modeling_tf_convnext.py", "src/transformers/models/layoutlm...
[ "# Copyright 2021 The HuggingFace Team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir...
[ [ "numpy.unique", "numpy.arange", "numpy.ones", "numpy.broadcast_to", "numpy.array" ], [ "numpy.concatenate", "torch.from_numpy" ], [ "torch.ones", "torch.zeros", "torch.cat", "torch.manual_seed", "torch.randn", "torch.tensor", "torch.no_grad", "to...
templeblock/automl
[ "0a73e836fd4a9d22919cb1ff5af9ca30082fa4b2" ]
[ "efficientdet/det_model_fn.py" ]
[ "# Copyright 2020 Google Research. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by...
[ [ "tensorflow.compat.v1.not_equal", "tensorflow.compat.v1.metrics.mean", "tensorflow.compat.v1.concat", "tensorflow.compat.v1.train.ExponentialMovingAverage", "tensorflow.compat.v1.train.Scaffold", "tensorflow.compat.v1.train.Saver", "tensorflow.compat.v1.tpu.CrossShardOptimizer", "t...
holajoa/keras-YOLOv3-model-set
[ "c15b8a2f48371c063f6482b25593dc70d5956323", "c15b8a2f48371c063f6482b25593dc70d5956323", "c15b8a2f48371c063f6482b25593dc70d5956323" ]
[ "yolo3/models/yolo3_resnet50.py", "yolo3/data.py", "tracking/eval/tools/mot16_annotation.py" ]
[ "#!/usr/bin/env python3\r\n# -*- coding: utf-8 -*-\r\n\"\"\"YOLO_v3 ResNet50 Model Defined in Keras.\"\"\"\r\n\r\nfrom tensorflow.keras.layers import UpSampling2D, Concatenate\r\nfrom tensorflow.keras.models import Model\r\nfrom tensorflow.keras.applications.resnet import ResNet50\r\n\r\nfrom yolo3.models.layers im...
[ [ "tensorflow.keras.applications.resnet.ResNet50", "tensorflow.keras.models.Model" ], [ "numpy.expand_dims", "numpy.maximum", "numpy.minimum", "numpy.random.shuffle", "numpy.floor", "numpy.argsort", "numpy.array", "numpy.zeros" ], [ "numpy.unique" ] ]
ruthlorenz/ESMValTool
[ "c3c61b5341037d01c776c3524c0dd4c767507a3d", "c3c61b5341037d01c776c3524c0dd4c767507a3d" ]
[ "esmvaltool/diag_scripts/ocean/diagnostic_profiles.py", "esmvaltool/diag_scripts/ocean/diagnostic_transects.py" ]
[ "\"\"\"\nDiagnostic:\n\nDiagnostic to produce images of the profile over time from a cube.\nThese plost show cube value (ie temperature) on the x-axis, and depth/height\non the y axis. The colour scale is the annual mean of the cube data.\n\nNote that this diagnostic assumes that the preprocessors do the bulk of th...
[ [ "matplotlib.pyplot.gca", "matplotlib.pyplot.title", "matplotlib.pyplot.cm.get_cmap", "matplotlib.use", "matplotlib.pyplot.savefig", "matplotlib.pyplot.close" ], [ "matplotlib.pyplot.title", "matplotlib.use", "matplotlib.pyplot.savefig", "matplotlib.pyplot.axes", "ma...
vlad17/BlitzML
[ "f13e089acf7435416bec17e87e5b3130426fc2cd", "f13e089acf7435416bec17e87e5b3130426fc2cd" ]
[ "test/python/test_problem_options.py", "test/python/test_sparse_logreg.py" ]
[ "import unittest\nimport blitzml\nimport numpy as np\n\nfrom common import captured_output\n\nclass TestProblemOptions(unittest.TestCase):\n def setUp(self):\n A = np.arange(20).reshape(5, 4)\n b = np.arange(5).astype(np.float64)\n self.prob = blitzml.LassoProblem(A, b)\n\n def tearDown(self):\n del s...
[ [ "numpy.arange" ], [ "numpy.random.seed", "numpy.arange", "numpy.random.randn", "numpy.exp", "numpy.array", "numpy.zeros" ] ]
5joono/Swin-Transformer
[ "b5b7e85aa11ad72b2bec2d458fa78066e4c3d0f2" ]
[ "multiprune_plusone/multiprune_plusone.py" ]
[ "import os\nimport numpy as np\nimport pandas as pd\nos.environ['MKL_THREADING_LAYER'] = 'GNU'\n\n# df = pd.DataFrame(columns=['multiprune', 'headstr', 'pluslayer', 'plushead', 'acc1'])\n# df.to_csv(\"multiprune_plusone.csv\",index=False)\n\nprevheadlist = [set([7]),set([11]),set([0]),set([7]),set([9]),set([9])]\np...
[ [ "pandas.read_csv" ] ]
duanzhiihao/mycv
[ "184b52f7a5c1b6f603122d4f4050952b65ba0ead", "184b52f7a5c1b6f603122d4f4050952b65ba0ead", "184b52f7a5c1b6f603122d4f4050952b65ba0ead", "184b52f7a5c1b6f603122d4f4050952b65ba0ead" ]
[ "mycv/train.py", "scripts/divide_images.py", "mycv/utils/aug.py", "mycv/models/probabilistic/logmixture.py" ]
[ "from mycv.utils.general import disable_multithreads\ndisable_multithreads()\nimport os\nfrom pathlib import Path\nimport argparse\nfrom tqdm import tqdm\nimport math\nimport torch\nimport torch.cuda.amp as amp\nfrom torch.optim.lr_scheduler import LambdaLR\nfrom torch.nn.parallel import DistributedDataParallel as ...
[ [ "torch.cuda.get_device_properties", "torch.optim.lr_scheduler.LambdaLR", "torch.max", "torch.load", "torch.utils.data.DataLoader", "torch.nn.SyncBatchNorm.convert_sync_batchnorm", "torch.cuda.amp.autocast", "torch.cuda.is_available", "torch.device", "torch.save", "torch...
geophysics-ubonn/crtomo_tools
[ "a01b4d31d7250bc729605ae4dc035f108168128e" ]
[ "examples/01_modelling/plot_06_synthetic_4d.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nGenerating a 4D synthetic data set with noise.\n^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n\nA 2D space, time and frequency data set is generated for testing purposes in\nreda.\n\"\"\"\n####################################################################...
[ [ "numpy.logspace", "numpy.random.normal", "numpy.log", "numpy.random.seed" ] ]
singh-karanpal/Capstone
[ "807ca3f70276a0dd17244a123a759a914d358424" ]
[ "src/models/model_evaluate.py" ]
[ "# author: Carlina Kim, Karanpal Singh, Sukriti Trehan, Victor Cuspinera\n# date: 2020-06-21\n\n'''This script will read the saved theme/subtheme model(s), padded validation sets and y validation sets for model evaluation, \nand will save the evaluation results in the specified directory.\n\nThere are 2 parameters ...
[ [ "matplotlib.pyplot.step", "pandas.DataFrame", "sklearn.metrics.f1_score", "numpy.load", "matplotlib.pyplot.figure", "matplotlib.pyplot.title", "matplotlib.pyplot.ylim", "sklearn.metrics.precision_score", "matplotlib.pyplot.savefig", "sklearn.metrics.recall_score", "matp...
ImageMarkup/isic-archive
[ "d221af3368baf3a06ecab67e69e9d0077426c8f9" ]
[ "isic_archive/models/segmentation_helpers/scikit.py" ]
[ "import collections\nimport io\nfrom typing import BinaryIO, Tuple, Union\nimport warnings\n\nimport numpy\nimport skimage.io\nimport skimage.measure\nimport skimage.morphology\nimport skimage.segmentation\nimport skimage.transform\n\nfrom .base import BaseSegmentationHelper\n\n\nclass ScikitSegmentationHelper(Base...
[ [ "numpy.logical_not", "numpy.pad", "numpy.invert", "numpy.nditer", "numpy.fliplr", "numpy.unique", "numpy.all", "numpy.uint64", "numpy.iinfo", "numpy.equal", "numpy.cross", "numpy.array", "numpy.logical_and", "numpy.zeros" ] ]
yypurpose/mmdetection
[ "ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c", "ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c", "ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c", "ec6bfd96eae0af047c623f3d1ec31b0b3f1f4a6c" ]
[ "mmdet/models/backbones/res2net.py", "mmdet/models/roi_heads/mask_scoring_roi_head.py", "mmdet/models/roi_heads/test_mixins.py", "mmdet/models/necks/nas_fpn.py" ]
[ "import math\r\n\r\nimport torch\r\nimport torch.nn as nn\r\nimport torch.utils.checkpoint as cp\r\nfrom mmcv.cnn import (build_conv_layer, build_norm_layer, constant_init,\r\n kaiming_init)\r\nfrom mmcv.runner import load_checkpoint\r\nfrom torch.nn.modules.batchnorm import _BatchNorm\r\n\r\nf...
[ [ "torch.cat", "torch.nn.ModuleList", "torch.nn.AvgPool2d", "torch.utils.checkpoint.checkpoint", "torch.split" ], [ "torch.from_numpy", "torch.cat" ], [ "torch.onnx.is_in_onnx_export", "torch.from_numpy", "torch.cat" ], [ "torch.nn.MaxPool2d", "torch.nn.Mo...
untzag/WrightTools
[ "05480d2f91ceeca422d9e5ac381fce1840207cb0", "05480d2f91ceeca422d9e5ac381fce1840207cb0", "05480d2f91ceeca422d9e5ac381fce1840207cb0" ]
[ "WrightTools/data/_data.py", "WrightTools/data/_brunold.py", "WrightTools/data/_tensor27.py" ]
[ "\"\"\"Central data class and associated.\"\"\"\n\n\n# --- import --------------------------------------------------------------------------------------\n\n\nimport collections\nimport operator\nimport functools\nimport warnings\n\nimport numpy as np\n\nimport h5py\n\nimport scipy\nfrom scipy.interpolate import gri...
[ [ "numpy.expand_dims", "numpy.kaiser", "numpy.linspace", "numpy.around", "numpy.nan_to_num", "numpy.dtype", "numpy.all", "numpy.nanmean", "scipy.interpolate.griddata", "scipy.ndimage.interpolation.zoom", "numpy.trapz", "numpy.full", "numpy.ceil", "scipy.interp...
ahmedsabie/tensorflow
[ "be084bd7a4dd241eb781fc704f57bcacc5c9b6dd", "be084bd7a4dd241eb781fc704f57bcacc5c9b6dd", "be084bd7a4dd241eb781fc704f57bcacc5c9b6dd" ]
[ "tensorflow/python/framework/func_graph.py", "tensorflow/python/keras/keras_parameterized_test.py", "tensorflow/python/keras/layers/preprocessing/benchmarks/hashing_benchmark.py" ]
[ "# Copyright 2018 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.python.eager.tape.record_operation", "tensorflow.python.framework.ops._as_graph_element", "tensorflow.python.util.tf_decorator.rewrap", "tensorflow.python.ops.array_ops.placeholder", "tensorflow.python.util.tf_decorator.make_decorator", "tensorflow.python.framework.ops.executin...
dendisuhubdy/MinkowskiEngine
[ "a1cdcba68ef925bfefed2fe161f62e1ec78573b9" ]
[ "MinkowskiEngine/MinkowskiFunctional.py" ]
[ "import torch.nn.functional as F\n\nfrom SparseTensor import SparseTensor\n\n\ndef relu(input):\n output = F.relu(input.F)\n return SparseTensor(\n output, coords_key=input.coords_key, coords_manager=input.coords_man)\n" ]
[ [ "torch.nn.functional.relu" ] ]
QuantumHardware/qiskit-experiments
[ "c09cf35bb922419354955abe8d536a97a9ea286b", "c09cf35bb922419354955abe8d536a97a9ea286b" ]
[ "test/calibration/experiments/test_drag.py", "qiskit_experiments/curve_analysis/visualization/fit_result_plotters.py" ]
[ "# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2021.\n#\n# This code is licensed under the Apache License, Version 2.0. You may\n# obtain a copy of this license in the LICENSE.txt file in the root directory\n# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.\n#\n# Any modifications or ...
[ [ "numpy.linspace" ], [ "numpy.abs", "numpy.array_equal", "numpy.isfinite", "numpy.isnan", "numpy.nan_to_num", "matplotlib.ticker.FuncFormatter" ] ]
thyneb19/lux
[ "07a282d6a5f60c05942d866fa6f33636c3428abc" ]
[ "tests/test_type.py" ]
[ "# Copyright 2019-2020 The Lux Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicabl...
[ [ "pandas.read_csv", "pandas.DataFrame" ] ]
leipzig/gatk-sv
[ "bf3704bd1d705339577530e267cd4d1b2f77a17f", "96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a", "96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a", "96566cbbaf0f8f9c8452517b38eea1e5dd6ed33a" ]
[ "src/sv-pipeline/pre_SVCalling_and_QC/raw_vcf_qc/calc_num_svs_pick_outlier.py", "src/svtk/svtk/cli/pesr_test.py", "src/sv-pipeline/scripts/downstream_analysis_and_filtering/filter_cleanup_and_QUAL_recalibration.PCRMinus_only.py", "src/svtk/svtk/cxsv/rescan_single_enders.py" ]
[ "#!/usr/bin/env python\n\nimport sys\nfrom typing import Sequence, Set\nimport argparse\nimport numpy\nimport pandas\n\n\n_zero_svs_are_outliers = True\n_outlier_std_threshold = 5.0\n_column_order = [\"CHROM\", \"SVTYPE\", \"Mean\", \"Median\", \"STD\",\n \"Outlier_Sample\", \"Outlier_Number\", \"Ou...
[ [ "pandas.concat", "pandas.read_csv", "numpy.abs", "numpy.sqrt", "pandas.DataFrame", "numpy.where" ], [ "pandas.read_table", "pandas.melt" ], [ "numpy.median" ], [ "numpy.percentile", "numpy.random.seed", "numpy.random.choice" ] ]
savelov/nowcast
[ "9c1168b1ba642f15bc4ffb000bdbca6db27c29b1", "9c1168b1ba642f15bc4ffb000bdbca6db27c29b1" ]
[ "pysteps/io/exporters.py", "pysteps_custom_utils/probability_nowcasting.py" ]
[ "\"\"\"\npysteps.io.exporter\n===================\n\nMethods for exporting forecasts of 2d precipitation fields into various file\nformats.\n\nEach exporter method in this module has its own initialization function that\nimplements the following interface::\n\n initialize_forecast_exporter_xxx(filename, startdate,...
[ [ "numpy.linspace", "numpy.min", "numpy.cumsum", "numpy.stack", "numpy.meshgrid", "numpy.zeros" ], [ "numpy.zeros" ] ]
StewSchrieff/riddlerHoopGame
[ "3d63f494aa803c7571ace83f87a40ce5d6b0dfc1" ]
[ "venv/Lib/site-packages/matplotlib/backends/backend_qt5.py" ]
[ "from __future__ import (absolute_import, division, print_function,\n unicode_literals)\nimport six\n\nimport functools\nimport os\nimport re\nimport signal\nimport sys\nfrom six import unichr\nimport traceback\n\nimport matplotlib\n\nfrom matplotlib._pylab_helpers import Gcf\nfrom matplotlib...
[ [ "matplotlib.backend_bases.FigureCanvasBase.get_width_height", "matplotlib.backend_bases.FigureCanvasBase.enter_notify_event", "matplotlib.backend_bases.NavigationToolbar2.__init__", "matplotlib.backend_bases.ToolContainerBase.__init__", "matplotlib.backend_bases.FigureCanvasBase.scroll_event",...
LueyEscargot/pyGuiTest
[ "c072fe29a7c94dc60ec54344a5d4a91253d25f3f" ]
[ "pyside/lesson_08_main.py" ]
[ "\nimport sys\nimport argparse\nimport pandas as pd\n\nfrom PySide2.QtCore import QDateTime, QTimeZone\nfrom PySide2.QtWidgets import QApplication\nfrom lesson_08_main_window import MainWindow\nfrom lesson_08_mainWidget import Widget\n\n\ndef transform_date(utc, timezone=None):\n utc_fmt = \"yyyy-MM-ddTHH:mm:ss....
[ [ "pandas.read_csv" ] ]
wjsi/mars
[ "a69fb19edfe748d4393b90ff2c4941a76c084596", "a69fb19edfe748d4393b90ff2c4941a76c084596", "a69fb19edfe748d4393b90ff2c4941a76c084596", "a69fb19edfe748d4393b90ff2c4941a76c084596", "a69fb19edfe748d4393b90ff2c4941a76c084596", "a69fb19edfe748d4393b90ff2c4941a76c084596", "a69fb19edfe748d4393b90ff2c4941a76c08459...
[ "mars/tensor/fft/ifftn.py", "mars/tensor/fft/irfft.py", "mars/remote/tests/test_remote_function.py", "mars/learn/neighbors/base.py", "mars/services/mutable/tests/test_mutable.py", "mars/tensor/images/imread.py", "mars/tensor/reduction/all.py", "mars/tensor/base/result_type.py", "mars/dataframe/windo...
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2021 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/li...
[ [ "numpy.dtype" ], [ "numpy.dtype" ], [ "pandas.testing.assert_series_equal", "numpy.isnan", "pandas.DataFrame", "numpy.testing.assert_almost_equal", "numpy.random.RandomState" ], [ "numpy.isnan" ], [ "numpy.testing.assert_array_equal", "numpy.array", "num...
leelige/mindspore
[ "5199e05ba3888963473f2b07da3f7bca5b9ef6dc", "5199e05ba3888963473f2b07da3f7bca5b9ef6dc", "5199e05ba3888963473f2b07da3f7bca5b9ef6dc", "5199e05ba3888963473f2b07da3f7bca5b9ef6dc", "5199e05ba3888963473f2b07da3f7bca5b9ef6dc", "5199e05ba3888963473f2b07da3f7bca5b9ef6dc", "5199e05ba3888963473f2b07da3f7bca5b9ef6d...
[ "research/cv/Neighbor2Neighbor/src/dataset.py", "official/recommend/ncf/src/dataset.py", "official/cv/ssd/src/box_utils.py", "research/cv/Pix2Pix/postprocess.py", "official/cv/crnn_seq2seq_ocr/src/dataset.py", "research/cv/mobilenetV3_small_x1_0/src/monitor.py", "official/cv/unet3d/eval.py", "official...
[ "# Copyright 2021 Huawei Technologies Co., Ltd\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable l...
[ [ "numpy.random.poisson", "numpy.random.normal", "numpy.random.uniform", "numpy.array", "numpy.random.randint" ], [ "numpy.logical_not", "numpy.hstack", "pandas.read_csv", "numpy.log2", "numpy.reshape", "numpy.arange", "numpy.cumsum", "numpy.argwhere", "nu...
iust-projects/Data-Mining-IUST
[ "88f7a5541278f1fe907ca9b70c990a27f60900b2" ]
[ "Project/EnhancedDeepPath/scripts/sl_policy.py" ]
[ "from __future__ import division\nfrom __future__ import print_function\nimport tensorflow as tf \nimport numpy as np\nfrom itertools import count\nimport sys\n\nfrom networks import policy_nn\nfrom utils import *\nfrom env import Env\nfrom BFS.KB import KB\nfrom BFS.BFS import BFS\nimport time\n\nrelation = sys.ar...
[ [ "tensorflow.boolean_mask", "tensorflow.get_default_session", "numpy.reshape", "tensorflow.get_collection", "numpy.squeeze", "numpy.arange", "tensorflow.placeholder", "tensorflow.global_variables_initializer", "tensorflow.reset_default_graph", "tensorflow.variable_scope", ...
AndreasKaratzas/stonne
[ "2915fcc46cc94196303d81abbd1d79a56d6dd4a9", "2915fcc46cc94196303d81abbd1d79a56d6dd4a9", "2915fcc46cc94196303d81abbd1d79a56d6dd4a9", "2915fcc46cc94196303d81abbd1d79a56d6dd4a9", "2915fcc46cc94196303d81abbd1d79a56d6dd4a9", "2915fcc46cc94196303d81abbd1d79a56d6dd4a9", "2915fcc46cc94196303d81abbd1d79a56d6dd4a...
[ "pytorch-frontend/caffe2/python/operator_test/glu_op_test.py", "pytorch-frontend/caffe2/python/workspace.py", "pytorch-frontend/caffe2/python/operator_test/index_hash_ops_test.py", "pytorch-frontend/caffe2/python/operator_test/image_input_op_test.py", "pytorch-frontend/test/test_cpp_extensions_aot.py", "p...
[ "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nfrom caffe2.python import core\nimport caffe2.python.hypothesis_test_util as hu\nimport caffe2.python.serialized_test.serialized_test_util as serial\nfrom hypot...
[ [ "numpy.split", "numpy.exp" ], [ "torch._C._wrap_tensor_impl", "numpy.array", "numpy.dtype", "torch._C._tensor_impl_raw_handle" ], [ "numpy.array" ], [ "numpy.isnan", "numpy.ceil", "numpy.random.random_integers", "numpy.zeros", "numpy.random.randint" ],...
adshieh/cvxpy
[ "73b696b71dbb2ceb66a805798c922461e33afc6b", "73b696b71dbb2ceb66a805798c922461e33afc6b" ]
[ "cvxpy/problems/problem.py", "cvxpy/reductions/solvers/conic_solvers/conic_solver.py" ]
[ "\"\"\"\nCopyright 2013 Steven Diamond, 2017 Akshay Agrawal\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicab...
[ [ "numpy.asarray", "numpy.log", "numpy.zeros", "numpy.ones" ], [ "scipy.sparse.csc_matrix", "scipy.sparse.issparse", "scipy.sparse.eye", "numpy.arange", "numpy.cumsum", "numpy.ones", "scipy.sparse.vstack", "scipy.sparse.hstack" ] ]
Danielznn16/RoboticHand-in-KG
[ "27e4eee97ea4ecab40fbd13b24a97e1f94c10258" ]
[ "models/pointnet2_part_seg_msg.py" ]
[ "import torch.nn as nn\nimport torch\nimport torch.nn.functional as F\nfrom models.pointnet_util import PointNetSetAbstractionMsg,PointNetSetAbstraction,PointNetFeaturePropagation\n\n\nclass get_model(nn.Module):\n def __init__(self, num_classes, normal_channel=False):\n super(get_model, self).__init__()\...
[ [ "torch.nn.BatchNorm1d", "torch.nn.Dropout", "torch.nn.functional.nll_loss", "torch.nn.functional.log_softmax", "torch.cat", "torch.nn.Conv1d" ] ]
ZvonimirBandic/QuCumber
[ "81f0291951e89346fd8ab5c35cc90341fd8acf35" ]
[ "qucumber/nn_states/density_matrix.py" ]
[ "# Copyright 2019 PIQuIL - All Rights Reserved.\n\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n\n# http://www.apache.org/licenses/LICENSE-2.0\n\n# Unless required by applicable...
[ [ "torch.load", "torch.cat", "torch.einsum", "torch.zeros_like", "torch.cuda.is_available", "torch.device", "torch.nn.functional.linear" ] ]
gsc2001/ConvexNet
[ "a17609bd5bca0a02b6330b1ad8035f2b280109f0" ]
[ "src/models/densenet/model.py" ]
[ "\"\"\"\nVanilla DenseNet implementation\nPaper: https://arxiv.org/abs/1608.06993\nImplementation taken from: https://github.com/pytorch/vision/blob/main/torchvision/models/densenet.py\n\"\"\"\nimport re\nfrom collections import OrderedDict\nfrom functools import partial\nfrom typing import Any, List, Optional, Tup...
[ [ "torch.cat", "torch.nn.functional.dropout", "torch.nn.init.constant_", "torch.nn.Conv2d", "torch.nn.functional.adaptive_avg_pool2d", "torch.nn.Linear", "torch.nn.AvgPool2d", "torch.nn.functional.relu", "torch.utils.checkpoint.checkpoint", "torch.jit.is_scripting", "torc...
gladcolor/seamseg
[ "9e6c7e2828f32b311a7b0c16b279ac194e8aaf94" ]
[ "seamseg/utils/coco_ap.py" ]
[ "import json\nimport tempfile\nimport time\nfrom collections import defaultdict\nfrom os import path, remove\n\nimport numpy as np\nimport torch\nimport torch.distributed as dist\nfrom PIL import Image\nfrom pycocotools.coco import COCO as _COCO\nfrom pycocotools.cocoeval import COCOeval\nfrom pycocotools.mask impo...
[ [ "torch.distributed.get_rank", "torch.distributed.get_world_size", "numpy.array", "torch.distributed.barrier" ] ]
GillesVandewiele/pyShapelets
[ "d7e91150c17bf0f5fed55dc36d0c4d2d447e80c9", "a48b0c1019b787d94fb54c5c45c72044fa8bedbe" ]
[ "pyshapelets/lts_smaller_shap_dicts.py", "pyshapelets/mstamp/mstamp_stamp.py" ]
[ "import time\nfrom collections import Counter, defaultdict\nimport warnings; warnings.filterwarnings('ignore')\nimport glob\nimport re\nimport ast\n\nimport numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\n\nfrom algorithms import ShapeletTransformer\nfrom extractors.extractor import MultiGeneticE...
[ [ "pandas.read_csv", "sklearn.linear_model.LogisticRegression", "sklearn.ensemble.RandomForestClassifier", "numpy.unique", "numpy.reshape", "pandas.DataFrame", "numpy.max", "sklearn.metrics.log_loss", "numpy.mean", "sklearn.svm.SVC", "sklearn.metrics.accuracy_score" ], ...
ngiambla/nnflex
[ "7c8bf46218ea70c6dad1efedf9e2069e41c4c3fa" ]
[ "operators/clip.py" ]
[ "''' clip.py:\n\nImplement's the clip ONNX node as a flexnode (for use with any accelerator)\n\n'''\nimport uuid\n\nimport numpy as np\n\nfrom operators.flexnode import FlexNode\nfrom core.defines import Operator\nfrom core.messaging import Message\n \nclass Clip(FlexNode):\n\n def __init__(self, onnx_node, inp...
[ [ "numpy.clip" ] ]
aroig/nnutil2
[ "1fc77df351d4eee1166688e25a94287a5cfa27c4" ]
[ "nnutil2/layers/segment.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# nnutil2 - Tensorflow utilities for training neural networks\n# Copyright (c) 2019, Abdó Roig-Maranges <abdo.roig@gmail.com>\n#\n# This file is part of 'nnutil2'.\n#\n# This file may be modified and distributed under the terms of the 3-clause BSD\n# license. See ...
[ [ "tensorflow.keras.activations.get" ] ]
briancylui/ALOCC-CVPR2018
[ "78b6a1e8f3fcde8a46a88294926074a65ff0726a" ]
[ "train.py" ]
[ "import os\nimport numpy as np\nfrom models import ALOCC_Model\nfrom utils import pp, visualize, to_json, show_all_variables\nimport tensorflow as tf\n\nflags = tf.app.flags\nflags.DEFINE_integer(\"epoch\", 40, \"Epoch to train [25]\")\nflags.DEFINE_float(\"learning_rate\", 0.002, \"Learning rate of for adam [0.000...
[ [ "tensorflow.ConfigProto", "tensorflow.GPUOptions", "tensorflow.Session", "tensorflow.app.run" ] ]
grahamwhiteuk/neutralizing-bias
[ "a6ef764046fcc68ac0daa612c160ec23a79d3e73", "a6ef764046fcc68ac0daa612c160ec23a79d3e73", "a6ef764046fcc68ac0daa612c160ec23a79d3e73" ]
[ "src/tagging/train.py", "src/shared/beam.py", "src/tagging/model.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\ntrain bert \n\npython tagging/train.py --train ../../data/v6/corpus.wordbiased.tag.train --test ../../data/v6/corpus.wordbiased.tag.test --working_dir TEST --train_batch_size 3 --test_batch_size 10 --hidden_size 32 --debug_skip\n\"\"\"\nfrom pytorch_pretrained_bert.tokenization im...
[ [ "numpy.mean" ], [ "torch.sort" ], [ "torch.nn.Dropout", "torch.cat", "torch.load", "torch.nn.Embedding", "torch.tensor", "torch.nn.Linear", "torch.nn.ReLU" ] ]
philippe-heitzmann/python-apps
[ "1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a", "1cc6e5e9b9ac81c81a3d4f0e420ff488fe6b2f0a" ]
[ "sagemaker-dash/tutorials/app15.py", "sagemaker-dash/tutorials/app2.py" ]
[ "import dash\nimport dash_core_components as dcc\nimport dash_html_components as html\nimport pandas as pd\nimport plotly.express as px\n\nexternal_stylesheets = ['https://codepen.io/chriddyp/pen/bWLwgP.css']\n\napp = dash.Dash(__name__, external_stylesheets=external_stylesheets)\n\ndf = pd.read_csv('https://plotly...
[ [ "pandas.read_csv" ], [ "pandas.DataFrame" ] ]
hunterluepke/Learn-Python-for-Stats-and-Econ
[ "d580a8e27ba937fc8401ac6d0714b6488ac8bbb6", "d580a8e27ba937fc8401ac6d0714b6488ac8bbb6", "d580a8e27ba937fc8401ac6d0714b6488ac8bbb6" ]
[ "Projects/Sugarscape/Model.py", "Textbook/Chapter 8/regressionOld.py", "Textbook/Chapter 5/twoDimensionalListAndNumpyAray.py" ]
[ "import numpy as np \nimport pandas as pd\nfrom scipy.stats.mstats import gmean\nimport random\nimport math\nfrom randomdict import RandomDict\n# from chest import *\nimport shelve\nfrom Patch import *\nfrom AgentBranch import *\nimport gc\nfrom memory_profiler import memory_usage\n#Model.py\nclass Model():\n de...
[ [ "scipy.stats.mstats.gmean", "pandas.read_csv", "numpy.mean" ], [ "numpy.matrix", "matplotlib.pyplot.legend", "numpy.abs", "numpy.matmul", "matplotlib.pyplot.subplots", "pandas.DataFrame", "matplotlib.pyplot.close", "matplotlib.pyplot.rcParams.update", "matplotli...
eashdown/onnx-mlir
[ "2662d5530a01ddb11056ae7958118e82487a9eb8" ]
[ "utils/gen_onnx_mlir.py" ]
[ "#!/usr/bin/env python\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nfrom collections import defaultdict, OrderedDict\nfrom io import StringIO\nimport io\nimport os\nimport sys\nimport datetime\nimport argp...
[ [ "numpy.round" ] ]
t2hk/scdv_glove_elasticsearch
[ "41cd336decf1e14e77439caaa26f64edf28ce42b" ]
[ "get_similar_words_triples.py" ]
[ "from gensim.models import KeyedVectors\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport matplotlib as mpl\nimport matplotlib.font_manager as fm\nimport pandas as pd\n\nglove_vector_file = \"vectors.txt\"\ngensim_glove_vector_file = \"gensim_glove_vectors.txt\"\ntop_k = 10\n\nwords_triple_file = 'simila...
[ [ "pandas.read_csv" ] ]
microsetta/microsetta-admin
[ "1ba6787c0315a74d50cafd722dbbe044d507c07f" ]
[ "microsetta_admin/server.py" ]
[ "import jwt\nfrom flask import render_template, Flask, request, session, send_file\nimport secrets\nfrom datetime import datetime\nimport io\n\nfrom jwt import PyJWTError\nfrom werkzeug.exceptions import BadRequest\nfrom werkzeug.utils import redirect\nimport pandas as pd\n\nfrom microsetta_admin import metadata_ut...
[ [ "pandas.isnull", "pandas.read_excel", "pandas.DataFrame" ] ]
JasonWayne/deep-learning-snippets
[ "7c64e065752fcbb902494d757a41140f42facf05" ]
[ "frameworks/tensorflow/print_tensor_in_ckpt.py" ]
[ "'''\ncommon usage: \n 1. put this script in ckpt folder\n 2. python print_tensor_in_ckpt.py > tensors.txt\n'''\n# ref: https://stackoverflow.com/questions/38218174/how-do-i-find-the-variable-names-and-values-that-are-saved-in-a-checkpoint\nimport tensorflow as tf\nfrom tensorflow.python.tools.inspect_checkpoint ...
[ [ "tensorflow.train.latest_checkpoint", "tensorflow.python.tools.inspect_checkpoint.print_tensors_in_checkpoint_file" ] ]
TangZhenchaoTZC/Keras-mask-detection
[ "325679d06a12a90b2552ed7d447298a23e3b9d57" ]
[ "fasterRCNNtrain/loss_and_gen.py" ]
[ "\"\"\"fasterRCNN训练的损失函数与数据生成器\"\"\"\nfrom keras.applications.imagenet_utils import preprocess_input\nfrom keras import backend as K\nimport keras\nimport tensorflow as tf\nimport numpy as np\nfrom random import shuffle\nimport random\nfrom PIL import Image\nfrom keras.objectives import categorical_crossentropy\nfr...
[ [ "numpy.expand_dims", "tensorflow.gather_nd", "numpy.logical_and", "matplotlib.colors.hsv_to_rgb", "numpy.reshape", "numpy.random.shuffle", "numpy.shape", "numpy.random.rand", "numpy.array" ] ]
caelanhadley/NNFSIP
[ "da048af5ded549db7464b206b255104900b40ab8" ]
[ "models/intro/vertical.py" ]
[ "import matplotlib.pyplot as plt\nimport nnfs\nfrom nnfs.datasets import vertical_data\n\nnnfs.init()\n\nX, y = vertical_data(samples=100, classes=3)\n\nplt.scatter(X[:, 0], X[:, 1], c=y, s=40, cmap='brg')\nplt.show()\n\nimport numpy as np\nimport nnfs\nimport matplotlib.pyplot as plt\n\nnnfs.init()\n\nclass Layer_...
[ [ "numpy.dot", "numpy.log", "numpy.maximum", "matplotlib.pyplot.scatter", "numpy.clip", "numpy.max", "numpy.argmax", "numpy.mean", "numpy.random.randn", "matplotlib.pyplot.show", "numpy.zeros", "numpy.sum" ] ]
tudorcebere/jax
[ "b1d0f87648f73b06091ea3929a52b5d572391088", "24c02148f27345b35555b0898bfc1d694a68c19a" ]
[ "jax/experimental/jax2tf/tests/primitives_test.py", "jax/interpreters/sharded_jit.py" ]
[ "# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed ...
[ [ "tensorflow.ones", "numpy.ones", "numpy.full", "numpy.count_nonzero", "numpy.float32", "numpy.array", "numpy.where" ], [ "numpy.reshape", "numpy.array" ] ]
sorhus/tensorflow
[ "99de1826646c8d354259187fc9c2330b794c1ac4", "99de1826646c8d354259187fc9c2330b794c1ac4", "99de1826646c8d354259187fc9c2330b794c1ac4", "acb1ef68f5aea3b6f7f1e14db588b74134719b5e", "5b2a293b1d43c450ed9e08c1ae5cf6e50daa849d", "acb1ef68f5aea3b6f7f1e14db588b74134719b5e", "99de1826646c8d354259187fc9c2330b794c1ac...
[ "tensorflow/python/eager/ops_test.py", "tensorflow/python/training/saver_test.py", "tensorflow/python/ops/summary_ops.py", "tensorflow/contrib/py2tf/pyct/static_analysis/live_values.py", "tensorflow/contrib/distributions/python/ops/relaxed_onehot_categorical.py", "tensorflow/contrib/eager/python/examples/...
[ "# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.python.framework.tensor_shape.TensorShape", "tensorflow.python.ops.array_ops.shape", "tensorflow.python.ops.array_ops.split", "tensorflow.python.ops.array_ops.listdiff", "tensorflow.python.ops.array_ops.placeholder", "tensorflow.python.eager.context.Context", "tensorflow.py...
CommanderCero/RL_Algorithms
[ "fd8172e0075247b682a1dca752306147fa2ed3ba", "fd8172e0075247b682a1dca752306147fa2ed3ba" ]
[ "A2C/utils.py", "Rainbow/ptan/experience.py" ]
[ "import scipy.signal as signal\nimport torch\nimport torch.nn as nn\nimport numpy as np\nimport models\nimport gym\nimport wandb\n\ndef create_feedforward(sizes, activation=nn.ReLU): \n layers = []\n for i in range(len(sizes) - 1):\n layers.append(nn.Linear(sizes[i], sizes[i+1]))\n if i < len(si...
[ [ "torch.nn.Sequential", "torch.from_numpy", "torch.nn.Linear", "numpy.append", "torch.FloatTensor", "numpy.moveaxis", "torch.device", "scipy.signal.lfilter", "numpy.array", "numpy.zeros", "numpy.empty" ], [ "numpy.concatenate", "numpy.array", "numpy.zeros...
LeanderLXZ/oracle-recognition
[ "c82976333d4a72218b06fffc94192238d95fcf9e" ]
[ "src/capsulesEM_V1/capsules/nets.py" ]
[ "\"\"\"An implementation of matrix capsules with EM routing.\n\"\"\"\n\nimport tensorflow as tf\n\nfrom core import _conv2d_wrapper, capsules_init, capsules_conv, capsules_fc\n\nslim = tf.contrib.slim\n\n# ------------------------------------------------------------------------------#\n# ---------------------------...
[ [ "tensorflow.boolean_mask", "tensorflow.nn.relu", "tensorflow.equal", "tensorflow.variable_scope", "tensorflow.losses.add_loss" ] ]
broadinstitute/lincs-profiling-comparison
[ "075c3bc60eeb3934fc42c30bae6aeed8cda1cd6d", "075c3bc60eeb3934fc42c30bae6aeed8cda1cd6d" ]
[ "2.MOA-prediction/4.model_viz/scripts/nbconverted/0.blend_test_predictions.py", "1.Data-exploration/Profiles_level4/cell_painting/scripts/nbconverted/8.cellpainting_calculate_nonspherized_null_p_values.py" ]
[ "#!/usr/bin/env python\n# coding: utf-8\n\n# ### - Ensemble/Blend the 4 model predictions into a single prediction\n\n# In[1]:\n\n\nimport os\nimport datetime\nfrom time import time\nimport pathlib\nimport pandas as pd\nimport numpy as np\nfrom collections import defaultdict\nfrom collections import Counter\n\n\n# ...
[ [ "sklearn.metrics.roc_auc_score", "numpy.log", "pandas.read_csv", "numpy.maximum", "numpy.clip", "numpy.asarray", "scipy.optimize.minimize", "numpy.tensordot", "numpy.mean", "sklearn.metrics.average_precision_score", "numpy.ravel", "numpy.zeros", "numpy.sum" ],...
dbis-uibk/MediaEval2021
[ "14d754d9cea36415090aaa115db81f5ace465964" ]
[ "plans/fixed_ensemble_vggish_linear_4.py" ]
[ "\"\"\"Ensemble plan manually split by type moode/theme.\"\"\"\nimport json\n\nfrom dbispipeline.evaluators import FixedSplitEvaluator\nfrom dbispipeline.evaluators import ModelCallbackWrapper\nimport numpy as np\nfrom sklearn.pipeline import Pipeline\n\nfrom mediaeval2021 import common\nfrom mediaeval2021.dataload...
[ [ "numpy.arange" ] ]
veronicatozzo/regain
[ "5eaa9685eb34afa77abaf80a4e5764444bc95dd7", "5eaa9685eb34afa77abaf80a4e5764444bc95dd7", "5eaa9685eb34afa77abaf80a4e5764444bc95dd7" ]
[ "regain/covariance/time_graphical_lasso_.py", "regain/forward_backward/time_graphical_lasso_laplacian.py", "regain/wrapper/paspal/wrapper.py" ]
[ "# BSD 3-Clause License\n\n# Copyright (c) 2017, Federico T.\n# All rights reserved.\n\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions are met:\n\n# * Redistributions of source code must retain the above copyright notice, th...
[ [ "numpy.sqrt", "numpy.unique", "sklearn.covariance.log_likelihood", "numpy.empty_like", "numpy.ones", "numpy.full", "numpy.concatenate", "sklearn.covariance.empirical_covariance", "numpy.zeros_like", "sklearn.utils.validation.check_X_y", "sklearn.utils.extmath.squared_no...
peterataylor/evalml
[ "917f07845c4a319bb08c7aaa8df9e09623df11c8", "917f07845c4a319bb08c7aaa8df9e09623df11c8", "917f07845c4a319bb08c7aaa8df9e09623df11c8" ]
[ "evalml/tests/component_tests/test_prophet_regressor.py", "evalml/tests/data_checks_tests/test_invalid_targets_data_check.py", "evalml/tests/component_tests/test_components.py" ]
[ "import numpy as np\nimport pandas as pd\nimport pytest\nfrom pytest import importorskip\n\nfrom evalml.model_family import ModelFamily\nfrom evalml.pipelines.components import ProphetRegressor\nfrom evalml.problem_types import ProblemTypes\n\nprophet = importorskip(\"prophet\", reason=\"Skipping test because proph...
[ [ "numpy.array_equal", "pandas.DataFrame", "pandas.date_range", "numpy.zeros", "numpy.random.randint" ], [ "numpy.array", "pandas.Series", "pandas.DataFrame", "pandas.date_range" ], [ "pandas.Series", "pandas.RangeIndex", "pandas.DataFrame", "numpy.testing...
choderalab/saltswap
[ "d30804beb158960a62f94182c694df6dd9130fb8" ]
[ "development/performance/langevin_error_example.py" ]
[ "import numpy as np\nfrom simtk import openmm, unit\nfrom simtk.openmm import app\nfrom openmmtools.testsystems import WaterBox\nfrom openmmtools.integrators import ExternalPerturbationLangevinIntegrator\nprint('OpenMM version: ', openmm.version.full_version)\n\n# Using one CPU thread\nimport os\nos.environ['OPENMM...
[ [ "numpy.zeros", "numpy.abs" ] ]