repo_name
stringlengths
6
130
hexsha
list
file_path
list
code
list
apis
list
possible_versions
list
nextBillyonair/DPM
[ "840ffaafe15c208b200b74094ffa8fe493b4c975", "840ffaafe15c208b200b74094ffa8fe493b4c975", "840ffaafe15c208b200b74094ffa8fe493b4c975" ]
[ "tests/test_moments.py", "dpm/transforms/power.py", "dpm/distributions/arcsine.py" ]
[ "import pytest\nfrom dpm.distributions import *\nimport dpm.utils as utils\nimport torch\n\n\ndef test_arcsine():\n model = Arcsine()\n assert model.expectation == 0.5\n assert model.median == 0.5\n assert model.variance == 0.125\n assert model.skewness == 0.\n assert model.kurtosis == -1.5\n\n ...
[ [ "torch.tensor" ], [ "torch.nn.Parameter", "torch.tensor" ], [ "torch.nn.Parameter", "torch.max", "torch.min", "torch.tensor", "torch.rand", "torch.cos" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
skyquant2/gs-quant
[ "b7e648fa7912b13ad1fd503b643389e34587aa1e", "b7e648fa7912b13ad1fd503b643389e34587aa1e" ]
[ "gs_quant/test/timeseries/test_datetime.py", "gs_quant/test/timeseries/test_statistics.py" ]
[ "\"\"\"\nCopyright 2018 Goldman Sachs.\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 applicable law or agreed to in wr...
[ [ "pandas.testing.assert_series_equal" ], [ "pandas.testing.assert_series_equal", "scipy.integrate.odeint" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "p...
Fa-Li/E3SM
[ "a91995093ec6fc0dd6e50114f3c70b5fb64de0f0", "a91995093ec6fc0dd6e50114f3c70b5fb64de0f0", "a91995093ec6fc0dd6e50114f3c70b5fb64de0f0" ]
[ "components/mpas-seaice/testing_and_setup/forcing/create_ocean_forcing.py", "components/mpas-seaice/testing_and_setup/testcases/square/operators_strain_stress_divergence/strain_stress_divergence_map.py", "components/mpas-seaice/testing_and_setup/testcases/spherical_operators/strain/average_variational_strains.p...
[ "from __future__ import print_function\nfrom netCDF4 import Dataset\nimport netCDF4\nimport numpy as np\nimport os\nimport sys\nimport ConfigParser\nimport math\nfrom scipy.interpolate import griddata\nfrom create_forcing import create_scrip_grid_file, get_mpas_grid_info, create_scrip_file_MPAS, write_scrip_in_file...
[ [ "numpy.array", "numpy.zeros", "scipy.interpolate.griddata", "numpy.ones" ], [ "numpy.amax", "matplotlib.collections.PatchCollection", "matplotlib.patches.Polygon", "numpy.amin", "matplotlib.pyplot.cla", "matplotlib.pyplot.subplots", "matplotlib.pyplot.savefig", ...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "1.7", "1.0", "0.10", "1.2", "0.14", "0.19", "1.5", "0.12", "0.17", "0.13", "1.6", "1.4", "1.9", "1.3", "1.10", "0.15", "0.18", "0.16"...
minkowski0125/multilayer-gcn-simulation
[ "15a4cd29d819246549148e3a32c99f3b8589f3b4" ]
[ "main.py" ]
[ "import json\nfrom utils import *\nfrom config import args\nfrom train import train\nfrom torch.utils.tensorboard import SummaryWriter\n\nif __name__ == '__main__':\n set_seed(args.seed)\n\n series = []\n if args.dataset == 'pubmed':\n graphs, features, adjs, labels = load_pubmed_data({\n ...
[ [ "torch.utils.tensorboard.SummaryWriter" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
SatyaSiddharthDash/headlinegen
[ "ec11cb4b4dd4e6dce553c787cf31670a83f1c650" ]
[ "data_preprocessing_scripts/preprocess.py" ]
[ "import pandas as pd\nfrom sklearn.model_selection import train_test_split\n\n\nrandom_state = 100\n\ndata = pd.read_csv(\"~/headlinegen/data/nytime_front_page.csv\")\ndata['title'] = data['title'].apply(lambda x: ' '.join(x.split(' ')[:-5]))\n\nlens = data[\"content\"].apply(lambda x: len(x.split(\" \"))).nlargest...
[ [ "pandas.read_csv" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.1", "1.5", "1.2", "1.3" ], "scipy": [], "tensorflow": [] } ]
duypham2108/stLearn
[ "91b6bae91b29aba8b4f055bf92da13f1558ddbe8", "91b6bae91b29aba8b4f055bf92da13f1558ddbe8" ]
[ "stlearn/tools/microenv/cci/base_grouping.py", "stlearn/tools/microenv/cci/perm_utils.py" ]
[ "\"\"\" Performs LR analysis by grouping LR pairs which having hotspots across\n similar tissues.\n\"\"\"\n\nfrom stlearn.pl import het_plot\nfrom sklearn.cluster import DBSCAN, AgglomerativeClustering\nfrom anndata import AnnData\nfrom tqdm import tqdm\nimport numpy as np\nimport pandas as pd\nimport matplotlib...
[ [ "numpy.array", "numpy.unique", "numpy.quantile", "matplotlib.pyplot.subplots", "pandas.DataFrame", "sklearn.cluster.DBSCAN", "numpy.apply_along_axis", "numpy.mean", "numpy.argmax", "numpy.argsort", "sklearn.cluster.AgglomerativeClustering", "matplotlib.pyplot.show",...
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "nump...
MarkDaoust/agents
[ "00ddf75a8a35a26a03a9323b78d95c06211b5b3f" ]
[ "tf_agents/bandits/agents/utils_test.py" ]
[ "# coding=utf-8\n# Copyright 2018 The TF-Agents 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 b...
[ [ "tensorflow.compat.v1.enable_v2_behavior", "tensorflow.norm", "tensorflow.constant", "tensorflow.reduce_sum", "tensorflow.test.main", "tensorflow.ones", "numpy.array", "numpy.zeros", "numpy.sum" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10", "2.7", "1.12", "2.6", "2.2", "1.13", "2.3", "2.4", "1.4", "2.9", "1.5", "1.7", "2.5", "0.12", "1.0", "2.8", "1...
abhinavralhan/dask
[ "e840ba38eadfa93c3b9959347f0a43c1279a94ab", "e840ba38eadfa93c3b9959347f0a43c1279a94ab", "e840ba38eadfa93c3b9959347f0a43c1279a94ab" ]
[ "dask/dataframe/tests/test_hashing.py", "dask/dataframe/rolling.py", "dask/dataframe/categorical.py" ]
[ "import numpy as np\nimport pandas as pd\nimport pandas.util.testing as tm\n\nimport pytest\n\nfrom dask.dataframe.hashing import hash_pandas_object\nfrom dask.dataframe.utils import assert_eq\n\n\n@pytest.mark.parametrize('obj', [\n pd.Series([1, 2, 3]),\n pd.Series([1.0, 1.5, 3.2]),\n pd.Series([1.0, 1.5...
[ [ "pandas.util.testing.makeTimeDataFrame", "numpy.testing.assert_equal", "pandas.util.testing.makeMissingDataframe", "pandas.Series", "pandas.util.testing.makeTimeSeries", "pandas.util.testing.makeMixedDataFrame", "pandas.Index", "pandas.util.testing.assert_series_equal", "pandas...
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "1.4", "1.3", "0.19", "1.1", "1.5", "0.24", "0.20", "1.0", "0.25", "1.2" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "...
alechfho/dog_breed
[ "2e2f7083c859fdb250f5ba920246b9d2f8168b4d" ]
[ "dataset_processing.py" ]
[ "import numpy as np\nimport pandas as pd\n\n\ndef partition_images(df_labels, identifier_label=None, label_postfix='postfix', target_dir='./', filter_identity=[],\n dev_portion=0.20, encoding_strategy='vgg19_4096'):\n if np.size(filter_identity) == 0:\n filter_identity = df_labels[iden...
[ [ "numpy.ceil", "numpy.size", "pandas.DataFrame" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] } ]
ebothmann/heppyplot
[ "dab969879391f70a91c34f71482a9691b9c80141" ]
[ "heppyplot/plot_helpers.py" ]
[ "import math\n\nimport matplotlib.pyplot as plt\nimport matplotlib.gridspec as gridspec\nimport matplotlib.transforms as mtransforms\nfrom mpl_toolkits.axes_grid.anchored_artists import AnchoredText\n\ndef setup_axes(diff=False):\n fig = plt.figure()\n axes = []\n if diff:\n gs = gridspec.GridSpec(2...
[ [ "matplotlib.pyplot.subplot", "matplotlib.gridspec.GridSpec", "matplotlib.pyplot.rcParams.update", "matplotlib.transforms.interval_contains", "matplotlib.pyplot.figure" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
SeanNaren/transformers
[ "8d43c71a1ca3ad322cc45008eb66a5611f1e017e", "8d43c71a1ca3ad322cc45008eb66a5611f1e017e" ]
[ "examples/tensorflow/text-classification/run_text_classification.py", "src/transformers/models/speech_to_text/modeling_speech_to_text.py" ]
[ "#!/usr/bin/env python\n# coding=utf-8\n# Copyright 2021 The HuggingFace Inc. team. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache....
[ [ "tensorflow.keras.losses.SparseCategoricalCrossentropy", "tensorflow.keras.losses.MeanSquaredError", "numpy.arange", "numpy.squeeze", "tensorflow.ragged.constant", "tensorflow.keras.optimizers.Adam", "numpy.random.permutation", "numpy.argmax", "numpy.array" ], [ "torch....
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10", "2.7", "2.2", "2.3", "2.4", "2.5", "2.6" ] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
ParticularMiner/dask
[ "f40ef97ac802efb6d8bef03b03c6357cf871bc0a" ]
[ "dask/dataframe/io/parquet/fastparquet.py" ]
[ "import copy\nimport pickle\nimport threading\nimport warnings\nfrom collections import OrderedDict, defaultdict\nfrom contextlib import ExitStack\n\nimport numpy as np\nimport pandas as pd\nimport tlz as toolz\nfrom packaging.version import parse as parse_version\n\nfrom dask.core import flatten\n\ntry:\n impor...
[ [ "pandas.Timestamp", "pandas.CategoricalDtype", "pandas.Series" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "0.24", "1.0", "0.25", "1.2" ], "scipy": [], "tensorflow": [] } ]
facebookresearch/pythia
[ "079740bee4b357a7b1b866d35e2f1fad6edba8a4" ]
[ "mmf/modules/encoders.py" ]
[ "# Copyright (c) Facebook, Inc. and its affiliates.\nimport importlib\nimport logging\nimport os\nimport pickle\nimport re\nfrom collections import OrderedDict\nfrom copy import deepcopy\nfrom dataclasses import asdict, dataclass\nfrom enum import Enum\nfrom typing import Any\n\nimport torch\nimport torchvision\nfr...
[ [ "torch.nn.Sequential", "torch.load", "torch.cat", "torch.nn.Conv2d", "torch.from_numpy", "torch.nn.Embedding", "torch.nn.Linear", "torch.nn.Identity", "torch.nn.functional.relu", "torch.prod", "torch.flatten", "torch.hub.load", "torch.hub.load_state_dict_from_ur...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
ZPAVelocity/DataStructureExercise
[ "39b1cce859e5c46599b3a6e69ac80ade5920aa34" ]
[ "DynamicProgramming/matrixChainMultiplication.py" ]
[ "import sys\nimport numpy as np\n\n\ndef main():\n p = [30, 35, 15, 5, 10, 20, 25]\n m, s = matrixChainOrder(p)\n \n print('m')\n for i in m:\n print(i)\n print('s')\n for i in s:\n print(i)\n\n\ndef matrixMultiply(A, B):\n if A.shape[1] != B.shape[0]:\n print('incompati...
[ [ "numpy.array" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
IngrojShrestha/language
[ "674a3d016b1e17658e301e8d9bdfa63e3d3f5d15" ]
[ "language/bert_extraction/steal_bert_qa/data_generation/preprocess_thief_dev_squad.py" ]
[ "# coding=utf-8\n# Copyright 2018 The Google AI Language Team 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# Unl...
[ [ "numpy.random.seed" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
tangzhiyi11/Paddle
[ "790cadd1f06fabeadc4b9aeca5622ea50985b990", "790cadd1f06fabeadc4b9aeca5622ea50985b990" ]
[ "python/paddle/fluid/tests/unittests/test_egr_python_api.py", "python/paddle/fluid/tests/unittests/dygraph_to_static/test_declarative.py" ]
[ "# Copyright (c) 2021 PaddlePaddle 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...
[ [ "numpy.random.random", "numpy.array_equal", "numpy.ones", "numpy.random.rand", "numpy.zeros", "numpy.random.randint" ], [ "numpy.ones" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
Efreeto/face-alignment
[ "d496866ac3d66c8353ba3e0305f16ac8a2ccc017" ]
[ "face_alignment/FaceLandmarksDataset.py" ]
[ "import torch\nfrom torch.utils.data import Dataset\nfrom skimage import io, color, transform\nimport torchvision\nimport os, glob\nimport numpy as np\nimport random\nfrom scipy import ndimage\nfrom PIL import Image\nimport torch.nn.functional as F\n\nfrom . import utils\n\n#########################################...
[ [ "numpy.dot", "torch.Tensor", "numpy.fliplr", "torch.from_numpy", "scipy.ndimage.rotate", "numpy.ones", "numpy.zeros", "numpy.loadtxt", "numpy.random.randint" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "1.7", "1.0", "0.10", "1.2", "0.14", "0.19", "1.5", "0.12", "0.17", "0.13", "1.6", "1.4", "1.9", "1.3", "1.10", "0.15", "0.18", "0.16"...
PNNL-Comp-Mass-Spec/CRNT4SBML
[ "20406f452863f35f766b504fe2b3f3ab034b62fe", "20406f452863f35f766b504fe2b3f3ab034b62fe" ]
[ "crnt4sbml/safety_wrap.py", "tests/nuts_script.py" ]
[ "import os\nimport pickle\nimport numpy\nimport antimony\nimport roadrunner\nimport rrplugins\nimport sys\n\nroadrunner.Logger.setLevel(roadrunner.Logger.LOG_ERROR)\nroadrunner.Logger.disableLogging()\nroadrunner.Logger.disableConsoleLogging()\nroadrunner.Logger.disableFileLogging()\nrrplugins.setLogLevel('error')\...
[ [ "numpy.zeros", "numpy.save" ], [ "pandas.concat", "numpy.linspace", "numpy.vstack", "numpy.save", "scipy.integrate.odeint", "pandas.DataFrame", "numpy.array", "numpy.flip", "matplotlib.rc" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "1.3", "0.19", "1.1", "1.5", "0.24", "0.20", "1.0", "...
TimeTraveller-San/FairGAN
[ "526c2937714fc322714db54dc6a3f392f2c88e18" ]
[ "we.py" ]
[ "from __future__ import print_function, division\nimport re\nimport sys\nimport numpy as np\nimport scipy.sparse\nimport codecs\nfrom sklearn.decomposition import PCA\nif sys.version_info[0] < 3:\n import io\n open = io.open\nelse:\n unicode = str\n\"\"\"\nTools for debiasing word embeddings\n\nMan is to C...
[ [ "numpy.median", "numpy.linalg.norm", "numpy.mean", "numpy.load", "numpy.array", "sklearn.decomposition.PCA" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
seanlam97/PDK_Generator
[ "15c1f4f56575f8e21ea874443d06ef740ccb5aa5", "15c1f4f56575f8e21ea874443d06ef740ccb5aa5", "15c1f4f56575f8e21ea874443d06ef740ccb5aa5", "15c1f4f56575f8e21ea874443d06ef740ccb5aa5" ]
[ "PDK_Generator/inverse_design_y_branch/lumopt/geometries/parameterized_geometry.py", "PDK_Generator/inverse_design_y_branch/lumopt/geometries/geometry.py", "PDK_Generator/inverse_design_y_branch/lumopt/optimizers/generic_optimizers.py", "PDK_Generator/design_automation/polarization_splitter_rotator/psr_bitape...
[ "import numpy as np\nimport inspect\n\nfrom lumopt.geometries.geometry import Geometry\n\nclass ParameterizedGeometry(Geometry):\n \"\"\" \n Defines a parametrized geometry using any of the built-in geometric structures available in the FDTD CAD.\n Users must provide a Python function with the sign...
[ [ "numpy.array" ], [ "numpy.concatenate", "numpy.array" ], [ "scipy.optimize.minimize" ], [ "matplotlib.pyplot.legend", "matplotlib.pyplot.title", "numpy.linspace", "matplotlib.pyplot.plot", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.show", "matplotlib.pyp...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "0.13", "1.6", "...
szhaofelicia/sgan
[ "ead42d4bb3b1278c4c9ffcae8fa9c2dc036a52ff", "ead42d4bb3b1278c4c9ffcae8fa9c2dc036a52ff" ]
[ "vis/visualize_court.py", "sgan/data/trajectories_basketball_0427.py" ]
[ "import numpy as np\n# import plotly\nimport plotly.graph_objects as go\n\n\n\ndef draw_plotly_half_court(fig, fig_width=600, margins=10):\n # From: https://community.plot.ly/t/arc-shape-with-path/7205/5\n def ellipse_arc(x_center=0.0, y_center=0.0, a=10.5, b=10.5, start_angle=0.0, end_angle=2 * np.pi, N=200,...
[ [ "numpy.cos", "numpy.linspace", "numpy.sin" ], [ "torch.LongTensor", "numpy.polyfit", "numpy.linspace", "torch.cat", "numpy.asarray", "numpy.unique", "numpy.around", "numpy.cumsum", "torch.from_numpy", "numpy.concatenate", "numpy.transpose", "numpy.ze...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
ChristophReich1996/Mode_Collapse
[ "937ee8bf96510fbf4070fc7e14b78276ab036b8c" ]
[ "utils.py" ]
[ "from typing import Optional\n\nimport torch\nimport torch.nn as nn\nfrom torch.nn.utils import spectral_norm\nimport numpy as np\n\n\ndef get_generator(latent_size: int, use_spectral_norm: bool) -> nn.Module:\n \"\"\"\n Returns the generator network.\n :param latent_size: (int) Size of the latent input ve...
[ [ "torch.normal", "torch.ones", "torch.empty", "torch.sin", "torch.randperm", "torch.nn.Tanh", "torch.nn.Linear", "torch.nn.LeakyReLU", "torch.cos" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
galad-loth/LearnDescriptor
[ "30552a699597415a13793eb85d21b5e33a296a99" ]
[ "symbols/symbol_ssdh.py" ]
[ "# -*- coding: utf-8 -*-\r\n\"\"\"\r\nCreated on Tue Mar 07 21:00:11 2017\r\n\r\n@author: galad-loth\r\n\"\"\"\r\nimport numpy as npy\r\nimport mxnet as mx\r\n\r\nclass HashLossLayer(mx.operator.NumpyOp):\r\n def __init__(self, w_bin,w_balance):\r\n super(HashLossLayer, self).__init__(False)\r\n se...
[ [ "numpy.mean" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
stevenvandenberghe/pandas
[ "8cbee356da1161c56c64f6f89cb5548bcadc3e44" ]
[ "pandas/tests/reshape/test_tile.py" ]
[ "import os\nimport pytest\n\nimport numpy as np\nfrom pandas.compat import zip\n\nfrom pandas import (Series, isna, to_datetime, DatetimeIndex,\n Timestamp, Interval, IntervalIndex, Categorical,\n cut, qcut, date_range)\nimport pandas.util.testing as tm\nfrom pandas.api.types i...
[ [ "pandas.to_datetime", "pandas.Series", "numpy.linspace", "numpy.asarray", "pandas.util.testing.assert_index_equal", "numpy.random.randn", "pandas.isna", "pandas.util.testing.assert_numpy_array_equal", "numpy.allclose", "pandas.util.testing.assert_categorical_equal", "nu...
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] } ]
Jokeren/RzLinear
[ "d318d95254cd5c3dcf814774d22dc71179450aa0" ]
[ "python/rz_linear/impl/RzLinearBackward.py" ]
[ "from typing import Tuple\nimport torch\nimport triton\nimport triton.language as tl\n\n\ndef rz_linear_backward_tl(input: torch.tensor, hashed_weight: torch.tensor, output_grad: torch.tensor,\n M: int, K: int, N: int, H: int,\n R3: int, R2: int, R1: int, R0: int,\n...
[ [ "torch.empty", "torch.zeros" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
cdgreenidge/gpytorch
[ "d4cc610963bd812052e43e3aed84fb8b2ec94aa6", "d4cc610963bd812052e43e3aed84fb8b2ec94aa6", "d4cc610963bd812052e43e3aed84fb8b2ec94aa6" ]
[ "test/lazy/test_added_diag_lazy_tensor.py", "test/lazy/test_toeplitz_lazy_tensor.py", "gpytorch/lazy/lazy_tensor.py" ]
[ "#!/usr/bin/env python3\n\nimport torch\nimport unittest\nfrom gpytorch.lazy import NonLazyTensor, DiagLazyTensor, AddedDiagLazyTensor\nfrom test.lazy._lazy_tensor_test_case import LazyTensorTestCase\n\n\nclass TestAddedDiagLazyTensor(LazyTensorTestCase, unittest.TestCase):\n seed = 0\n should_test_sample = T...
[ [ "torch.randn", "torch.tensor" ], [ "torch.tensor" ], [ "torch.autograd.enable_grad", "torch.Size", "torch.cat", "torch.eye", "torch.is_tensor", "torch.tensor", "torch.arange", "torch.autograd.grad" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
UKPLab/emnlp2019-dualgraph
[ "0c58fb7f3ad3b9da3b92b2d2841558807fc79fd0" ]
[ "onmt/models/model_saver.py" ]
[ "import os\nimport torch\nimport torch.nn as nn\n\nfrom collections import deque\nfrom onmt.utils.logging import logger\n\nfrom copy import deepcopy\n\n\ndef build_model_saver(model_opt, opt, model, fields, optim):\n model_saver = ModelSaver(opt.save_model,\n model,\n ...
[ [ "torch.save" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
hsk9767/mesh_rcnn_copy
[ "6dd4d9ea8af33c03a084e34c7d16eeaddfe924ae" ]
[ "meshrcnn/modeling/roi_heads/roi_heads.py" ]
[ "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\nfrom typing import Dict\nimport torch\nfrom detectron2.layers import ShapeSpec, cat\nfrom detectron2.modeling import ROI_HEADS_REGISTRY\nfrom detectron2.modeling.poolers import ROIPooler\nfrom detectron2.modeling.roi_heads.fast_rcnn import Fas...
[ [ "torch.no_grad" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
J-Massey/postproc
[ "4552b0ad79072f5d217cf62632c08617ea3d2d82", "4552b0ad79072f5d217cf62632c08617ea3d2d82" ]
[ "circular_cylinder/figures/plot.py", "flat_plate/res_test.py" ]
[ "import matplotlib.pyplot as plt\nimport seaborn as sns\nimport numpy as np\nfrom itertools import product\nimport os\nfrom mpl_toolkits.axes_grid1 import make_axes_locatable\nfrom matplotlib import ticker, cm\nfrom mpl_toolkits.axes_grid1 import make_axes_locatable\nfrom matplotlib.ticker import FormatStrFormatter...
[ [ "numpy.sqrt", "numpy.meshgrid", "numpy.arange", "matplotlib.pyplot.subplots", "matplotlib.pyplot.savefig", "numpy.cos", "numpy.sin", "matplotlib.pyplot.colorbar", "numpy.mean", "matplotlib.pyplot.close", "matplotlib.colors.LinearSegmentedColormap.from_list", "numpy....
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
zhengzx-nlp/REDER
[ "7035e089e4d30b8090a2c3caa937b1e0ba27cedc" ]
[ "fairseq/modules/fairseq_dropout.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 logging\nfrom typing import List, Optional\n\nimport torch.nn as nn\nimport torch.nn.functional as F\n\n\nlogger = logging.ge...
[ [ "torch.nn.functional.dropout" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
EricPedley/FCRN-DepthPrediction
[ "93aaed329e9e071c6d5c5a59e77a73a09684b156" ]
[ "tensorflow/network.py" ]
[ "import numpy as np\nimport tensorflow.compat.v1 as tf\ntf.disable_v2_behavior()\n\n# ----------------------------------------------------------------------------------\n# Commonly used layers and operations based on ethereon's implementation \n# https://github.com/ethereon/caffe-tensorflow\n# Slight modifications ...
[ [ "tensorflow.compat.v1.nn.dropout", "tensorflow.compat.v1.concat", "tensorflow.compat.v1.add_n", "tensorflow.compat.v1.reshape", "tensorflow.compat.v1.nn.avg_pool", "tensorflow.compat.v1.constant_initializer", "numpy.load", "tensorflow.compat.v1.nn.local_response_normalization", ...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
arjunchandra/continuous-rl
[ "8f3c655c6a4b2e9d15a6b052e5466c0a75191a08" ]
[ "code/nn.py" ]
[ "\"\"\"Some nn utilities.\"\"\"\nimport torch\nfrom abstract import ParametricFunction\n\ndef copy_buffer(net: ParametricFunction, target_net: ParametricFunction):\n \"\"\"Copy all buffers from net to target_net.\"\"\"\n with torch.no_grad():\n for target_buf, buf in zip(target_net.buffers(), net.buffe...
[ [ "torch.no_grad" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
sotudian/Natural-Language-Processing
[ "61ba2ac78e440683519d2121ca2b29a17277e46b" ]
[ "LSTM for language modeling/Question2_Part_1_To_2.py" ]
[ "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nTrain the language model on texts from the file pride And Prejudice. Before using it to train the language model,\nyou need to first sentence segment, then tokenize, then lower case each line of the file using Spacy. Append \nstart-of-sentence token ’<s>’ an...
[ [ "torch.nn.CrossEntropyLoss", "torch.nn.Dropout", "torch.nn.functional.softmax", "torch.load", "torch.nn.LSTM", "torch.from_numpy", "torch.nn.Embedding", "torch.nn.Linear", "torch.no_grad", "torch.cuda.is_available", "numpy.array", "torch.save" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
ChenRocks/Distill-BERT-Textgen
[ "a3b0b22ce16febc4d3ffdbd8791ea3374110a892" ]
[ "dump_teacher_hiddens.py" ]
[ "\"\"\"\nCopyright (c) Microsoft Corporation.\nLicensed under the MIT license.\n\nprecompute hidden states of CMLM teacher to speedup KD training\n\"\"\"\nimport argparse\nimport io\nimport os\nimport shelve\n\nimport numpy as np\nimport torch\nfrom torch.utils.data import Dataset, DataLoader\nfrom tqdm import tqdm...
[ [ "torch.ones", "torch.load", "torch.zeros", "torch.utils.data.DataLoader", "torch.eye", "torch.nn.Linear", "torch.no_grad", "torch.stack", "torch.save" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
mikimaus78/ml_monorepo
[ "b2c2627ff0e86e27f6829170d0dac168d8e5783b", "b2c2627ff0e86e27f6829170d0dac168d8e5783b", "b2c2627ff0e86e27f6829170d0dac168d8e5783b", "b2c2627ff0e86e27f6829170d0dac168d8e5783b", "b2c2627ff0e86e27f6829170d0dac168d8e5783b" ]
[ "trading-with-python/util/trendy.py", "BiBloSA/exp_SQuAD_sim/src/nn_utils/baselines/block_attention.py", "ufcnn-keras/models/a3c/game_ac_network_v2.py", "pymf/pymf/svd.py", "pymf/pymf/cmde.py" ]
[ "import numpy as np\nfrom filter import movingaverage\n\ndef gentrends(x, window=1/3.0, charts=True):\n \"\"\"\n Returns a Pandas dataframe with support and resistance lines.\n\n :param x: One-dimensional data set\n :param window: How long the trendlines should be. If window < 1, then it\n ...
[ [ "numpy.isnan", "numpy.ones", "matplotlib.pyplot.plot", "numpy.append", "numpy.insert", "matplotlib.pyplot.grid", "numpy.array", "numpy.zeros", "numpy.where", "matplotlib.pyplot.show", "matplotlib.pyplot.figure" ], [ "tensorflow.concat", "tensorflow.zeros", ...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10", "1.12", "1.4", "1.13", "1.5", "1.7", "0.12", "1.0", "1...
jbushago/GamestonkTerminal
[ "73a2b419664bf62bbdc59aa8402c8cd6a913a518", "ab4de1dd70fba866930150e440a03e461a6ca6a8", "73a2b419664bf62bbdc59aa8402c8cd6a913a518", "ab4de1dd70fba866930150e440a03e461a6ca6a8" ]
[ "gamestonk_terminal/stocks/insider/openinsider_view.py", "gamestonk_terminal/stocks/insider/finviz_view.py", "gamestonk_terminal/stocks/due_diligence/finnhub_model.py", "gamestonk_terminal/common/quantitative_analysis/qa_model.py" ]
[ "import itertools\nimport logging\nimport os\nimport textwrap\nfrom typing import List\n\nimport numpy as np\nimport pandas as pd\nimport requests\nfrom bs4 import BeautifulSoup\n\nfrom gamestonk_terminal.decorators import log_start_end\nfrom gamestonk_terminal.helper_funcs import (\n export_data,\n patch_pan...
[ [ "pandas.set_option", "pandas.DataFrame", "numpy.unique" ], [ "pandas.DataFrame.from_dict" ], [ "pandas.DataFrame" ], [ "scipy.stats.kstest", "scipy.stats.norm.ppf", "numpy.log", "numpy.sqrt", "scipy.stats.norm.pdf", "scipy.stats.skewtest", "pandas.DataFr...
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "nump...
drkostas/COSC525-Project2
[ "a33c786621e6047b0a586c7c3a3b5b85cb51fd6d", "a33c786621e6047b0a586c7c3a3b5b85cb51fd6d" ]
[ "main.py", "main_project1.py" ]
[ "import traceback\nimport argparse\nimport numpy as np\nfrom src import NeuralNetwork, generateExample, getTensorExample\nfrom typing import *\n\n\ndef get_args() -> argparse.Namespace:\n \"\"\"Set-up the argument parser\n\n Returns:\n argparse.Namespace:\n \"\"\"\n parser = argparse.ArgumentPars...
[ [ "numpy.concatenate", "numpy.array" ], [ "numpy.array" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
suo/pytext
[ "400c80b4c040de12028970a85ce0af864931e0f4" ]
[ "pytext/trainers/trainer.py" ]
[ "#!/usr/bin/env python3\n# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved\n\nimport itertools\nimport time\nfrom contextlib import ExitStack as contextlib_ExitStack\nfrom typing import Any, Iterable, List, Optional, Tuple\n\nimport torch\nfrom pytext.common.constants import BatchContext, Stage...
[ [ "torch.no_grad", "torch.cuda.current_device" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
a1600012888/fairseq
[ "dbd2cd08fc396f919d2e737513095fcb966896c0" ]
[ "fairseq/criterions/masked_adlm.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.functional as F\n\nfrom fairseq import metrics, utils\nfrom fairseq.criterions import F...
[ [ "torch.nn.functional.embedding", "torch.mean", "torch.exp", "torch.no_grad", "torch.ones_like" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
terra-submersa/opensfm-camera-coverage
[ "a9ad2bff799a5d0d07d7900fc7d1bf10bc489632" ]
[ "src/odm_report_shot_coverage/models/reconstruction.py" ]
[ "import json\nimport logging\n\nimport geojson\nimport numpy as np\nfrom tqdm import tqdm\nfrom scipy import stats\n\nfrom odm_report_shot_coverage.models.camera import Camera, json_parse_camera\nfrom odm_report_shot_coverage.models.shot import Shot, shot_boundaries_from_points, Boundaries\nfrom odm_report_shot_cov...
[ [ "scipy.stats.linregress", "numpy.abs" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "0.13", "1.6", "0.14", "1.10", "0.15", "1.4", "0.16", "1.9", "0.19", "1.5", "0.18", "1.2", "1.7", "0.12", "1.0", "0.17", "1.3", "1.8" ...
SeongSuKim95/ReID-Baseline-swin
[ "f30db86eb2690c20c4fbb0189eb52b57358705df" ]
[ "demo.py" ]
[ "import argparse\nimport scipy.io\nimport torch\nimport numpy as np\nimport os\nfrom torchvision import datasets\nimport matplotlib\nmatplotlib.use('agg')\nimport matplotlib.pyplot as plt\n#######################################################################\n# Evaluate\nparser = argparse.ArgumentParser(descripti...
[ [ "matplotlib.pyplot.imshow", "torch.mm", "matplotlib.pyplot.title", "matplotlib.use", "matplotlib.pyplot.imread", "numpy.in1d", "numpy.argwhere", "numpy.intersect1d", "numpy.append", "matplotlib.pyplot.subplot", "torch.FloatTensor", "numpy.argsort", "matplotlib.p...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
erinaldi/MetaRL
[ "6dfb8d2e63a1802ca7ef9c28f6ab1a758d07f871" ]
[ "rlkit/envs/point_robot.py" ]
[ "import numpy as np\nfrom gym import spaces\nfrom gym import Env\n\nfrom . import register_env\n\n\n@register_env('point-robot')\nclass PointEnv(Env):\n \"\"\"\n point robot on a 2-D plane with position control\n tasks (aka goals) are positions on the plane\n\n - tasks sampled from unit square\n - ...
[ [ "numpy.random.seed", "numpy.linspace", "numpy.cos", "numpy.stack", "numpy.random.shuffle", "numpy.sin", "numpy.copy", "numpy.random.uniform", "numpy.array" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
sejongjoa/openpilot_083
[ "301500dff6bd53e64257898cac939b24f56befac" ]
[ "selfdrive/locationd/locationd.py" ]
[ "#!/usr/bin/env python3\nimport json\nimport numpy as np\nimport sympy as sp\nimport cereal.messaging as messaging\nfrom cereal import log\nfrom common.params import Params\nimport common.transformations.coordinates as coord\nfrom common.transformations.orientation import ecef_euler_from_ned, \\\n ...
[ [ "numpy.diag", "numpy.radians", "numpy.sqrt", "numpy.eye", "numpy.linalg.norm", "numpy.ones", "numpy.concatenate", "numpy.mean", "numpy.mod", "numpy.array", "numpy.zeros", "numpy.diagonal" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
redhat6/cornac
[ "856cf0f546a0dc6b46f407128d89ef2534994c60", "856cf0f546a0dc6b46f407128d89ef2534994c60" ]
[ "cornac/models/hft/recom_hft.py", "cornac/models/ncf/recom_gmf.py" ]
[ "# Copyright 2018 The Cornac 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...
[ [ "numpy.arange" ], [ "tensorflow.Graph", "tensorflow.nn.sigmoid", "numpy.random.seed", "numpy.arange", "tensorflow.placeholder", "tensorflow.compat.v1.logging.set_verbosity", "tensorflow.ConfigProto", "tensorflow.global_variables_initializer", "tensorflow.initializers.le...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10", "1.12", "1.4", "1.13", "1.5", "1.7", "0.12", "1.0", "1...
ryanloney/openvino-1
[ "4e0a740eb3ee31062ba0df88fcf438564f67edb7", "4e0a740eb3ee31062ba0df88fcf438564f67edb7", "4e0a740eb3ee31062ba0df88fcf438564f67edb7", "4e0a740eb3ee31062ba0df88fcf438564f67edb7", "4e0a740eb3ee31062ba0df88fcf438564f67edb7", "4e0a740eb3ee31062ba0df88fcf438564f67edb7", "4e0a740eb3ee31062ba0df88fcf438564f67edb...
[ "tools/mo/unit_tests/mo/load/loader_test.py", "tools/mo/unit_tests/mo/ops/dft_signal_size_canonicalization_test.py", "tools/mo/unit_tests/mo/middle/InterpolateSequenceToInterpolate_test.py", "tools/mo/openvino/tools/mo/ops/constant_fill.py", "tools/mo/openvino/tools/mo/ops/prelu.py", "tools/mo/openvino/to...
[ "# Copyright (C) 2018-2022 Intel Corporation\n# SPDX-License-Identifier: Apache-2.0\n\nimport unittest\n\nimport numpy as np\n\nfrom openvino.tools.mo.load.tf.loader import graph_or_sub_graph_has_nhwc_ops\nfrom unit_tests.utils.graph import build_graph, result, regular_op, const, connect_front\n\n\nclass TFLoaderTe...
[ [ "numpy.random.randn" ], [ "numpy.array_equal" ], [ "numpy.array" ], [ "numpy.full" ], [ "numpy.all" ], [ "numpy.reshape" ], [ "numpy.array" ], [ "numpy.ones" ], [ "numpy.uint32", "numpy.bool", "numpy.uint8", "numpy.float16", "nump...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...
hades208002/mdp-project
[ "c242a8d00412cc3772d298986977f6acc47002ee", "c242a8d00412cc3772d298986977f6acc47002ee" ]
[ "client_server_test/NEWGUI.py", "client_server_test/LocalModel.py" ]
[ "from tkinter import *\nfrom tkinter import ttk\nimport tkinter.filedialog as fd\nimport pandas as pd\nfrom LocalModelCommunication import LocalModelCommunication\nfrom APP import APP\n\nclass GUI(object):\n\tdef __init__(self):\n\t\t# overall\n\t\tself.tabControl = None\n\t\tself.tab_step1 = None\n\t\tself.tab_ste...
[ [ "pandas.read_csv" ], [ "sklearn.ensemble.BaggingClassifier", "pandas.concat", "sklearn.naive_bayes.GaussianNB", "sklearn.linear_model.LogisticRegression", "sklearn.ensemble.RandomForestClassifier", "sklearn.ensemble.ExtraTreesClassifier", "sklearn.discriminant_analysis.LinearDi...
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.1", "1.5", "1.2", "1.3" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "1.3", ...
sidneyp/bidirectional
[ "d3d1dbb727e5a25b4980646f1eb500245072f079", "d3d1dbb727e5a25b4980646f1eb500245072f079" ]
[ "cifar_cnn_three_conv.py", "mnist_nn_four_hidden.py" ]
[ "import tensorflow as tf\nimport keras\nfrom keras.datasets import cifar10\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport matplotlib.gridspec as gridspec\nimport os\nimport sys\nimport csv\nimport utils_csv\nimport utils_tf as utils\nfrom cleverhans.utils_tf import model_train, model_eval\nfrom clever...
[ [ "tensorflow.nn.softmax_cross_entropy_with_logits", "tensorflow.cast", "numpy.random.random_sample", "tensorflow.nn.conv2d_transpose", "tensorflow.nn.sigmoid_cross_entropy_with_logits", "tensorflow.train.AdamOptimizer", "numpy.exp", "tensorflow.summary.scalar", "tensorflow.nn.co...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10" ] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10" ] } ]
kathryn-garside/PyDMD-fork
[ "0158c4144019f0899ce34ec44286b0f700c56b38", "0158c4144019f0899ce34ec44286b0f700c56b38", "0158c4144019f0899ce34ec44286b0f700c56b38" ]
[ "pydmd/hankeldmd.py", "tests/test_dmd.py", "pydmd/dmd_modes_tuner.py" ]
[ "\"\"\"\nDerived module from dmdbase.py for hankel dmd.\n\nReference:\n- H. Arbabi, I. Mezic, Ergodic theory, dynamic mode decomposition, and\ncomputation of spectral properties of the Koopman operator. SIAM Journal on\nApplied Dynamical Systems, 2017, 16.4: 2096-2126.\n\"\"\"\nfrom copy import copy\n\nimport numpy...
[ [ "numpy.split", "numpy.isnan", "numpy.full", "numpy.mean", "numpy.average" ], [ "numpy.sqrt", "numpy.linspace", "numpy.squeeze", "numpy.all", "numpy.exp", "numpy.testing.assert_equal", "numpy.arange", "numpy.full", "numpy.testing.assert_almost_equal", ...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
tkelestemur/pfrl
[ "388855fb30313185d43ae0d0f4b694be647a5c43" ]
[ "pfrl/policies/softmax_policy.py" ]
[ "import torch\nfrom torch import nn\nfrom torch.distributions import Categorical\n\n\nclass SoftmaxCategoricalHead(nn.Module):\n def forward(self, logits):\n return torch.distributions.Categorical(logits=logits)\n\n\n# class MultiSoftmaxCategoricalHead(nn.Module):\n# def forward(self, logits):\n# ...
[ [ "torch.argmax", "torch.distributions.Categorical", "torch.unbind" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
LaudateCorpus1/sunpy
[ "f7bdf22e5229a577c5851c1e05502f0d68b4b369", "f7bdf22e5229a577c5851c1e05502f0d68b4b369", "f7bdf22e5229a577c5851c1e05502f0d68b4b369" ]
[ "sunpy/coordinates/wcs_utils.py", "sunpy/tests/helpers.py", "sunpy/map/compositemap.py" ]
[ "import numpy as np\n\nimport astropy.units as u\nimport astropy.wcs.utils\nfrom astropy.coordinates import (\n ITRS,\n BaseCoordinateFrame,\n CartesianRepresentation,\n SkyCoord,\n SphericalRepresentation,\n)\nfrom astropy.wcs import WCS\n\nfrom sunpy import log\nfrom .frames import (\n BaseCoord...
[ [ "numpy.all", "numpy.array", "numpy.isfinite" ], [ "matplotlib.__version__.replace", "matplotlib.pyplot.gcf", "matplotlib.ft2font.__freetype_version__.replace" ], [ "matplotlib.pyplot.colorbar", "matplotlib.pyplot.sci", "matplotlib.pyplot.figure" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
icane/demographic-indicators
[ "b1c394a4497e8e4c0189bf4c0518ce38fb873d4c" ]
[ "etl/deaths.py" ]
[ "\"\"\"Deaths indicators.\"\"\"\n\nfrom etl.common import to_json_stat, write_to_file\n\nfrom etl.config_deaths import deaths_cfg as cfg\n\nfrom etlstat.extractor.extractor import xlsx\n\nimport json\n\nimport pandas as pd\n\n\ndef transform(df, periods, prefix=''):\n \"\"\"Slice dataframe. Generate time period ...
[ [ "pandas.concat", "pandas.DataFrame" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "1.3", "0.19", "1.1", "1.5", "0.24", "0.20", "1.0", "0.25", "1.2" ], "scipy": [], "tensorflow": [] } ]
codecakes/random_games
[ "1e670021ec97a196726e937e658878dc63ba9d34" ]
[ "probability_combinatorics/linear_regression.py" ]
[ "from math import sqrt\nfrom itertools import izip\nfrom numpy import mean\n\nfrom py_variance_std import t_percentile\n\ndef calc_slope(r, sdy, sdx): return r * (float(sdy)/sdx)\n\ndef line_fitting(x_arr, y_arr):\n \"\"\"\n using straight line y = mx + c;\n m(of a sample data points) = Covariance(X,Y)/Cov...
[ [ "numpy.mean" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
LeoRoweBrown/ckvpy
[ "fff27847f5577750ae5860e3fdff81877fa4455a" ]
[ "tools/photon_yield.py" ]
[ "import numpy as np\nfrom scipy.integrate import simps\nimport scipy.constants as const\n\ndef compute(theta_in, f, beta, L, n=None):\n \"\"\"compute number of photons due to Frank-Tamm and Fresen equations\n theta (ndarray/list[float]): Angles in chosen wavelength range\n f (ndarray/list[float]): Frequenc...
[ [ "numpy.min", "numpy.cos", "numpy.sin", "numpy.max", "numpy.interp" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
andrewschreiber/numpy-saliency
[ "2e788a1150f6e160f2271cbb4f20747559f243c0" ]
[ "model/network.py" ]
[ "import numpy as np\nimport pickle\nfrom model.loss import cross_entropy\nfrom model.layers import Conv2D, Maxpool2D, Dense, Flatten, ReLu, Softmax\n\n\nclass LeNet5:\n \"\"\"Implementation of LeNet 5 for MNIST\n http://yann.lecun.com/exdb/publis/pdf/lecun-98.pdf\n \"\"\"\n\n def __init__(self, weigh...
[ [ "numpy.argmax" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
Seb-Good/deepecg
[ "c99fbe80718ee9969936154ae2c1a04d81c9b246" ]
[ "deepecg/training/model/disc/model.py" ]
[ "\"\"\"\nmodel.py\n--------\nThis module provides a class and methods for building and managing a model with tensorflow.\nBy: Sebastian D. Goodfellow, Ph.D., 2018\n\"\"\"\n\n# Compatibility imports\nfrom __future__ import absolute_import, division, print_function\n\n# 3rd party imports\nimport os\nimport sys\nimpor...
[ [ "tensorflow.ConfigProto" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
garibaldu/boundary-seekers
[ "441fea01e93de882bf22e0deb411f0b10602fa37" ]
[ "Testing/ND-Testing.py" ]
[ "import numpy as np\nimport tensorflow as tf\n\ndef __perms(n):\n if not n:\n return\n\n p = []\n\n for i in range(0, 2**n):\n s = bin(i)[2:]\n s = \"0\" * (n-len(s)) + s\n\n s_prime = np.array(list(map(lambda x: int(x), list(s))))\n p.append(s_prime)\n\n return p\n\nd...
[ [ "numpy.dot", "tensorflow.multiply", "tensorflow.concat", "tensorflow.reduce_sum", "tensorflow.expand_dims", "tensorflow.placeholder", "tensorflow.exp", "numpy.ones", "tensorflow.global_variables_initializer", "numpy.concatenate", "tensorflow.train.GradientDescentOptimiz...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10" ] } ]
okkhoy/rlpy
[ "af25d2011fff1d61cb7c5cc8992549808f0c6103", "af25d2011fff1d61cb7c5cc8992549808f0c6103", "af25d2011fff1d61cb7c5cc8992549808f0c6103", "af25d2011fff1d61cb7c5cc8992549808f0c6103", "af25d2011fff1d61cb7c5cc8992549808f0c6103" ]
[ "examples/pacman/independent.py", "rlpy/Representations/BEBF.py", "rlpy/Representations/Representation.py", "rlpy/Domains/HIVTreatment.py", "rlpy/Domains/FlipBoard.py" ]
[ "\"\"\"\nCart-pole balancing with independent discretization\n\"\"\"\nfrom __future__ import unicode_literals\nfrom __future__ import print_function\nfrom __future__ import division\nfrom __future__ import absolute_import\nfrom future import standard_library\nstandard_library.install_aliases()\nfrom rlpy.Domains im...
[ [ "numpy.log" ], [ "numpy.arange", "numpy.zeros" ], [ "numpy.dot", "numpy.hstack", "numpy.multiply", "numpy.arange", "numpy.eye", "numpy.cumsum", "numpy.ones", "numpy.atleast_1d", "numpy.all", "numpy.argmax", "numpy.ma.masked_array", "numpy.array",...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "1.7", "1.0", "0...
rsampaths16/ReRes
[ "51089c806c57087eb94d9a659036ebed88e96f13" ]
[ "processing/gray-scale-processing.py" ]
[ "import numpy\nimport scipy\nimport glob\nfrom matplotlib import pyplot\nfrom scipy import misc\nfrom numpy import random\n\nrandom.seed(0)\nSIZE = 128\nORIGINAL = '../data/offline-data/black-and-white-images/original'\nHIGH = '../data/offline-data/black-and-white-images/train/high'\nLOW = '../data/offline-data/bla...
[ [ "scipy.misc.imresize", "numpy.random.seed", "numpy.copy", "scipy.misc.imread", "numpy.random.randint" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "0.13", "0.14", "0.15", "0.10", "0.16", "0.19", "0.18", "0.12", "1.0", "0.17", "1.2" ], "tensorflow": [] } ]
franyancr/lenstronomy
[ "3a7b33512a474bf1796d23276d9028b580580cf1", "3a7b33512a474bf1796d23276d9028b580580cf1", "3a7b33512a474bf1796d23276d9028b580580cf1", "3a7b33512a474bf1796d23276d9028b580580cf1", "3a7b33512a474bf1796d23276d9028b580580cf1", "3a7b33512a474bf1796d23276d9028b580580cf1", "3a7b33512a474bf1796d23276d9028b580580cf...
[ "lenstronomy/PointSource/point_source_types.py", "lenstronomy/LensModel/Profiles/curved_arc.py", "test/test_LensModel/test_Solver/test_solver4.py", "lenstronomy/Util/util.py", "test/test_ImSim/test_Numerics/test_grid.py", "lenstronomy/GalKin/galkin.py", "lenstronomy/LightModel/Profiles/nie.py", "test/...
[ "import numpy as np\nfrom lenstronomy.LensModel.Solver.lens_equation_solver import LensEquationSolver\n\n\nclass Unlensed(object):\n \"\"\"\n class of a single point source in the image plane, aka star\n parameters: ra_image, dec_image, point_amp\n\n \"\"\"\n def __init__(self):\n pass\n\n ...
[ [ "numpy.abs", "numpy.ones", "numpy.mean", "numpy.isscalar", "numpy.array", "numpy.zeros" ], [ "numpy.arctan2", "numpy.cos", "numpy.sqrt", "numpy.sin" ], [ "numpy.sqrt", "numpy.sort", "numpy.testing.assert_almost_equal", "numpy.max", "numpy.mean", ...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...
dirty-cat/categorical-encoding
[ "fb0a1c4216533034e7516efc0698c7e4477b0243" ]
[ "benchmarks/supervectorizer_tuning.py" ]
[ "\"\"\"\nPerforms a GridSearch to find the best parameters for the SuperVectorizer\namong a selection.\n\"\"\"\n\nimport logging\nimport pandas as pd\n\nfrom sklearn.ensemble import RandomForestRegressor, RandomForestClassifier\nfrom sklearn.model_selection import GridSearchCV\nfrom sklearn.pipeline import Pipeline...
[ [ "sklearn.ensemble.RandomForestRegressor", "sklearn.model_selection.GridSearchCV", "pandas.read_csv", "sklearn.ensemble.RandomForestClassifier", "pandas.DataFrame" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "1.2" ], "scipy": [], "tensorflow": [] } ]
viettriit2110/face_recognition
[ "0e1821af6538c573ed4a87acc361c44900f849eb" ]
[ "examples/face_recognition_svm.py" ]
[ "# Train multiple images per person\r\n# Find and recognize faces in an image using a SVC with scikit-learn\r\n\r\n\"\"\"\r\nStructure:\r\n <test_image>.jpg\r\n <train_dir>/\r\n <person_1>/\r\n <person_1_face-1>.jpg\r\n <person_1_face-2>.jpg\r\n ...
[ [ "sklearn.svm.SVC" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
oeg-upm/ttla
[ "ab1cc5a2777b3d4fb905f4452379f469153c904b", "ab1cc5a2777b3d4fb905f4452379f469153c904b" ]
[ "commons/__init__.py", "label/classification.py" ]
[ "import os\nimport pandas as pd\nfrom easysparql import *\n\nENDPOINT = \"https://dbpedia.org/sparql\"\nMIN_NUM_OF_ENT_PER_PROP = 30 # the minimum number of entities per property (get_properties)\nQUERY_LIMIT = \"\" # At the moment, we do not put any limit on the number of results\nMIN_NUM_NUMS = 30 # The minimu...
[ [ "pandas.isna", "pandas.read_csv" ], [ "numpy.array", "numpy.set_printoptions", "pandas.read_csv" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "1.2" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.1", "1.5", "1.2", "1...
dyabel/wsod-mmdet
[ "60fc1993ea298f992b160b5599a6134702ac0d4f" ]
[ "mmdet/models/losses/my_cross_entropy_loss.py" ]
[ "import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport numpy as np\n\nfrom ..builder import LOSSES\nfrom .utils import weight_reduce_loss\neps = 0.000001\n\n\ndef cross_entropy_without_softmax(pred,\n label,\n weight=None,\n ...
[ [ "torch.nn.functional.binary_cross_entropy_with_logits", "torch.nn.functional.cross_entropy", "torch.nn.functional.binary_cross_entropy", "torch.log", "torch.nonzero", "torch.arange" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
ForrestPi/ObjectDetection
[ "54e0821e73f67be5360c36f01229a123c34ab3b3", "0d6766038bd3ee37036e4255713d5c06e81a83ed", "54e0821e73f67be5360c36f01229a123c34ab3b3", "54e0821e73f67be5360c36f01229a123c34ab3b3", "54e0821e73f67be5360c36f01229a123c34ab3b3", "54e0821e73f67be5360c36f01229a123c34ab3b3" ]
[ "nms/benchmark/nms_numba_cpu.py", "SSD/SSD_FPN_GIoU/data/utils/augmentations.py", "YOLO/Stronger-yolo-pytorch/dataset/augment/image.py", "YOLO/yolov3_asff_pt/models/utils_loss.py", "AnchorFree/FCOS/models/utils.py", "SSD/SSD_FPN_GIoU/model/head/build_head.py" ]
[ "from __future__ import absolute_import\nimport numba\nimport numpy as np\n@numba.jit(nopython=True)\ndef nms_cpu(dets, thresh):\n x1 = dets[:, 0]\n y1 = dets[:, 1]\n x2 = dets[:, 2]\n y2 = dets[:, 3]\n scores = dets[:, 4]\n areas = (x2 - x1 + 1) * (y2 - y1 + 1)\n order = scores.argsort()[::-1]...
[ [ "numpy.load", "numpy.where", "numpy.maximum", "numpy.minimum" ], [ "numpy.maximum", "numpy.minimum", "numpy.clip", "numpy.random.choice", "numpy.random.uniform", "numpy.array", "numpy.random.randint" ], [ "numpy.dot", "numpy.random.choice", "numpy.fl...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...
delemottelab/demystifying
[ "e8527b52d5fbe0570cd391921ecda5aefceb797a", "e8527b52d5fbe0570cd391921ecda5aefceb797a" ]
[ "demystifying/feature_extraction/mlp_feature_extractor.py", "demystifying/postprocessing.py" ]
[ "from __future__ import absolute_import, division, print_function\n\nimport logging\nimport sys\n\nlogging.basicConfig(\n stream=sys.stdout,\n format='%(asctime)s %(name)s-%(levelname)s: %(message)s',\n datefmt='%Y-%m-%d %H:%M:%S')\nimport numpy as np\nfrom sklearn.neural_network import MLPClassifier, MLPR...
[ [ "sklearn.neural_network.MLPClassifier", "numpy.min", "numpy.max", "numpy.zeros", "sklearn.neural_network.MLPRegressor" ], [ "numpy.sqrt", "numpy.save", "numpy.append", "numpy.mean", "numpy.load", "numpy.array", "numpy.zeros", "numpy.where", "numpy.empty"...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
JayWu7/Machine-Learning-Courses-Study-Record
[ "7586c3429514bc21c7cfe42f85ca8c0fcf8f072b", "7586c3429514bc21c7cfe42f85ca8c0fcf8f072b", "7586c3429514bc21c7cfe42f85ca8c0fcf8f072b" ]
[ "Algorithmic Methods of Data Mining/Final_project/graph_partitioning1.py", "Artificial Intelligence/r08exercise/u1b1.py", "Deep Learning/convolutional_nn.py" ]
[ "import numpy as np\nfrom sklearn.cluster import KMeans\nimport time\nfrom scipy.sparse.linalg import eigs\nfrom scipy.sparse import csr_matrix\n\n\nclass Graph:\n\n def __init__(self, data_name):\n self.filename = data_name\n self.n = None\n self.k = None\n self.edges = self.form_gra...
[ [ "sklearn.cluster.KMeans", "numpy.linalg.norm", "numpy.ndarray", "scipy.sparse.csr_matrix", "scipy.sparse.linalg.eigs", "numpy.zeros" ], [ "numpy.log", "numpy.mean" ], [ "torch.nn.CrossEntropyLoss", "torch.max", "torch.nn.Conv2d", "torch.utils.data.DataLoader...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "0.13", "1.6", "0.14", "1.10", "0.15", "1.4", "1.3", "1.9", "0.19", "1.5", "0.18", "1.2", "1.7", "0.12", "1.0", "0.17", "0.16", "1.8" ...
webclinic017/time-series-pipeline
[ "5ac418b91e395a48cba397f95d25d221adfff9bd", "5ac418b91e395a48cba397f95d25d221adfff9bd" ]
[ "EOD_api/test_EOD_api.py", "EOD_api/EOD_api.py" ]
[ "import os\nimport re\nimport datetime\nimport unittest\nfrom io import StringIO\nfrom unittest.mock import patch\n\nimport pandas as pd\n\nimport EOD_api as eod\n\nTOKEN = os.environ[\"EOD_TOKEN\"]\n\n\ndef date_parser(string):\n date_pattern = re.compile(\"([0-9]{4}-[0-9]{2}-[0-9]{2})[ ]\", re.VERBOSE)\n re...
[ [ "pandas.read_csv", "pandas.testing.assert_frame_equal" ], [ "pandas.concat", "pandas.read_csv", "pandas.to_datetime", "pandas.DateOffset", "pandas.json_normalize", "pandas.DataFrame", "pandas.read_json", "pandas.DataFrame.from_dict" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "1.2" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [ "2.0" ], "scipy": [], "tensorflow": [] } ]
Leylasaadi/MACT20.21_Digital_tools_Big_Data_part_2
[ "94cafa0581ec36a305867ebfdcb91c787aa77a16" ]
[ "session4/e_animations_2axis.py" ]
[ "# encoding: utf-8\n\n##################################################\n# This script shows how to create animated plots using matplotlib and a basic dataset\n# Multiple tutorials inspired the current design but they mostly came from:\n# hhttps://towardsdatascience.com/how-to-create-animated-graphs-in-python-bb61...
[ [ "pandas.read_csv", "pandas.to_datetime", "matplotlib.pyplot.title", "matplotlib.pyplot.ylim", "numpy.arange", "matplotlib.pyplot.subplots", "numpy.timedelta64", "matplotlib.pyplot.xlim", "matplotlib.animation.FuncAnimation", "matplotlib.pyplot.xlabel", "matplotlib.pyplo...
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "1.2" ], "scipy": [], "tensorflow": [] } ]
genepattern/genepattern-utils
[ "950d748301b3c4d07ad8d24c9b037bbb9b4c80e2" ]
[ "genepattern/utils/clustering.py" ]
[ "\"\"\"\nCopied and modified from the dev branch of:\nhttps://github.com/genepattern/HierarchicalClustering\non 2018-01-31\n\"\"\"\nimport sys\nimport numpy as np\nfrom statistics import mode\nfrom sklearn.metrics import pairwise\nfrom sklearn import metrics\n\nfrom scipy.cluster.hierarchy import dendrogram\nimport...
[ [ "numpy.sqrt", "numpy.cumsum", "numpy.mean", "sklearn.cluster.AgglomerativeClustering", "numpy.exp", "matplotlib.pyplot.gca", "pandas.read_csv", "numpy.unique", "numpy.arange", "numpy.finfo", "matplotlib.pyplot.subplot", "matplotlib.gridspec.GridSpec", "numpy.cou...
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "1.2" ], "scipy": [ "0.13", "1.6", "0.14", "1.10", "0.15", "1.4", "0.16", "1.9", "0.19", "1.5", "0.18", "1.2...
jsevo/taxumap
[ "1a02518dca822a65847994910177c74607243dae", "1a02518dca822a65847994910177c74607243dae" ]
[ "taxumap-manuscript-notebooks/embeddings.py", "taxumap/tools.py" ]
[ "from sklearn.manifold import TSNE \nfrom sklearn.decomposition import PCA, KernelPCA\nfrom umap import UMAP\nfrom sklearn.preprocessing import MinMaxScaler\n\nRUNEMBEDDINGS = False\nif RUNEMBEDDINGS:\n #simple PCA\n pcaembedding = PCA(n_components=2).fit_transform(XASV.fillna(0))\n \n #base embedding (...
[ [ "sklearn.decomposition.KernelPCA", "sklearn.decomposition.PCA" ], [ "scipy.spatial.distance.cdist", "pandas.DataFrame", "sklearn.preprocessing.MinMaxScaler" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "...
catalys1/dnnutil
[ "a55a73ae59c5ac0117f58d8d8136bdd32902141f" ]
[ "dnnutil/training.py" ]
[ "import torch\nimport numpy as np\nimport dnnutil.network as network\nimport time\n\n\n__all__ = ['calculate_accuracy', 'Trainer', 'ClassifierTrainer', 'AutoencoderTrainer']\n\n\ndef calculate_accuracy(prediction, label, axis=1):\n '''calculate_accuracy(prediction, label)\n \n Computes the mean accuracy ov...
[ [ "torch.no_grad", "numpy.mean" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
vinayphadnis/NeMo
[ "9dc7773c48e164b8a82051bb558a728c6eeb85ec", "9dc7773c48e164b8a82051bb558a728c6eeb85ec", "9dc7773c48e164b8a82051bb558a728c6eeb85ec", "9dc7773c48e164b8a82051bb558a728c6eeb85ec" ]
[ "nemo/collections/asr/models/classification_models.py", "nemo/collections/nlp/models/neural_machine_translation/neural_machine_translation_model.py", "nemo/collections/tts/losses/uniglowloss.py", "nemo/collections/tts/modules/squeezewave_submodules.py" ]
[ "# Copyright (c) 2020, NVIDIA CORPORATION. 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 re...
[ [ "torch.stack" ], [ "torch.stack" ], [ "torch.norm", "torch.nn.ModuleList", "torch.sum", "torch.log", "torch.clamp", "torch.stft" ], [ "torch.nn.Sequential", "torch.nn.BatchNorm1d", "torch.mm", "torch.transpose", "torch.sqrt", "torch.nn.utils.weig...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...
nlindqv/pytorch_RVAE
[ "d9e58134965f69aad557fb3bd2478500a51210f8", "d9e58134965f69aad557fb3bd2478500a51210f8" ]
[ "human_eval.py", "best_scores.py" ]
[ "import argparse\r\nimport os\r\n\r\nimport pandas as pd\r\nimport numpy as np\r\nimport torch as t\r\nfrom torch.optim import Adam\r\nimport pickle5 as pickle\r\nimport json\r\nimport random\r\n\r\nfrom sample import sample_with_input, sample_with_beam\r\nfrom utils.batch_loader import BatchLoader, clean_str\r\nfr...
[ [ "torch.device", "pandas.read_csv", "pandas.DataFrame" ], [ "numpy.array", "numpy.loadtxt" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "1.2" ], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
denis19973/Keras-RFCN
[ "5e1fdaf197b3a93c22a82d9476a3f9a1c804e398" ]
[ "Fashion_Test.py" ]
[ "\"\"\"\nKeras RFCN\nCopyright (c) 2018\nLicensed under the MIT License (see LICENSE for details)\nWritten by parap1uie-s@github.com\n\"\"\"\n\n'''\nThis is a demo to Eval a RFCN model with DeepFashion Dataset\nhttp://mmlab.ie.cuhk.edu.hk/projects/DeepFashion.html\n'''\n\nfrom KerasRFCN.Model.Model import RFCN_Mode...
[ [ "matplotlib.pyplot.imread", "matplotlib.patches.Rectangle", "matplotlib.pyplot.clf", "matplotlib.pyplot.subplots" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
KuKuXia/DeepLearningMugenKnock
[ "979cf05e65e352da36453337380a418a2a2fdccb" ]
[ "Question_prepare/answers/answer_rotation.py" ]
[ "import cv2\nimport numpy as np\nfrom glob import glob\nimport matplotlib.pyplot as plt\n\nnp.random.seed(0)\n\nnum_classes = 2\nimg_height, img_width = 64, 64\n\nCLS = ['akahara', 'madara']\n\n# get train data\ndef data_load(path, hf=False, vf=False, rot=None):\n xs = []\n ts = []\n paths = []\n \n ...
[ [ "matplotlib.pyplot.imshow", "numpy.sqrt", "numpy.random.seed", "matplotlib.pyplot.title", "numpy.random.shuffle", "numpy.ceil", "matplotlib.pyplot.subplot", "matplotlib.pyplot.axis", "numpy.array", "numpy.zeros", "matplotlib.pyplot.show" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
mariuslindegaard/6.867_MARL_project
[ "572b88b4d491db8a1673535868f4bf9aff58f73d" ]
[ "src/modules/agents/noisy_agents.py" ]
[ "import torch.nn as nn\nimport torch.nn.functional as F\nfrom utils.noisy_liner import NoisyLinear\nfrom torch.nn import LayerNorm\n\nclass NoisyRNNAgent(nn.Module):\n def __init__(self, input_shape, args):\n super(NoisyRNNAgent, self).__init__()\n self.args = args\n\n self.fc1 = nn.Linear(i...
[ [ "torch.nn.Linear", "torch.nn.GRUCell", "torch.nn.LayerNorm" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
aasensio/bayesDI
[ "4ddad57d89c3512b4c4ee5684ddc5608060ebdec" ]
[ "modules/flow.py" ]
[ "import numpy as np\nimport torch\nimport torch.nn.functional as F\nfrom nflows import transforms, distributions, flows, utils\nimport nflows.nn.nets as nn_\nimport matplotlib.pyplot as pl\nfrom modules import resnet\n\n# https://github.com/stephengreen/lfi-gw/blob/master/lfigw/nde_flows.py\n\ndef create_linear_tra...
[ [ "torch.no_grad", "torch.from_numpy", "torch.cat" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
zhaipro/MySceneDetect
[ "fbbe085b05e916d52253ffddd91848c3e85b2fe9" ]
[ "scenedetect/main.py" ]
[ "import sys\nimport time\n\nimport cv2\nimport numpy as np\n\n\ndef scenedetect(cap, threshold=30, min_scene_len=15):\n w = cap.get(cv2.CAP_PROP_FRAME_WIDTH)\n downscale_factor = int(w / 200)\n last_hsv = None\n first = 0\n curr = 0\n\n while True:\n ret, im = cap.read()\n if not ret...
[ [ "numpy.abs" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
lightyang/tensorflow
[ "14c58e1d380b2001ffdf7ef782d44ad1a21f763c" ]
[ "tensorflow/python/keras/layers/preprocessing/categorical.py" ]
[ "# Copyright 2019 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.lookup_ops.index_table_from_tensor", "tensorflow.python.framework.tensor_shape.TensorShape", "tensorflow.python.ops.lookup_ops.index_table_from_file", "tensorflow.python.framework.tensor_spec.TensorSpec", "tensorflow.python.ops.sparse_ops.sparse_cross", "tensorflow.p...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "2.7", "2.6", "2.2", "2.3", "2.4", "2.9", "2.5", "2.8", "2.10" ] } ]
stillmatic/pandas
[ "da067b2fe4cdc43eac5349e0648cfbbe4b96dbbd" ]
[ "pandas/tests/categorical/test_algos.py" ]
[ "import pytest\nimport numpy as np\n\nimport pandas as pd\nimport pandas.util.testing as tm\n\n\n@pytest.mark.parametrize('ordered', [True, False])\n@pytest.mark.parametrize('categories', [\n ['b', 'a', 'c'],\n ['a', 'b', 'c', 'd'],\n])\ndef test_factorize(categories, ordered):\n cat = pd.Categorical(['b',...
[ [ "pandas.util.testing.assert_numpy_array_equal", "pandas.util.testing.assert_categorical_equal", "pandas.Categorical", "pandas.factorize", "numpy.array" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "1.4", "1.3", "0.19", "1.1", "1.5", "0.24", "0.20", "1.0", "0.25", "1.2" ], "scipy": [], "tensorflow": [] } ]
supersamdam/ConversationalAI
[ "bb6013c33f6332aee57abbae310577c056c6fdc1" ]
[ "Prototype.py" ]
[ "import numpy as np\nimport pandas as pd\nimport re\nimport nltk\nnltk.download('stopwords')\nfrom nltk.corpus import stopwords\nfrom nltk.stem.porter import PorterStemmer\nfrom sklearn.feature_extraction.text import CountVectorizer\nfrom sklearn.model_selection import train_test_split\nfrom sklearn.naive_bayes imp...
[ [ "pandas.read_csv", "sklearn.naive_bayes.GaussianNB", "sklearn.metrics.confusion_matrix", "sklearn.model_selection.train_test_split", "sklearn.feature_extraction.text.CountVectorizer", "sklearn.metrics.accuracy_score" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.1", "1.5", "1.2", "1.3" ], "scipy": [], "tensorflow": [] } ]
XiaotingChen/tfmodisco
[ "17cbafe806942304a02e8134fe10224bdff38b0c" ]
[ "modisco/value_provider.py" ]
[ "from __future__ import division, print_function, absolute_import\nimport numpy as np\nimport scipy.stats\n\n\nclass AbstractValueProvider(object):\n\n def __call__(self, seqlet):\n raise NotImplementedError()\n\n @classmethod\n def from_hdf5(cls, grp):\n the_class = eval(grp.attrs[\"class\"]...
[ [ "numpy.abs", "numpy.sign", "numpy.searchsorted", "numpy.array", "numpy.sum" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
bgalbraith/macarico
[ "448e3e7f088dde0f4eb016fbdee857221b9523fb", "448e3e7f088dde0f4eb016fbdee857221b9523fb" ]
[ "macarico/actors/bow.py", "macarico/policies/linear.py" ]
[ "from __future__ import division, generators, print_function\n\nimport torch\nimport torch.nn as nn\n\nimport macarico\nimport macarico.util as util\nfrom macarico.util import Var, Varng\n\nclass BOWActor(macarico.Actor):\n def __init__(self, attention, n_actions, act_history_length=1, obs_history_length=0):\n ...
[ [ "torch.cat" ], [ "torch.nn.SmoothL1Loss", "torch.nn.functional.softmax", "torch.nn.NLLLoss", "torch.LongTensor", "torch.zeros", "torch.nn.Linear", "torch.nn.MSELoss", "torch.nn.MultiMarginLoss" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
FrancisLiang/models-1
[ "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "e14d5bc1ab36d0dd11977f27cff54605bf99c945", "e14d5bc1ab36d0dd11977f27cff54605bf99c94...
[ "PaddleNLP/emotion_detection/run_classifier.py", "PaddleCV/ocr_recognition/infer.py", "PaddleNLP/unarchived/sequence_tagging_for_ner/utils_extend.py", "PaddleCV/deeplabv3+/reader.py", "PaddleRec/ssr/train.py", "PaddleCV/PaddleDetection/ppdet/data/transform/shared_queue/sharedmemory.py", "PaddleRec/gru4r...
[ "\"\"\"\nEmotion Detection Task\n\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport os\nimport time\nimport argparse\nimport multiprocessing\nimport sys\nsys.path.append(\"../\")\n\nimport paddle\nimport paddle.fluid as fluid\nimport nu...
[ [ "numpy.array", "numpy.argmax", "numpy.sum" ], [ "numpy.percentile", "numpy.average", "numpy.array", "numpy.where", "numpy.divide" ], [ "numpy.concatenate", "numpy.loadtxt" ], [ "numpy.random.rand", "numpy.array", "numpy.pad", "numpy.random.shuffl...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...
ice-blaze/simple-captcha-deeplearning
[ "16960249bf316bef8fe6b9d86113c902309b36c5" ]
[ "deep_learning.py" ]
[ "from generate_captchas import CHAR_POSSIBILITIES\nfrom generate_captchas import generate_captcha\nfrom generate_captchas import get_random_captcha_names_and_lines\nfrom digital_processing_image_approach import clean_image_kernel4\nimport keras\nfrom keras.models import Sequential, load_model\nfrom keras.layers imp...
[ [ "numpy.max", "numpy.array", "numpy.argmax", "numpy.random.seed" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
Samteymoori/pepper
[ "734d226de47a855952e3b58145c1fcfbe221d3b4" ]
[ "pepper_variant/modules/python/models/predict_distributed_cpu.py" ]
[ "import sys\nimport os\nimport torch\nimport torch.onnx\nimport torch.distributed as dist\nimport torch.nn as nn\nimport onnxruntime\nfrom datetime import datetime\nfrom torch.utils.data import DataLoader\nimport torch.multiprocessing as mp\n\nfrom pepper_variant.modules.python.models.dataloader_predict import Sequ...
[ [ "torch.nn.Softmax", "torch.onnx.export", "torch.distributed.init_process_group", "torch.multiprocessing.spawn", "torch.zeros", "torch.add", "torch.utils.data.DataLoader", "torch.from_numpy", "torch.set_num_threads", "torch.no_grad", "torch.distributed.destroy_process_gr...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
thanever/SOC
[ "9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4", "9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4", "9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4", "9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4", "9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4", "9f30d1a9c7610a68de9c178a1170bdf1c8ca11d4" ]
[ "Data/scigrid-de/pypower/scigrid_2011_01_07_01.py", "Data/scigrid-de/pypower/scigrid_2011_01_07_22.py", "Data/scigrid-de/pypower/scigrid_2011_01_08_02.py", "Uncertainty/data/case-ln/case_ln_101.py", "Data/scigrid-de/pypower/scigrid_2011_01_06_19.py", "Uncertainty/data/case-de/case_de_103.py" ]
[ "from numpy import array\ndef scigrid_2011_01_07_01():\n\tppc = {\"version\": '2'}\n\tppc[\"baseMVA\"] = 100.0\n\tppc[\"bus\"] = array([\n\t\t[586,\t\t3,\t\t0,\t\t0,\t\t0,\t\t0,\t\t0,\t\t1.0,\t\t0,\t\t220.0,\t\t0,\t\t1.1,\t\t0.9\t\t],\n\t\t[589,\t\t2,\t\t0,\t\t0,\t\t0,\t\t0,\t\t0,\t\t1.0,\t\t0,\t\t380.0,\t\t0,\t\t1...
[ [ "numpy.array" ], [ "numpy.array" ], [ "numpy.array" ], [ "numpy.array" ], [ "numpy.array" ], [ "numpy.array" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...
nestauk/la_funding_analysis
[ "bc338583817174f47f2cff2105f4a20a89df4c99" ]
[ "la_funding_analysis/pipeline/cleaning.py" ]
[ "# File: pipeline/cleaning.py\n\"\"\"Functions to clean datasets.\nCalling each function returns a clean version of the associated dataset.\n\"\"\"\n\nimport numpy as np\nimport pandas as pd\n\nfrom la_funding_analysis.getters.local_authority_data import (\n get_epc,\n get_grants,\n get_imd,\n get_old_p...
[ [ "pandas.DataFrame" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] } ]
HwangDongJun/Federated_Learning_using_Websockets
[ "87c2873ae9b6a651750d08f4cd0ad5757893ce88" ]
[ "federated_learning_without_transfer_learning/ntf_client_fit_model.py" ]
[ "# Setup library\nfrom __future__ import absolute_import, division, print_function, unicode_literals\n\nimport os\nimport numpy as np\nimport PIL.Image as Image\nfrom PIL import ImageFile\nimport tensorflow as tf\nimport tensorflow_hub as hub\nfrom tensorflow.keras import layers\nimport matplotlib.pylab as plt\nimp...
[ [ "tensorflow.keras.models.load_model", "tensorflow.config.experimental.list_logical_devices", "tensorflow.keras.preprocessing.image.ImageDataGenerator", "tensorflow.config.experimental.set_memory_growth", "tensorflow.keras.layers.Dense", "tensorflow.config.experimental.list_physical_devices...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "2.7", "2.2", "2.3", "2.4", "2.5", "2.6" ] } ]
pedersor/google-research
[ "6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6", "6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6", "6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6", "6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6", "6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6", "6fa751dd261b3f6d918fd2cd35efef5d8bf3eea6", "6fa751dd261b3f6d918fd2cd35efef5d8bf3eea...
[ "representation_batch_rl/representation_batch_rl/cql_pixels.py", "ml_debiaser/randomized_threshold.py", "goemotions/analyze_data.py", "depth_and_motion_learning/losses/loss_aggregator.py", "mol_dqn/chemgraph/dqn/molecules_test.py", "task_set/tasks/synthetic_sequence.py", "supcon/losses_test.py", "non_...
[ "# coding=utf-8\n# Copyright 2022 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.constant", "tensorflow.gather_nd", "tensorflow.zeros", "tensorflow.reduce_mean", "tensorflow.shape", "tensorflow.minimum", "tensorflow.cast", "tensorflow.exp", "tensorflow.eye", "tensorflow.math.log", "tensorflow.expand_dims", "tensorflow.keras.optimizer...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10" ] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", ...
bburan/cochlear
[ "1e7ea32730a794b9f6936440a32e4a82c4bf73e7" ]
[ "cochlear/noise_exposure.py" ]
[ "from __future__ import division\n\nimport logging\nlog = logging.getLogger(__name__)\n\nimport numpy as np\nfrom scipy import signal\n\nfrom traits.api import Instance, Float, Property, Int\nfrom traitsui.api import (View, Item, ToolBar, Action, ActionGroup, VGroup,\n HSplit, MenuBar, Menu...
[ [ "scipy.signal.lfilter", "numpy.log10", "numpy.mean", "scipy.signal.iirfilter" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [ "0.13", "1.6", "0.14", "1.10", "0.15", "1.4", "1.3", "1.9", "0.19", "1.5", "0.18", "1.2", "1.7", "0.12", "1.0", "0.17", "0.16", "1.8" ...
visinf/deblur-devil
[ "53cc4c72a4ddb9dcede5ee52dc53000c39ff5dab", "53cc4c72a4ddb9dcede5ee52dc53000c39ff5dab" ]
[ "contrib/cmap.py", "losses/classification_losses.py" ]
[ "# Author: Jochen Gast <jochen.gast@visinf.tu-darmstadt.de>\n\nimport numpy as np\nimport torch\nfrom matplotlib import cm\nfrom torch import nn\n\n# ----------------------------------------------------------------------------------------\n# See https://matplotlib.org/examples/color/colormaps_reference.html\n#\n# T...
[ [ "numpy.arange", "torch.ones_like", "matplotlib.cm.get_cmap" ], [ "torch.nn.CrossEntropyLoss" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
alshedivat/federated
[ "fe9f44a504bc51b603a3ab9a181148da0aa9612f", "fe9f44a504bc51b603a3ab9a181148da0aa9612f", "fe9f44a504bc51b603a3ab9a181148da0aa9612f", "fe9f44a504bc51b603a3ab9a181148da0aa9612f" ]
[ "optimization/main/federated_trainer.py", "gans/experiments/emnist/preprocessing/filtered_emnist_data_utils.py", "triehh/triehh_tf_test.py", "fedopt_guide/stackoverflow_transformer/centralized_main.py" ]
[ "# Copyright 2020, Google LLC.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agree...
[ [ "tensorflow.squeeze" ], [ "tensorflow.io.gfile.GFile", "tensorflow.data.Dataset.from_generator" ], [ "tensorflow.constant", "tensorflow.zeros", "tensorflow.shape", "tensorflow.data.Dataset.from_tensor_slices", "tensorflow.test.main", "tensorflow.function" ], [ "...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10", "1.12", "1.4", "1.13", "1.5", "1.7", "0.12", "1.0", "1.2" ] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensor...
lighthall-lab/NiPype
[ "80d3f05d9aa006fa3055785327892e8a89530a80" ]
[ "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" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] } ]
drienyov/treadmill
[ "812109e31c503a6eddaee2d3f2e1faf2833b6aaf" ]
[ "lib/python/treadmill/cli/scheduler/__init__.py" ]
[ "\"\"\"Top level command for Treadmill reports.\n\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport json\n\nimport click\nimport pandas as pd\nimport tabulate\n\nfrom six.moves import urllib_pars...
[ [ "pandas.DataFrame" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] } ]
ruomingp/lingvo
[ "ba59e8c46471be77d5d3c48177f0f0dd8d5d44e9", "ba59e8c46471be77d5d3c48177f0f0dd8d5d44e9", "ba59e8c46471be77d5d3c48177f0f0dd8d5d44e9", "ba59e8c46471be77d5d3c48177f0f0dd8d5d44e9" ]
[ "lingvo/jax/eval.py", "lingvo/jax/base_input.py", "lingvo/core/conformer_layer_test.py", "lingvo/core/attention.py" ]
[ "# Lint as: python3\n# Copyright 2021 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.compat.v2.nest.map_structure", "tensorflow.compat.v2.io.gfile.exists", "tensorflow.compat.v2.io.gfile.makedirs" ], [ "tensorflow.compat.v2.nest.map_structure", "tensorflow.compat.v2.function", "tensorflow.compat.v2.errors.OutOfRangeError" ], [ "numpy.zeros", "nu...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...
pakesson/scaml
[ "c69d422d6839d75a81426c81fd8d570fa421744b" ]
[ "explain.py" ]
[ "#!/usr/bin/env python\n\nimport sys\nimport math\nimport numpy as np\n\nfrom tensorflow.keras.models import load_model\n\nfrom aes import aes_sbox, aes_sbox_inv\n\nimport matplotlib\nmatplotlib.use('TkAgg')\nimport matplotlib.pyplot as plt\n\ndef get_label(plaintext, key, index):\n return aes_sbox[plaintext[ind...
[ [ "tensorflow.keras.models.load_model", "matplotlib.pyplot.cm.plasma", "matplotlib.pyplot.title", "numpy.linspace", "matplotlib.use", "numpy.ptp", "numpy.savez_compressed", "numpy.argmax", "numpy.mean", "numpy.log10", "numpy.load", "numpy.array", "numpy.zeros", ...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [ "1.10", "2.7", "2.2", "2.3", "2.4", "2.5", "2.6" ] } ]
diegomrsantos/Python-Baseball
[ "4543df7a4d74e82106a3e8481553149c447d8ab6" ]
[ "stats/attendance.py" ]
[ "import pandas as pd\nimport matplotlib.pyplot as plt\nfrom data import games\n\ninfo_filter = games['type'] == 'info'\nattendance_filter = games['multi2'] == 'attendance'\nattendance = games.loc[info_filter & attendance_filter, ['year', 'multi3']]\n\nattendance.columns = ['year', 'attendance']\n\nattendance.loc[:,...
[ [ "matplotlib.pyplot.xlabel", "matplotlib.pyplot.show", "pandas.to_numeric", "matplotlib.pyplot.ylabel" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "0.23", "0.21", "2.0", "1.4", "0.19", "1.1", "1.5", "1.2", "0.24", "0.20", "1.0", "0.25", "1.3" ], "scipy": [], "tensorflow": [] } ]
rperi/trustworthy-asv-fairness
[ "15df69a8f3f8ad5262002c9e3d12aa12ea8f1c6f" ]
[ "evaluate/evaluate_FDR.py" ]
[ "import numpy as np\nimport pandas as pd\nimport os\nimport pdb\nfrom scipy.spatial.distance import cosine\nfrom sklearn.metrics import roc_curve, confusion_matrix\nimport sys\nfrom tqdm import tqdm\nfrom sklearn.metrics import auc\nimport argparse\n\nfprs = [0.01,0.02,0.03,0.04,0.05,0.06,0.07,0.08,0.09,0.1,0.2,0.3...
[ [ "pandas.to_numeric", "numpy.absolute", "pandas.read_csv", "scipy.spatial.distance.cosine", "sklearn.metrics.confusion_matrix", "sklearn.metrics.roc_curve", "numpy.round", "numpy.mean", "sklearn.metrics.auc", "numpy.array", "numpy.zeros" ] ]
[ { "matplotlib": [], "numpy": [], "pandas": [ "2.0", "1.4", "1.3", "1.1", "1.5", "1.2" ], "scipy": [ "0.13", "1.6", "0.14", "1.10", "0.15", "1.4", "0.16", "1.9", "0.19", "1.5", "0.18", "1.2...
creare-com/podpac
[ "7feb5c957513c146ce73ba1c36c630284f513a6e", "7feb5c957513c146ce73ba1c36c630284f513a6e", "7feb5c957513c146ce73ba1c36c630284f513a6e", "7feb5c957513c146ce73ba1c36c630284f513a6e", "7feb5c957513c146ce73ba1c36c630284f513a6e" ]
[ "podpac/core/coordinates/test/test_uniform_coordinates1d.py", "podpac/core/test/test_node.py", "podpac/core/interpolation/test/test_interpolation.py", "podpac/core/algorithm/generic.py", "podpac/core/algorithm/test/test_stats.py" ]
[ "from datetime import datetime\nimport json\n\nimport pytest\nimport traitlets as tl\nimport numpy as np\nfrom numpy.testing import assert_equal\n\nimport podpac\nfrom podpac.core.coordinates.utils import make_coord_array\nfrom podpac.core.coordinates.coordinates1d import Coordinates1d\nfrom podpac.core.coordinates...
[ [ "numpy.testing.assert_equal", "numpy.linspace", "numpy.datetime64", "numpy.timedelta64", "numpy.array" ], [ "numpy.all", "numpy.arange", "numpy.isnan", "numpy.testing.assert_array_equal" ], [ "numpy.testing.assert_array_equal", "numpy.concatenate", "numpy.ra...
[ { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { "matplotlib": [], "numpy": [], "pandas": [], "scipy": [], "tensorflow": [] }, { ...