repo_name
stringlengths
6
130
hexsha
list
file_path
list
code
list
apis
list
young24/LFP-simulation-in-turtle-brain
[ "cd801dc02804d027b7c245b0f0ca9c8b00f8d450", "cd801dc02804d027b7c245b0f0ca9c8b00f8d450" ]
[ "simulation-code/old_functions/average_rotated_trials.py", "simulation-code/old_functions/Main_Sim_with_Kernel.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Sat Mar 12 09:12:00 2016\nAverage the spatial influence of the morphology\n@author: young\n\"\"\"\nimport os\nfrom os.path import join\nimport pylab as plt\nimport numpy as np\n\ndef average_data_in_dif_folder(dirName,dataName,z_pos,numRotation,idxSection):\n yfileNam...
[ [ "numpy.load" ], [ "numpy.linspace", "scipy.interpolate.RegularGridInterpolator", "numpy.save", "numpy.shape", "numpy.load", "numpy.zeros" ] ]
KDDComplexNetworkAnalysis/ndlib
[ "2d05df8cd67de142ef068cc051969f86e51dfbc6" ]
[ "ndlib/test/test_ndlib.py" ]
[ "from __future__ import absolute_import\n\nimport unittest\nimport random\nimport future.utils\nimport networkx as nx\nimport igraph as ig\nimport numpy as np\n\nimport ndlib.models.ModelConfig as mc\nimport ndlib.models.epidemics as epd\nimport ndlib.models.opinions as opn\nimport ndlib.utils as ut\n\n__author__ =...
[ [ "numpy.random.choice" ] ]
H0R4T1U/SRI
[ "ed0891c595551929ce649b38f722ed2a8b7a696d" ]
[ "Service/website_service.py" ]
[ "from selenium import webdriver\nfrom bs4 import BeautifulSoup\nimport pandas as pd\n\nfrom Domain.website import Website\nfrom selenium.webdriver.firefox.options import Options\n\nfrom Repository.file_repository import FileRepository\n\n\nclass WebsiteService:\n def __init__(self, website_repository: FileReposi...
[ [ "pandas.DataFrame" ] ]
TomerHanochi/Tetris
[ "5be6c02b27164d0b3897006e5d1476b3e8546533" ]
[ "tetris/ai/population.py" ]
[ "from __future__ import annotations\nfrom random import random\n\nimport numpy as np\n\nfrom tetris.ai.network import Network\n\n\nclass Population:\n def __init__(self, size: int = 500, old_pop: Population = None,\n parent_candidates_pct: float = .1, offspring_pct: float = .3,\n ...
[ [ "numpy.array", "numpy.argpartition" ] ]
zhlinup/Relay-FL
[ "3a64d75108295412ed438f95ef2cf0da6c87bdbd" ]
[ "train_script.py" ]
[ "# -*- coding: utf-8 -*-\r\n\r\nimport numpy as np\r\n\r\nnp.set_printoptions(precision=6, threshold=1e3)\r\nimport torch\r\n\r\nfrom torchvision import datasets, transforms\r\nimport copy\r\nimport torch.nn as nn\r\nfrom torch.utils.data import DataLoader\r\n\r\n\r\ndef mnist_iid(dataset, K, M):\r\n dict_users,...
[ [ "torch.nn.CrossEntropyLoss", "torch.max", "numpy.random.choice", "torch.eq", "numpy.set_printoptions", "torch.tensor", "numpy.concatenate", "numpy.array", "numpy.zeros", "numpy.vstack" ] ]
edublancas/sklearn-model-evaluation
[ "1f35d5bcc689a5f4d54c14fde60abf09af9fc374" ]
[ "tests/test_classifier_evaluator.py" ]
[ "from sklearn_evaluation import ClassifierEvaluator\n\n# import matplotlib.pyplot as plt\nfrom sklearn import datasets\nfrom sklearn.ensemble import RandomForestClassifier\nfrom sklearn.model_selection import train_test_split\n\n\ndef test_can_plot():\n data = datasets.make_classification(200,\n ...
[ [ "sklearn.datasets.make_classification", "sklearn.model_selection.train_test_split", "sklearn.ensemble.RandomForestClassifier" ] ]
arifmudi/Python-Machine-Learning-By-Example-Third-Edition
[ "7bdc45df2b519e3c0a929b03f0ac6fe30e028382", "7bdc45df2b519e3c0a929b03f0ac6fe30e028382" ]
[ "chapter5/encoding.py", "chapter14/installation.py" ]
[ "'''\nSource codes for Python Machine Learning By Example 3rd Edition (Packt Publishing)\nChapter 5 Predicting Online Ads Click-through with Logistic Regression\nAuthor: Yuxi (Hayden) Liu (yuxi.liu.ece@gmail.com)\n'''\n\nfrom sklearn.feature_extraction import DictVectorizer\n\n\nX_dict = [{'interest': 'tech', 'occu...
[ [ "sklearn.feature_extraction.DictVectorizer", "pandas.DataFrame" ], [ "torch.empty" ] ]
Elon-Abulafia/PipeRT
[ "fba46d67a6dd546a9d70c3d854c3b7d3910f82ba" ]
[ "pipert/contrib/routines/face_detection.py" ]
[ "import torch\nfrom pipert import Routine\nfrom pipert.core.message import Message\nfrom pipert.core.routine import RoutineTypes\nfrom pipert.utils.structures import Instances, Boxes\nfrom queue import Empty\nimport time\nimport cv2\nimport pkg_resources\n\n\nclass FaceDetection(Routine):\n routine_type = Routin...
[ [ "torch.from_numpy" ] ]
bvsk35/Hopping_Bot
[ "5a8c7d4fdb4ae0a5ddf96002deb3c9ba1116c216", "5a8c7d4fdb4ae0a5ddf96002deb3c9ba1116c216" ]
[ "GPS_Berkley/experiments/mjc_disc_cost_pilqr_example/hyperparams.py", "GPS_Berkley/experiments/box2d_pointmass_pigps_example/hyperparams.py" ]
[ "\"\"\" Hyperparameters for MJC 2D navigation with discontinous target region. \"\"\"\nfrom __future__ import division\n\nfrom datetime import datetime\nimport os.path\n\nimport numpy as np\n\nfrom gps import __file__ as gps_filepath\nfrom gps.agent.mjc.agent_mjc import AgentMuJoCo\nfrom gps.algorithm.algorithm_tra...
[ [ "numpy.array", "numpy.ones" ], [ "numpy.array", "numpy.ones" ] ]
jylinman/tensorflow
[ "5248d111c3aeaf9f560cd77bff0f183f38e31e0b", "5248d111c3aeaf9f560cd77bff0f183f38e31e0b", "5248d111c3aeaf9f560cd77bff0f183f38e31e0b", "5248d111c3aeaf9f560cd77bff0f183f38e31e0b", "5248d111c3aeaf9f560cd77bff0f183f38e31e0b", "5248d111c3aeaf9f560cd77bff0f183f38e31e0b", "5248d111c3aeaf9f560cd77bff0f183f38e31e0...
[ "tensorflow/python/kernel_tests/py_func_test.py", "tensorflow/python/kernel_tests/dense_update_ops_no_tsan_test.py", "tensorflow/models/rnn/translate/translate.py", "tensorflow/python/ops/control_flow_ops_test.py", "tensorflow/python/kernel_tests/bcast_ops_test.py", "tensorflow/python/training/gradient_de...
[ "# Copyright 2015 Google Inc. 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 appl...
[ [ "tensorflow.Graph", "tensorflow.constant", "numpy.cosh", "numpy.fft.rfft", "tensorflow.zeros", "tensorflow.test.main", "numpy.sinh", "tensorflow.python.ops.script_ops._py_funcs.size", "numpy.array", "tensorflow.py_func" ], [ "tensorflow.fill", "tensorflow.assign...
cat-astrophic/pollution_growth
[ "3f245a8dd957bce5aebec41a8b984f0d7aab036d" ]
[ "pollution_A_data_maker.py" ]
[ "# This script creates the competition intensity values for the weighted total trade networks\r\n\r\n# Importing required modules\r\n\r\nimport numpy as np\r\nimport pandas as pd\r\n\r\n# Reading in the data\r\n\r\nmain_data = pd.read_csv('C:/Users/User/Documents/Data/Pollution/pollution_data.csv')\r\n\r\n# Creatin...
[ [ "numpy.matrix", "pandas.concat", "pandas.read_csv", "numpy.matmul", "pandas.DataFrame" ] ]
brianchung0803/GMA
[ "5c5647ae248f77f47d5b5cf0281933635b37e631" ]
[ "core/utils/augmentor.py" ]
[ "import numpy as np\nimport random\nimport math\nfrom PIL import Image\n\nimport cv2\ncv2.setNumThreads(0)\ncv2.ocl.setUseOpenCL(False)\n\nimport torch\nfrom torchvision.transforms import ColorJitter\nimport torch.nn.functional as F\n\n\nclass FlowAugmentor:\n def __init__(self, crop_size, min_scale=-0.2, max_sc...
[ [ "numpy.split", "numpy.clip", "numpy.ascontiguousarray", "numpy.arange", "numpy.stack", "numpy.concatenate", "numpy.round", "numpy.random.rand", "numpy.random.uniform", "numpy.zeros", "numpy.random.randint" ] ]
jphkun/CEASIOMpy
[ "6425cfeb786019fccfc98aaa2fd676b2de466dac", "6425cfeb786019fccfc98aaa2fd676b2de466dac" ]
[ "ceasiompy/utils/WB/UncGeometry/WithFuseGeom/Wings/wingsgeom.py", "ceasiompy/utils/optimfunctions.py" ]
[ "\"\"\"\nCEASIOMpy: Conceptual Aircraft Design Software\n\nDeveloped for CFS ENGINEERING, 1015 Lausanne, Switzerland\n\nThe script evaluate the wings geometry from cpacs file for an\nunconventional aircraft with fuselage.\n\nPython version: >=3.6\n\n| Author : Stefano Piccini\n| Date of creation: 2018-09-27\n| Last...
[ [ "numpy.amax", "numpy.sqrt", "numpy.all", "numpy.shape", "numpy.mean", "numpy.where", "numpy.zeros" ], [ "pandas.read_csv", "pandas.DataFrame" ] ]
ineersa/DeepPavlov
[ "8200bf9a0f0b378baad4ee0eb75b59453f516004", "8200bf9a0f0b378baad4ee0eb75b59453f516004" ]
[ "deeppavlov/core/layers/tf_csoftmax_attention.py", "deeppavlov/dataset_iterators/file_paths_iterator.py" ]
[ "# Copyright 2017 Neural Networks and Deep Learning lab, MIPT\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 requi...
[ [ "tensorflow.concat", "tensorflow.zeros", "tensorflow.stack", "tensorflow.reduce_sum", "tensorflow.map_fn", "tensorflow.while_loop", "tensorflow.layers.dense", "tensorflow.dynamic_stitch", "tensorflow.name_scope", "tensorflow.matmul", "tensorflow.dynamic_partition", ...
ralfgerlich/simupy
[ "7716c95ab51b63483278208230758dfdcd1a2b51" ]
[ "tests/test_numeric_switchedsystem.py" ]
[ "import pytest\nimport numpy as np\nimport numpy.testing as npt\nfrom simupy.systems import (SwitchedSystem, need_state_equation_function_msg,\n need_output_equation_function_msg,\n zero_dim_output_msg, full_state_output)\n\nmax_n_condition = 4\nbounds_min = -1\...
[ [ "numpy.linspace", "numpy.arange", "numpy.ones", "numpy.testing.assert_array_equal", "numpy.random.rand", "numpy.isclose" ] ]
amalekji/trading-tech-analysis
[ "b360062d6b2a31f0bf237e42a9a399d3b1f6c306" ]
[ "ta/trend.py" ]
[ "\"\"\"\n.. module:: trend\n :synopsis: Trend Indicators.\n\n.. moduleauthor:: Dario Lopez Padial (Bukosabino)\n\n\"\"\"\nimport numpy as np\nimport pandas as pd\n\nfrom ta.utils import IndicatorMixin, ema, get_min_max, sma\n\n\nclass AroonIndicator(IndicatorMixin):\n \"\"\"Aroon Indicator\n\n Identify when...
[ [ "numpy.abs", "pandas.Series", "numpy.concatenate", "numpy.argmax", "numpy.mean", "numpy.argmin", "numpy.zeros" ] ]
smarsu/mtcnn
[ "98c3839e250b18c310efa920bc6289a70379f07d" ]
[ "datasets.py" ]
[ "# --------------------------------------------------------\r\n# Face Datasets\r\n# Licensed under The MIT License [see LICENSE for details]\r\n# Copyright 2019 smarsu. All Rights Reserved.\r\n# --------------------------------------------------------\r\n\r\nimport os.path as osp\r\nimport numpy as np\r\n\r\n\r\ncl...
[ [ "numpy.concatenate", "numpy.array", "numpy.random.shuffle" ] ]
chinchila/codesearch
[ "9b91ce40e8a727932302436c4de2eddb04ebb396" ]
[ "codesearch/retrieval.py" ]
[ "# © 2020 Nokia\n#\n# Licensed under the BSD 3 Clause license\n#\n# SPDX-License-Identifier: BSD-3-Clause\n# ============================================\n\n\nimport functools\nimport sys\n\nimport numpy as np\n\nfrom codesearch.utils import Saveable\nfrom codesearch.data_config import DESCRIPTION_FIELD, CODE_FIELD...
[ [ "numpy.argsort", "numpy.zeros", "numpy.argpartition" ] ]
Victorwz/fast-weights-pytorch
[ "cef79631c9e41ae48fedbbc11e52be0cf084bfde" ]
[ "generator.py" ]
[ "import numpy as np\nimport random\nimport pickle\n\nnum_train = 60000\nnum_val = 10000\nnum_test = 10000\n\nstep_num = 4\nelem_num = 26 + 10 + 1\n\nx_train = np.zeros([num_train, step_num * 2 + 3, elem_num], dtype=np.float32)\nx_val = np.zeros([num_val, step_num * 2 + 3, elem_num], dtype=np.float32)\nx_test = np.z...
[ [ "numpy.zeros" ] ]
ml-resources/tensorflow
[ "4ecd72b68cd70c3930551aebbf0c80badc301d28" ]
[ "tensorflow/python/framework/ops.py" ]
[ "# Copyright 2015 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.device.merge_device", "tensorflow.python.platform.tf_logging.warning", "tensorflow.python.framework.registry.Registry", "tensorflow.core.framework.function_pb2.GradientDef", "tensorflow.python.platform.tf_logging.warn", "tensorflow.python.util.compat.as_bytes",...
LordRaivo/ToxicBot
[ "ebc09064afef0f4af5def1022eada9ef109d27ac" ]
[ "quantize_models.py" ]
[ "import torch\nimport torch.nn as nn\nimport models\nimport os\nimport pickle\nimport glob\nimport json\nimport numpy as np\n\nbackend = 'fbgemm'\ndef split_path(path):\n\t_, path = os.path.splitdrive(path)\n\tfolders = []\n\twhile 1:\n\t\tpath, folder = os.path.split(path)\n\t\tif folder != \"\":\n\t\t\tfolders.ap...
[ [ "torch.device" ] ]
fuxingwang2018/HCLIMAI
[ "8673d1b2cb9c5c17e70ba523fa64a8579c48798a" ]
[ "PreProcessing/compare_3km_12km_snapshot.py" ]
[ "\n#%matplotlib inline\nimport matplotlib.pyplot as plt\nimport netCDF4\nplt.switch_backend('agg')\nfrom map_plot import MapPlot\nimport numpy as np\n\ndata_folder = '/nobackup/rossby26/users/sm_fuxwa/AI/standard_data/'\nfig_out_path = '/home/sm_fuxwa/Figures/AI/'\n\n# 3km: tas, pr \n# 12km: ta500, ta700, ta850,...
[ [ "matplotlib.pyplot.switch_backend", "numpy.array", "numpy.meshgrid", "numpy.nanmean" ] ]
mdrews93/pybaseball
[ "0dab4a2a3e27dd9fa27285d63a1f6f829dfcf4c5" ]
[ "pybaseball/league_batting_stats.py" ]
[ "import requests\nimport pandas as pd\nimport datetime\nimport io\nfrom bs4 import BeautifulSoup\n\n\ndef validate_datestring(date_text):\n try:\n datetime.datetime.strptime(date_text, '%Y-%m-%d')\n except ValueError:\n raise ValueError(\"Incorrect data format, should be YYYY-MM-DD\")\n\ndef san...
[ [ "pandas.to_numeric", "pandas.DataFrame" ] ]
khushjammu/dqn_zoo
[ "249af96717d605cc1a62fc2b69941881c9661249" ]
[ "dqn_zoo/networks_test.py" ]
[ "# Copyright 2019 DeepMind Technologies Limited. 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# Unle...
[ [ "numpy.sqrt", "numpy.allclose", "numpy.unique", "numpy.testing.assert_allclose" ] ]
daq-tools/PyTables
[ "0949d41e611e6882a49248c6d82b1da9a994e788", "0949d41e611e6882a49248c6d82b1da9a994e788", "0949d41e611e6882a49248c6d82b1da9a994e788", "0949d41e611e6882a49248c6d82b1da9a994e788" ]
[ "bench/sqlite3-search-bench.py", "bench/keysort.py", "tables/tests/test_attributes.py", "tables/scripts/pttree.py" ]
[ "import os\nimport os.path\nfrom time import perf_counter as clock\nimport numpy\nimport random\n\n# in order to always generate the same random sequence\nrandom.seed(19)\n\n\ndef fill_arrays(start, stop):\n col_i = numpy.arange(start, stop, dtype=numpy.int32)\n if userandom:\n col_j = numpy.random.uni...
[ [ "numpy.arange", "numpy.array", "numpy.random.uniform" ], [ "numpy.alltrue", "numpy.arange", "numpy.array", "numpy.random.randint" ], [ "numpy.dtype", "numpy.ones", "numpy.testing.assert_array_equal", "numpy.array", "numpy.bool_", "numpy.zeros" ], [ ...
Outflier/PyAV
[ "f3aa2336a9fddfc2ae46e15a26956da08153af7e" ]
[ "tests/test_filters.py" ]
[ "from fractions import Fraction\nfrom unittest import SkipTest\nimport errno\n\nimport numpy as np\n\nfrom av import AudioFrame, VideoFrame\nfrom av.audio.frame import format_dtypes\nfrom av.filter import Filter, Graph\nimport av\n\nfrom .common import Image, TestCase, fate_suite\n\n\ndef generate_audio_frame(\n ...
[ [ "numpy.zeros", "numpy.allclose" ] ]
rdiere/yfinance
[ "969eeb66b5bc98635aa0289c15a49246248910e4" ]
[ "yfinance/base.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Yahoo! Finance market data downloader (+fix for Pandas Datareader)\n# https://github.com/ranaroussi/yfinance\n#\n# Copyright 2017-2019 Ran Aroussi\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in comp...
[ [ "pandas.concat", "pandas.to_datetime", "pandas.read_html", "pandas.DataFrame", "numpy.round" ] ]
SecTraversl/python_pandas_Tools
[ "4b818c993e1587c150d8f94e0c8c6437516deee4" ]
[ "pandasread_csv_addheader.py" ]
[ "# %%\n#######################################\ndef pandasread_csv_addheader(csv_file: str, addheader: list):\n \"\"\"Returns a pandas dataframe from the given .csv file. Assumes there is no header in the .csv and requires a header to be given as an argument to the 'addheader'.\n\n Example:\n >>> myhe...
[ [ "pandas.read_csv" ] ]
MorganCThomas/MolScore
[ "b12b7b5539bb3211982fc7a1b5938c0f383a05c0" ]
[ "generative_models/lstm_hc/distribution_learner.py" ]
[ "\"\"\"\nAdapted from guacamol_baselines https://github.com/BenevolentAI/guacamol_baselines\n\"\"\"\n\nimport logging\nfrom typing import List\n\nimport torch\n#from guacamol.distribution_matching_generator import DistributionMatchingGenerator\n\nfrom model import SmilesRnn\nfrom trainer import SmilesRnnTrainer\nfr...
[ [ "torch.device", "torch.nn.CrossEntropyLoss", "torch.cuda.is_available" ] ]
JBorrow/pageplot
[ "8abad574fda476d26a59fc8b7d36da2838f2c11e" ]
[ "pageplot/plotmodel.py" ]
[ "\"\"\"\nThe base top-level plot model class.\n\nFrom this all data and plotting flow.\n\"\"\"\n\nfrom pageplot.exceptions import PagePlotParserError\nfrom pathlib import Path\nfrom typing import Any, Optional, Dict, List, Union\n\nfrom pageplot.extensionmodel import PlotExtension\nfrom pageplot.extensions import b...
[ [ "matplotlib.pyplot.subplots", "matplotlib.pyplot.close" ] ]
fdcck/unrestricted-adversarial-examples
[ "125a21d2073308df05ad2dfaf4f9c58ec749b3e4" ]
[ "unrestricted-advex/unrestricted_advex/attacks.py" ]
[ "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport multiprocessing\nimport random\nfrom itertools import product, repeat\n\nimport numpy as np\nimport tensorflow as tf\nfrom cleverhans.attacks import SPSA\nfrom cleverhans.model import Model\nfro...
[ [ "numpy.expand_dims", "numpy.linspace", "numpy.asarray", "tensorflow.stack", "numpy.concatenate", "numpy.all", "tensorflow.pad", "numpy.where", "tensorflow.py_func", "tensorflow.Graph", "numpy.stack", "numpy.copy", "numpy.argmax", "tensorflow.contrib.image.tr...
michaelneuder/parkes_lab_fa19
[ "18d9f564e0df9c17ac5d54619ed869d778d4f6a4", "18d9f564e0df9c17ac5d54619ed869d778d4f6a4", "18d9f564e0df9c17ac5d54619ed869d778d4f6a4" ]
[ "proof_of_work/multiagent/turn_based/v4/selfishagentv4.py", "proof_of_work/multiagent/turn_based/v5/environmentv5.py", "costmdps/v9/costmdpcustomv9.py" ]
[ "import numpy as np\n\nclass SelfishAgent(object):\n def __init__(self, T):\n self.T = T\n self.policy = np.asarray([\n [0, 0, 0, 0, 0, 0, 0, 0, 0], \n [2, 2, 2, 0, 0, 0, 0, 0, 0], \n [2, 1, 2, 2, 2, 0, 0, 0, 0], \n [2, 2, 1, 2, 2, 2, 0, 0, 0], \n ...
[ [ "numpy.asarray" ], [ "numpy.zeros", "numpy.random.seed" ], [ "numpy.zeros" ] ]
qinvador/qiskit-terra
[ "4e104de3c113c01688a0ed06b2f2cb1a958fce44", "4e104de3c113c01688a0ed06b2f2cb1a958fce44" ]
[ "qiskit/extensions/standard/u2.py", "qiskit/extensions/standard/t.py" ]
[ "# -*- coding: utf-8 -*-\n\n# This code is part of Qiskit.\n#\n# (C) Copyright IBM 2017.\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.\...
[ [ "numpy.exp", "numpy.sqrt" ], [ "numpy.sqrt" ] ]
a1600012888/mmdetection3d
[ "2e01549c56dabf1965abc975a7301a8d746973ad", "2e01549c56dabf1965abc975a7301a8d746973ad", "2e01549c56dabf1965abc975a7301a8d746973ad", "2e01549c56dabf1965abc975a7301a8d746973ad" ]
[ "plugin/radar/depth_net.py", "plugin/depth_v3/model.py", "tests/test_data/test_datasets/test_nuscenes_mono_dataset.py", "tools/surrdet/get_scene_flow.py" ]
[ "# Copyright 2020 Toyota Research Institute. All rights reserved.\n\nimport torch\nimport torch.nn as nn\nfrom .layers01 import \\\n PackLayerConv3d, UnpackLayerConv3d, Conv2D, ResidualBlock, InvDepth\n\nfrom .utils import DepthPredictHead2Up, get_depth_metrics\nfrom mmdet.models import DETECTORS\nimport torch....
[ [ "torch.abs", "torch.cat", "torch.sum", "torch.nn.PixelShuffle", "torch.tensor", "torch.numel", "torch.nn.Upsample", "torch.no_grad", "torch.nn.init.xavier_uniform_", "torch.clamp" ], [ "torch.abs", "torch.sum", "torch.tensor", "torch.numel", "torch.n...
thomaskuestner/CNNArt
[ "c2fc639dd2ce035f6ca90113290682a0ccd26fb8", "c2fc639dd2ce035f6ca90113290682a0ccd26fb8", "c2fc639dd2ce035f6ca90113290682a0ccd26fb8", "c2fc639dd2ce035f6ca90113290682a0ccd26fb8", "c2fc639dd2ce035f6ca90113290682a0ccd26fb8" ]
[ "utils/RigidPatching.py", "GUI/PyQt/networks/multiclass/SENets/multiclass_SE-ResNet-56.py", "GUI/PyQt/utils/Prediction.py", "GUI/PyQt/utils/CNN_main.py", "GUI/PyQt/networks/multiclass/SENets/multiclass_SE-DenseNet-34.py" ]
[ "'''\r\nCopyright: 2016-2019 Thomas Kuestner (thomas.kuestner@med.uni-tuebingen.de) under Apache2 license\r\n@author: Thomas Kuestner\r\n'''\r\n\r\nimport numpy as np\r\nimport tensorflow as tf\r\nimport math\r\n\r\nfrom utils.Label import Label\r\n\r\n###############################################################...
[ [ "numpy.lib.pad", "numpy.multiply", "tensorflow.Variable", "tensorflow.slice", "tensorflow.stack", "numpy.dtype", "numpy.round", "tensorflow.math.multiply", "numpy.concatenate", "numpy.zeros" ], [ "numpy.expand_dims", "tensorflow.ConfigProto", "matplotlib.pyp...
Zshan0/Cirq
[ "610b0d4ea3a7862169610797266734c844ddcc1f", "93bbaa853305faa65117bcbdc2063f741cb2977c", "610b0d4ea3a7862169610797266734c844ddcc1f" ]
[ "cirq-core/cirq/protocols/apply_unitary_protocol.py", "cirq-google/cirq_google/optimizers/optimize_for_sycamore.py", "cirq-core/cirq/sim/clifford/stabilizer_sampler_test.py" ]
[ "# Copyright 2018 The Cirq Developers\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 o...
[ [ "numpy.empty_like", "numpy.array", "numpy.may_share_memory" ], [ "numpy.random.RandomState" ], [ "numpy.all" ] ]
aditya-giri/Cirq
[ "e5af689f184c8c5ccd9c076b2907a444b2479629" ]
[ "examples/direct_fidelity_estimation.py" ]
[ "\"\"\"Implements direct fidelity estimation.\n\nFidelity between the desired pure state rho and the actual state sigma is\ndefined as:\nF(rho, sigma) = Tr (rho sigma)\n\nIt is a unit-less measurement between 0.0 and 1.0. The following two papers\nindependently described a faster way to estimate its value:\n\nDirec...
[ [ "numpy.asarray", "numpy.random.randint", "numpy.sum", "numpy.isclose" ] ]
frmunozz/IrregularMatchedFilter
[ "b64c348345b16d777839f13dc585d1816cf81ca6" ]
[ "developing/lombScargle.py" ]
[ "from gatspy.periodic import LombScargleFast\nfrom scipy import signal\nfrom astropy.stats import LombScargle\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nplt.style.use('seaborn-paper')\nimport time\n\"\"\"\ncomparison between many implementations of lomb-scargle periodogram\n\"\"\"\...
[ [ "matplotlib.pyplot.legend", "matplotlib.pyplot.axvline", "numpy.random.seed", "numpy.linspace", "numpy.sin", "matplotlib.pyplot.plot", "scipy.signal.lombscargle", "numpy.random.normal", "matplotlib.pyplot.xlim", "matplotlib.pyplot.ylabel", "matplotlib.pyplot.xlabel", ...
mojtaba-eshghie/ethereum-rtm
[ "2a999ab5dcd557350922b311dbaba46f2f929d1c" ]
[ "prepare-data2.py" ]
[ "#!/usr/bin/python3\n\nimport csv\nimport pandas as pd\nimport numpy as np\nimport json\nimport subprocess\n\n'''\nwith open('data/final.csv', 'r') as final_csv:\n csv_reader = csv.reader(final_csv, delimiter=',')\n line_count = 0\n for row in csv_reader:\n print(row)\n'''\ndata = pd.read_csv('data/...
[ [ "pandas.read_csv", "pandas.DataFrame" ] ]
notantony/Grid-Anchor-based-Image-Cropping-Pytorch
[ "32a2dea9151c123c8e589bd196450f56cf3ef7d1", "32a2dea9151c123c8e589bd196450f56cf3ef7d1" ]
[ "rod_align/_ext/rod_align/__init__.py", "TestAccuracy.py" ]
[ "\nfrom torch.utils.ffi import _wrap_function\nfrom ._rod_align import lib as _lib, ffi as _ffi\n\n__all__ = []\ndef _import_symbols(locals):\n for symbol in dir(_lib):\n fn = getattr(_lib, symbol)\n if callable(fn):\n locals[symbol] = _wrap_function(fn, _ffi)\n else:\n ...
[ [ "torch.utils.ffi._wrap_function" ], [ "torch.set_default_tensor_type", "torch.Tensor", "torch.load", "scipy.stats.pearsonr", "torch.cuda.is_available", "scipy.stats.spearmanr", "torch.nn.DataParallel", "torch.squeeze", "torch.autograd.Variable" ] ]
StudentsZhouPengfei/Automatically-Differentiable-Quantum-Circuit-for-Many-qubit-State-Preparation
[ "42d3a77380e78819375c9fb2c5600ddc89a3ae3f" ]
[ "XY_Model_propare_state3_chi64_A0.py" ]
[ "import torch as tc\r\nimport numpy as np\r\nimport copy\r\nimport os,sys\r\nimport Circle_Function_Class_A0 as ev\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib\r\nmatplotlib.use('Agg')\r\nfrom torch.optim.lr_scheduler import StepLR\r\nimport BasicFunSJR as bfs\r\nfrom CNNBTN import Paras_VL_CNN_BTN_Colle...
[ [ "matplotlib.pyplot.legend", "numpy.savez", "torch.zeros", "torch.pow", "torch.cuda.synchronize", "torch.norm", "torch.add", "torch.sqrt", "torch.einsum", "torch.eye", "torch.from_numpy", "torch.tensor", "torch.rand", "numpy.load", "matplotlib.pyplot.figu...
DrJonoG/StomataGSMax
[ "18e5f993ed875ae6af07a4c7d1c0e4ff97e2c947" ]
[ "datasets/DataAugmentations.py" ]
[ "from scipy import ndimage\nfrom skimage import measure\n\nimport numpy as np\nimport cv2\n\n\ndef crop_rectangle(image, rect):\n # rect has to be upright\n num_rows = image.shape[0]\n num_cols = image.shape[1]\n\n if not inside_rect(rect = rect, num_cols = num_cols, num_rows = num_rows):\n print...
[ [ "numpy.max", "numpy.random.uniform", "numpy.min" ] ]
declanwalsh/aero-bumps
[ "823ec1533de585971adacc701b4a0cf7b7b45035" ]
[ "flutter_output.py" ]
[ "# -*- coding: utf-8 -*-\r\n\"\"\"flutter_output\r\n\r\nGenerates graphs, csv's and other files for export of analysis\r\n\r\nMORE DETAILS\r\n\r\n Typical usage example:\r\n\r\n foo = ClassFoo()\r\n bar = foo.FunctionBar()\r\n\r\nTODO\r\n- Add spectrogram of changes in modal frequencies at different airspeeds\r\...
[ [ "matplotlib.ticker.MultipleLocator", "matplotlib.pyplot.title", "matplotlib.pyplot.figure", "matplotlib.pyplot.subplots", "matplotlib.pyplot.draw", "matplotlib.pyplot.plot", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.suptitle", "matplotlib.pyplot.show", "matplotlib.pypl...
RicardoP0/multimodal-matchmap
[ "aa44c574a57073833004172734394882889d8d3b" ]
[ "dataset_preproc/preproc_audio/generate_spectogram.py" ]
[ "# %%\nimport pandas as pd\nimport librosa\nimport librosa.display\nimport os\nimport numpy as np\nimport joblib\n\n\ndef scale_minmax(X, min=0.0, max=1.0):\n X_std = (X - X.min()) / (X.max() - X.min())\n X_scaled = X_std * (max - min) + min\n return X_scaled\n\n\ndef gen_melspect(\n file_path,\n out...
[ [ "pandas.read_csv", "numpy.zeros", "numpy.pad", "numpy.stack" ] ]
TabQ/gugu
[ "5b07beeddf51bc981f9624e17b53f1bfd4e9080f" ]
[ "gugu/reference.py" ]
[ "# -*- coding:utf-8 -*-\n\"\"\"\n投资参考类\nCreated on 2019/01/03\n@author: TabQ\n@group : gugu\n@contact: 16621596@qq.com\n\"\"\"\n\nfrom __future__ import division\n\nimport math\nimport time\nimport pandas as pd\nfrom pandas.compat import StringIO\nimport lxml.html\nfrom lxml import etree\nimport re\nimport json\nfr...
[ [ "pandas.compat.StringIO", "pandas.DataFrame", "pandas.read_html" ] ]
bathienle/master-thesis-code
[ "58182f54a56c34fb4a33d67743ca515c80e33657" ]
[ "src/experiments/simple.py" ]
[ "\"\"\"\nTraining without inclusion and exclusion map or train with U-Net model\n\"\"\"\n\nimport csv\nimport numpy as np\nimport time\nimport torch\nimport os\n\nfrom argparse import ArgumentParser\nfrom torch.optim import Adam\nfrom torch.utils.data import DataLoader\n\nfrom src import (\n NuClick, UNet, TestD...
[ [ "numpy.random.seed", "torch.load", "torch.manual_seed", "torch.utils.data.DataLoader", "numpy.std", "torch.no_grad", "numpy.mean", "torch.cuda.is_available" ] ]
jych/Theano
[ "c74da33de3768e231ffa0d92d9d11667a2a5aedb", "c74da33de3768e231ffa0d92d9d11667a2a5aedb", "d7d722faa96aac95c19f460bf60e8e8654ff58df", "c74da33de3768e231ffa0d92d9d11667a2a5aedb", "c74da33de3768e231ffa0d92d9d11667a2a5aedb" ]
[ "theano/scan_module/scan_op.py", "theano/sandbox/scan_module/scan.py", "theano/sandbox/neighbourhoods.py", "theano/compile/ops.py", "theano/sandbox/test_scan.py" ]
[ "\"\"\"\nThis module provides the Scan Op\n\nSee scan.py for details on scan\n\n\nMemory reuse in scan\n--------------------\n\nTo reduce the number of memory allocations and copies associated with calling\nthe inner function and recovering the outputs at every iteration, Scan uses a\nmemory pre-allocation mechanis...
[ [ "numpy.asarray", "numpy.max", "numpy.zeros", "numpy.min" ], [ "numpy.int64", "numpy.min" ], [ "numpy.zeros" ], [ "numpy.all" ], [ "numpy.float32" ] ]
opengridcc/opengrid_dev
[ "cc6dc9d615197e4901a8d213fe81fc71bcd602c4" ]
[ "opengrid_dev/library/houseprint/houseprint.py" ]
[ "__author__ = 'Jan Pecinovsky'\n\nfrom opengrid_dev.config import Config\n\nconfig = Config()\n\nimport os\nimport sys\nimport json\nimport jsonpickle\nimport datetime as dt\nimport pandas as pd\nfrom requests.exceptions import HTTPError\nimport warnings\nfrom tqdm import tqdm\n\n# compatibility with py3\nif sys.ve...
[ [ "pandas.concat", "pandas.DataFrame" ] ]
takeratta/chainer
[ "02686e98cd6dc8f20979a1f3a79130f076cbfc6c", "02686e98cd6dc8f20979a1f3a79130f076cbfc6c", "02686e98cd6dc8f20979a1f3a79130f076cbfc6c", "02686e98cd6dc8f20979a1f3a79130f076cbfc6c", "02686e98cd6dc8f20979a1f3a79130f076cbfc6c", "02686e98cd6dc8f20979a1f3a79130f076cbfc6c", "02686e98cd6dc8f20979a1f3a79130f076cbfc6...
[ "tests/chainer_tests/functions_tests/pooling_tests/test_roi_pooling_2d.py", "tests/chainer_tests/functions_tests/activation_tests/test_relu.py", "tests/chainer_tests/utils_tests/test_conv.py", "examples/reinforcement_learning/dqn_cartpole.py", "tests/chainer_tests/functions_tests/math_tests/test_scale.py", ...
[ "import unittest\n\nimport numpy\n\nimport chainer\nfrom chainer import cuda\nfrom chainer import functions\nfrom chainer import gradient_check\nfrom chainer import testing\nfrom chainer.testing import attr\n\n\nclass TestROIPooling2D(unittest.TestCase):\n\n def setUp(self):\n N = 3\n n_channels = ...
[ [ "numpy.arange", "numpy.array", "numpy.random.uniform", "numpy.random.shuffle" ], [ "numpy.random.uniform" ], [ "numpy.random.uniform", "numpy.zeros" ], [ "numpy.interp", "numpy.mean", "numpy.random.rand" ], [ "numpy.ndindex", "numpy.copy", "numpy...
cristinalunaj/WI-IAT20_PopularityModule
[ "0a4894e2b889bf31ea1a8beab3025d5dd0b1ed47" ]
[ "src/POPULARITY_MODULE/popularity_predictor.py" ]
[ "import pandas as pd\nimport subprocess, os\nimport src.utils.loader as loader\n\ndef create_test_arff(participant, test_df, aux_path):\n arff_text = \"@relation summary_features \\n\\n\" \\\n \"@attribute n_faces numeric\\n\" \\\n \"@attribute avg_confidence_faces numeric\\n\" \\\n...
[ [ "pandas.read_csv", "pandas.DataFrame" ] ]
antmicro/raviewer
[ "7529664d37e994d4c2f4c450a5577b79d73c4bb0" ]
[ "tests/image_test.py" ]
[ "import unittest\nimport numpy\nimport os\nimport raviewer.image.image as image\nimport raviewer.image.color_format as cf\nfrom raviewer.src.core import load_image\n\n\nclass TestImageClass(unittest.TestCase):\n\n def setUp(self):\n self.TEST_FILE_BGR = os.path.join(os.path.dirname(__file__),\n ...
[ [ "numpy.zeros" ] ]
Esail/tensorflow
[ "2538e68a69e585696175bd972cae119e06bde294", "2538e68a69e585696175bd972cae119e06bde294", "2538e68a69e585696175bd972cae119e06bde294", "2538e68a69e585696175bd972cae119e06bde294" ]
[ "tensorflow/contrib/data/python/ops/threadpool.py", "tensorflow/contrib/data/python/kernel_tests/optimization/map_parallelization_test.py", "tensorflow/contrib/data/python/kernel_tests/window_dataset_op_test.py", "tensorflow/contrib/data/python/kernel_tests/threadpool_dataset_ops_test.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.gen_experimental_dataset_ops.experimental_thread_pool_handle", "tensorflow.python.eager.context.context", "tensorflow.python.eager.context.executing_eagerly", "tensorflow.python.data.ops.dataset_ops.flat_structure" ], [ "tensorflow.python.ops.math_ops.greater", "...
koonimaru/DeepGMAP
[ "7daac354229fc25fba81649b741921345dc5db05", "7daac354229fc25fba81649b741921345dc5db05" ]
[ "deepgmap/train/deepshark_local_oop_1d.py", "deepgmap/post_train_tools/motif_compare.py" ]
[ "import tensorflow as tf\nimport sys\nimport numpy as np\nimport time\nimport glob\nfrom natsort import natsorted\nimport getopt\nimport importlib as il\nimport matplotlib.pyplot as plt\n\ndef next_batch(loop, input_dir, batch_size, data_length):\n f = glob.glob(str(input_dir)+\"*\")\n f_srt=natsorted(f)\n ...
[ [ "numpy.polyfit", "numpy.poly1d", "tensorflow.device", "matplotlib.pyplot.plot", "numpy.round", "numpy.concatenate", "numpy.nanmean", "numpy.reshape", "tensorflow.get_collection", "tensorflow.ConfigProto", "matplotlib.pyplot.subplot", "tensorflow.Session", "matpl...
zonca/sotodlib
[ "0c64e07ab429e7f0c0e95befeedbaca486d3a414" ]
[ "sotodlib/utils/pipeline_tools/noise.py" ]
[ "# Copyright (c) 2019-2020 Simons Observatory.\n# Full license can be found in the top level \"LICENSE\" file.\n\nimport numpy as np\n\nfrom toast.timing import function_timer, Timer\nfrom toast.tod import AnalyticNoise\nfrom toast.utils import Logger\nimport toast.qarray as qa\n\nfrom ...sim_hardware import get_ex...
[ [ "numpy.median", "numpy.sin" ] ]
xcist/CatSim
[ "4fdd0be26f9915a46a3c3327ed0617328f5ca8b4" ]
[ "reconstruction/fbp_equiAngular/fbp_equiAngular.py" ]
[ "import ctypes as ct\rimport numpy as np\rimport scipy.io as scio\rimport matplotlib.pyplot as plt\r\r# Init ctypes types\rDOUBLE = ct.c_double\rPtrDOUBLE = ct.POINTER(DOUBLE)\rPtrPtrDOUBLE = ct.POINTER(PtrDOUBLE)\r\r\rclass TestStruct(ct.Structure):\r _fields_ = [\r (\"ScanR\", ct.c_double),\r ...
[ [ "matplotlib.pyplot.imshow", "scipy.io.loadmat", "scipy.io.savemat", "matplotlib.pyplot.show", "numpy.zeros", "matplotlib.pyplot.figure" ] ]
antsfamily/pysparse
[ "1de292f3e9c6d81950656b9405d4d87ef746d950" ]
[ "tests/test_omp_sin3.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# @Date : 2017-07-06 10:38:13\n# @Author : Yan Liu & Zhi Liu (zhiliu.mind@gmail.com)\n# @Link : http://iridescent.ink\n# @Version : $1.0$\n#\n\nimport numpy as np\nimport pysparse as pys\nimport matplotlib.pyplot as plt\n\nFs = 2000\nTs = 1\nNs = int(Ts * Fs)\...
[ [ "matplotlib.pyplot.tight_layout", "numpy.linspace", "matplotlib.pyplot.title", "numpy.fft.fft", "numpy.matmul", "numpy.sin", "matplotlib.pyplot.plot", "numpy.size", "matplotlib.pyplot.subplot", "matplotlib.pyplot.ylabel", "matplotlib.pyplot.grid", "matplotlib.pyplot...
EsauPR/3d-pose-baseline
[ "2f521fe3008ddee81b666550606f7405efd2f547", "2f521fe3008ddee81b666550606f7405efd2f547" ]
[ "src/3d_pose_vae_filter_kin.py", "src/vae_filter.py" ]
[ "\"\"\" Train a VAE model used to filter and enhance 3d points \"\"\"\n\nimport json\nfrom datetime import datetime\n\nimport matplotlib\nimport matplotlib.gridspec as gridspec\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport tensorflow as tf\n\nfrom tqdm import tqdm\n\nimport cameras\nimport data_utils...
[ [ "tensorflow.device", "numpy.concatenate", "tensorflow.Variable", "numpy.arange", "tensorflow.keras.optimizers.RMSprop", "matplotlib.pyplot.subplot", "matplotlib.gridspec.GridSpec", "matplotlib.pyplot.close", "matplotlib.pyplot.axis", "tensorflow.keras.metrics.Mean", "ma...
qpwodlsqp/torchdyn
[ "aa26dc0ea22acedfce6744f0bff10f551d175a2f" ]
[ "test/test_normalizing_flows.py" ]
[ "import torch\nimport torch.nn as nn\nfrom torch.distributions import MultivariateNormal\nfrom torchdyn.models import NeuralODE\nfrom torchdyn import Augmenter\nfrom torchdyn.models.cnf import CNF, hutch_trace, autograd_trace\n\n\ndef test_cnf_vanilla():\n device = torch.device('cpu')\n net = nn.Sequential(\n...
[ [ "torch.linspace", "torch.nn.Softplus", "torch.zeros", "torch.randn", "torch.nn.ELU", "torch.eye", "torch.nn.Linear", "torch.device" ] ]
BAMresearch/probeye
[ "ff018ef629f7d5ce4a263b6656b363f90ab6be02" ]
[ "tests/unit_tests/inference/dynesty_/test_solver.py" ]
[ "# standard library\nimport logging\nimport unittest\n\n# third party imports\nimport numpy as np\n\n# local imports\nfrom probeye.definition.forward_model import ForwardModelBase\nfrom probeye.definition.sensor import Sensor\nfrom probeye.definition.inference_problem import InferenceProblem\nfrom probeye.definitio...
[ [ "numpy.random.normal", "numpy.random.seed", "numpy.linspace" ] ]
Rubikplayer/SoftRas
[ "bfc6e7aba8531f4937f933122b3662b39b1114f1" ]
[ "soft_renderer/mesh.py" ]
[ "import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport numpy as np\n\nimport soft_renderer.functional as srf\n\n\nclass Mesh(object):\n '''\n A simple class for creating and manipulating trimesh objects\n '''\n def __init__(self, vertices, faces, textures=None, texture_res=1, text...
[ [ "torch.ones", "numpy.sqrt", "torch.cat", "torch.from_numpy", "torch.cross" ] ]
robertjankowski/social-media-influence-on-covid-pandemic
[ "1b04aa4aa88d4788fdfa023eb21b1f00b16f0110", "1b04aa4aa88d4788fdfa023eb21b1f00b16f0110" ]
[ "scripts/data_utils.py", "scripts/metrics.py" ]
[ "import pandas as pd\n\n\ndef get_value(text):\n return text.split(\"_\")[0]\n\n\ndef load_results(path: str, params):\n all_parameters = {}\n file_name = path.split(\"/\")[-1].split(\".csv\")[0]\n file_name = file_name.split(\"=\")[1:]\n\n for i, f in enumerate(file_name):\n all_parameters[pa...
[ [ "pandas.read_csv" ], [ "numpy.std", "numpy.mean" ] ]
cffbots/ESMValTool
[ "a9b6592a02f2085634a214ff5f36a736fa18ff47", "a9b6592a02f2085634a214ff5f36a736fa18ff47", "a9b6592a02f2085634a214ff5f36a736fa18ff47", "a9b6592a02f2085634a214ff5f36a736fa18ff47", "a9b6592a02f2085634a214ff5f36a736fa18ff47", "a9b6592a02f2085634a214ff5f36a736fa18ff47" ]
[ "tests/system/esmvaltool_testlib.py", "esmvaltool/diag_scripts/mlr/custom_sklearn.py", "esmvaltool/diag_scripts/mlr/mmm.py", "esmvaltool/diag_scripts/runoff_et/catchment_analysis.py", "esmvaltool/diag_scripts/kcs/global_matching.py", "esmvaltool/diag_scripts/arctic_ocean/arctic_ocean.py" ]
[ "\"\"\"Provide a class for testing esmvaltool.\"\"\"\n\nimport glob\nimport os\nimport shutil\nimport sys\nfrom unittest import SkipTest\n\nimport numpy as np\nimport yaml\n# from easytest import EasyTest\n\nimport esmvaltool\n\n\ndef _load_config(filename=None):\n \"\"\"Load test configuration\"\"\"\n if fil...
[ [ "numpy.array_equal" ], [ "sklearn.utils.validation.check_is_fitted", "numpy.asarray", "sklearn.exceptions.NotFittedError", "sklearn.base.clone", "sklearn.utils.safe_sqr", "numpy.mean", "numpy.where", "numpy.ix_", "sklearn.utils.check_X_y", "scipy.sparse.issparse", ...
Shirshakk-P/ControlSystems
[ "2a6b147aa583cf5329ce9c84b0d84d72aba2bda4" ]
[ "x11/massSpringParam1.py" ]
[ "#Mass Spring Damper system Parameter File\r\nimport numpy as np\r\nimport control as cnt\r\nimport sys\r\nsys.path.append('..') #add parent directory\r\nimport massSpringParam as P\r\n\r\nTs = P.Ts\r\nbeta = P.beta\r\ntau_max = P.tau_max\r\nm = P.m\r\nk = P.k\r\nb = P.b\r\n\r\n#tuning parameters\r\n#tr=1.6 #pre...
[ [ "numpy.roots", "numpy.array", "numpy.linalg.inv" ] ]
gobaRules/eo-learn
[ "25174e5e0759e35b616712423f01b03527a4b227", "25174e5e0759e35b616712423f01b03527a4b227" ]
[ "visualization/eolearn/visualization/eoexecutor_visualization.py", "visualization/eolearn/visualization/xarray_utils.py" ]
[ "\"\"\"\nModule with utilities for vizualizing EOExecutor\n\"\"\"\n\nimport os\nimport inspect\nimport warnings\nimport base64\nimport copy\n\ntry:\n import matplotlib.pyplot as plt\nexcept ImportError:\n import matplotlib\n matplotlib.use('agg')\n import matplotlib.pyplot as plt\n\nimport graphviz\nimp...
[ [ "matplotlib.pyplot.switch_backend", "matplotlib.use" ], [ "numpy.arange", "numpy.linspace" ] ]
rubyshamir/cDC
[ "c4ebef2ff96e65e197c6c995fb896f72d50de747" ]
[ "continuous_Dice_coefficient.py" ]
[ "import numpy as np\r\n\r\n'''\r\nImplementation of the continuous Dice Coefficient (https://www.biorxiv.org/content/10.1101/306977v1.full.pdf)\r\n\"Continuous Dice Coefficient: a Method for Evaluating Probabilistic Segmentations\"\r\nReuben R Shamir,Yuval Duchin, Jinyoung Kim, Guillermo Sapiro, and Noam Harel\r\n\...
[ [ "numpy.ones_like", "numpy.sqrt", "numpy.linspace", "numpy.size", "numpy.zeros_like", "numpy.exp", "numpy.zeros", "numpy.sum" ] ]
DilipJainDj/Flower-Image-Classifier
[ "ab7c47d176b12bae51ee33e427f3d95c57d07416" ]
[ "predict.py" ]
[ "\"\"\"\n@author: Dilip Jain\n@title: Image Classifier training file\n\"\"\"\n\nimport argparse\nimport json\nimport PIL\nimport torch\nimport numpy as np\n\nfrom math import ceil\nfrom train import check_gpu\nfrom torchvision import models\n\n# ----------------------------------------------------------------------...
[ [ "torch.exp", "numpy.array", "numpy.expand_dims", "torch.load" ] ]
pbattaglia/scenesim
[ "6ff41c1428a32c078104332431906f4faa0990db" ]
[ "scenesim/display/geometry.py" ]
[ "\"\"\"\n``scenesim.display.geometry``\n=============================\n\nFunctions for manipulating graphics geometry.\n\n\"\"\"\nimport numpy as np\n\n\ndef zbuffer_to_z(zb, near, far):\n \"\"\"Inputs Z-buffer image and returns each pixel's distance from the\n camera along the Z-axis.\n\n Args:\n zb...
[ [ "numpy.dot", "numpy.sqrt", "numpy.linalg.inv", "numpy.cos", "numpy.ones", "numpy.diff", "numpy.array" ] ]
NickWilkinson37/voxseg
[ "6402a67c0b4ee68115070b6aa870199d1f43c5a2" ]
[ "voxseg/run_cnnlstm.py" ]
[ "# Module for running CNN-BiLSTM vad model,\n# may also be run directly as a script\n# Author: Nick Wilkinson 2021\nimport argparse\nimport os\nimport numpy as np\nimport pandas as pd\nimport tensorflow as tf\nfrom typing import Tuple\nfrom tensorflow.keras import models\nfrom voxseg import utils\nfrom scipy.signal...
[ [ "tensorflow.keras.models.load_model", "pandas.read_hdf", "tensorflow.compat.v1.ConfigProto", "pandas.Series", "tensorflow.config.experimental.list_physical_devices", "pandas.DataFrame", "tensorflow.compat.v1.Session", "numpy.array", "tensorflow.config.experimental.set_visible_d...
EverLookNeverSee/BTS_DP_MRI
[ "c4e36c766c3ccf2ddea7c935f81df79ed8b72247" ]
[ "train.py" ]
[ "\"\"\"\n Training 3D U-Net Model\n @author: Milad Sadeghi DM - EverLookNeverSee@GitHub\n\"\"\"\n\n\nimport os\nimport argparse\nimport numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nfrom model import build_unet_model\nfrom sklearn.model_selection import KFold\nfrom tensorflow.keras.optimi...
[ [ "matplotlib.pyplot.legend", "matplotlib.pyplot.title", "numpy.unique", "sklearn.model_selection.KFold", "pandas.DataFrame", "matplotlib.pyplot.plot", "matplotlib.pyplot.savefig", "numpy.argmax", "tensorflow.keras.callbacks.CSVLogger", "matplotlib.pyplot.xlabel", "tensor...
kadrlica/obztak
[ "d24a8fe0659f2602f5d87cdfd99ebcf5224e418c" ]
[ "obztak/seeing.py" ]
[ "#!/usr/bin/env python\n\"\"\"\nGeneric python script.\n\"\"\"\n__author__ = \"Alex Drlica-Wagner\"\nfrom collections import OrderedDict as odict\nimport logging\nimport copy\n\nimport numpy as np\nimport pandas as pd\nimport dateutil.parser\nimport ephem\n\nfrom obztak.utils import fileio\nfrom obztak.utils.date i...
[ [ "pandas.read_csv", "numpy.sqrt", "numpy.median", "pandas.DatetimeIndex", "pandas.Timedelta", "pandas.DataFrame", "numpy.log10", "numpy.any", "numpy.isscalar", "numpy.recarray", "numpy.hypot" ] ]
SIAAAAAA/MMT-PSM
[ "0835c01c5010d3337778f452e9d96416e0f8a11a", "0835c01c5010d3337778f452e9d96416e0f8a11a", "0835c01c5010d3337778f452e9d96416e0f8a11a" ]
[ "maskrcnn_benchmark/structures/segmentation_mask.py", "maskrcnn_benchmark/engine/MTtrainer.py", "maskrcnn_benchmark/utils/visual.py" ]
[ "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\nimport torch\n\nimport pycocotools.mask as mask_utils\nfrom pycocotools import mask as maskUtils\nimport numpy as np\n# from maskrcnn_benchmark.utils.miscellaneous\n# transpose\nFLIP_LEFT_RIGHT = 0\nFLIP_TOP_BOTTOM = 1\n\n\nclass Mask(object)...
[ [ "numpy.zeros", "torch.from_numpy", "torch.as_tensor" ], [ "torch.distributed.get_rank", "torch.cuda.max_memory_allocated", "torch.distributed.reduce", "torch.no_grad", "torch.stack", "torch.device" ], [ "numpy.asarray", "numpy.squeeze", "numpy.zeros_like", ...
GengZ/siameseFC-pytorch-vot
[ "e825637b5ac68c38d6c62bba265b61b85c4955d9" ]
[ "Train/run_Train_SiamFC.py" ]
[ "import __init_paths\n\nimport os\nimport numpy as np\nfrom tqdm import tqdm\n\nimport torch\nfrom torch.autograd import Variable\nfrom torch.optim.lr_scheduler import LambdaLR\nfrom torch.utils.data import DataLoader\nimport torchvision.transforms as transforms\n\nfrom lib.VIDDataset import VIDDataset\nfrom lib.Da...
[ [ "torch.optim.lr_scheduler.LambdaLR", "numpy.random.seed", "numpy.logspace", "torch.manual_seed", "torch.utils.data.DataLoader", "numpy.mean", "torch.optim.SGD", "torch.autograd.Variable" ] ]
KT12/Training
[ "ac4de382a1387ccfe51404eb3302cc518762a781" ]
[ "ltf/generate_samples.py" ]
[ "import tensorflow as tf\nimport numpy as np\n\nfrom functions import *\n\nn_features = 2\nn_clusters = 3\nn_samples_per_cluster = 500\nseed = 700\nembiggen_factor = 70\n\nnp.random.seed()\n\ndata_centroids, samples = create_samples(n_clusters, n_samples_per_cluster, n_features,\n embiggen_factor, seed)\ninitial...
[ [ "tensorflow.Session", "tensorflow.global_variables_initializer", "numpy.random.seed" ] ]
RobLewisQA/BChain_Project
[ "7bdf682ea1e23359f2958620ad0afb417892ba1e" ]
[ "app/WordList_Reader/application/routes.py" ]
[ "import random\nimport application.BChain_WordList as bwords\nimport pandas as pd\nfrom flask import Flask, redirect, request, url_for,render_template, Response, jsonify\nfrom application import app\n\n@app.route('/mnemonic_generator', methods=['GET']) \ndef mnemonic_generator():\n seedphrase_words = []\n\n w...
[ [ "pandas.Series" ] ]
desihsu/lane-finder
[ "f40249c52909d5e235bee40b116965cf0641f871" ]
[ "lane_finder.py" ]
[ "import sys\nfrom moviepy.editor import VideoFileClip\nimport camera\nimport image_thresholding\nimport line_fitting\nimport matplotlib.image as mpimg\n\n\nclass Line():\n def __init__(self):\n self.detected = False # lane line detected in previous iteration\n self.fit = None # most recent polyno...
[ [ "matplotlib.image.imread", "matplotlib.image.imsave" ] ]
willijm92/fsri-compartments-2018
[ "8fd5ddd6f535d434df69e5853aa27db77d599ef3" ]
[ "03_Scripts/plot.py" ]
[ "# plot.py\n\n# --------------- #\n# Import Packages #\n# --------------- #\nimport os\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport seaborn as sns\n# Set seaborn as default plot config\nsns.set()\nsns.set_style(\"whitegrid\")\nfrom itertools import cycle\n\n# ---------------------------------- #\n#...
[ [ "matplotlib.pyplot.close", "pandas.read_csv", "matplotlib.pyplot.subplots", "matplotlib.pyplot.savefig" ] ]
joeriess/rasa
[ "c1bdfd0934578f515a8bf3ab708c294b809300f8" ]
[ "rasa/nlu/selectors/response_selector.py" ]
[ "import copy\nimport logging\n\nimport numpy as np\nimport tensorflow as tf\n\nfrom typing import Any, Dict, Optional, Text, Tuple, Union, List, Type\n\nfrom rasa.shared.nlu.training_data import util\nimport rasa.shared.utils.io\nfrom rasa.nlu.config import InvalidConfigError\nfrom rasa.shared.nlu.training_data.tra...
[ [ "tensorflow.math.add_n", "tensorflow.keras.metrics.Mean", "tensorflow.shape" ] ]
LUGUANSONG/i2g2i
[ "ec532f2e128301472478c3d8fe4c72929e2967a4", "ec532f2e128301472478c3d8fe4c72929e2967a4" ]
[ "combine_sg2im_neural_motifs/model.py", "combine_sg2im_neural_motifs/train_all_in_one_bbox_feature_wgan.py" ]
[ "from lib.object_detector import ObjectDetector, gather_res\nimport torch\nimport torch.nn as nn\nimport torch.nn.parallel\nfrom combine_sg2im_neural_motifs.sg2im_model import Sg2ImModel\nfrom combine_sg2im_neural_motifs.discriminators import PatchDiscriminator, AcCropDiscriminator\nimport os\nfrom collections impo...
[ [ "torch.nn.functional.interpolate", "torch.load" ], [ "torch.nn.functional.l1_loss", "torch.zeros", "torch.cat", "torch.nn.functional.cross_entropy", "torch.tensor", "torch.no_grad", "numpy.mean", "torch.save" ] ]
charzy/vocalremover
[ "9bf983ab5579c36c75447c74eec0400d78ab49f9", "9bf983ab5579c36c75447c74eec0400d78ab49f9" ]
[ "inference.py", "lib/nets.py" ]
[ "import argparse\nimport os\n\nimport cv2\nimport librosa\nimport numpy as np\nimport soundfile as sf\nimport torch\nfrom tqdm import tqdm\n\nfrom lib import dataset\nfrom lib import nets\nfrom lib import spec_utils\n\n\nclass VocalRemover(object):\n\n def __init__(self, model, device, window_size):\n sel...
[ [ "numpy.abs", "numpy.pad", "torch.load", "numpy.asarray", "numpy.clip", "torch.from_numpy", "numpy.concatenate", "numpy.ceil", "torch.no_grad", "torch.cuda.is_available", "torch.device", "numpy.angle", "numpy.exp" ], [ "torch.nn.Conv2d", "torch.cat" ...
SaynaEbrahimi/hat
[ "c1333c5f1639a011db336a99eecb75cac8738212", "c1333c5f1639a011db336a99eecb75cac8738212" ]
[ "src/run.py", "src/networks/resnet_hat.py" ]
[ "import sys,os,argparse,time\nimport numpy as np\nimport torch\n\nimport utils\n\ntstart=time.time()\n\n# Arguments\nparser=argparse.ArgumentParser(description='xxx')\nparser.add_argument('--seed',type=int,default=0,help='(default=%(default)d)')\nparser.add_argument('--experiment',default='',type=str,required=True,...
[ [ "torch.cuda.manual_seed", "numpy.random.seed", "torch.cat", "torch.manual_seed", "torch.cuda.is_available", "numpy.savetxt" ], [ "torch.nn.Sequential", "torch.nn.init.constant_", "torch.nn.ModuleList", "torch.nn.Conv2d", "torch.min", "torch.nn.Embedding", "t...
ishani-chakraborty/models
[ "367486482c5fe6fc896868edf9bbde7519deb52d", "367486482c5fe6fc896868edf9bbde7519deb52d" ]
[ "official/nlp/tasks/question_answering.py", "official/nlp/tasks/question_answering_test.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.constant", "tensorflow.keras.metrics.SparseCategoricalAccuracy", "tensorflow.reduce_mean", "tensorflow.zeros", "tensorflow.io.gfile.GFile", "tensorflow.cast", "tensorflow.data.Dataset.range", "tensorflow.keras.initializers.TruncatedNormal", "tensorflow.distribute.ge...
t2wain/machine-learning
[ "4b5e1a24fab7c4ab42f646f7785191ff3d3283ba", "4b5e1a24fab7c4ab42f646f7785191ff3d3283ba" ]
[ "tnmlearn/other/convenience.py", "tnmlearn/datasets/standard_datasets.py" ]
[ "# -*- coding: utf-8 -*-\n\n# author: Adrian Rosebrock\n# website: http://www.pyimagesearch.com\n\n# import the necessary packages\nimport numpy as np\nimport cv2\nimport sys\n\n# import any special Python 2.7 packages\nif sys.version_info.major == 2:\n from urllib import urlopen\n\n# import any special Pyt...
[ [ "numpy.median", "numpy.zeros", "numpy.abs", "numpy.float32" ], [ "numpy.hstack", "sklearn.datasets.fetch_mldata", "sklearn.model_selection.train_test_split", "sklearn.preprocessing.LabelBinarizer" ] ]
PABlond/Portfolio-CMS-for-freelancers
[ "ace9e8ed526b1605ea4a8fbbfcee9461c1e6fa4d" ]
[ "install/install.py" ]
[ "import pandas\nimport utils\nimport config\n\nvar = config.Variable()\n\n\ndf = pandas.read_excel(var.config)\npwd = var.pwd\n\ndef run():\n # Get data for gatsby-config.js\n with open(var.gatsby_config_template, \"r\") as f:\n gatsby_config = f.read()\n\n\n # Get data for src/data/content.js\n ...
[ [ "pandas.read_excel" ] ]
yonghoonlee/dymos
[ "602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4", "602109eee4a1b061444dd2b45c7b1ed0ac1aa0f4" ]
[ "dymos/transcriptions/transcription_base.py", "dymos/examples/oscillator/doc/test_doc_oscillator.py" ]
[ "from collections.abc import Sequence\n\nimport numpy as np\n\nimport openmdao.api as om\n\nfrom .common import BoundaryConstraintComp, ControlGroup, PolynomialControlGroup, PathConstraintComp\nfrom ..utils.constants import INF_BOUND\nfrom ..utils.misc import get_rate_units, _unspecified\nfrom ..utils.introspection...
[ [ "numpy.asarray", "numpy.arange", "numpy.broadcast_to", "numpy.isscalar", "numpy.prod" ], [ "matplotlib.pyplot.switch_backend", "matplotlib.pyplot.tight_layout", "matplotlib.pyplot.show" ] ]
CJL89/pandas
[ "6210077d32a9e9675526ea896e6d1f9189629d4a", "6210077d32a9e9675526ea896e6d1f9189629d4a", "6210077d32a9e9675526ea896e6d1f9189629d4a", "6210077d32a9e9675526ea896e6d1f9189629d4a", "6210077d32a9e9675526ea896e6d1f9189629d4a", "6210077d32a9e9675526ea896e6d1f9189629d4a", "6210077d32a9e9675526ea896e6d1f9189629d4...
[ "pandas/tests/plotting/test_groupby.py", "pandas/tests/indexes/multi/test_drop.py", "pandas/tests/io/json/test_deprecated_kwargs.py", "pandas/io/spss.py", "asv_bench/benchmarks/reindex.py", "pandas/tests/series/methods/test_diff.py", "pandas/tests/extension/base/casting.py", "pandas/tests/reshape/conc...
[ "\"\"\" Test cases for GroupBy.plot \"\"\"\n\n\nimport numpy as np\nimport pytest\n\nfrom pandas.compat import is_platform_windows\nimport pandas.util._test_decorators as td\n\nfrom pandas import DataFrame, Index, Series\nimport pandas._testing as tm\nfrom pandas.tests.plotting.common import TestPlotBase\n\npytestm...
[ [ "pandas.compat.is_platform_windows", "numpy.random.choice", "numpy.arange", "pandas.Index", "pandas.DataFrame", "numpy.random.normal", "numpy.random.randn", "pandas._testing.close", "pandas._testing.RNGContext" ], [ "pandas._testing.assert_produces_warning", "pandas...
rey-allan/rl
[ "6124bcfe5de8a9a316c41fb75b50a3e9babfc970" ]
[ "policy_gradient.py" ]
[ "\"\"\"Implementation of different policy gradient methods\"\"\"\nimport argparse\nimport numpy as np\nimport plot as plt\nimport random\n\nfrom collections import namedtuple\nfrom env import Action, Easy21, State\nfrom tqdm import tqdm\nfrom typing import Callable, List\n\n# For reproducibility\nrandom.seed(0)\nnp...
[ [ "numpy.dot", "numpy.random.seed", "numpy.zeros_like", "numpy.random.rand", "numpy.exp", "numpy.zeros" ] ]
Novixous/Emotion-Trainer
[ "a71d7c6ac3a0686e28ad7ee0b3a5489289ee233d" ]
[ "src/emotions_tpu.py" ]
[ "import numpy as np\nimport argparse\nimport matplotlib.pyplot as plt\nimport cv2\nfrom tensorflow.keras.models import Sequential\nfrom tensorflow.keras.layers import Dense, Dropout, Flatten\nfrom tensorflow.keras.layers import Conv2D\nfrom tensorflow.keras.optimizers import Adam\nfrom tensorflow.keras.layers impor...
[ [ "tensorflow.keras.preprocessing.image.ImageDataGenerator", "tensorflow.keras.layers.Dense", "numpy.set_printoptions", "tensorflow.keras.layers.Conv2D", "matplotlib.pyplot.subplots", "tensorflow.keras.layers.MaxPooling2D", "tensorflow.keras.optimizers.Adam", "numpy.argmax", "ten...
mitchelldaneker/deepxde
[ "62e09b62ceaab6bda2ebbd02dc30ad99c2990302", "961e7e2bf1624374e74bf8d2da6b9c3e0eb8b0cc", "62e09b62ceaab6bda2ebbd02dc30ad99c2990302" ]
[ "deepxde/model.py", "deepxde/nn/pytorch/fnn.py", "deepxde/geometry/geometry_3d.py" ]
[ "from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\n__all__ = [\"Model\", \"TrainState\", \"LossHistory\"]\n\n\nimport pickle\nfrom collections import OrderedDict\n\nimport numpy as np\n\nfrom . import config\nfrom . import display\nfrom . import gradie...
[ [ "numpy.hstack", "numpy.sum" ], [ "torch.nn.Linear", "torch.nn.ModuleList" ], [ "numpy.ceil", "numpy.roll", "numpy.vstack", "numpy.linspace" ] ]
pyguan88/EDSR_WDSR_PyTorch
[ "8212c63f0905f2126dffef7678269b83342b290b" ]
[ "src/dataloader.py" ]
[ "import sys\nimport threading\nimport queue\nimport random\nimport collections\n\nimport torch\nimport torch.multiprocessing as multiprocessing\n\n# from torch._C import _set_worker_signal_handlers, _update_worker_pids, \\\n# _remove_worker_pids, _error_if_any_worker_fails\n# from torch.utils.data.dataloader im...
[ [ "torch._C._set_worker_signal_handlers", "torch.LongTensor", "torch.multiprocessing.Queue", "torch.cuda.current_device", "torch.utils.data._utils.worker.ManagerWatchdog", "torch.manual_seed", "torch.multiprocessing.Event", "torch.set_num_threads", "torch.utils.data._utils.signal...
druzhkov-paul/T2T-ViT
[ "819c3ddc4cb6f464d4a9866d8713c7ace42ebf6c" ]
[ "models/transformer_block.py" ]
[ "# Copyright (c) [2012]-[2021] Shanghai Yitu Technology Co., Ltd.\n#\n# This source code is licensed under the Clear BSD License\n# LICENSE file in the root directory of this file\n# All rights reserved.\n\"\"\"\nBorrow from timm(https://github.com/rwightman/pytorch-image-models)\n\"\"\"\nimport torch\nimport torch...
[ [ "torch.nn.Dropout", "torch.sin", "numpy.power", "numpy.cos", "numpy.sin", "torch.nn.Linear", "torch.nn.Identity", "torch.FloatTensor", "torch.arange", "torch.cos" ] ]
madisoth/sdcflows
[ "c2f01e4f9b19dbd89ac1b54e3cfb0643fc3fd4f2" ]
[ "sdcflows/workflows/tests/test_ancillary.py" ]
[ "# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*-\n# vi: set ft=python sts=4 ts=4 sw=4 et:\n#\n# Copyright 2021 The NiPreps Developers <nipreps@gmail.com>\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the Licen...
[ [ "numpy.asanyarray" ] ]
mengkai94/training_results_v0.6
[ "43dc3e250f8da47b5f8833197d74cb8cf1004fc9", "d59320c764bd09474775e1b292f3c05c27743d24", "43dc3e250f8da47b5f8833197d74cb8cf1004fc9", "d59320c764bd09474775e1b292f3c05c27743d24", "f5bb59aa0f8b18b602763abe47d1d24d0d54b197", "43dc3e250f8da47b5f8833197d74cb8cf1004fc9", "43dc3e250f8da47b5f8833197d74cb8cf1004fc...
[ "Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/horovod/setup.py", "Fujitsu/benchmarks/resnet/implementations/mxnet/3rdparty/tvm/tests/python/contrib/test_sparse.py", "NVIDIA/benchmarks/transformer/implementations/pytorch/fairseq/models/fused_layer_norm.py", "Fujitsu/benchmarks/resnet/implementation...
[ "# Copyright 2017 Uber Technologies, Inc. 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.load_library.load_op_library", "tensorflow.sysconfig.get_link_flags", "torch.utils.ffi.create_extension", "tensorflow.sysconfig.get_lib", "tensorflow.sysconfig.get_include", "tensorflow.sysconfig.get_compile_flags" ], [ "numpy.nonzero", "numpy.apply...
bellash13/SmartAcademyPython
[ "44d0f6db0fcdcbbf1449a45b073a2b3182a19714" ]
[ "Jour 3/myNumpy.py" ]
[ "import numpy as np\na = np.array([[1,2,3,4], [5,6,7,8], [9,10,11,12]])\nprint(len(a))" ]
[ [ "numpy.array" ] ]
benelot/sea-thru
[ "e143b75eca7dcb6887a4ecc98691816e6b9d3b69" ]
[ "seathru_mono_e2e.py" ]
[ "from __future__ import absolute_import, division, print_function\n\nimport os\nimport argparse\n\nimport PIL.Image as pil\nimport rawpy\nimport torch\nfrom torchvision import transforms\nimport numpy as np\n\nimport deps.monodepth2.networks as networks\nfrom deps.monodepth2.utils import download_model_if_doesnt_ex...
[ [ "torch.load", "numpy.min", "numpy.round", "numpy.max", "torch.cuda.is_available", "torch.nn.functional.interpolate", "torch.device", "numpy.array" ] ]
Yuansurex/deep_learning
[ "b3597b414fb6fed2fbb7af8c8ac0b329c9e77417" ]
[ "ch04/gradient_2d.py" ]
[ "# coding: utf-8\n# cf.http://d.hatena.ne.jp/white_wheels/20100327/p3\nimport numpy as np\nimport matplotlib.pylab as plt\nfrom mpl_toolkits.mplot3d import Axes3D\n\n\ndef _numerical_gradient_no_batch(f, x):\n h = 1e-4 # 0.0001\n grad = np.zeros_like(x)\n\n for idx in range(x.size):\n tmp_val = x[id...
[ [ "matplotlib.pylab.show", "matplotlib.pylab.grid", "matplotlib.pylab.xlim", "numpy.arange", "matplotlib.pylab.legend", "matplotlib.pylab.draw", "matplotlib.pylab.xlabel", "matplotlib.pylab.figure", "numpy.zeros_like", "matplotlib.pylab.ylabel", "matplotlib.pylab.ylim", ...
syagev/kaggle_dsb
[ "4927f9dee59092f513cbdc02cfc5954c4fb5e7eb" ]
[ "luna16/src/candidates.py" ]
[ "from __future__ import division\nimport numpy as np\nfrom scipy.spatial.distance import pdist, squareform\nfrom scipy.sparse.csgraph import connected_components\nimport pandas as pd\nfrom tqdm import tqdm\nimport blob\nimport pickle\nimport glob\nimport os\nimport sys\nimport scipy.misc\nfrom skimage.io import imr...
[ [ "numpy.absolute", "pandas.read_csv", "pandas.DataFrame", "scipy.ndimage.measurements.center_of_mass", "scipy.ndimage.label", "scipy.spatial.distance.pdist", "numpy.mean", "scipy.spatial.distance.squareform", "numpy.zeros", "numpy.where", "scipy.sparse.csgraph.connected_...
GrimRanger/GeneticAlgorithm
[ "93fa476e82d610f8622276526baa269303a058e0", "93fa476e82d610f8622276526baa269303a058e0" ]
[ "helps/deap/deap-master/examples/ga/xkcd.py", "helps/deap/deap-master/examples/es/cma_1+l_minfct.py" ]
[ "# This file is part of DEAP.\n#\n# DEAP is free software: you can redistribute it and/or modify\n# it under the terms of the GNU Lesser General Public License as\n# published by the Free Software Foundation, either version 3 of\n# the License, or (at your option) any later version.\n#\n# DEAP is ...
[ [ "matplotlib.pyplot.plot", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.show", "matplotlib.pyplot.ylabel" ], [ "numpy.random.rand", "numpy.random.seed" ] ]
BioGeek/model-analysis
[ "03db02c21e21b092bc409c8bf263174b90c4e2ae", "03db02c21e21b092bc409c8bf263174b90c4e2ae" ]
[ "tensorflow_model_analysis/evaluators/aggregate.py", "tensorflow_model_analysis/model_util.py" ]
[ "# Lint as: python3\n# 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli...
[ [ "numpy.random.RandomState" ], [ "tensorflow.compat.v1.logging.warning", "tensorflow.keras.models.load_model", "tensorflow.tpu.experimental.initialize_tpu_system", "tensorflow.compat.v1.saved_model.load_v2" ] ]
Ottovonxu/islide
[ "5ee9954e378f0b5a0722292351cb3cc74b95c1b3", "5ee9954e378f0b5a0722292351cb3cc74b95c1b3", "5ee9954e378f0b5a0722292351cb3cc74b95c1b3" ]
[ "ctr/model.py", "inferenceLSH/classifier.py", "inferenceLSH/utils.py" ]
[ "import torch\nfrom torch import nn\n\nclass FCN(nn.Module):\n def __init__(self, dimension, num_layers=3, num_class=2):\n super(FCN, self).__init__()\n \n self.first_layer = nn.Linear(dimension, 1000)\n self.first_layer_relu = nn.ReLU()\n mid_layers = []\n for i in range(num_l...
[ [ "torch.nn.Softmax", "torch.nn.Sequential", "torch.nn.Sigmoid", "torch.nn.Linear", "torch.nn.ReLU" ], [ "torch.nn.BatchNorm1d", "torch.nn.NLLLoss", "torch.nn.functional.log_softmax", "torch.utils.data.DataLoader", "torch.exp", "torch.nn.Linear", "torch.utils.data...
pbmanis/pyqtgraph
[ "229f650adfd04053213fe6567d6308a4751a349b", "229f650adfd04053213fe6567d6308a4751a349b" ]
[ "pyqtgraph/multiprocess/remoteproxy.py", "examples/HistogramLUT.py" ]
[ "import os, time, sys, traceback, weakref\nimport numpy as np\nimport threading\ntry:\n import __builtin__ as builtins\n import cPickle as pickle\nexcept ImportError:\n import builtins\n import pickle\n\n# color printing for debugging\nfrom ..util import cprint\n\nclass ClosedError(Exception):\n \"\"...
[ [ "numpy.fromstring" ], [ "numpy.random.normal" ] ]