repo_name
stringlengths
6
130
hexsha
list
file_path
list
code
list
apis
list
rajgiriUW/pyUSID
[ "064dcd81d9c42f4eb4782f0a41fd437b3f56f50c", "064dcd81d9c42f4eb4782f0a41fd437b3f56f50c", "064dcd81d9c42f4eb4782f0a41fd437b3f56f50c" ]
[ "pyUSID/io/hdf_utils/simple.py", "tests/io/hdf_utils/test_model.py", "tests/io/simple_process.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\nLower-level and simpler USID-specific HDF5 utilities that facilitate higher-level data operations\n\nCreated on Tue Nov 3 21:14:25 2015\n\n@author: Suhas Somnath, Chris Smith\n\"\"\"\nfrom __future__ import division, print_function, absolute_import, unicode_literals\nimport collec...
[ [ "numpy.allclose", "numpy.unique", "numpy.min", "numpy.arange", "numpy.tile", "numpy.sort", "numpy.all", "numpy.transpose", "numpy.iterable", "numpy.array", "numpy.vstack" ], [ "numpy.expand_dims", "numpy.allclose", "numpy.fliplr", "numpy.arange", ...
Jovian-Dsouza/Avenger_FaceNet
[ "e8bdffd017c9c27d4dc0f347f6992f760f1af5db" ]
[ "test.py" ]
[ "import os\nimport torch\nimport numpy as np\nfrom torchvision import transforms \nfrom torch import nn\nfrom torch.nn import Softmax\nfrom facenet_pytorch import MTCNN\nfrom PIL import Image\nimport matplotlib.pyplot as plt\nfrom loadOpenFace import prepareOpenFace\nfrom collections import OrderedDict\nimport argp...
[ [ "torch.nn.Softmax", "torch.nn.Linear", "torch.no_grad", "torch.cuda.is_available", "torch.device", "matplotlib.pyplot.show" ] ]
ajinkyakhoche/Object-Detection-Project
[ "3964fd5b445957581205478bb46db58fba3a9fc3", "3964fd5b445957581205478bb46db58fba3a9fc3" ]
[ "ssd_keras/ssd7_training_inferenceonvideo.py", "ssd_keras/ssd7_training.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"ssd7_training_inferenceonvideo.ipynb\n\nAutomatically generated by Colaboratory.\n\nOriginal file is located at\n https://colab.research.google.com/drive/1gMZm_sCuKq7g_cZIGfEcYyKoVw-U7jTX\n\"\"\"\n\n# from IPython.display import clear_output\n\n# ! rm -rf *\n# ! wget -O repo.zip h...
[ [ "matplotlib.pyplot.Rectangle", "matplotlib.pyplot.legend", "matplotlib.pyplot.imshow", "matplotlib.pyplot.gca", "numpy.linspace", "numpy.set_printoptions", "matplotlib.pyplot.plot", "matplotlib.pyplot.figure" ], [ "matplotlib.pyplot.Rectangle", "matplotlib.pyplot.legend...
altaregos/NiaPy
[ "74f1b2827778d9086603f4a8cb523f6b5537212a", "74f1b2827778d9086603f4a8cb523f6b5537212a" ]
[ "niapy/problems/zakharov.py", "niapy/algorithms/modified/saba.py" ]
[ "# encoding=utf8\n\"\"\"Implementations of Zakharov function.\"\"\"\n\nimport numpy as np\nfrom niapy.problems.problem import Problem\n\n__all__ = ['Zakharov']\n\n\nclass Zakharov(Problem):\n r\"\"\"Implementations of Zakharov functions.\n\n Date: 2018\n\n Author: Klemen Berkovič\n\n License: MIT\n\n ...
[ [ "numpy.arange", "numpy.sum" ], [ "numpy.zeros", "numpy.full" ] ]
patrickbook/models
[ "718fb2c0d478ab6c9906a3dbf44099942a2c6426" ]
[ "official/nlp/modeling/networks/packed_sequence_embedding.py" ]
[ "# Lint as: python3\n# 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...
[ [ "tensorflow.keras.layers.LayerNormalization", "tensorflow.keras.layers.Dropout", "tensorflow.transpose", "tensorflow.broadcast_to", "tensorflow.equal", "tensorflow.keras.initializers.serialize", "tensorflow.keras.utils.register_keras_serializable", "tensorflow.cast", "tensorflo...
konstin/esm
[ "a39894c079ce314e1c0aaa607e8ae498111910a0", "a39894c079ce314e1c0aaa607e8ae498111910a0" ]
[ "esm/model.py", "esm/pretrained.py" ]
[ "# Copyright (c) Facebook, Inc. and its affiliates.\n#\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nimport math\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\nfrom .modules import TransformerLayer, Positi...
[ [ "torch.nn.functional.linear", "torch.nn.Embedding", "torch.zeros" ], [ "torch.device", "torch.hub.load_state_dict_from_url", "torch.cuda.is_available", "torch.load" ] ]
AryamanSrii/Mecha-Karen
[ "4a5c7318f8c458495eee72a13be5db8a0113ed28" ]
[ "Bot/src/funhouse/image.py" ]
[ "# !/usr/bin/python\n\n\"\"\"\nCopyright ©️: 2020 Seniatical / _-*™#7519\nLicense: Apache 2.0\nA permissive license whose main conditions require preservation of copyright and license notices.\nContributors provide an express grant of patent rights.\nLicensed works, modifications, and larger works may be distribute...
[ [ "numpy.array", "numpy.dstack" ] ]
NunoEdgarGFlowHub/pyfolio
[ "68efdcc2e2d0f140ddbc408a260c6318ac8b06d3" ]
[ "pyfolio/tears.py" ]
[ "#\n# Copyright 2015 Quantopian, Inc.\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...
[ [ "matplotlib.pyplot.legend", "pandas.DataFrame", "numpy.cumprod", "matplotlib.pyplot.subplot", "matplotlib.gridspec.GridSpec", "matplotlib.pyplot.show", "matplotlib.pyplot.figure" ] ]
brsr/mapproj
[ "1ec1694149a69da6393ecb94650f7164e3cfd2e1", "1ec1694149a69da6393ecb94650f7164e3cfd2e1" ]
[ "bin/circlepack.py", "bin/invcomparison.py" ]
[ "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Sun Feb 14 14:15:06 2021\n\n@author: brsr\n\"\"\"\n\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport mapproj\nimport fiona\nfrom shapely.geometry import Point, LineString, MultiPolygon, Polygon\nimport geopandas\nimport pyproj\ngeod = ...
[ [ "numpy.arctan", "numpy.concatenate", "numpy.round", "numpy.any", "numpy.nanmean", "numpy.roll", "numpy.tril", "numpy.arange", "numpy.sin", "numpy.nansum", "numpy.linalg.lstsq", "numpy.meshgrid", "numpy.array", "numpy.isfinite", "matplotlib.pyplot.subplot...
odedzewi/coremltools
[ "fdd5630c423c0fc4f1a04c3f5a3c17b808a15505", "fdd5630c423c0fc4f1a04c3f5a3c17b808a15505" ]
[ "coremltools/converters/mil/mil/ops/defs/scatter_gather.py", "coremltools/converters/mil/backend/mil/passes/insert_image_preprocessing_op.py" ]
[ "# Copyright (c) 2020, Apple Inc. All rights reserved.\n#\n# Use of this source code is governed by a BSD-3-clause license that can be\n# found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause\nimport numpy as np\nimport numbers\n\nfrom coremltools.converters.mil.mil import Operation, t...
[ [ "numpy.take_along_axis", "numpy.take", "numpy.put_along_axis", "numpy.squeeze", "numpy.copy" ], [ "numpy.array" ] ]
Tabor-Research-Group/ChemOS
[ "50117f572e95e68dc4dccb624cedb28dbfc6e419", "50117f572e95e68dc4dccb624cedb28dbfc6e419", "50117f572e95e68dc4dccb624cedb28dbfc6e419" ]
[ "ParamGenerator/Spearmint/spearmint/utils/compression.py", "ParamGenerator/Phoenics/ObservationParser/observation_parser.py", "ParamGenerator/Phoenics/BayesianNeuralNetwork/pymc3_interface.py" ]
[ "# -*- coding: utf-8 -*-\n# Spearmint\n#\n# Academic and Non-Commercial Research Use Software License and Terms\n# of Use\n#\n# Spearmint is a software package to perform Bayesian optimization\n# according to specific algorithms (the “Software”). The Software is\n# designed to automatically run experiments (thus t...
[ [ "numpy.all", "numpy.random.randn" ], [ "numpy.amax", "numpy.sqrt", "numpy.amin", "numpy.copy", "numpy.array", "numpy.exp", "numpy.where" ], [ "numpy.zeros", "numpy.empty", "numpy.argwhere" ] ]
Hanscal/unlp
[ "93a630cac7957f1ddd38f34403ec6577a277e10a" ]
[ "unlp/unsupervised/Word2Vec/get_file.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\n@description: Download file.\n\"\"\"\n\nimport hashlib\nimport os\nimport shutil\nimport sys\nimport tarfile\nimport time\nimport typing\nimport zipfile\nfrom pathlib import Path\n\nimport numpy as np\nimport six\nfrom six.moves.urllib.error import HTTPError\nfrom six.moves.urllib....
[ [ "numpy.log10" ] ]
hahahawu/Tagger
[ "180a0412abf571797638d024b8dacf9d776ee6f9" ]
[ "scripts/input_converter.py" ]
[ "# input_converter.py\n# author: Playinf\n# email: playinf@stu.xmu.edu.cn\n\n\nimport os\nimport six\nimport json\nimport random\nimport argparse\nimport tensorflow as tf\n\n\ndef load_vocab(filename):\n fd = open(filename, \"r\")\n\n count = 0\n vocab = {}\n for line in fd:\n word = line.strip()...
[ [ "tensorflow.train.Feature", "tensorflow.train.Example", "tensorflow.gfile.GFile", "tensorflow.python_io.TFRecordWriter", "tensorflow.gfile.Glob", "tensorflow.logging.info", "tensorflow.train.Features", "tensorflow.train.FloatList", "tensorflow.python_io.tf_record_iterator", ...
dmachlanski/ce807
[ "17c9b7ddd71906c018cd213a674f37cbed36856d" ]
[ "run.py" ]
[ "import numpy as np\nimport pandas as pd\nimport re, argparse, datetime\nfrom timeit import default_timer\nfrom sklearn.preprocessing import MultiLabelBinarizer\nfrom sklearn.feature_extraction.text import TfidfTransformer, CountVectorizer\nfrom sklearn.model_selection import train_test_split, cross_validate\nfrom ...
[ [ "pandas.read_csv", "sklearn.ensemble.RandomForestClassifier", "sklearn.ensemble.ExtraTreesClassifier", "sklearn.model_selection.train_test_split", "sklearn.preprocessing.MultiLabelBinarizer", "sklearn.pipeline.Pipeline", "sklearn.feature_extraction.text.CountVectorizer", "sklearn.t...
josephgalestian/taichiV2-master
[ "12a63a05fdccc824205b1ee6545e4706bf473405" ]
[ "python/taichi/lang/kernel_impl.py" ]
[ "import ast\nimport functools\nimport inspect\nimport re\nimport sys\nimport textwrap\n\nimport numpy as np\nimport taichi.lang\nfrom taichi._lib import core as _ti_core\nfrom taichi.lang import impl, runtime_ops\nfrom taichi.lang.ast import (ASTTransformerContext, KernelSimplicityASTChecker,\n ...
[ [ "numpy.ascontiguousarray" ] ]
AI-Huang/XOR_Gate_NN
[ "d97c7fd7e5b046e84bd862081ab800b9ccbb1672" ]
[ "xor_gate_nn/datasets/keras_fn/datasets.py" ]
[ "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n# @Date : Feb-09-21 22:23\n# @Author : Kelly Hwong (dianhuangkan@gmail.com)\n\n\nimport numpy as np\nimport tensorflow as tf\n\n\nclass XOR_Dataset(tf.keras.utils.Sequence):\n \"\"\"XOR_Dataset.\"\"\"\n\n def __init__(\n self,\n batch_size=1,...
[ [ "numpy.arange", "numpy.array", "numpy.empty", "numpy.ceil" ] ]
austinpeel/jax
[ "ca766caa02296023bd6714bb7fdba064a45e2258", "ca766caa02296023bd6714bb7fdba064a45e2258", "ca766caa02296023bd6714bb7fdba064a45e2258" ]
[ "jax/experimental/loops.py", "jax/random.py", "jax/interpreters/masking.py" ]
[ "# Copyright 2019 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 ...
[ [ "numpy.result_type", "numpy.shape" ], [ "numpy.right_shift", "numpy.log", "numpy.sqrt", "numpy.uint32", "numpy.ndim", "numpy.ceil", "numpy.delete", "numpy.binary_repr", "numpy.shape", "numpy.iinfo", "numpy.float32", "numpy.array" ], [ "numpy.shap...
ko-ya346/python_asr
[ "251d8a4ff810fbeb5f7b63229139944195ab7cb5" ]
[ "04dnn_hmm/02_train_dnn.py" ]
[ "# -*- coding: utf-8 -*-\n\n#\n# DNNを学習します.\n#\n\n# Pytorchを用いた処理に必要なモジュールをインポート\nimport torch\nimport torch.nn as nn\nfrom torch.utils.data import DataLoader\nfrom torch import optim\n\n# 作成したDatasetクラスをインポート\nfrom my_dataset import SequenceDataset\n\n# 数値演算用モジュール(numpy)をインポート\nimport numpy as np\n\n# プロット用モジュール(m...
[ [ "torch.nn.CrossEntropyLoss", "torch.max", "torch.utils.data.DataLoader", "matplotlib.pyplot.plot", "numpy.size", "matplotlib.pyplot.ylabel", "torch.cuda.is_available", "torch.device", "matplotlib.pyplot.xlabel", "numpy.array", "matplotlib.pyplot.figure" ] ]
SilviaVec/Realtime-Action-Recognition
[ "330a64fc1b2158b1884a1ee86b9cc875925fc121" ]
[ "src/s2_put_skeleton_txts_to_a_single_txt.py" ]
[ "#!/usr/bin/env python\n# coding: utf-8\n\n'''\nRead multiple skeletons txts and saved them into a single txt.\nIf an image doesn't have skeleton, discard it.\nIf an image label is not `CLASSES`, discard it.\nInput:\n `skeletons/00001.txt` ~ `skeletons/xxxxx.txt` from `SRC_DETECTED_SKELETONS_FOLDER`.\nOutput:\n ...
[ [ "numpy.array" ] ]
dlee0156/bilateral-connectome
[ "26fe165341bb79379fecdd8bc5d7b5bfe3983fdc" ]
[ "pkg/pkg/stats/fisher_exact_nonunity.py" ]
[ "from scipy.stats import nchypergeom_fisher\nimport numpy as np\n\n\ndef fisher_exact_nonunity(table, alternative=\"two-sided\", null_odds=1):\n \"\"\"Perform a Fisher exact test on a 2x2 contingency table.\n Parameters\n ----------\n table : array_like of ints\n A 2x2 contingency table. Element...
[ [ "numpy.asarray", "numpy.abs", "numpy.maximum", "numpy.any" ] ]
JunaidAkhter/vmc_jax
[ "4f0dcc9f32cb6885cad3c5d797d9f9e01247f737", "4f0dcc9f32cb6885cad3c5d797d9f9e01247f737", "4f0dcc9f32cb6885cad3c5d797d9f9e01247f737" ]
[ "sg_sr/sr_data/sr_cplx/svd/cpxrbm.py", "tests/symmetries_t.py", "sg_sr/sr_data/sr_cplx/cpxmpo_3nodes5.py" ]
[ "import sys\n# Find jVMC package\n#sys.path.append(\"/Users/akhter/githesis-/jvmc/vmc_jax\")\nsys.path.append(\"/Users/akhter/thesis/vmc_jax\")\n\n\nimport jax\nfrom jax.config import config\nconfig.update(\"jax_enable_x64\", True)\n\nimport jax.random as random\nimport jax.numpy as jnp\nimport numpy as np\nfrom ja...
[ [ "numpy.savetxt", "numpy.array" ], [ "numpy.issubdtype" ], [ "numpy.savetxt", "numpy.array" ] ]
haidi-ustc/scikit-nano
[ "ef9b24165ba37918b3f520657f7311ba139b3e7d", "ef9b24165ba37918b3f520657f7311ba139b3e7d", "ef9b24165ba37918b3f520657f7311ba139b3e7d", "ef9b24165ba37918b3f520657f7311ba139b3e7d" ]
[ "sknano/structures/_nanotube_bundle.py", "sknano/core/atoms/_image_atoms.py", "sknano/core/molecules/_molecules.py", "sknano/core/refdata/setup.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\n==============================================================================\nNanotube bundle base class (:mod:`sknano.structures._nanotube_bundle`)\n==============================================================================\n\n.. currentmodule:: sknano.structures._nanotube_b...
[ [ "numpy.asarray", "numpy.cos", "numpy.sqrt", "numpy.sin" ], [ "numpy.asarray" ], [ "numpy.asarray", "numpy.logical_and", "numpy.sum" ], [ "numpy.distutils.misc_util.Configuration" ] ]
nagapavan525/wtfml
[ "f2211addbe423a51b4dbbdec5a40d09649412452" ]
[ "wtfml/data_loaders/image/classification.py" ]
[ "\"\"\"\n__author__: Abhishek Thakur\n\"\"\"\n\nimport torch\n\nimport numpy as np\n\nfrom PIL import Image\nfrom PIL import ImageFile\n\ntry:\n import torch_xla.core.xla_model as xm\n\n _xla_available = True\nexcept ImportError:\n _xla_available = False\n\nImageFile.LOAD_TRUNCATED_IMAGES = True\n\n\nclass...
[ [ "numpy.array", "torch.utils.data.DataLoader", "numpy.transpose", "torch.tensor" ] ]
jcrist/pyblis
[ "d9c67d40a15c656a4681ba1b9ca0c52eff40163c" ]
[ "pyblis/tests/utils.py" ]
[ "import pytest\n\nimport numpy as np\n\n\nall_dtypes = pytest.mark.parametrize('dtype', ['f4', 'f8', 'c8', 'c16'])\n\n\nclass Base(object):\n def rand(self, dtype, shape=()):\n a = np.random.normal(size=shape).astype(dtype)\n if np.issubdtype(dtype, np.complexfloating):\n a += np.random....
[ [ "numpy.issubdtype", "numpy.random.normal" ] ]
FrancisDinh/Smart-Energy-Project
[ "16b021e127d9ac5c01653abc31d8cc5d0a7a05c6" ]
[ "application/DemandSideNew/Building/DemandProfile.py" ]
[ "import os, sys\nimport json\nimport os.path\nimport numpy\n\nclass DemandProfile:\n def __init__(self):\n cwd = os.getcwd()\n self.fname = cwd + '/demand-profile.json'\n \n def get_data(self):\n demand={}\n with open(self.fname) as demand_info:\n demand = json.lo...
[ [ "numpy.zeros" ] ]
Koukyosyumei/Senjyu
[ "70faa45e13cb3b1ccdee8a40146a03d60abe11e5" ]
[ "src/senjyu/ml/clustering/kmeans.py" ]
[ "import numpy as np\nfrom mpi4py import MPI\n\n\nclass Kmeans:\n def __init__(self, k=3, num_iterations=100, seed=42):\n self.k = k\n self.num_iterations = num_iterations\n self.centorids = None\n self.dim = None\n self.n = None\n\n np.random.seed(seed)\n\n def train(...
[ [ "numpy.random.seed", "numpy.linalg.norm", "numpy.random.normal", "numpy.argmin", "numpy.mean", "numpy.zeros" ] ]
Aaron-YunZhao/xalpha
[ "76dc6390cb5714b1c004f7e79e4af832ad1e6fa5" ]
[ "xalpha/realtime.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\nmodule for realtime watch and notfication\n\"\"\"\n\nimport datetime as dt\nimport smtplib\nfrom email.header import Header\nfrom email.mime.text import MIMEText\nfrom email.utils import formataddr, parseaddr\nfrom re import match\n\nimport pandas as pd\n\nfrom xalpha.cons import t...
[ [ "pandas.DataFrame" ] ]
ngduyanhece/ConvLab
[ "a04582a77537c1a706fbf64715baa9ad0be1301a", "a04582a77537c1a706fbf64715baa9ad0be1301a", "a04582a77537c1a706fbf64715baa9ad0be1301a" ]
[ "convlab/modules/e2e/multiwoz/Mem2Seq/utils/utils_babi_mem2seq.py", "convlab/modules/word_policy/multiwoz/larl/latent_dialog/models_task.py", "convlab/modules/word_dst/multiwoz/mdbt/mdbt_util.py" ]
[ "# Modified by Microsoft Corporation.\n# Licensed under the MIT license.\n\nimport logging\n\nimport torch\nimport torch.utils.data as data\nfrom torch.autograd import Variable\nfrom utils.config import *\nfrom utils.until_temp import entityList\n\n\ndef hasNumbers(inputString):\n return any(char.isdigit() for c...
[ [ "torch.utils.data.DataLoader", "torch.Tensor", "torch.autograd.Variable" ], [ "torch.mean", "torch.nn.functional.softmax", "torch.nn.Dropout", "numpy.log", "torch.ones", "torch.nn.functional.log_softmax", "torch.cat", "torch.zeros", "torch.transpose", "torch...
Ethan-Yang0101/Mini-DeepText-Project
[ "6ed70fae7d00610b942fb9b2526d11ebfd1b48f7" ]
[ "Mini-DeepText-2.0/train.py" ]
[ "\nimport torch\nimport torch.nn as nn\nfrom torch.utils.data import DataLoader\nimport torch.nn.functional as F\nimport torch.optim as optim\nfrom TextDataset import TextDataset\nfrom Model.BasicModel.TextCLRModel import TextCLRModel\nfrom Model.BasicModel.TextSLBModel import TextSLBModel\nfrom Model.BasicModel.Te...
[ [ "torch.nn.CrossEntropyLoss", "torch.nn.functional.cross_entropy", "torch.utils.data.DataLoader" ] ]
Rikorose/DeepFilterNet
[ "afe6bfb53efae70207e18df7ed372c2cfe337fee" ]
[ "DeepFilterNet/df/utils.py" ]
[ "import collections\nimport math\nimport os\nimport random\nimport subprocess\nfrom socket import gethostname\nfrom typing import Any, Dict, Set, Tuple, Union\n\nimport numpy as np\nimport torch\nfrom loguru import logger\nfrom torch import Tensor\nfrom torch._six import string_classes\nfrom torch.autograd import F...
[ [ "torch.view_as_real", "numpy.random.seed", "torch.manual_seed", "torch.view_as_complex", "numpy.isscalar", "torch.cuda.is_available", "torch.device", "numpy.array", "torch.is_complex", "torch.atan2", "torch.stack" ] ]
iPieter/kiwi
[ "76b66872fce68873809a0dea112e2ed552ae5b63", "76b66872fce68873809a0dea112e2ed552ae5b63" ]
[ "examples/sklearn_logistic_regression/train.py", "examples/hyperparam/search_random.py" ]
[ "import numpy as np\nfrom sklearn.linear_model import LogisticRegression\n\nimport kiwi\nimport kiwi.sklearn\n\nif __name__ == \"__main__\":\n X = np.array([-2, -1, 0, 1, 2, 1]).reshape(-1, 1)\n y = np.array([0, 0, 1, 1, 1, 0])\n lr = LogisticRegression()\n lr.fit(X, y)\n score = lr.score(X, y)\n ...
[ [ "numpy.array", "sklearn.linear_model.LogisticRegression" ], [ "numpy.random.uniform", "numpy.random.seed", "numpy.finfo" ] ]
cf-vrgl/pandas
[ "0b68d87a4438a13f14a2ed5af2e432df02eb0b2c" ]
[ "pandas/core/computation/pytables.py" ]
[ "\"\"\" manage PyTables query interface via Expressions \"\"\"\nfrom __future__ import annotations\n\nimport ast\nfrom functools import partial\nfrom typing import Any\n\nimport numpy as np\n\nfrom pandas._libs.tslibs import (\n Timedelta,\n Timestamp,\n)\nfrom pandas.compat.chainmap import DeepChainMap\n\nfr...
[ [ "pandas.core.common.flatten", "pandas.core.dtypes.common.is_list_like", "pandas._libs.tslibs.Timedelta", "pandas.compat.chainmap.DeepChainMap", "pandas._libs.tslibs.Timestamp", "pandas.core.indexes.base.Index", "pandas.core.computation.ops.is_term", "pandas.io.formats.printing.ppri...
goodfree/ActorCloud
[ "9c34b371c23464981323ef9865d9913bde1fe09c" ]
[ "server/app/services/tasks_scheduler/async_tasks/app/excels/devices_import.py" ]
[ "import json\nimport logging\nfrom collections import defaultdict\nfrom datetime import datetime\nfrom typing import Dict, AnyStr\n\nimport pandas as pd\n\nfrom actor_libs.database.async_db import db\nfrom actor_libs.tasks.backend import update_task\nfrom actor_libs.tasks.exceptions import TaskException\nfrom actor...
[ [ "pandas.notnull", "pandas.DataFrame" ] ]
micka59200/Python-Baseball
[ "dda463b1ba49e70dab676d1d3e57edc8238d0df6" ]
[ "stats/defense.py" ]
[ "import pandas as pd\nimport matplotlib.pyplot as plt\nfrom frames import games, info, events\n\nplays = games.query(\"type == 'play' & event != 'NP'\")\nplays.columns = ['type', 'inning', 'team', 'player', 'count', 'pitches', 'event', 'game_id', 'year']\n\npa = plays.loc[plays['player'].shift() != plays['player'],...
[ [ "pandas.merge", "matplotlib.pyplot.show", "pandas.to_numeric" ] ]
rpachauri/connect4
[ "6caf6965afaaff6883193ac295c6ac5b1f4e9c4a", "6caf6965afaaff6883193ac295c6ac5b1f4e9c4a" ]
[ "connect_four/evaluation/incremental_victor/graph/graph_manager_add_solution_profile.py", "connect_four/evaluation/victor/evaluator/evaluator_profile.py" ]
[ "import cProfile\n\nimport gym\n\nimport numpy as np\n\nfrom connect_four.evaluation.incremental_victor.graph.graph_manager import GraphManager\nfrom connect_four.evaluation.incremental_victor.solution.victor_solution_manager import VictorSolutionManager\nfrom connect_four.problem import ConnectFourGroupManager\n\n...
[ [ "numpy.array" ], [ "numpy.array" ] ]
thomasly/slgnn
[ "caa1e7814498da41ad025b4e62c569fe511848ff", "caa1e7814498da41ad025b4e62c569fe511848ff" ]
[ "slgnn/data_processing/jakfp_dataset.py", "slgnn/training/train_gin_with_zinc_pretrained_model_covid19_datasets.py" ]
[ "import os\n\nimport pandas as pd\nfrom chemreader.writers import GraphWriter\nfrom chemreader.readers import Smiles\nfrom rdkit.Chem import MolFromSmiles\nfrom slgnn.models.gcn.utils import get_filtered_fingerprint\nfrom tqdm import tqdm\n\n\ndef _is_active(value):\n if value < 1000:\n return 1\n elif...
[ [ "pandas.read_csv" ], [ "torch.manual_seed", "torch.load" ] ]
ryuwd/uproot4
[ "20d8575e941c32559c7b5e62b0ed5f92bc4927d0", "20d8575e941c32559c7b5e62b0ed5f92bc4927d0", "20d8575e941c32559c7b5e62b0ed5f92bc4927d0" ]
[ "uproot/const.py", "tests/test_0228_read-TProfiles.py", "uproot/behaviors/TProfile3D.py" ]
[ "# BSD 3-Clause License; see https://github.com/scikit-hep/uproot4/blob/main/LICENSE\n\n\"\"\"\nThis module defines integer constants used by serialization and deserialization routines.\n\"\"\"\n\nfrom __future__ import absolute_import\n\nimport numpy\n\n# used in unmarshaling\nkByteCountMask = numpy.int64(0x400000...
[ [ "numpy.int64", "numpy.uint8", "numpy.uint32", "numpy.uint16" ], [ "numpy.array" ], [ "numpy.asarray" ] ]
piotrsobecki/PCa-CNNs2
[ "01504db2037c67dc6832c2c8aaf4b3d5e4f2808f" ]
[ "src/prostatex/normalization.py" ]
[ "import numpy\n\n\n# Normalization functions\nclass NormalizationNo():\n def normalize(self, img, settings=None):\n if settings is None:\n settings = {}\n return img\n\n\nclass NormalizationMean(NormalizationNo):\n def normalize(self, img, settings=None):\n if settings is None:...
[ [ "numpy.median" ] ]
jay90099/struct2tensor
[ "47d651757efa27586bf75f991b2174d8173a750b", "47d651757efa27586bf75f991b2174d8173a750b", "47d651757efa27586bf75f991b2174d8173a750b" ]
[ "struct2tensor/expression_impl/map_prensor.py", "struct2tensor/expression_impl/reroot.py", "struct2tensor/expression_impl/parquet.py" ]
[ "# Copyright 2019 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 ...
[ [ "tensorflow.transpose", "tensorflow.control_dependencies", "tensorflow.shape", "tensorflow.reshape", "tensorflow.assert_equal", "tensorflow.compat.v1.assert_positive", "tensorflow.compat.dimension_at_index" ], [ "tensorflow.gather", "tensorflow.size", "tensorflow.range"...
sunghern/Auto-Compression
[ "7c1123e5ffb63b0c34bef2db40dbfb560cb25c2e", "7c1123e5ffb63b0c34bef2db40dbfb560cb25c2e", "7c1123e5ffb63b0c34bef2db40dbfb560cb25c2e" ]
[ "pruning/cifar10_fbnet/supernet_main_file.py", "quantization/cifar10/supernet_main_file.py", "quantization/imagenet/fbnet_building_blocks/quantize.py" ]
[ "import numpy as np\nimport torch\nfrom torch import nn\nfrom tensorboardX import SummaryWriter\nfrom scipy.special import softmax\nimport argparse\n\nfrom general_functions.dataloaders import get_loaders, get_test_loader\nfrom general_functions.utils import get_logger, weights_init, load, create_directories_from_l...
[ [ "torch.optim.Adam", "numpy.random.seed", "torch.optim.lr_scheduler.CosineAnnealingLR", "numpy.linspace", "torch.manual_seed", "numpy.random.choice", "torch.nn.utils.prune.remove", "torch.cuda.manual_seed_all", "torch.optim.SGD", "torch.nn.DataParallel" ], [ "torch.o...
levishai/3DMPPE_POSENET_RELEASE
[ "e364053b5a4e51f4a84eb50abb26026094931d90" ]
[ "main/test.py" ]
[ "import argparse\nfrom tqdm import tqdm\nimport numpy as np\nimport cv2\nfrom config import cfg\nimport torch\nfrom base import Tester\nfrom utils.vis import vis_keypoints\nfrom utils.pose_utils import flip\nimport torch.backends.cudnn as cudnn\n\ndef parse_args():\n parser = argparse.ArgumentParser()\n parse...
[ [ "numpy.concatenate", "torch.no_grad", "numpy.transpose", "numpy.array", "numpy.zeros" ] ]
sanjaymsh/silx
[ "3f9bcda88c074438fdb30cde29fec314d26f471c", "50c2b4820d4786abcce866645b1d3c138891a25f" ]
[ "silx/math/fit/fittheories.py", "silx/gui/plot/items/scatter.py" ]
[ "# coding: utf-8\n#/*##########################################################################\n#\n# Copyright (c) 2004-2020 European Synchrotron Radiation Facility\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Softw...
[ [ "numpy.convolve", "numpy.polyfit", "numpy.poly1d", "numpy.log", "numpy.take", "numpy.nonzero", "numpy.sqrt", "numpy.arange", "numpy.ones", "numpy.concatenate", "numpy.append", "numpy.zeros_like", "numpy.array", "numpy.zeros", "numpy.fabs" ], [ "n...
jwallnoefer/multisat_qrepeater_sim_archive
[ "69b4c242fb760cf195871f38b3172d4dfd26c01a", "69b4c242fb760cf195871f38b3172d4dfd26c01a" ]
[ "verificator/Maps.py", "scenarios/multimemory/multi_memory_variant.py" ]
[ "\"\"\"\nThe maps that model the different processes in the QKD return for input that is diagonal in Bell-basis a diagonal output.\nTo reduce calculations I determined in the scipt \"How many numbers for state\" the effect of the maps on the diagonal elements\n\"\"\"\nimport numpy as np\nimport functools\n\n\"\"\"T...
[ [ "numpy.exp", "numpy.array", "numpy.sum", "numpy.ones" ], [ "numpy.exp", "numpy.random.geometric", "numpy.abs" ] ]
aayushkafle/implicit_alignment
[ "4835a8a5acc4b30daf7e1c95195f160e76306cd1" ]
[ "ai/domain_adaptation/utils/vis.py" ]
[ "import numpy as np\nfrom ai.domain_adaptation.datasets import image_index\nfrom ai.domain_adaptation.utils import np_utils\nfrom IPython.display import display, Image\nimport matplotlib.pyplot as plt\nfrom sklearn.metrics import confusion_matrix\n\n\ndef load_data_for_vis(prob_path, target_domain_file, dataset_dir...
[ [ "matplotlib.pyplot.subplots", "numpy.arange", "sklearn.metrics.confusion_matrix" ] ]
ibadkureshi/tnk-locationallocation
[ "b06abcb7bf8675b13e4c2e4fe419afb5ee11018f" ]
[ "pmedian/views.py" ]
[ "from django.shortcuts import render\nfrom pmedian.tasks import *\nfrom pandas import errors\nfrom pmedapp.common.utilities import *\nimport json\nimport pandas as pd\nfrom django.views.decorators.csrf import csrf_exempt\nfrom django.utils.datastructures import MultiValueDictKeyError\nimport glob\nimport os.path\n\...
[ [ "pandas.read_csv" ] ]
brentyi/multimodalfilter
[ "210b0e241120e0fbbeaef5e478bab36ffe1e159d", "210b0e241120e0fbbeaef5e478bab36ffe1e159d", "210b0e241120e0fbbeaef5e478bab36ffe1e159d" ]
[ "crossmodal/door_models/layers.py", "crossmodal/base_models/crossmodal_kf.py", "crossmodal/push_models/pf.py" ]
[ "import torch\nimport torch.nn as nn\nfrom fannypack.nn import resblocks\n\nstate_dim = 3\ncontrol_dim = 7\nobs_pos_dim = 3\nobs_sensors_dim = 7\n\n\ndef state_layers(units: int) -> nn.Module:\n \"\"\"Create a state encoder block.\n\n Args:\n units (int): # of hidden units in network layers.\n\n Ret...
[ [ "torch.nn.Linear", "torch.nn.ReLU", "torch.nn.Conv2d", "torch.nn.Flatten" ], [ "torch.nn.ModuleList", "torch.sum", "torch.cholesky", "torch.prod", "torch.stack", "numpy.array", "numpy.sum" ], [ "torch.nn.Linear", "torch.nn.ReLU", "torch.squeeze", ...
ojInc/google-research
[ "650580cbf928aa640bf39897c5758ddb71b68a51", "084c18934c353207662aba0db6db52850029faf2" ]
[ "kws_streaming/train/model_train_eval.py", "gfsa/datasets/random_python/python_numbers_control_flow.py" ]
[ "# coding=utf-8\n# Copyright 2020 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.app.run" ], [ "numpy.array", "numpy.random.dirichlet", "numpy.sum" ] ]
RyanXLi/OneshotDet
[ "77f629978d9d1739787b08de8cccea81341507bf" ]
[ "maskrcnn_benchmark/modeling/roi_heads/box_head/roi_box_predictors.py" ]
[ "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\nfrom maskrcnn_benchmark.modeling import registry\nfrom torch import nn\n\n\n@registry.ROI_BOX_PREDICTOR.register(\"FastRCNNPredictor\")\nclass FastRCNNPredictor(nn.Module):\n def __init__(self, config, in_channels):\n super(FastRCNN...
[ [ "torch.nn.init.constant_", "torch.nn.Linear", "torch.nn.AdaptiveAvgPool2d", "torch.nn.init.normal_" ] ]
jerryzhucs21/spinningup
[ "2992e6a8163d78c3f82a3d92c5235fda0527c398", "2992e6a8163d78c3f82a3d92c5235fda0527c398", "2992e6a8163d78c3f82a3d92c5235fda0527c398" ]
[ "spinup/rewards/cvar_utils.py", "spinup/rewards/broil_rtg_pg_v2.py", "spinup/algos/pytorch/vpg/vpg.py" ]
[ "import numpy as np\n\ndef relu(x):\n if x > 0:\n return x\n else:\n return 0.0\n\n\ndef cvar_fn_val(sigma, exp_ret_rs, prob_rs, alpha):\n fn_val_relu_part = 0.0\n for i,ret in enumerate(exp_ret_rs):\n fn_val_relu_part += prob_rs[i] * relu(sigma - ret)\n \n fn_val = sigma - 1....
[ [ "numpy.sum" ], [ "torch.nn.Sequential", "torch.distributions.categorical.Categorical", "matplotlib.pyplot.title", "matplotlib.pyplot.plot", "torch.nn.Linear", "torch.as_tensor", "numpy.zeros_like", "numpy.mean", "numpy.array", "matplotlib.pyplot.show", "numpy.ze...
sbmalik/pytorchx
[ "938ba5855cfb72b0dbce91af8c0a6d0e3943f122", "938ba5855cfb72b0dbce91af8c0a6d0e3943f122" ]
[ "squeezenet/squeezenet.py", "mnasnet/inference.py" ]
[ "import torch\nfrom torch import nn\nfrom torch.nn import functional as F\nimport torchvision\n\ndef main():\n print('cuda device count: ', torch.cuda.device_count())\n net = torchvision.models.squeezenet1_1(pretrained=True)\n #net.fc = nn.Linear(512, 2)\n net = net.eval()\n net = net.to('cuda:0')\n ...
[ [ "torch.cuda.device_count", "torch.ones", "torch.save" ], [ "torch.cuda.device_count", "torch.ones", "torch.load" ] ]
Sage-Bionetworks/GENIE-Sponsored-Projects
[ "e34be3ece96144aa525c7281738736d3c5ef93cb" ]
[ "geniesp/sp_config.py" ]
[ "\"\"\"\nSponsored project configuration classes\n\nUSAGE:\ngit clone https://github.com/cBioPortal/cbioportal.git\npython runSP.py AKT1 ../cbioportal/ --staging\n\"\"\"\nimport os\nimport random\nimport string\n\nimport pandas as pd\nimport synapseclient\n\nfrom . import new_redcap_export_mapping\nfrom . import sp...
[ [ "pandas.isnull", "pandas.DataFrame" ] ]
pragnesh-ai/driverlessai-recipes
[ "97371a2d2cd853cdeeb15037f462af96d81a7c0b", "97371a2d2cd853cdeeb15037f462af96d81a7c0b", "97371a2d2cd853cdeeb15037f462af96d81a7c0b" ]
[ "models/mli/model_skopes_rules.py", "transformers/numeric/boxcox_transformer.py", "models/timeseries/fb_prophet_parallel.py" ]
[ "\"\"\"Skopes rules \"\"\"\n\nimport uuid\nimport os\nimport datatable as dt\nimport numpy as np\nfrom h2oaicore.models import CustomModel\nfrom sklearn.preprocessing import LabelEncoder\nfrom h2oaicore.systemutils import physical_cores_count\nfrom h2oaicore.systemutils import user_dir, remove, config\nfrom h2oaico...
[ [ "numpy.random.choice", "numpy.isnan", "sklearn.preprocessing.OneHotEncoder", "pandas.DataFrame", "numpy.array", "sklearn.preprocessing.LabelEncoder", "numpy.isin" ], [ "numpy.isnan", "numpy.asarray", "scipy.stats.boxcox", "numpy.nanmin", "numpy.array" ], [ ...
AdrianMastronardi/pandas
[ "67045903306ac4a1cab108177e92df30d99912b4", "67045903306ac4a1cab108177e92df30d99912b4", "67045903306ac4a1cab108177e92df30d99912b4", "67045903306ac4a1cab108177e92df30d99912b4", "67045903306ac4a1cab108177e92df30d99912b4" ]
[ "pandas/tests/arrays/integer/conftest.py", "pandas/tests/frame/methods/test_replace.py", "pandas/tests/arrays/test_array.py", "pandas/tests/frame/methods/test_quantile.py", "pandas/tests/exchange/conftest.py" ]
[ "import numpy as np\nimport pytest\n\nimport pandas as pd\nfrom pandas.core.arrays.integer import (\n Int8Dtype,\n Int16Dtype,\n Int32Dtype,\n Int64Dtype,\n UInt8Dtype,\n UInt16Dtype,\n UInt32Dtype,\n UInt64Dtype,\n)\n\n\n@pytest.fixture(\n params=[\n Int8Dtype,\n Int16Dtype...
[ [ "pandas.array" ], [ "pandas.to_datetime", "pandas.Series", "pandas.DataFrame", "pandas._testing.assert_frame_equal", "pandas._testing.get_obj", "numpy.arange", "numpy.eye", "numpy.int8", "numpy.float32", "pandas._testing.assert_series_equal", "pandas._testing.as...
gaoxuesong/sonnet
[ "40995a58744bbadc2e875c5c87e744896bdc4249" ]
[ "sonnet/python/modules/layer_norm.py" ]
[ "# Copyright 2017 The Sonnet 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 required ...
[ [ "tensorflow.ones_initializer", "tensorflow.nn.moments", "tensorflow.zeros_initializer", "tensorflow.nn.batch_normalization" ] ]
Ezra-H/autodist
[ "b5ab28d0d867c22742daa3c1d324fe20c1852bd7", "b5ab28d0d867c22742daa3c1d324fe20c1852bd7", "b5ab28d0d867c22742daa3c1d324fe20c1852bd7" ]
[ "examples/benchmark/utils/recommendation/movielens.py", "examples/benchmark/utils/recommendation/ncf_input_pipeline.py", "examples/benchmark/utils/bert_modeling.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...
[ [ "pandas.read_csv", "tensorflow.io.gfile.GFile", "tensorflow.io.gfile.makedirs", "tensorflow.io.gfile.listdir", "tensorflow.io.gfile.rmtree" ], [ "tensorflow.compat.v2.zeros_like", "tensorflow.compat.v2.data.Dataset.list_files", "tensorflow.compat.v2.data.Dataset.range" ], [...
transcendentsky/py_tutorials
[ "fed8e6c8d79f854a1cebcfd5c37297a163846208", "fed8e6c8d79f854a1cebcfd5c37297a163846208" ]
[ "earlier-2020/graphs-paper1/print_line_chart.py", "medical/STN.py" ]
[ "import csv\n# import matplotlib.pyplot as plt\nimport pylab as plt\nimport numpy as np\n\ndef show_plot(times, epochs, data):\n # line chart Or Scatter chart\n plt.figure(figsize=(8, 5))\n \"\"\"\n args:\n marker='o' ,'x',\n color=\n \"\"\"\n\n plt.plot(epochs, data, color='red', label='0')...
[ [ "numpy.random.rand", "numpy.linspace" ], [ "torch.nn.Dropout2d", "torch.nn.functional.nll_loss", "torch.cat", "torch.nn.functional.dropout", "torch.FloatTensor", "torch.cuda.is_available", "torch.autograd.Variable", "torch.ones", "numpy.clip", "torch.reshape", ...
xcnick/oneflow
[ "7b786b27069dec35d2493256011e773988c91f56", "7b786b27069dec35d2493256011e773988c91f56", "7b786b27069dec35d2493256011e773988c91f56", "7b786b27069dec35d2493256011e773988c91f56", "7b786b27069dec35d2493256011e773988c91f56", "7b786b27069dec35d2493256011e773988c91f56", "7b786b27069dec35d2493256011e773988c91f5...
[ "oneflow/compatible_single_client_python/test/xrt/test_softmax_grad.py", "oneflow/compatible_single_client_python/test/ops/test_assign.py", "oneflow/compatible_single_client_python/test/ops/test_checkpoint.py", "oneflow/compatible_single_client_python/test/ops/test_categorical_ordinal_encoder.py", "oneflow/...
[ "\"\"\"\nCopyright 2020 The OneFlow Authors. All rights reserved.\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 ap...
[ [ "numpy.random.random", "numpy.ones" ], [ "numpy.maximum", "numpy.allclose", "numpy.issubdtype", "numpy.random.random_integers", "numpy.random.default_rng" ], [ "numpy.random.random", "numpy.allclose", "numpy.array_equal" ], [ "numpy.array_equal", "numpy....
SilanHe/hierarchical-dnn-interpretations
[ "d6f96d0ab6fec48ee53ab930b2660e80525993b9", "d6f96d0ab6fec48ee53ab930b2660e80525993b9" ]
[ "acd/scores/cd.py", "visualization/viz_2d.py" ]
[ "import torch\nimport torch.nn.functional as F\nfrom copy import deepcopy\nimport numpy as np\nfrom scipy.special import expit as sigmoid\nfrom .cd_propagate import *\nfrom .cd_architecture_specific import *\n\ndef cd(im_torch: torch.Tensor, model, mask=None, model_type=None, device='cuda', transform=None):\n ''...
[ [ "torch.FloatTensor", "numpy.dot", "numpy.split", "numpy.zeros" ], [ "numpy.nanmax", "matplotlib.pyplot.imshow", "numpy.linspace", "matplotlib.pyplot.barh", "numpy.nanmin", "matplotlib.pyplot.plot", "numpy.max", "matplotlib.pyplot.gca", "numpy.arange", "n...
krishpop/pddm
[ "b1452554a4e318966b8ca3da53978458ac635c5d" ]
[ "pddm/regressors/feedforward_network.py" ]
[ "# Copyright 2019 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 ...
[ [ "tensorflow.compat.v1.nn.relu", "tensorflow.compat.v1.layers.flatten", "tensorflow.compat.v1.glorot_normal_initializer", "tensorflow.compat.v1.disable_v2_behavior" ] ]
AI-sandbox/hyperLAI
[ "49f1a9d3c645ee0e5b0c2ed16d54ee8df0626689", "49f1a9d3c645ee0e5b0c2ed16d54ee8df0626689" ]
[ "hyperLAI/features/hyperLAIdataset.py", "hyperLAI/data/snp_data_preprocessing/variance_filter_subpop.py" ]
[ "import numpy as np\nimport torch\nfrom torch.utils import data\nimport sys\nfrom utils.generate_dataset import *\nfrom HypHC.datasets.triples import samples_triples\n\nclass HyperLoader(data.Dataset):\n def __init__(self, data_dir, split_indices, restrict_labels=[0,1,2,3,4,5,6], chromosome=\"all\"):\n ''...
[ [ "torch.tensor", "numpy.intersect1d", "numpy.load", "numpy.repeat", "numpy.isin" ], [ "numpy.save", "numpy.concatenate", "numpy.intersect1d", "numpy.load", "numpy.isin" ] ]
qbetterk/user-simulator
[ "77caca30ff67b9112b1fe5e65e191c6b5e25532c", "77caca30ff67b9112b1fe5e65e191c6b5e25532c", "77caca30ff67b9112b1fe5e65e191c6b5e25532c" ]
[ "sequicity/tsd_net.py", "seq2seq/seq2seq/trainer/supervised_trainer.py", "sequicity_user/seq_user_act.py" ]
[ "import torch\r\n\r\nfrom torch import nn\r\nimport torch.nn.functional as F\r\nfrom torch.autograd import Variable\r\n\r\nimport numpy as np\r\nimport math\r\nfrom sequicity.config import global_config as cfg\r\nimport copy, random, time, logging\r\n\r\nfrom torch.distributions import Categorical\r\nfrom sequicity...
[ [ "torch.nn.functional.softmax", "torch.max", "torch.cat", "torch.zeros", "torch.nn.GRU", "torch.nn.Embedding", "numpy.concatenate", "torch.nn.utils.rnn.pad_packed_sequence", "torch.FloatTensor", "torch.split", "torch.topk", "torch.autograd.Variable", "torch.nn.Dr...
jggautier/dataverse-automating-downloads
[ "40cf127e7771049165b21b732635cd35848eda5e" ]
[ "dataverse_repository_curation_assistant/dataverse_repository_curation_assistant_functions.py" ]
[ "# Functions for the curation app\nimport csv\nfrom dateutil.parser import parse\nfrom functools import reduce\nimport json\nimport glob\nimport os\nfrom os import listdir\nimport pandas as pd\nfrom pathlib import Path\nimport re\nimport requests\nimport time\nfrom tkinter import Tk, ttk, Frame, Label, IntVar, Chec...
[ [ "pandas.read_csv", "pandas.DataFrame" ] ]
jw03070/Advanced-DeepSleepNet
[ "b58d71971be28c8517f61731b8ee933a5bbf3f0a" ]
[ "slicing.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\n@author: BSW\n\"\"\"\n\nimport numpy as np\nimport os\n\ndef slicing(filename,data):\n wc=1\n n1c=1\n n2c=1\n n3c=1\n n4c=1\n t=0\n \n npz = np.load(data)\n x = npz['x']\n y = npz['y']\n \n os.makedirs(\"./data/\"+filename[:-3], exist_ok=True)\n ...
[ [ "numpy.load" ] ]
aghoshpub/LikelihoodFreeInterference
[ "fd6267104c29e935fa41dc92004dae98ded30626" ]
[ "examples/tutorial_h4l/3b_score.py" ]
[ "#!/usr/bin/env python\n# coding: utf-8\n\n# # MadMiner particle physics tutorial\n# \n# # Part 3b: Training a score estimator\n# \n# Johann Brehmer, Felix Kling, Irina Espejo, and Kyle Cranmer 2018-2019\n\n# In part 3a of this tutorial we will finally train a neural network to estimate likelihood ratios. We assume...
[ [ "matplotlib.use" ] ]
jqueguiner/training_results_v1.0
[ "8200377f425ae24b6ed6c2816b9273aab0996d43", "8200377f425ae24b6ed6c2816b9273aab0996d43", "8200377f425ae24b6ed6c2816b9273aab0996d43", "8200377f425ae24b6ed6c2816b9273aab0996d43", "8200377f425ae24b6ed6c2816b9273aab0996d43" ]
[ "Graphcore/benchmarks/bert/implementations/popart/pack_pretraining_data.py", "Supermicro/benchmarks/unet3d/implementations/mxnet_j2/runtime/distributed.py", "Habana/benchmarks/bert/implementations/bert-tf-sys-420gh-tngr/TensorFlow/common/tb_utils.py", "Supermicro/benchmarks/ssd/implementations/mxnet_j2/ssd/pr...
[ "# Copyright (c) 2020 Graphcore Ltd. 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 ...
[ [ "numpy.expand_dims", "numpy.sqrt", "numpy.random.choice", "numpy.arange", "numpy.around", "numpy.rint", "numpy.cumsum", "numpy.ones", "numpy.all", "numpy.zeros_like", "numpy.floor", "numpy.count_nonzero", "numpy.argsort", "numpy.array", "numpy.where", ...
MobileAnalytics/iPython-Framework
[ "da0e598308c067cd5c5290a6364b3ffaf2d2418f", "da0e598308c067cd5c5290a6364b3ffaf2d2418f" ]
[ "SprityBird/spritybird/python3.5/lib/python3.5/site-packages/plotly/tools.py", "SprityBird/spritybird/python3.5/lib/python3.5/site-packages/healpy/projector.py" ]
[ "# -*- coding: utf-8 -*-\n\n\"\"\"\ntools\n=====\n\nFunctions that USERS will possibly want access to.\n\n\"\"\"\nfrom __future__ import absolute_import\nfrom collections import OrderedDict\n\nimport warnings\n\nimport six\nimport math\nimport decimal\n\nfrom plotly import utils\nfrom plotly import exceptions\nfrom...
[ [ "numpy.matrix", "numpy.amax", "numpy.sqrt", "numpy.linspace", "numpy.arctan", "numpy.asarray", "numpy.max", "scipy.stats.gaussian_kde", "numpy.int", "numpy.mean", "scipy.stats.norm.fit", "numpy.sin", "scipy.cluster.hierarchy.linkage", "scipy.array", "num...
vbod/text
[ "07c044b8b851ace1e9a033c9597cdb1bee2d69e0", "07c044b8b851ace1e9a033c9597cdb1bee2d69e0" ]
[ "tensorflow_text/python/ops/sentencepiece_tokenizer_test.py", "oss_scripts/model_server/save_models.py" ]
[ "# coding=utf-8\n# Copyright 2020 TF.Text 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 appl...
[ [ "tensorflow.python.saved_model.load.load", "tensorflow.python.framework.tensor_spec.TensorSpec", "tensorflow.python.saved_model.save.save", "tensorflow.python.data.ops.dataset_ops.Dataset.from_tensor_slices", "tensorflow.python.platform.gfile.GFile", "tensorflow.python.ops.ragged.ragged_fa...
jmkinder1/code-samples
[ "9c6cd3c6f16579a6c1f5210779b8ec6ad53fbdba" ]
[ "projectile.py" ]
[ "# projectile.py\n# -----------------------------------------------------------------------------\n# Calculate how long an object is in the air when thrown from a specified height\n# with a range of initial speeds assuming constant acceleration due to gravity:\n# \t0.5 * g * t**2 - v0 * t - y0 = 0\n# --------------...
[ [ "numpy.sqrt" ] ]
yil8/GPN
[ "e0ccba70db6f1d3264f8d3dd38fc4c62bcebd7ad" ]
[ "model/functional.py" ]
[ "import torch\nimport torch.nn.functional as F\nimport numpy as np\n\n\n# Original author: Francisco Massa:\n# https://github.com/fmassa/object-detection.torch\n# Ported to PyTorch by Max deGroot (02/01/2017)\ndef nms(boxes, scores, overlap=0.7):\n \"\"\"Apply non-maximum suppression at test time to avoid detect...
[ [ "torch.abs", "torch.nn.functional.softmax", "torch.mul", "torch.clamp", "torch.index_select", "torch.atan" ] ]
AhmedElshaarany/RoboND-Rover-Project
[ "9dad356d4585bb567ee436062afdd82d9d7eb4de" ]
[ "code/supporting_functions.py" ]
[ "import numpy as np\nimport cv2\nfrom PIL import Image\nfrom io import BytesIO, StringIO\nimport base64\nimport time\n\n# Define a function to convert telemetry strings to float independent of decimal convention\ndef convert_to_float(string_to_convert):\n if ',' in string_to_convert:\n float_value =...
[ [ "numpy.sqrt", "numpy.isfinite", "numpy.min", "numpy.asarray", "numpy.flipud", "numpy.round", "numpy.int", "numpy.max", "numpy.zeros_like", "numpy.mean", "numpy.float" ] ]
QinchengZhang/PathologySegmentation
[ "7a2c21346739a79c33e7a7ccc081018821868eb7" ]
[ "Training/pytorch/train.py" ]
[ "# -*- coding: utf-8 -*-\n'''\nAuthor: TJUZQC\nDate: 2020-10-26 10:26:51\nLastEditors: TJUZQC\nLastEditTime: 2020-11-20 19:23:55\nDescription: None\n'''\nimport argparse\nimport logging\nimport os\nimport sys\n\nimport numpy as np\nimport torch\nimport torch.nn as nn\nimport yaml\nfrom torch import optim\nfrom torc...
[ [ "torch.nn.CrossEntropyLoss", "torch.sigmoid", "torch.load", "torch.utils.data.DataLoader", "torch.utils.data.random_split", "torch.nn.BCEWithLogitsLoss", "torch.utils.tensorboard.SummaryWriter", "torch.cuda.is_available" ] ]
kastman/nipype
[ "15a8d6f57067494196fe639095253217a9235c3c" ]
[ "nipype/utils/misc.py" ]
[ "# -*- coding: utf-8 -*-\n# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n\"\"\"Miscellaneous utility functions\n\"\"\"\nfrom __future__ import (print_function, unicode_literals, division,\n absolute_import)\nfrom builtins im...
[ [ "numpy.asarray", "numpy.ravel", "numpy.zeros" ] ]
jscsmk/CenterNet
[ "d7c643bba2b373c15abfa3d25ffd5304a313fa49" ]
[ "src/lib/models/networks/msra_resnet.py" ]
[ "# ------------------------------------------------------------------------------\n# Copyright (c) Microsoft\n# Licensed under the MIT License.\n# Written by Bin Xiao (Bin.Xiao@microsoft.com)\n# Modified by Xingyi Zhou\n# ------------------------------------------------------------------------------\n\nfrom __futur...
[ [ "torch.nn.Sequential", "torch.nn.ConvTranspose2d", "torch.nn.init.constant_", "torch.nn.Conv2d", "torch.nn.MaxPool2d", "torch.nn.init.normal_", "torch.nn.BatchNorm2d", "torch.nn.ReLU", "torch.utils.model_zoo.load_url" ] ]
1chimaruGin/Oject_classifier
[ "d27ca8f47d2d0af107582c25a0756dda15361c2e" ]
[ "objifier/data_loader.py" ]
[ "import torch\nfrom torchvision import datasets, transforms\nimport os\n\ntransform = {\n \"train\": transforms.Compose(\n [\n transforms.RandomResizedCrop(224),\n transforms.RandomHorizontalFlip(),\n transforms.ToTensor(),\n transforms.Normalize(\n ...
[ [ "torch.utils.data.DataLoader" ] ]
alexweav/Deep-Learning
[ "f245708e40f36c4734ea0d4a7e6587624e4b116f" ]
[ "LearnyMcLearnface/Layers/AffineLayer.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Fri May 06 14:54:11 2016\n\n@author: Alexander Weaver\n\"\"\"\n\n\"\"\"\nPerforms an affine (fully connected) operation on its input\nAn affine layer with out_dim neurons takes a data array of size Nx(in_dim), x\nand returns a linearly transformed Nx(out_dim) data array\...
[ [ "numpy.random.randn", "numpy.prod", "numpy.transpose", "numpy.zeros", "numpy.sum" ] ]
Arushacked/tensorflow
[ "9abd61ae0b2d239d3060cdd3d46b54a105159828", "9abd61ae0b2d239d3060cdd3d46b54a105159828", "9abd61ae0b2d239d3060cdd3d46b54a105159828", "9abd61ae0b2d239d3060cdd3d46b54a105159828", "9abd61ae0b2d239d3060cdd3d46b54a105159828", "9abd61ae0b2d239d3060cdd3d46b54a105159828" ]
[ "tensorflow/python/distribute/collective_all_reduce_strategy.py", "tensorflow/python/ops/clip_ops.py", "tensorflow/python/tpu/tpu_outside_compilation_test.py", "tensorflow/python/debug/lib/check_numerics_callback.py", "tensorflow/python/tpu/tpu_embedding_v2_test.py", "tensorflow/python/distribute/input_li...
[ "# 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.distribute.distribute_lib.StrategyExtendedV1.__init__", "tensorflow.python.distribute.numpy_dataset.SingleDevice", "tensorflow.python.framework.ops.executing_eagerly_outside_functions", "tensorflow.python.distribute.multi_worker_util.id_in_cluster", "tensorflow.python.distri...
hirakjyoti08/jina
[ "437943dd2dab87e22b0662b2081f13250918ec01", "437943dd2dab87e22b0662b2081f13250918ec01" ]
[ "tests/unit/clients/python/test_on_err.py", "tests/distributed/test_rolling_update_container_runtime/test_rolling_update.py" ]
[ "from typing import Optional\n\nimport aiohttp\nimport grpc\n\nfrom jina.excepts import BadClientCallback\nfrom jina import Flow, Client\n\nimport numpy as np\nimport pytest\nfrom docarray import DocumentArray\nfrom docarray.document.generators import from_ndarray\n\n\ndef validate(x):\n raise NotImplementedErro...
[ [ "numpy.random.random" ], [ "numpy.random.random" ] ]
thundergolfer/catboost
[ "60942dee40f1407466d0b1e486f0a1d445e6aa91" ]
[ "catboost/pytest/test.py" ]
[ "from itertools import permutations\nimport yatest.common\nfrom yatest.common import ExecutionTimeoutError, ExecutionError\nimport pytest\nimport os\nimport filecmp\nimport numpy as np\nimport pandas as pd\nimport timeit\nimport json\n\nimport catboost\n\nfrom catboost_pytest_lib import (\n apply_catboost,\n ...
[ [ "numpy.dot", "numpy.hstack", "pandas.read_csv", "numpy.log", "numpy.allclose", "numpy.random.seed", "numpy.random.random", "numpy.arange", "numpy.genfromtxt", "numpy.all", "numpy.concatenate", "numpy.random.randn", "numpy.mean", "numpy.float32", "numpy.s...
hz512/Smart-Parking-Enforcement-System
[ "e990903de545693ad6e2536bf167c69ab672d16a" ]
[ "utils/callbacks.py" ]
[ "import tensorflow.keras as tfk\r\nimport tensorflow as tf\r\nimport tensorflow.keras.layers as layers\r\nimport json\r\nimport collections\r\nfrom datetime import datetime\r\nimport os\r\n\r\n\r\nclass LrStepDecay(tfk.callbacks.Callback):\r\n def __init__(self,\r\n decay_rate,\r\n ...
[ [ "tensorflow.keras.backend.get_value", "tensorflow.keras.backend.set_value" ] ]
CenIII/pose-ae-train
[ "8780ba9f3d80ca3a724bbee7b815073adc3d3e6e" ]
[ "data/coco_pose/ref.py" ]
[ "import numpy as np\nimport pickle\nimport h5py\nfrom scipy.misc import imread\nimport os \nfrom pycocotools.coco import COCO\nfrom pycocotools import mask \n\ndata_dir = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/images'\nann_path = '/home/chuancen/CVResearch/HumanPoseTracking/PJDATA/COCO/annotations...
[ [ "numpy.array", "numpy.zeros" ] ]
Sujit-O/dyngem
[ "a879bf362d1e9409faa4e1186c345337ad6d0189", "a879bf362d1e9409faa4e1186c345337ad6d0189" ]
[ "dynamicgem/test/test_dynRNN.py", "dynamicgem/embedding/dynAERNN.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\"\"\"\nThis module is for testing dynRNN\n\"\"\"\n\nimport os\nimport matplotlib.pyplot as plt\nfrom dynamicgem.embedding.dynRNN import DynRNN\nfrom dynamicgem.graph_generation import dynamic_SBM_graph as sbm\nfrom dynamicgem.visualization import plot_dynamic_sbm_em...
[ [ "matplotlib.pyplot.clf", "matplotlib.pyplot.show", "matplotlib.pyplot.figure" ], [ "tensorflow.ConfigProto", "tensorflow.Session" ] ]
kobeeraveendran/hackfsu5
[ "5614d832423f56913bd35d96e2472068a106b376", "5614d832423f56913bd35d96e2472068a106b376" ]
[ "fft_prototype.py", "fft_new.py" ]
[ "import matplotlib.pyplot as plt\r\nfrom scipy.io import wavfile # get the api\r\nfrom scipy.fftpack import fft\r\nfrom pylab import *\r\n\r\ndef f(filename):\r\n # song files are in ogg... we need it to be in wav.\r\n fs, data = wavfile.read(filename) \r\n \r\n # songs have multiple channels, but we on...
[ [ "scipy.fftpack.fft", "scipy.io.wavfile.write", "scipy.io.wavfile.read" ], [ "scipy.fftpack.fft", "scipy.io.wavfile.write", "scipy.io.wavfile.read" ] ]
rathbird/Birds_of_Prey_CNN_Classifier
[ "13ceb78db2408709804263395175482cff6c6973" ]
[ "src/googlexfr.py" ]
[ "# import the necessary packages\nimport numpy as np\nimport tensorflow as tf\nfrom tensorflow.keras.models import Model\nfrom tensorflow.keras.models import Sequential\nfrom tensorflow.keras.layers import BatchNormalization\nfrom tensorflow.keras.layers import AveragePooling2D\nfrom tensorflow.keras.layers import ...
[ [ "tensorflow.keras.preprocessing.image.ImageDataGenerator", "sklearn.metrics.confusion_matrix", "tensorflow.keras.optimizers.Adam", "numpy.argmax", "sklearn.metrics.classification_report" ] ]
az2104nas/sztnb302alsr2bs21on
[ "6084c82c59a4a89498a191d96c231f47df10317d" ]
[ "naslib/search_spaces/nasbench1shot1/search_spaces/search_space_1.py" ]
[ "import itertools\n\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom nasbench import api\n\nfrom naslib.search_spaces.nasbench1shot1.search_space import SearchSpace\nfrom naslib.search_spaces.nasbench1shot1.utils import upscale_to_nasbench_format, OUTPUT_NODE, INPUT, CONV1X1, OUTPUT\nfrom naslib.search_sp...
[ [ "numpy.zeros" ] ]
apapaion/menpowidgets
[ "237a39ddf4e65c57e8165f8a87f25a25f34d4698" ]
[ "menpowidgets/base.py" ]
[ "from collections import Sized, OrderedDict\nimport matplotlib.pyplot as plt\nfrom matplotlib import collections as mc\nimport numpy as np\n\nimport ipywidgets\nimport IPython.display as ipydisplay\n\nfrom menpo.base import name_of_callable\nfrom menpo.image import MaskedImage, Image\nfrom menpo.image.base import _...
[ [ "matplotlib.pyplot.gca", "numpy.min", "matplotlib.collections.LineCollection", "numpy.max", "matplotlib.pyplot.subplot", "matplotlib.pyplot.show" ] ]
sumanthd17/mt5
[ "c99b4e3ad1c69908c852c730a1323ccb52d48f58" ]
[ "multilingual_t5/baseline_mr/baseline_mr.py" ]
[ "\"\"\"baseline_mr dataset.\"\"\"\n\nimport tensorflow_datasets as tfds\nimport tensorflow as tf\n\n# TODO(baseline_mr): Markdown description that will appear on the catalog page.\n_DESCRIPTION = \"\"\"\nDescription is **formatted** as markdown.\n\nIt should also contain any processing which has been applied (if a...
[ [ "tensorflow.io.gfile.GFile" ] ]
dixiak/gnes
[ "12513d29157a06bd22923717fd0c19a856f20193" ]
[ "gnes/preprocessor/video/shotdetect.py" ]
[ "# Tencent is pleased to support the open source community by making GNES available.\n#\n# Copyright (C) 2019 THL A29 Limited, a Tencent company. All rights reserved.\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 ...
[ [ "numpy.array" ] ]
chokyzhou/gym-flappy-bird
[ "ffe1089501f3e2e113a8868cd27480653dbe0ef7" ]
[ "src/flappy_bird_gym/envs/flappy_bird_env_simple.py" ]
[ "#\n# Copyright (c) 2020 Gabriel Nogueira (Talendar)\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to use, copy, ...
[ [ "numpy.array" ] ]
mapattacker/flask-serverless
[ "9612b7cbc5157770d88f352e0676911658c4de9a" ]
[ "project/app.py" ]
[ "import pickle\nimport traceback\n\nimport numpy as np\nfrom flask import Flask, request\n\nfrom config import MODELPATH, DEBUG\n\n\napp = Flask(__name__)\nmodel = pickle.load(open(MODELPATH, 'rb'))\n\n\n@app.route(\"/predict\", methods=[\"POST\"])\ndef predict():\n \"\"\"{\"input\": [5.8, 2.8, 5.1, 2.4]}\"\"\"\...
[ [ "numpy.array" ] ]
LeonardoSaccotelli/Numerical-Calculus-Project
[ "becb480a611c9a57416127f6b0289085fe180ee4" ]
[ "5_Quadrature Formulas/Algoritmi_Quadratura.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Tue Apr 7 17:58:09 2020\n\n@author: Leonardo Saccotelli\n\"\"\"\n\nimport numpy as np\n\n\"\"\"\nFORMULA DEI TRAPEZI\n Al metodo vengono passati:\n - la funzione integranda\n - l'estremo inferiore di integrazione\n - l'estremo superiore di integrazione\n\"\"...
[ [ "numpy.linspace" ] ]
KristinaRay/english-arabic-nmt-bot
[ "1e0baddc81b829b3ee1abe95143cdef5c1206dd2" ]
[ "data/get_dataset.py" ]
[ "import os\nimport tqdm\nimport numpy as np\nimport requests\nimport youtokentome as yttm\nfrom argparse import ArgumentParser\nfrom zipfile import ZipFile\n\nfrom config import *\nfrom data.preprocessing import *\nfrom utils import *\n\nDATA_FILE_PATH = f'{DATA_PATH}/data.zip'\nDATA_URL = 'https://opus.nlpl.eu/dow...
[ [ "numpy.arange" ] ]
anmolmore/Chatbot-for-COVID-19-FAQ-using-Dialogflow
[ "f80670e9ee67e18c790da85d49e9c9617753c6f8", "f80670e9ee67e18c790da85d49e9c9617753c6f8" ]
[ "Model_codebase_2_flask.py", "Flask CoronaHelpDesk/api.py" ]
[ "#11915010\tRaghu Punnamraju\n#11915043\tAnmol More\n#11915001\tSriganesh Balamurugan\n#11915052\tKapil Bindal\n\nimport pandas as pd\nfrom ast import literal_eval\n\nfrom cdqa.utils.filters import filter_paragraphs\nfrom cdqa.utils.download import download_model, download_bnpp_data\nfrom cdqa.pipeline.cdqa_sklearn...
[ [ "pandas.read_csv" ], [ "pandas.read_csv" ] ]
hellopikaqiu/AIchallenger_MachineReadingComprehension
[ "03c8d4ab60f6ac9c7f777fd2c932cc01300b5c42", "03c8d4ab60f6ac9c7f777fd2c932cc01300b5c42" ]
[ "best_single_model/focal_loss.py", "baseline/config.py" ]
[ "\"\"\"\nAI Challenger观点型问题阅读理解\n\nfocal_loss.py\n\n@author: yuhaitao\n\"\"\"\n# -*- coding:utf-8 -*-\nimport tensorflow as tf\n\n\ndef sparse_focal_loss(logits, labels, gamma=2):\n \"\"\"\n Computer focal loss for multi classification\n Args:\n labels: A int32 tensor of shape [batch_size].\n log...
[ [ "tensorflow.nn.softmax", "tensorflow.reduce_sum", "tensorflow.log", "tensorflow.one_hot", "tensorflow.name_scope" ], [ "tensorflow.app.run" ] ]
muell-monster/google-research
[ "294a888bbb6678ac255c6422fd703c325cbb0772", "2c0043ecd507e75e2df9973a3015daf9253e1467", "294a888bbb6678ac255c6422fd703c325cbb0772", "2c0043ecd507e75e2df9973a3015daf9253e1467", "2c0043ecd507e75e2df9973a3015daf9253e1467", "2c0043ecd507e75e2df9973a3015daf9253e1467", "2c0043ecd507e75e2df9973a3015daf9253e146...
[ "flax_models/t5x/train.py", "tf3d/utils/instance_segmentation_utils_test.py", "eli5_retrieval_large_lm/util_scripts/create_data_subset_realm.py", "non_semantic_speech_benchmark/eval_embedding/keras/eval_keras.py", "kws_streaming/models/utils.py", "etcmodel/models/openkp/input_validate_and_dedup.py", "yo...
[ "# coding=utf-8\n# Copyright 2020 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...
[ [ "numpy.max", "tensorflow.compat.as_text", "tensorflow.io.gfile.makedirs", "numpy.transpose" ], [ "tensorflow.transpose", "tensorflow.constant", "tensorflow.shape", "tensorflow.stack", "tensorflow.reshape", "tensorflow.random.uniform", "tensorflow.test.main", "te...
davidinouye/destructive-deep-learning
[ "632add7a9731347e050d271ceebb24251e1d8e01" ]
[ "scripts/icml_2018_experiment.py" ]
[ "\"\"\"ICML 2018 experiment for MNIST and CIFAR-10.\"\"\"\nimport argparse\nimport logging\nimport os\nimport subprocess\nimport sys\nimport time\nimport warnings\n\nimport numpy as np\nimport scipy.stats # Needed for standard error of the mean scipy.stats.sem\nfrom sklearn.base import clone\nfrom sklearn.decompos...
[ [ "numpy.abs", "numpy.arange", "sklearn.base.clone", "numpy.mean", "numpy.array", "sklearn.decomposition.PCA", "numpy.vstack" ] ]
guitargeek/pandas
[ "a6c1f6cccee6bbccfb29488a94664ed07db024d9" ]
[ "pandas/tests/scalar/timestamp/test_timestamp.py" ]
[ "\"\"\" test the scalar Timestamp \"\"\"\n\nimport calendar\nfrom datetime import (\n datetime,\n timedelta,\n)\nimport locale\nimport pickle\nimport unicodedata\n\nfrom dateutil.tz import tzutc\nimport numpy as np\nimport pytest\nimport pytz\nfrom pytz import (\n timezone,\n utc,\n)\n\nfrom pandas._lib...
[ [ "pandas.Timestamp.fromtimestamp", "pandas._testing.get_locales", "numpy.iinfo", "pandas.Timestamp.today", "pandas.Timestamp.utcfromtimestamp", "pandas.Timestamp.combine", "pandas.Timestamp.min.to_pydatetime", "pandas.Timestamp.utcnow", "pandas._libs.tslibs.timezones.dateutil_ge...
JeffreyDF/Lasagne
[ "6dd88f5fada20768087f29ae89cbd83980fe0a4e", "6dd88f5fada20768087f29ae89cbd83980fe0a4e" ]
[ "lasagne/tests/layers/test_conv.py", "lasagne/tests/layers/test_shape.py" ]
[ "import numpy as np\nimport pytest\nimport importlib\nimport theano\n\nimport lasagne\nfrom lasagne.utils import floatX, as_tuple\n\n\ndef conv2d(input, kernel, pad):\n \"\"\"Execute a 2D convolution.\n\n Parameters\n ----------\n input : numpy array\n kernel : numpy array\n pad : {0, 'valid', 'sa...
[ [ "numpy.convolve", "numpy.random.random", "numpy.pad", "numpy.allclose", "numpy.array", "numpy.zeros" ], [ "numpy.prod", "numpy.random.random", "numpy.zeros", "numpy.ones" ] ]
antoszy/RoboND-perception-exercises
[ "8c725e77316162ae485ccee94085fd2314be7ae0" ]
[ "Exercise-3/sensor_stick/src/sensor_stick/features.py" ]
[ "import matplotlib.colors\nimport matplotlib.pyplot as plt\nimport numpy as np\nfrom pcl_helper import *\nnbinscol = 32\nnbinsnor = 20\n\ndef rgb_to_hsv(rgb_list):\n rgb_normalized = [1.0*rgb_list[0]/255, 1.0*rgb_list[1]/255, 1.0*rgb_list[2]/255]\n hsv_normalized = matplotlib.colors.rgb_to_hsv([[rgb_normalize...
[ [ "numpy.concatenate", "numpy.histogram", "numpy.sum" ] ]
hrutkabence/tutorials
[ "bd76294860804aee8ecda5e1445464506bf02ee0", "bd76294860804aee8ecda5e1445464506bf02ee0", "bd76294860804aee8ecda5e1445464506bf02ee0" ]
[ "english/data_processing/lessons/code/vslide1.py", "english/data_processing/lessons/code/sphere.py", "english/img_processing/code/img_corr.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n\nimport sys\nfrom math import hypot, atan2, sin, cos, pi, degrees\nimport numpy as np\nfrom matplotlib import pyplot as plt\n\ndef vplain(x1, y1, x2, y2):\n \"\"\" set up line equation\n vp[0] * x + vp[1] * y + vp[2] = 0\n\n x1, y1 - horizontal coordinates ...
[ [ "numpy.dot", "matplotlib.pyplot.plot", "matplotlib.pyplot.grid", "matplotlib.pyplot.axis", "matplotlib.pyplot.xlabel", "numpy.array", "matplotlib.pyplot.show", "numpy.zeros", "numpy.loadtxt", "matplotlib.pyplot.ylabel" ], [ "numpy.square", "numpy.linalg.lstsq", ...
MrJohnsson77/bat-country
[ "c0d29a0b32c196ca3d4c40fbaf960432b507e8bb" ]
[ "demo_guided.py" ]
[ "# USAGE\n# python demo_guided.py --base-model $CAFFE_ROOT/models/bvlc_googlenet \\\n#\t--image initial_images/clouds.jpg \\\n#\t--guide-image initial_images/seed_images/starry_night.jpg \\\n#\t--output examples/output/seeded/clouds_and_starry_night.jpg\n\n# import the necessary packages\nfrom batcountry import Bat...
[ [ "numpy.uint8" ] ]