repo_name stringlengths 6 130 | hexsha list | file_path list | code list | apis list |
|---|---|---|---|---|
junwei-h/RiWalk | [
"a9a423b78ab55951a60b4f7c27b62fe66e3a2d9c"
] | [
"src/RiWalk/plot_umap.py"
] | [
"import os\nimport sys\n\nROOT_DIR = os.getcwd()\n\nimport umap\nfrom sklearn.manifold import TSNE\nfrom sklearn.decomposition import PCA\n\nimport pandas as pd\nimport numpy as np \nimport matplotlib.pyplot as plt\nimport seaborn as sns\nfrom matplotlib import rc\nrc('text', usetex=False)\n\nfrom gensim.models imp... | [
[
"pandas.concat",
"matplotlib.pyplot.subplots",
"pandas.DataFrame",
"matplotlib.pyplot.savefig",
"sklearn.manifold.TSNE",
"numpy.std",
"numpy.mean",
"matplotlib.pyplot.show",
"matplotlib.rc"
]
] |
sharad1126/artificial-self-AMLD-2020 | [
"3a20d057a8eeca625e9a1cea219fd116c12a8728"
] | [
"3/train.py"
] | [
"import os\nimport logging\nfrom argparse import ArgumentParser\nimport numpy as np\nimport torch\nfrom torch.utils.data import DataLoader, TensorDataset\nfrom tqdm import tqdm, trange\nfrom transformers import (\n AdamW, \n OpenAIGPTDoubleHeadsModel,\n OpenAIGPTTokenizer,\n GPT2DoubleHeadsModel,\n G... | [
[
"torch.utils.data.TensorDataset",
"torch.utils.data.DataLoader",
"torch.cuda.is_available"
]
] |
rbetz/DALI | [
"0d4d8dc628b994ccc78d34a4e1e6a3f9cafa961c"
] | [
"dali/test/python/test_detection_pipeline.py"
] | [
"# Copyright (c) 2019, 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 req... | [
[
"numpy.fliplr",
"numpy.allclose"
]
] |
oyamay/lbann | [
"57116ecc030c0d17bc941f81131c1a335bc2c4ad"
] | [
"bamboo/unit_tests/test_unit_layer_leaky_relu_distconv.py"
] | [
"import functools\nimport operator\nimport os\nimport os.path\nimport sys\nimport numpy as np\nimport pytest\n\n# Bamboo utilities\ncurrent_file = os.path.realpath(__file__)\ncurrent_dir = os.path.dirname(current_file)\nsys.path.insert(0, os.path.join(os.path.dirname(current_dir), 'common_python'))\nimport tools\n\... | [
[
"numpy.random.seed",
"numpy.random.choice",
"numpy.finfo",
"numpy.mean",
"numpy.random.uniform",
"numpy.where"
]
] |
anshabhi/stock-trading-bot | [
"8af33e9168ed7c4c5171dd375cf3974b3dc9d8d4"
] | [
"technical-analysis/stockstatsTA-signalsOnly.py"
] | [
"import ta\n\nimport csv\nimport urllib.request as urllib2\nimport pandas as pd\nimport numpy as np\nimport alpaca_trade_api as tradeapi\nimport os\nimport sys\nimport json\nfrom threading import Timer\nimport random\nfrom TAind import volumeFn, voltalityFn, trendFn, momentumFn\n\nfrom colorama import Fore, Style\n... | [
[
"pandas.read_csv"
]
] |
neelpawarcmu/deep-learning-library | [
"401483fce40e3a025054596cbec368ff4f647661",
"401483fce40e3a025054596cbec368ff4f647661"
] | [
"homework-2/HW2P1/mytorch/conv.py",
"homework-2/HW2P1/mytorch/loss.py"
] | [
"# Do not import any additional 3rd party external libraries as they will not\n# be available to AutoLab and are not needed (or allowed)\n\nimport numpy as np\n\n\nclass Conv1D():\n def __init__(self, in_channel, out_channel, kernel_size, stride,\n weight_init_fn=None, bias_init_fn=None):\n ... | [
[
"numpy.pad",
"numpy.reshape",
"numpy.random.normal",
"numpy.zeros_like",
"numpy.zeros",
"numpy.sum"
],
[
"numpy.max",
"numpy.log",
"numpy.exp",
"numpy.sum"
]
] |
feiwang20/DRLHandsOn-Playground | [
"b940c4959993d3ad7c6a2b0429b155d21cafe845",
"b940c4959993d3ad7c6a2b0429b155d21cafe845",
"b940c4959993d3ad7c6a2b0429b155d21cafe845"
] | [
"Chapter18/tests/test_model.py",
"Chapter10/02_pong_a2c.py",
"Chapter09/04_cartpole_pg.py"
] | [
"import unittest\n\nimport numpy as np\nfrom lib import game, model\n\n\nclass TestEncoding(unittest.TestCase):\n def test_encoding(self):\n s = [[0, 1, 0], [0], [1, 1, 1], [], [1], [], []]\n batch_v = model.state_lists_to_batch([s, s], [game.PLAYER_BLACK, game.PLAYER_WHITE])\n batch = batch... | [
[
"numpy.testing.assert_equal"
],
[
"numpy.square",
"torch.LongTensor",
"torch.nn.functional.softmax",
"numpy.abs",
"torch.nn.functional.log_softmax",
"torch.zeros",
"torch.nn.Conv2d",
"numpy.var",
"torch.nn.Linear",
"torch.FloatTensor",
"torch.device",
"torch... |
abeelen/kidsdata | [
"76c798b102a407e29d162aafceb01c518d848536"
] | [
"examples/beammap.py"
] | [
"import numpy as np\nimport matplotlib.pyplot as plt\n\nfrom astropy.wcs import WCS\n\nfrom kidsdata import KissData\nfrom kidsdata.db import list_scan, get_scan\n\nplt.ion()\n\n# Open the scan 431\nkd = KissData(get_scan(431))\n\n# Read All the valid data from array B\nlist_data = kd.names.DataSc + kd.names.DataUc... | [
[
"matplotlib.pyplot.imshow",
"numpy.nanmedian",
"numpy.abs",
"numpy.sqrt",
"numpy.array",
"matplotlib.pyplot.ion"
]
] |
MichaelSaah/DiffGeoLib | [
"6fb8a49ded0015dfc89842a6afa038c37bf99f2e"
] | [
"DiffGeoLib/animation.py"
] | [
"import pygame as pg\nimport numpy as np\nfrom collections import namedtuple, deque\nfrom .curves import Curve\n\nclass Animator:\n \"\"\"The Animator contains all of the logic for animating a curve.\n Simply pass it a function f: s -> (x,y) and call run().\n Click and drag to move around. Scroll to zoom.\... | [
[
"numpy.add",
"numpy.subtract"
]
] |
slinger0225/huacai | [
"87e8de05981b1361f0396db28678ce07de459dc5"
] | [
"huacai_server/common/libs/neo2cos.py"
] | [
"import neo4j\r\nfrom py2neo import Graph,Node, Relationship,NodeMatcher,RelationshipMatcher,PropertyDict,walk,Schema\r\nimport pandas as pd\r\nimport numpy as np\r\n\r\n##连接neo4j数据库,输入地址、用户名、密码\r\ngraph = Graph('http://62.234.47.77:7474',username='neo4j',password='huacai@123')\r\n\r\n#建立结点(输一次建立一次,少输)\r\n#a=Node('... | [
[
"numpy.argsort",
"numpy.array"
]
] |
justanhduc/apex | [
"aa756cec4359aff3df1d9abb68dc6e6e92920e0c"
] | [
"apex/__init__.py"
] | [
"import logging\n\n# May help avoid undefined symbol errors https://pytorch.org/cppdocs/notes/faq.html#undefined-symbol-errors-from-pytorch-aten\nimport torch\n\n\nif torch.distributed.is_available():\n from . import parallel\n\nfrom . import amp\nfrom . import fp16_utils\n\n# For optimizers and normalization th... | [
[
"torch.distributed.is_available"
]
] |
krshrimali/Hill-Cipher | [
"00ee53cdfcab7ce790eb0f10bcffd570cb8a3a98"
] | [
"hill_cipher.py"
] | [
"import numpy as np\nimport math\nimport utils\n\n# decryption function\ndef decrypt(key_matrix_inv, cipher_text):\n \"\"\"\n Arguments: key matrix inverse, cipher text\n Returns: plain text\n \"\"\"\n print(\"Matrix Inverse is: \\n\", key_matrix_inv)\n dimensions = len(cipher_text)\n \n # c... | [
[
"numpy.linalg.det",
"numpy.dot",
"numpy.array",
"numpy.matrix"
]
] |
jhlegarreta/scikit-learn | [
"07a9dc93af13849e0521e94981fb5a215500b095"
] | [
"sklearn/compose/tests/test_column_transformer.py"
] | [
"\"\"\"\nTest the ColumnTransformer.\n\"\"\"\nimport re\nimport pickle\n\nimport numpy as np\nfrom scipy import sparse\nimport pytest\n\nfrom numpy.testing import assert_allclose\nfrom sklearn.utils._testing import assert_array_equal\nfrom sklearn.utils._testing import assert_allclose_dense_sparse\nfrom sklearn.uti... | [
[
"numpy.asarray",
"numpy.concatenate",
"sklearn.compose.make_column_transformer",
"numpy.random.randn",
"sklearn.compose.ColumnTransformer",
"scipy.sparse.issparse",
"numpy.arange",
"numpy.eye",
"sklearn.compose.make_column_selector",
"sklearn.utils._testing.assert_array_equ... |
malwaredllc/neural-chess | [
"f092a7faaa3ff067a0dc557ad7f0dd3e68309154"
] | [
"train.py"
] | [
"import pickle\nfrom pathlib import Path\n\nimport numpy as np\nimport torch\nfrom torch import nn\nfrom torch.utils.data import DataLoader, Dataset\nfrom tqdm import tqdm\n\nEPOCHS = 20\n\n\nclass ChessDataset(Dataset):\n def __init__(self):\n self.data = np.load(Path(\"processed/dataset.npz\"))\n ... | [
[
"torch.utils.data.DataLoader",
"torch.tanh",
"torch.nn.Linear",
"torch.nn.ReLU",
"torch.nn.MSELoss"
]
] |
elix-tech/kmol | [
"f7fb610d0cbe958891ed15032bb301fb664e4e25"
] | [
"src/kmol/data/streamers.py"
] | [
"import logging\nimport operator\nimport os\nfrom abc import ABCMeta, abstractmethod\nfrom copy import copy\nfrom enum import Enum\nfrom functools import reduce\nfrom joblib import Parallel, delayed\nfrom typing import List, Dict, Union\n\nfrom torch.utils.data import DataLoader, Subset\nfrom tqdm import tqdm\n\nfr... | [
[
"torch.utils.data.Subset"
]
] |
Pchatain/seedingWithEA | [
"d4e64f102f48630b64444331932bf9bad8b156af"
] | [
"GenericDetector/EvolutionaryStrategies.py"
] | [
"#!/usr/bin/env python3\nfrom deap import cma\nfrom deap import algorithms\nfrom deap import tools\nfrom deap import creator\nfrom deap import base\n\nfrom collections import OrderedDict\n\nimport pathlib\nimport matplotlib\nmatplotlib.use('pdf')\nimport matplotlib.pyplot as plt\nimport random\nimport subprocess\ni... | [
[
"matplotlib.pyplot.tight_layout",
"matplotlib.use",
"matplotlib.pyplot.subplots",
"matplotlib.pyplot.savefig",
"matplotlib.pyplot.close"
]
] |
AnonyZeus/face-detection | [
"15c4df4f1d7f72b111fab253b29761ce515c1f65"
] | [
"train_model.py"
] | [
"# USAGE\n# python train_model.py --embeddings output/embeddings.pickle \\\n#\t--recognizer output/recognizer.pickle --le output/le.pickle\n\n# import the necessary packages\nfrom sklearn.preprocessing import LabelEncoder\nfrom sklearn.svm import SVC\nimport argparse\nimport pickle\n\nfrom config_reader import read... | [
[
"sklearn.preprocessing.LabelEncoder",
"sklearn.svm.SVC"
]
] |
jagoosw/777Dashboard | [
"df9422c187ccccbae424ba47ceacba01193abf77"
] | [
"main.py"
] | [
"from matplotlib.backends.backend_agg import RendererAgg\nimport streamlit as st\nimport time, os, pathlib, multiprocessing, matplotlib\nimport numpy as np\nimport pandas as pd\nimport matplotlib.pyplot as plt\nfrom datetime import datetime\nfrom requests import HTTPError\n\nmatplotlib.use(\"agg\")\n\n_lock = Rende... | [
[
"pandas.read_excel",
"matplotlib.use",
"pandas.read_pickle",
"pandas.DataFrame.from_dict"
]
] |
cr7anand/neural_temporal_models | [
"0b72be14e1fba0ed681322994e09116496ff19e8"
] | [
"deltaRNN.py"
] | [
"#\"\"\"\n#Author :- Ankur Mali\n#\"\"\"\n\nimport os\nimport sys\nimport tensorflow as tf\nimport numpy as np\n#from tensorflow.python.ops.rnn_cell import RNNCell\n#from rnn_cell_impl import RNNCell\nfrom rnn_cell_implement import RNNCell\n\nclass DeltaRNNCell(RNNCell):\n #\"\"\"\n #Delta RNN - Differential ... | [
[
"tensorflow.get_variable",
"tensorflow.matmul",
"tensorflow.concat",
"tensorflow.nn.sigmoid",
"tensorflow.constant_initializer",
"tensorflow.contrib.layers.xavier_initializer",
"tensorflow.variable_scope"
]
] |
DT021/FinanceDatabase | [
"beacce8ca7ddf9e5add8db374a449f023d6e5b86"
] | [
"Examples/Semiconductors_ETFs.py"
] | [
"import FinanceDatabase as fd\nfrom yfinance.utils import get_json\nimport matplotlib.pyplot as plt\n\nall_etfs = fd.select_etfs()\n\nsemiconductor_etfs = fd.search_products(all_etfs, 'semiconductor')\n\n# Remove some unwanted ETFs\ndel semiconductor_etfs['DXSH.DE']\ndel semiconductor_etfs['DXSH.F']\n\nsemiconducto... | [
[
"matplotlib.pyplot.xticks",
"matplotlib.pyplot.tight_layout",
"matplotlib.pyplot.show",
"matplotlib.pyplot.barh"
]
] |
24113000/4ertov_oprediliyka | [
"03e018fe50daa08f0996762676f4bd20b91490ef"
] | [
"train.py"
] | [
"#! /usr/bin/env python\n\n\"\"\"\nThis script takes in a configuration file and produces the best model. \nThe configuration file is a json file and looks like this:\n\n{\n \"model\" : {\n \"architecture\": \"Full Yolo\",\n \"input_size\": 416,\n \"anchors\": ... | [
[
"numpy.random.shuffle"
]
] |
DrHB/PANDA-2nd-place-solution | [
"44ab72780f9e3594811f2a7520456de7a9e677db"
] | [
"train_rguo/train_code/train_msesmooth_se.py"
] | [
"import torch\r\nimport torch.nn as nn\r\nfrom torch.utils.data import DataLoader\r\nimport numpy as np\r\nimport torch.nn.functional as F\r\nimport pandas as pd\r\nimport time\r\nfrom tqdm import tqdm\r\nimport apex.amp as amp\r\nimport albumentations as A\r\nimport os\r\nimport cv2\r\n\r\nfrom dataset.dataset_pat... | [
[
"sklearn.metrics.roc_auc_score",
"torch.nn.functional.softmax",
"torch.load",
"torch.utils.data.DataLoader",
"sklearn.metrics.confusion_matrix",
"pandas.DataFrame",
"numpy.concatenate",
"torch.no_grad",
"torch.nn.functional.smooth_l1_loss",
"numpy.where",
"torch.save",
... |
VictorBenoiston/recommender_system | [
"1b89faa76b2c70d54b559d64822014aa41bfcf66"
] | [
"content_based.py"
] | [
"import numpy as np\nimport pandas as pd\nimport sklearn\nimport matplotlib.pyplot as plt\nimport seaborn as sns\n\n\nimport warnings\nwarnings.simplefilter(action='ignore', category=FutureWarning)\n\n\n# Carregando os dados:\ndata = pd.read_csv('consulta_geral.csv', header=None, names=[\"disciplina\", \"assuntos\"... | [
[
"pandas.concat",
"pandas.read_csv",
"matplotlib.pyplot.figure",
"sklearn.metrics.pairwise.cosine_similarity",
"pandas.DataFrame",
"matplotlib.pyplot.xticks",
"pandas.get_dummies"
]
] |
lywang3081/AFEC | [
"6d87301cc8291b1779905871e3001471b2b44d8c"
] | [
"LargeScale/trainer/ewc.py"
] | [
"from __future__ import print_function\n\nimport copy\nimport logging\n\nimport numpy as np\nimport torch\nimport torch.nn.functional as F\nimport torch.nn as nn\nimport torch.utils.data as td\nfrom PIL import Image\nfrom tqdm import tqdm\nimport trainer\n\nimport networks\n\nclass Trainer(trainer.GenericTrainer):\... | [
[
"torch.no_grad",
"torch.nn.CrossEntropyLoss",
"torch.utils.data.DataLoader"
]
] |
the-moliver/libTLDA | [
"1802ccd0f839a9cf489f1424363df5287466fbf6"
] | [
"libtlda/tests/test_flda.py"
] | [
"import numpy as np\nimport numpy.random as rnd\nfrom libtlda.flda import FeatureLevelDomainAdaptiveClassifier\n\n\ndef test_init():\n \"\"\"Test for object type.\"\"\"\n clf = FeatureLevelDomainAdaptiveClassifier()\n assert type(clf) == FeatureLevelDomainAdaptiveClassifier\n assert not clf.is_trained\n... | [
[
"numpy.ones",
"numpy.random.randn",
"numpy.zeros",
"numpy.unique"
]
] |
connernam/lightweight-human-pose-estimation.pytorch | [
"ea30c43dce0d9439345e014e00a5cf7ef34db9e1"
] | [
"train.py"
] | [
"import argparse\nimport cv2\nimport os\nimport numpy as np\nimport torch\nfrom torch.nn import DataParallel\nimport torch.optim as optim\nfrom torch.utils.data import DataLoader\nfrom torchvision import transforms\n\nfrom datasets.coco import CocoTrainDataset\nfrom datasets.transformations import ConvertKeypoints,... | [
[
"torch.optim.lr_scheduler.MultiStepLR",
"torch.nn.DataParallel",
"torch.utils.data.DataLoader",
"torch.load"
]
] |
arnaldog12/tensorflow | [
"5a4261d2015cf241ca0b6e3e5a023c4957def3bf"
] | [
"tensorflow/contrib/kfac/python/ops/fisher_factors.py"
] | [
"# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | [
[
"tensorflow.contrib.kfac.python.ops.utils.tensors_to_column",
"tensorflow.python.ops.array_ops.shape",
"tensorflow.python.ops.array_ops.zeros",
"tensorflow.python.ops.linalg_ops.self_adjoint_eig",
"tensorflow.contrib.kfac.python.ops.utils.posdef_inv",
"tensorflow.python.ops.array_ops.trans... |
ioshchepkov/pygeoid | [
"86b29333cb9f3c5543983da6fbfc7923da8818d8"
] | [
"pygeoid/reduction/normal.py"
] | [
"\"\"\"\nGravity field and geometry of the level ellipsoid.\n\"\"\"\n\nimport numpy as np\nimport astropy.units as u\nfrom scipy import (optimize, special)\nfrom pygeoid.coordinates.ellipsoid import Ellipsoid\n\n\nLEVEL_ELLIPSOIDS = {\n 'GRS80': {'description': 'GRS 80',\n 'a': 6378137.0 * u.m,\n ... | [
[
"scipy.optimize.fsolve",
"numpy.sqrt",
"numpy.arctan",
"numpy.cos",
"numpy.sin",
"numpy.arctan2"
]
] |
CeibaSheep/Person_reID_baseline_pytorch | [
"3745831b998f0d9e23f7a66285b21d3ae92eede9",
"3745831b998f0d9e23f7a66285b21d3ae92eede9",
"3745831b998f0d9e23f7a66285b21d3ae92eede9"
] | [
"dotracker.py",
"visual_heatmap.py",
"test_RT.py"
] | [
"from __future__ import division\nimport sys\nimport os\nimport numpy as np\nfrom PIL import Image\nimport src.siamese as siam\nfrom src.tracker import tracker\nfrom src.parse_arguments import parse_arguments\nfrom src.region_to_bbox import region_to_bbox\nimport cv2\n# import tensorflow as tf\nimport time\nimport ... | [
[
"numpy.linspace",
"numpy.asarray",
"numpy.linalg.norm",
"numpy.genfromtxt",
"numpy.size",
"numpy.mean",
"numpy.array",
"numpy.zeros",
"numpy.trapz"
],
[
"torch.nn.Sequential",
"matplotlib.use",
"torch.utils.data.DataLoader",
"torch.no_grad",
"matplotlib.... |
hongrui16/naic2020_B | [
"9321bdd19e7d2d47ac9c711eb8437cd364e25f44"
] | [
"encoding/models/sseg/atten.py"
] | [
"###########################################################################\n# Created by: Hang Zhang \n# Email: zhang.hang@rutgers.edu \n# Copyright (c) 2018\n###########################################################################\nfrom __future__ import division\nimport os\nimport numpy as np\nimport torch\n... | [
[
"torch.nn.Sequential",
"torch.nn.Dropout",
"torch.cat",
"torch.nn.Conv2d",
"torch.nn.AdaptiveAvgPool2d",
"torch.nn.functional.interpolate",
"torch.nn.ReLU"
]
] |
victorsun123/FeatureLearningRotNet | [
"53830a40606509997976089b483abfe34bd3b109"
] | [
"algorithms/Algorithm.py"
] | [
"\"\"\"Define a generic class for training and testing learning algorithms.\"\"\"\nfrom __future__ import print_function\nimport os\nimport os.path\nimport imp\nfrom tqdm import tqdm\n\nimport torch\nimport torch.nn as nn\nimport torch.optim\n\nimport utils\nimport datetime\nimport logging\n\nfrom pdb import set_tr... | [
[
"torch.optim.Adam",
"torch.optim.SGD",
"torch.save",
"torch.load"
]
] |
Cutwell/color_oppy | [
"2b8376e695d87e40dcb89e9d2d2caa596eba3d35"
] | [
"colourise.py"
] | [
"from keras.layers import Conv2D, Conv2DTranspose, UpSampling2D\nfrom keras.layers import Activation, Dense, Dropout, Flatten, InputLayer\nfrom keras.layers.normalization import BatchNormalization\nfrom keras.callbacks import TensorBoard\nfrom keras.models import Sequential\nfrom keras.preprocessing.image import Im... | [
[
"tensorflow.keras.models.load_model",
"numpy.array",
"numpy.zeros"
]
] |
kailashbuki/pycute | [
"dd9449704e255bcdce83c0bfe2208c6f37b3489e"
] | [
"pycute/tent.py"
] | [
"#!/usr/bin/env python\n# -*- coding: utf8 -*-\n\"\"\"Computes the transfer entropy from Y to X.\n\"\"\"\nfrom collections import Counter, defaultdict\nfrom typing import DefaultDict, List, Tuple\n\nimport numpy as np # type: ignore\n\nfrom .utils import lg\n\n__all__ = ['transfer_entropy', 'tent']\n\n\ndef transf... | [
[
"numpy.delete",
"numpy.append"
]
] |
gstarrett/WAR | [
"5f8de922567ee16b495a5ffb060c08836adb2751"
] | [
"all_pairwise_muts.py"
] | [
"#!/usr/bin/env python3\nimport argparse\nfrom Bio import AlignIO\nfrom Bio import Phylo\nfrom Bio.Seq import Seq\nimport scipy.stats as stats\n\n### variant caller\ndef pairwise_variant_caller(query,count,a_aln,q_aln,path):\n subject = path[count].name\n refBases = list(a_aln[subject].upper())\n recordBases = l... | [
[
"scipy.stats.fisher_exact"
]
] |
zhizhangxian/CCNet | [
"8496a87eaa596eda91e9281bd318fdde33d2f366"
] | [
"test.py"
] | [
"import argparse\r\nimport scipy\r\nfrom scipy import ndimage\r\nimport cv2\r\nimport numpy as np\r\nimport sys\r\nimport json\r\n\r\nimport torch\r\nfrom torch.autograd import Variable\r\nimport torchvision.models as models\r\nimport torch.nn.functional as F\r\nfrom torch.utils import data\r\nfrom networks.ccnet i... | [
[
"numpy.pad",
"torch.load",
"torch.from_numpy",
"numpy.argmax",
"torch.nn.Upsample",
"torch.no_grad",
"numpy.array",
"numpy.zeros"
]
] |
matanmarkind/qlearning | [
"2ec3334b9722945762536503fa9855586f23579f"
] | [
"Gridworld-defunct/breakout.py"
] | [
"import gym, time, random\nimport gridworld\nimport numpy as np\nimport tensorflow as tf\nimport matplotlib.pyplot as plt\n\nLEARN_RATE = .1\nEPISODES = 10000\n\ndef prep_image(image):\n # convert from raw atari game to input for NN\n grayscale = np.average(image, axis=2)\n normalized = grayscale / 255.\n ... | [
[
"tensorflow.layers.conv2d",
"tensorflow.reshape",
"tensorflow.layers.dense",
"tensorflow.placeholder",
"matplotlib.pyplot.plot",
"tensorflow.global_variables_initializer",
"numpy.max",
"tensorflow.reset_default_graph",
"tensorflow.train.GradientDescentOptimizer",
"numpy.ran... |
erythrocyte/qtlappy | [
"f8ceda45cb5c26e2be8107ddfbafe2d5e3b76627"
] | [
"src/lappy/services/vert_well_maker.py"
] | [
"#!/usr/bin/env python3\n# coding: utf-8\n\nimport numpy as np\n\n\nclass VertWellMaker(object):\n \"\"\"\n vertical well bound points and segments maker\n \"\"\"\n\n def make(self, well, nw):\n \"\"\"\n \"\"\"\n x = well.track[0].x\n y = well.track[0].y\n rw = well.ra... | [
[
"numpy.arange",
"numpy.cos",
"numpy.stack",
"numpy.sin"
]
] |
ayushmankumar7/pytorch-lanenet | [
"db9f116ba3f42dbfabf064e4a89ec068e9da4ee4"
] | [
"lanenet/model/encoders.py"
] | [
"# coding: utf-8\n\"\"\"\nShared encoders (U-net).\n\"\"\"\nimport torch\nimport torch.nn as nn\nfrom collections import OrderedDict\n\nimport torchvision.models as models\n\nfrom model.blocks import RegularBottleneck, DownsamplingBottleneck, InitialBlock, InputProjectionA, \\\n DilatedParallelResidualBlockB, Do... | [
[
"torch.nn.Sequential",
"torch.cat",
"torch.nn.ModuleList",
"torch.nn.Conv2d",
"torch.nn.MaxPool2d",
"torch.nn.BatchNorm2d",
"torch.nn.ReLU"
]
] |
ameisner/desispec | [
"d18974396ff2e916e0d8a102cca83607f78f22ce",
"d18974396ff2e916e0d8a102cca83607f78f22ce",
"d18974396ff2e916e0d8a102cca83607f78f22ce",
"d18974396ff2e916e0d8a102cca83607f78f22ce"
] | [
"py/desispec/io/util.py",
"py/desispec/test/test_preproc.py",
"py/desispec/scripts/processingtable.py",
"py/desispec/database/redshift.py"
] | [
"\"\"\"\ndesispec.io.util\n================\n\nUtility functions for desispec IO.\n\"\"\"\nimport os\nimport glob\nimport time\nimport datetime\nimport astropy.io\nimport numpy as np\nfrom astropy.table import Table\nfrom desiutil.log import get_logger\n\nfrom ..util import healpix_degrade_fixed\n\n\ndef iterfiles(... | [
[
"numpy.arange",
"numpy.memmap",
"numpy.isscalar",
"numpy.lib.recfunctions.append_fields",
"numpy.empty"
],
[
"numpy.ones_like",
"numpy.sqrt",
"numpy.linspace",
"numpy.random.seed",
"numpy.abs",
"numpy.median",
"numpy.dtype",
"numpy.ones",
"numpy.all",
... |
SpikeInterface/spiketoolk | [
"d90954388400b55e53cc9cc79dbb8a63a5e39c42"
] | [
"spiketoolkit/preprocessing/mask.py"
] | [
"from spikeextractors import RecordingExtractor\nfrom spikeextractors.extraction_tools import check_get_traces_args\nimport numpy as np\nfrom .basepreprocessorrecording import BasePreprocessorRecordingExtractor\n\n\nclass MaskRecording(BasePreprocessorRecordingExtractor):\n preprocessor_name = 'Mask'\n\n def ... | [
[
"numpy.array"
]
] |
liruilong940607/trainer.pytorch | [
"a67fdc02b4fb45b3cc187aa4ae34053574d0383c",
"d8580589827fe0ab23206465a5a097657c572f1c"
] | [
"lib/common/trainer.py",
"apps/train_net.py"
] | [
"import os\nimport sys\nfrom easydict import EasyDict as edict\n\nimport torch\nimport torch.nn as nn\n\nfrom tensorboardX import SummaryWriter\nfrom .logger import colorlogger\n\n\nclass Trainer():\n def __init__(self, net, opt=None, use_tb=True):\n self.opt = opt if opt is not None else Trainer.get_defa... | [
[
"torch.optim.lr_scheduler.MultiStepLR",
"torch.nn.DataParallel",
"torch.load",
"torch.save"
],
[
"torch.nn.Dropout2d",
"torch.nn.functional.log_softmax",
"torch.nn.functional.dropout",
"torch.nn.functional.nll_loss",
"torch.nn.Conv2d",
"torch.utils.data.DataLoader",
... |
puzzlepcs/pygcn | [
"94d942fbcd16cbdb44365ee91172302ce779ec34"
] | [
"src/gcn.py"
] | [
"# with negative sampling GCN\n\nimport argparse\nimport time\n\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport torch.optim as optim\n\nimport numpy as np\n\nfrom utils import save_embeddings, load_data_unsupervised\n\nCORA_NUM_INPUT_FEATURES = OUTPUT_DIM = 128\nINPUT = \"../data/cora-... | [
[
"torch.nn.Softmax",
"torch.transpose",
"torch.zeros",
"torch.cat",
"torch.nn.ELU",
"torch.sparse_coo_tensor",
"torch.FloatTensor",
"torch.cuda.is_available",
"torch.topk",
"torch.nn.Dropout",
"torch.mm",
"torch.ones",
"torch.rand",
"torch.ones_like",
"to... |
xyj77/MCF-3D-CNN | [
"32576a5b2132d1e41146f57cee4d3228fd1ace92"
] | [
"data_loader/liver_data_loader.py"
] | [
"# -*- coding:utf-8 -*-\nfrom base.base_data_loader import BaseDataLoader\n\nimport os\nimport numpy as np\nimport scipy.io as sio\nfrom sklearn.model_selection import train_test_split\nfrom sklearn.utils import shuffle\n\nimport tensorflow as tf \nfrom keras.utils import np_utils \nfrom SampleData import sampledat... | [
[
"tensorflow.transpose",
"tensorflow.unstack",
"numpy.asarray",
"tensorflow.stack",
"scipy.io.loadmat",
"tensorflow.Session"
]
] |
KeyvanNajarian/keyvanledsa | [
"1db40e6d80dffcbe4f5619aa3af38759fd2fdf4b"
] | [
"ledsa/tests/log_analysis.py"
] | [
"# tools for analysing problems with the LED fitting\nimport ledsa.core.model\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport importlib\nfrom PIL import Image\nimport ledsa.core.led_helper as led\nfrom ledsa.core.model import led_model\nfrom ..ledsa import LEDSA\n\n\nclass FitAnalyser:\n\n def __ini... | [
[
"matplotlib.pyplot.imshow",
"numpy.abs",
"numpy.linspace",
"matplotlib.pyplot.subplots",
"matplotlib.pyplot.colorbar",
"matplotlib.pyplot.show"
]
] |
ajayarunachalam/pynmsnn | [
"8077b45de7b7521dbb3dedacab239c8480b670df"
] | [
"pyNM/spiking_regressor.py"
] | [
"__author__ = 'Ajay Arunachalam'\r\n__version__ = '0.0.1'\r\n__date__ = '17.07.2021'\r\n\r\nimport torch\r\nimport torch.nn.functional as F\r\nimport torch.nn as nn\r\nfrom torch.autograd import Variable\r\nfrom torch.utils.data import Dataset, DataLoader\r\nimport torch.optim as optim\r\n\r\n\r\nclass SpikingNeuro... | [
[
"torch.zeros",
"torch.nn.Linear",
"torch.nn.functional.relu",
"torch.rand",
"torch.nn.init.xavier_uniform_",
"torch.stack",
"torch.nn.ReLU"
]
] |
BartJanBoverhof/asreview | [
"33894ebebf7bda2c552b707c3725c0287ac00369"
] | [
"asreview/models/query/cluster.py"
] | [
"# Copyright 2019-2020 The ASReview 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 r... | [
[
"numpy.arange",
"numpy.array",
"sklearn.cluster.KMeans"
]
] |
eywalker/neuralpredictors | [
"6eabd904cb52e8565df315e4a96599e1064982f5"
] | [
"neuralpredictors/data/utils.py"
] | [
"from pathlib import Path\nimport h5py\nimport numpy as np\nfrom tqdm import tqdm\nfrom collections import Mapping\n\nfrom pathlib import Path\nfrom zipfile import ZIP_DEFLATED, ZipFile\nimport logging\n\nlogger = logging.getLogger(__name__)\n\n\ndef zip_dir(zip_name: str, source_dir):\n \"\"\"\n Zips all fil... | [
[
"numpy.isscalar",
"numpy.save"
]
] |
shayxu-ai/automatic-stock-exchange | [
"6a7e3d831fd474c433258898c145e9c27822d4ac"
] | [
"predict_verify.py"
] | [
"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n# @Date: 2021/03/11 Thu\n# @Author: ShayXU\n# @Filename: predict.py\n\n\n\"\"\"\n 0、重构下代码,优化结构\n \n 0.1 *pandas rolling聚合 是否有信息泄露 (大概不会吧)\n\n 1、结果不准确 =》 再加特征,多维CNN\n # volume 成交量\n # amount 成交额\n # turn 换手率\n\n 2、结果不稳定 =》 多次训练。\n\... | [
[
"tensorflow.convert_to_tensor",
"tensorflow.keras.models.load_model",
"pandas.read_csv",
"tensorflow.nn.softmax",
"tensorflow.keras.losses.SparseCategoricalCrossentropy",
"tensorflow.keras.layers.Dense",
"tensorflow.keras.layers.Conv2D",
"tensorflow.keras.layers.Conv3D",
"sklea... |
shiftycow/rpotter | [
"3904dfc5f1185c427ae1294631ab870a9e9e946c"
] | [
"rpotter.py"
] | [
"#!/usr/bin/python\n# -*- coding: utf-8 -*-\n'''\n _\\\n \\\nO O-O\n O O\n O\n\nRaspberry Potter\nVersion 0.1.5\n\nUse your own wand or your interactive Harry Potter wands to control the IoT.\n\nUpdated for OpenCV 3.2\nIf you have an older version of OpenCV installed, please uninstall fully (check your cv2 versi... | [
[
"numpy.zeros_like"
]
] |
Fredy/Morph-speech-dysfluencies | [
"39d611ca8884ad1ad479d95756af2a8527214d3b"
] | [
"src/audio_tools.py"
] | [
"\"\"\"General audio tools\"\"\"\nimport numpy as np\nfrom scipy.io import wavfile\n\n\ndef read_wav(file):\n \"\"\"Read and normalizes wavfile between [-1, 1]\"\"\"\n rate, data = wavfile.read(file)\n if data.dtype == np.float32:\n return rate, data\n\n max_ = max(data.min(), data.max(), key=abs... | [
[
"scipy.io.wavfile.read",
"numpy.empty"
]
] |
MischaDy/BA | [
"0f4ad49b47038fe44fef43bedf1818e1138a944a"
] | [
"Logic/evaluate_performance/eval_lfw/evaluate_accuracy_lfw.py"
] | [
"import os\n\nimport numpy as np\n\nfrom Logic.evaluate_performance.evaluate_accuracy import run_metric_evaluation\n\nIMAGES_PATH = r'C:\\Users\\Mischa\\Desktop\\Uni\\20-21 WS\\Bachelor\\Programming\\Backup unneeded files\\BA\\Logic\\my_test\\subset_cplfw\\images'\nSAVE_RESULTS = False\nSAVE_PATH = 'results_thresho... | [
[
"numpy.linspace"
]
] |
xchang1/starfish | [
"13eff0d00764340bac2f4700ba72a8ed67c66fa9",
"13eff0d00764340bac2f4700ba72a8ed67c66fa9"
] | [
"starfish/test/pipeline/test_filter.py",
"starfish/test/full_pipelines/api/test_iss_api.py"
] | [
"from typing import Tuple, Union\n\nimport numpy as np\nimport pytest\n\nfrom starfish.image._filter import gaussian_high_pass, mean_high_pass\nfrom starfish.imagestack.imagestack import ImageStack\nfrom starfish.types import Number\n\n\ndef random_data_image_stack_factory():\n data = np.random.uniform(0, 1, 100... | [
[
"numpy.random.uniform",
"numpy.sum"
],
[
"numpy.allclose",
"numpy.array_equal",
"numpy.random.seed",
"numpy.array",
"numpy.sum"
]
] |
Tabrizian/learning-to-quantize | [
"545ef7075ff01cbb218600878943554954cef53f",
"545ef7075ff01cbb218600878943554954cef53f",
"545ef7075ff01cbb218600878943554954cef53f"
] | [
"models/clone_model.py",
"log_utils.py",
"models/cifar10_wresnet.py"
] | [
"import torch\nimport torch.nn as nn\nimport copy\nfrom torch.nn.parallel.parallel_apply import parallel_apply\n\n\nclass CloneModel(nn.Module):\n def __init__(self, module, batch_size):\n super(CloneModel, self).__init__()\n self.replicas = [module]\n self.batch_size = batch_size\n f... | [
[
"torch.nn.parallel.parallel_apply.parallel_apply",
"torch.split"
],
[
"numpy.min",
"numpy.median",
"numpy.max",
"numpy.std",
"numpy.ma.masked_invalid",
"numpy.mean"
],
[
"torch.nn.Sequential",
"torch.nn.functional.log_softmax",
"torch.nn.functional.dropout",
... |
psykei/psyke-python | [
"6c2f5042d2465f10eaddc690e87e3e1ab5acb0dc"
] | [
"psyke/regression/__init__.py"
] | [
"from __future__ import annotations\nfrom typing import Iterable\nimport numpy as np\nimport pandas as pd\nfrom sklearn.feature_selection import SelectKBest, f_regression\nfrom sklearn.linear_model import LinearRegression\nfrom tuprolog.core import Var, Struct, clause\nfrom tuprolog.theory import Theory, mutable_th... | [
[
"sklearn.feature_selection.SelectKBest",
"numpy.array"
]
] |
graphcore/popart | [
"15ce5b098638dc34a4d41ae2a7621003458df798",
"15ce5b098638dc34a4d41ae2a7621003458df798"
] | [
"tests/integration/operators_test/lstm_test.py",
"tests/integration/outlining_test.py"
] | [
"# Copyright (c) 2019 Graphcore Ltd. All rights reserved.\nimport pytest\nimport numpy as np\nimport popart\nimport torch\nimport onnx\nimport json\nfrom op_tester import op_tester\n\nfrom pathlib import Path\nfrom test_session import PopartTestSession\n\n# `import test_util` requires adding to sys.path\nimport sys... | [
[
"numpy.split",
"numpy.expand_dims",
"torch.cat",
"numpy.asarray",
"numpy.squeeze",
"numpy.concatenate",
"torch.split",
"numpy.exp",
"numpy.arange",
"torch.tensor",
"numpy.zeros",
"numpy.ascontiguousarray",
"torch.unsqueeze",
"numpy.random.rand",
"numpy.t... |
jiangbr/l5kit | [
"286d7be4272c6485dfe4d5242eec2e31a710f564",
"286d7be4272c6485dfe4d5242eec2e31a710f564"
] | [
"l5kit/l5kit/evaluation/extract_ground_truth.py",
"l5kit/l5kit/tests/sampling/deep_prediction_test.py"
] | [
"from typing import Optional\n\nimport numpy as np\nfrom tqdm import tqdm\n\nfrom l5kit.data import ChunkedDataset\nfrom l5kit.dataset import AgentDataset\nfrom l5kit.geometry import transform_points\nfrom l5kit.rasterization import RenderContext, StubRasterizer\n\nfrom .csv_utils import write_gt_csv\n\n\ndef expor... | [
[
"numpy.asarray"
],
[
"numpy.asarray",
"numpy.all",
"numpy.array",
"numpy.zeros"
]
] |
alexdavies/jax | [
"812df27a2d8f61bfac95ff2867d1284cac81837f"
] | [
"tests/optix_test.py"
] | [
"# Copyright 2018 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed ... | [
[
"numpy.testing.assert_allclose"
]
] |
pwzy/surround-view-system-introduction | [
"bf34f34ec3a12df71fe39eeee592ea9b3b657e4c",
"bf34f34ec3a12df71fe39eeee592ea9b3b657e4c"
] | [
"surround_view/simple_gui.py",
"surround_view/fisheye_camera.py"
] | [
"import cv2\nimport numpy as np\n\n# return -1 if user press 'q'. return 1 if user press 'Enter'.\ndef display_image(window_title, image):\n cv2.imshow(window_title, image)\n while True:\n click = cv2.getWindowProperty(window_title, cv2.WND_PROP_AUTOSIZE)\n if click < 0:\n return -1\n... | [
[
"numpy.array",
"numpy.zeros",
"numpy.zeros_like",
"numpy.int32"
],
[
"numpy.eye",
"numpy.float32"
]
] |
Faisal-Sey/Dreamnmatch.com | [
"f69f8be8e825b37c6abda5e169cc794b5ea2bd4e"
] | [
"ematch/money.py"
] | [
"\"\"\"\nfrom rave_python import Rave, RaveExceptions, Misc\nrave = Rave(\"FLWPUBK-a84b67198d340a7fdf94426256026503-X\", \"FLWSECK-cf767206dec44c4b415e4278c6a3f4a9-X\", usingEnv=False, production=True)\nid = \"00152431\"\ntxRef = Misc.generateTransactionReference(id)\npayload = {\n \"amount\": \"5\",\n \"emai... | [
[
"numpy.array",
"numpy.linalg.solve"
]
] |
NNDEV1/QandMedicAid | [
"4ff67a581159365cb7a30d6b28a31058899b3ff6"
] | [
"counting.py"
] | [
"\"\"\"\nLearning to Count Objects in Natural Images for Visual Question Answering\nYan Zhang, Jonathon Hare, Adam Prügel-Bennett\nICLR 2018\n\nThis code is from Yan Zhang's repository.\nhttps://github.com/Cyanogenoid/vqa-counting/blob/master/vqa-v2/counting.py\nMIT License\n\"\"\"\nimport torch\nimport torch.nn as... | [
[
"torch.sigmoid",
"torch.ones",
"torch.autograd.Variable"
]
] |
Yaccoub/Beams | [
"f3634980e1794d0ee2c537db329a9e2eb2481803"
] | [
"beams/DummyGaussian.py"
] | [
"import time\nimport numpy as N\nimport numpy.random\nfrom traits.api import Int, Constant, Range, Property, cached_property\nfrom traitsui.api import View, Item, HGroup, VGroup, Label\n\nfrom Camera import Camera\n\n\nclass DummyGaussian(Camera):\n plugin_info = {\n 'name': 'Dummy Gaussian',\n 'de... | [
[
"numpy.random.uniform",
"numpy.exp",
"numpy.hypot"
]
] |
jtang10/doatools.py | [
"c9f2a8dddeb2ea9bf96b956f03a1eb57d10cb850"
] | [
"doatools/tests/test_signals.py"
] | [
"import unittest\nimport numpy as np\nimport numpy.testing as npt\nfrom doatools.model.signals import ComplexStochasticSignal, RandomPhaseSignal\n\nclass TestSignals(unittest.TestCase):\n\n def test_complex_stochastic(self):\n np.random.seed(42)\n p = np.array([1., 2., 3., 2.])\n signal = Co... | [
[
"numpy.diag",
"numpy.array",
"numpy.random.seed"
]
] |
jpodivin/KohoCarpet | [
"562fa7c4acfdcc9759ac72477233fbd760e8b900"
] | [
"KohoCarpet/KohoCarpet.py"
] | [
"import numpy as np\nimport matplotlib.pyplot as pyplot\nfrom numpy.random import default_rng\nimport os\n\ndef data_init(map_depth, \n\t\t\t dist_params, \n\t\t\t class_size = 10):\n\n\tgenerator = default_rng()\n\n\tdataset = np.array([[generator.normal(loc = mean, \t\t\t\t\t\t\t\t\t \n\t\t\t\t\t\t\t\t\t sc... | [
[
"numpy.log",
"numpy.abs",
"numpy.min",
"numpy.subtract",
"matplotlib.pyplot.subplots",
"numpy.max",
"numpy.argmax",
"matplotlib.pyplot.close",
"numpy.add",
"numpy.average",
"numpy.zeros",
"numpy.random.default_rng"
]
] |
bedssys/Bedssys | [
"ae98453d13b0e07833d3cc27146838ba096532fb"
] | [
"old/run_LSTM_temp.py"
] | [
"import os\nimport matplotlib\nimport matplotlib.pyplot as plt\nimport tensorflow as tf # Version 1.0.0 (some previous versions are used in past commits)\nfrom sklearn import metrics\nimport random\nfrom random import randint\nimport argparse\nimport logging\nimport time\nimport operator\nimport imutils\n\nimport ... | [
[
"numpy.split",
"tensorflow.nn.softmax_cross_entropy_with_logits",
"tensorflow.cast",
"numpy.max",
"tensorflow.nn.l2_loss",
"tensorflow.train.AdamOptimizer",
"numpy.hstack",
"tensorflow.Variable",
"numpy.eye",
"tensorflow.contrib.rnn.MultiRNNCell",
"tensorflow.train.expo... |
corypaik/pytorch-lightning-pbt | [
"ad25e472fe59ca22bc400023d2589f4bedd37e30"
] | [
"pytorch_lightning_pbt/trainer/trainer.py"
] | [
"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# ---------------------\n# PyTorch Lightning PBT\n# Authors: Cory Paik\n# Rocket Romero\n# Updated: May. 2020\n# ---------------------\n\"\"\"\n\nPopulation Based Trainer\n=========\n\n\n\"\"\"\n\n\nimport copy\nfrom typing import Dict, Optional\n\nimpor... | [
[
"torch.multiprocessing.get_context"
]
] |
jhkim-spa/CVNet | [
"126a3155f414bf47e9e4f6fec121420fd378ea21",
"126a3155f414bf47e9e4f6fec121420fd378ea21"
] | [
"mmdet3d/datasets/pipelines/transforms_3d.py",
"tests/test_data/test_datasets/test_s3dis_dataset.py"
] | [
"import numpy as np\nfrom mmcv import is_tuple_of\nfrom mmcv.utils import build_from_cfg\n\nfrom mmdet3d.core import VoxelGenerator\nfrom mmdet3d.core.bbox import box_np_ops\nfrom mmdet.datasets.builder import PIPELINES\nfrom mmdet.datasets.pipelines import RandomFlip\nfrom ..builder import OBJECTSAMPLERS\nfrom .da... | [
[
"numpy.amax",
"numpy.logical_and",
"numpy.random.choice",
"numpy.amin",
"numpy.clip",
"numpy.unique",
"numpy.random.shuffle",
"numpy.concatenate",
"numpy.linalg.det",
"numpy.random.normal",
"numpy.random.randn",
"numpy.random.rand",
"numpy.where",
"numpy.ran... |
PINTO0309/object-detection-bbox-art | [
"cb7c5b558c9b35210e4b08a4706da14dc5f65234"
] | [
"boundingbox_art/bba_translucent_shape.py"
] | [
"#!/usr/bin/env python\r\n# -*- coding: utf-8 -*-\r\n\r\nimport copy\r\nimport numpy as np\r\nimport cv2 as cv\r\n\r\nfrom boundingbox_art.cvdrawtext import CvDrawText\r\n\r\n\r\ndef bba_translucent_rectangle(image,\r\n p1,\r\n p2,\r\n ... | [
[
"numpy.zeros"
]
] |
soldierofhell/CRAFT-pytorch | [
"6a1a29b0ebe141ad2045c7d66521a36427b12c09"
] | [
"craft_utils.py"
] | [
"\"\"\" \nCopyright (c) 2019-present NAVER Corp.\nMIT License\n\"\"\"\n\n# -*- coding: utf-8 -*-\nimport numpy as np\nimport cv2\nimport math\n\n\ndef getDetBoxes_core(textmap, linkmap, text_threshold, link_threshold, low_text):\n # prepare data\n linkmap = linkmap.copy()\n textmap = textmap.copy()\n i... | [
[
"numpy.logical_and",
"numpy.clip",
"numpy.linalg.norm",
"numpy.max",
"numpy.where",
"numpy.array",
"numpy.zeros",
"numpy.roll"
]
] |
warhuus/mhmms | [
"d292dce898c1cdfa16f6d16dea1d116ec94ea35d"
] | [
"mhmm/data/hcp.py"
] | [
"#%% import\nimport os\nfrom functools import wraps\nfrom typing import Optional\n\nimport torch\nfrom torch.utils.data import Dataset\nimport numpy as np\nimport scipy.io as io\n\n\nREPO = ''\nDATA_PATH = os.path.join(REPO, 'hcp_data', 'for_python')\n\n\ndef transform_X(func):\n @wraps(func)\n def wrapper(op... | [
[
"numpy.all",
"torch.tensor"
]
] |
jmigueldelgado/buhayra | [
"7236be088f3c3600cfd76650e1f80e0630653fe1"
] | [
"sar2watermask/sar.py"
] | [
"from os import listdir\nimport os\nimport shutil\nimport datetime\nimport sys\nimport logging\nfrom buhayra.getpaths import *\nimport buhayra.utils as utils\nfrom buhayra.utils import getWMinScene, checknclean, geojson2shapely\nimport sar2watermask.metadata as metadata\nimport xml.etree.ElementTree\nfrom snappy im... | [
[
"numpy.nanmax",
"numpy.isnan",
"numpy.int32",
"numpy.nanmin",
"numpy.int16",
"numpy.log10",
"numpy.iinfo"
]
] |
sebgao/LIP | [
"6724ec63c1f1ebefa25d7269e29d17c4411a7941"
] | [
"imagenet/lip_densenet.py"
] | [
"import re\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom collections import OrderedDict\n\n__all__ = ['DenseNet', 'densenet121',\n 'densenet169', 'densenet201', 'densenet161']\n\nmodel_urls = {\n 'densenet121': './lip_densenet_121.pth',\n}\n\nBOTTLENECK_WIDTH = 128\nCOEFF ... | [
[
"torch.sigmoid",
"torch.cat",
"torch.nn.functional.dropout",
"torch.load",
"torch.nn.functional.avg_pool2d",
"torch.nn.Conv2d",
"torch.nn.init.constant_",
"torch.nn.functional.adaptive_avg_pool2d",
"torch.nn.Linear",
"torch.nn.functional.relu",
"torch.nn.InstanceNorm2d"... |
maxgold/icml22 | [
"49f026dd2314091639b52f5b8364a29e8000b738",
"49f026dd2314091639b52f5b8364a29e8000b738"
] | [
"pytorch-ppo/evaluation.py",
"libs/gym/tests/vector/test_vector_env.py"
] | [
"import numpy as np\nimport torch\nimport imageio\n\nfrom a2c_ppo_acktr import utils\nfrom a2c_ppo_acktr.envs import make_vec_envs\n\ndef get_obs_rms(env):\n return getattr(utils.get_vec_normalize(env), 'obs_rms', None)\n\n\ndef make_movie(movie_path, frames):\n height, width, layers = frames[0].shape\n vi... | [
[
"torch.ones",
"torch.zeros",
"torch.tensor",
"torch.FloatTensor",
"torch.no_grad",
"numpy.mean",
"numpy.array"
],
[
"numpy.all"
]
] |
marzeck/ArrayBeamDepthTool | [
"dd80bac283049d8fdacd3b6b78a66143cd834640"
] | [
"src/guesstimate_depth_v02.py"
] | [
"import numpy as num\nfrom scipy.signal import detrend\nimport matplotlib\n\nfont = {\"family\": \"normal\", \"size\": 16}\nmatplotlib.rc(\"font\", **font)\nimport math\n\n# matplotlib.use = 'QtAgg4'\nimport logging\nfrom pyrocko import io\nfrom pyrocko import model, cake\nfrom pyrocko.trace import IntegrationRespo... | [
[
"matplotlib.pyplot.legend",
"numpy.fft.irfft",
"numpy.meshgrid",
"numpy.min",
"numpy.linspace",
"numpy.arange",
"numpy.ones",
"numpy.argmin",
"matplotlib.pyplot.subplots_adjust",
"numpy.exp",
"matplotlib.pyplot.show",
"matplotlib.rc",
"matplotlib.pyplot.figure"
... |
camilo-cf/camilo-cf.github.io | [
"987bf7ad4da77168fec30cf38f1110615562c40c"
] | [
"markdown_generator/publications.py"
] | [
"#DONT USE LATIN CHARACTERS!!!!!!!!!!!\n\n\n# coding: utf-8\n\n# # Publications markdown generator for academicpages\n# \n# Takes a TSV of publications with metadata and converts them for use with [academicpages.github.io](academicpages.github.io). This is an interactive Jupyter notebook, with the core python code ... | [
[
"pandas.read_csv"
]
] |
QWERDF007/LearningDL | [
"22b12d380bced0e3840f4ba9a9caac5faff993e1"
] | [
"code/5.Cleaner/get_error_labels.py"
] | [
"import os\nimport argparse\nimport sqlite3\nfrom pathlib import Path\n\nimport torch\nimport cleanlab\nimport numpy as np\nimport pandas as pd\nfrom PIL import Image\nfrom sklearn import metrics\nfrom torchvision import datasets\nfrom torch.utils.data import Dataset\nfrom cleanlab import pruning\n# pruning.MIN_NUM... | [
[
"pandas.read_csv",
"sklearn.metrics.precision_score",
"numpy.argmax",
"numpy.load",
"numpy.array",
"sklearn.metrics.recall_score"
]
] |
Arthasasyan/atsd-api-python | [
"bce30ef26eb119b42ab54d10edf517299bd9d653"
] | [
"atsd_client/services.py"
] | [
"# -*- coding: utf-8 -*-\n\n\"\"\"\nCopyright 2018 Axibase Corporation or its affiliates. All Rights Reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\").\nYou may not use this file except in compliance with the License.\nA copy of the License is located at\n\nhttps://www.axibase.com/atsd/a... | [
[
"pandas.set_option",
"pandas.DataFrame"
]
] |
Jay9z/gwhd_efficentdet | [
"2ee45a51172faa9fc448d4ee4cd3931eaaa87c53"
] | [
"validate.py"
] | [
"#!/usr/bin/env python\n\"\"\" COCO validation script\n\nHacked together by Ross Wightman (https://github.com/rwightman)\n\"\"\"\nimport argparse\nimport os\nimport json\nimport time\nimport logging\nimport torch\nimport torch.nn.parallel\ntry:\n from apex import amp\n has_amp = True\nexcept ImportError:\n ... | [
[
"torch.no_grad"
]
] |
hainan-xv/NeMo | [
"91073f775db4a71f0b99625686cb8b0a3b318651"
] | [
"tests/collections/tts/test_waveglow.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.allclose",
"torch.randn"
]
] |
wangjiawei04/PaddleOCR | [
"7404050bdf4d4555065d2db1ac30cdb6d892d6f8"
] | [
"tools/program.py"
] | [
"# Copyright (c) 2020 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 re... | [
[
"numpy.array"
]
] |
Rahim16/pytorch-dnc | [
"6a4b08db2dc16d4342891a2fa1abf2e0e02ab6a3"
] | [
"core/heads/static_read_head.py"
] | [
"from __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nimport torch\n\nfrom core.heads.static_head import StaticHead\n\nclass StaticReadHead(StaticHead):\n def __init__(self, args):\n super(StaticReadHead, self).__init__(args)\n # params\n ... | [
[
"torch.bmm"
]
] |
yumere/Neural-Machine-Translation | [
"7ada7db3fb1eb291ff9a6c659f73dc2eddd6721b"
] | [
"utils/saver.py"
] | [
"import os\nimport torch\nimport torch.nn as nn\nimport torch.optim as optim\n\n\ndef load_checkpoint(filename: str, model: nn.Module, optimizer: optim.Optimizer):\n if os.path.isfile(filename):\n checkpoint = torch.load(filename)\n start_epoch = checkpoint['epoch']\n model.load_state_dict(c... | [
[
"torch.load"
]
] |
mitre/ilpyt | [
"6aecbe414f0032514ffb4206200596b8c3860b58",
"6aecbe414f0032514ffb4206200596b8c3860b58"
] | [
"ilpyt/algos/dagger.py",
"ilpyt/nets/base_net.py"
] | [
"\"\"\"\nAn implementation of the Dataset Aggregation (DAgger) algorithm. The DAgger \nalgorithm was described in the paper \"A Reduction of Imitation Learning and \nStructured Prediction to No-Regret Online Learning\" by Stéphane Ross, \nGeoffrey J. Gordon, and J. Andrew Bagnell, and presented at AISTATS 2011.\n\n... | [
[
"torch.Tensor",
"torch.cat",
"torch.utils.data.TensorDataset",
"torch.utils.data.DataLoader",
"torch.tensor",
"numpy.mean",
"torch.no_grad",
"numpy.float"
],
[
"torch.nn.ReLU",
"torch.nn.Tanh"
]
] |
DHI/datatalks | [
"21f199c81aa74d039fefc8a52339b9d6895534de"
] | [
"talk_5_notebooks_vs_scripts/scripts/run_mike.py"
] | [
"import os\nimport subprocess\nimport numpy as np\n\nENGINE = r\"C:\\Progra~2\\DHI\\MIKE Zero\\2022\\bin\\x64\\FemEngine.exe\"\n\ndef replace_BC_in_setup(u, v, file_in, file_out):\n \"\"\"replace the strings $$BC2_u$$, $$BC2_v$$\"\"\"\n with open(file_in, 'r') as file:\n filedata = file.read()\n\n f... | [
[
"numpy.linspace"
]
] |
elbakramer/kasi | [
"22d6134153467bde407a1e9c3eb2e0a12037c7a7"
] | [
"kasi/LrsrCldInfoService.py"
] | [
"from urllib.parse import unquote\n\nimport pandas as pd\nimport requests\n\n\nclass LrsrCldInfoService:\n \"\"\"\n 음력일정보, 양력일정보, 특정음력일정보, 율리우스적일정보를 조회하는 서비스 입니다.\n \"\"\"\n\n def __init__(self, serviceKey):\n if \"%\" in serviceKey:\n serviceKey = unquote(serviceKey)\n self._en... | [
[
"pandas.Timestamp"
]
] |
MCarmenCampos/XID_plus | [
"c031366b48486d229ac96d4eb4f547faf5227c25"
] | [
"xidplus/moc_routines.py"
] | [
"__author__ = 'pdh21'\nfrom pymoc import MOC\nfrom healpy import pixelfunc\nfrom pymoc.util import catalog\nimport healpy as hp\n\nimport numpy as np\n\ndef get_HEALPix_pixels(order,ra,dec,unique=True):\n\n\n \"\"\"Work out what HEALPix a source is in\n\n :param order: order of HEALPix\n :param ra: Right A... | [
[
"numpy.radians",
"numpy.unique",
"numpy.arange",
"numpy.in1d",
"numpy.array"
]
] |
fumihwh/onnx-fb-universe | [
"463daf17c9439c4db00752fd794a227a10c422d2"
] | [
"test/model_defs/alexnet.py"
] | [
"import torch.nn as nn\n\n\nclass AlexNet(nn.Module):\n\n def __init__(self, num_classes=1000):\n super(AlexNet, self).__init__()\n self.features = nn.Sequential(\n nn.Conv2d(3, 64, kernel_size=11, stride=4, padding=2),\n nn.ReLU(inplace=True),\n nn.MaxPool2d(kernel... | [
[
"torch.nn.Dropout",
"torch.nn.Conv2d",
"torch.nn.MaxPool2d",
"torch.nn.Linear",
"torch.nn.ReLU"
]
] |
Rex-hash/rex | [
"c108e4c455a6edefe3d3298cf1547f4a85e7942e"
] | [
"solutions/PIAIC122286Assignment#1(Numpy Fundamentals).py"
] | [
"#!/usr/bin/env python\r\n# coding: utf-8\r\n\r\n# # **Assignment For Numpy**\r\n\r\n# Difficulty Level **Beginner**\r\n\r\n# 1. Import the numpy package under the name np\r\n\r\n# In[1]:\r\n\r\n\r\nimport numpy as np\r\n\r\n\r\n# 2. Create a null vector of size 10 \r\n\r\n# In[2]:\r\n\r\n\r\narr = np.zeros((10))\r... | [
[
"numpy.dot",
"numpy.amax",
"numpy.sqrt",
"numpy.random.randn",
"numpy.show_config",
"numpy.where",
"numpy.swapaxes",
"numpy.unique",
"numpy.arange",
"numpy.intersect1d",
"numpy.insert",
"numpy.zeros",
"numpy.amin",
"numpy.delete",
"numpy.identity",
"... |
tuggeluk/EffiNet_AutoDL | [
"b32ef7546645a1b2bf4debaae579bd23388c902d"
] | [
"res18/res_utils.py"
] | [
"import numpy as np\nimport tensorflow as tf\n\n## TensorFlow helper functions\n\nWEIGHT_DECAY_KEY = 'WEIGHT_DECAY'\n\ndef _relu(x, leakness=0.0, name=None):\n if leakness > 0.0:\n name = 'lrelu' if name is None else name\n return tf.maximum(x, x*leakness, name='lrelu')\n else:\n name = '... | [
[
"tensorflow.cond",
"tensorflow.device",
"tensorflow.concat",
"numpy.sqrt",
"tensorflow.reduce_sum",
"tensorflow.diag",
"numpy.max",
"numpy.average",
"tensorflow.add_n",
"tensorflow.nn.conv2d",
"tensorflow.get_collection",
"tensorflow.nn.moments",
"tensorflow.one... |
ziqi-zhang/FedML | [
"83cfc1245609c50f21d13be5f180f67576c57735"
] | [
"fedml_api/model/ensemble/cnn.py"
] | [
"import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport math\nfrom functools import partial\nimport numpy as np\n\nimport copy\nfrom pdb import set_trace as st\n\ndef simple_conv_str(conv_str):\n elements = conv_str.split(',')\n return f\"{elements[0]},{elements[1]})\"\n\nclass AdaptiveC... | [
[
"torch.nn.Sequential",
"torch.nn.Dropout",
"torch.nn.Softmax",
"torch.nn.Conv2d",
"torch.nn.Flatten",
"numpy.random.shuffle",
"torch.unsqueeze",
"torch.nn.MaxPool2d",
"torch.nn.Linear",
"torch.nn.ReLU"
]
] |
charliejharrison/cnn-details-of-sh | [
"84373d5a1dac3e7e74ff17b88fab701db51f055e"
] | [
"train.py"
] | [
"#! /usr/bin/env python\n\nimport tensorflow as tf\nimport numpy as np\nimport os\nimport time\nimport datetime\nimport data_helpers\nfrom text_cnn import TextCNN\nfrom sklearn.cross_validation import StratifiedShuffleSplit\n\n# Parameters\n# ==================================================\n\n# Model Hyperparame... | [
[
"tensorflow.flags.DEFINE_boolean",
"tensorflow.Graph",
"tensorflow.all_variables",
"tensorflow.train.global_step",
"tensorflow.Variable",
"tensorflow.flags.DEFINE_string",
"tensorflow.scalar_summary",
"tensorflow.train.SummaryWriter",
"tensorflow.ConfigProto",
"tensorflow.n... |
yscoder-github/Language_Intelligent_Competition | [
"23325173a6e6b228da575e8be55a538ce1dbcae6"
] | [
"2019/MRC/models/QANet_dureader/model.py"
] | [
"# -*- coding: utf-8 -*-\n\n\nimport json\nimport logging\nimport os\nimport time\n\nimport tensorflow as tf\nfrom layers import regularizer, residual_block, highway, conv, mask_logits, trilinear, total_params, position_embedding\nfrom optimizer import AdamWOptimizer\nfrom tensorflow.python.ops import array_ops\nfr... | [
[
"tensorflow.nn.softmax_cross_entropy_with_logits",
"tensorflow.concat",
"tensorflow.matrix_band_part",
"tensorflow.contrib.layers.apply_regularization",
"tensorflow.control_dependencies",
"tensorflow.reduce_sum",
"tensorflow.cast",
"tensorflow.global_variables",
"tensorflow.tra... |
leafsummer/captcha-tensorflow | [
"7eb3925301f00ef8c315b71ddb4f1e3224713cc4",
"7eb3925301f00ef8c315b71ddb4f1e3224713cc4"
] | [
"captcha_cnn/cnn_n_char.py",
"captcha_recognize/captcha_recognize.py"
] | [
"# -*- coding:utf-8 -*-\nimport argparse\nimport datetime\nimport sys\nimport tensorflow as tf\n\nimport datasets.base as input_data\n\nMAX_STEPS = 10000\nBATCH_SIZE = 50\n\nLOG_DIR = 'log/cnn1-run-%s' % datetime.datetime.now().strftime('%Y%m%d_%H%M%S')\n\nFLAGS = None\n\n\ndef variable_summaries(var):\n \"\"\"A... | [
[
"tensorflow.nn.softmax_cross_entropy_with_logits",
"tensorflow.nn.max_pool",
"tensorflow.equal",
"tensorflow.cast",
"tensorflow.train.AdamOptimizer",
"tensorflow.summary.scalar",
"tensorflow.nn.conv2d",
"tensorflow.Variable",
"tensorflow.summary.image",
"tensorflow.name_sco... |
Pharmaton/mimic_benchmark_repo | [
"4897d597d5ecc71d2dd2ce1ced76cae48dd50fb5"
] | [
"mimic3models/decompensation/utils.py"
] | [
"from mimic3models import nn_utils\nfrom mimic3models import common_utils\nimport threading\nimport os\nimport numpy as np\nimport random\n\n\ndef preprocess_chunk(data, ts, discretizer, normalizer=None):\n data = [discretizer.transform(X, end=t)[0] for (X, t) in zip(data, ts)]\n if (normalizer is not None):\... | [
[
"numpy.array",
"numpy.expand_dims",
"numpy.sum"
]
] |
otmaneJai/Zipline | [
"2bb87cbd23fc960af2c46d9580baf95ed454c39a"
] | [
"zipline/pipeline/loaders/frame.py"
] | [
"\"\"\"\nPipelineLoader accepting a DataFrame as input.\n\"\"\"\nfrom numpy import (\n ix_,\n zeros,\n)\nfrom pandas import (\n DataFrame,\n DatetimeIndex,\n Index,\n Int64Index,\n)\nfrom zipline.lib.adjusted_array import adjusted_array\nfrom zipline.lib.adjustment import (\n Float64Add,\n F... | [
[
"numpy.ix_",
"pandas.Int64Index",
"pandas.Index",
"pandas.DatetimeIndex"
]
] |
Sirupli/arena2D | [
"2214754fe8e9358fa8065be5187d73104949dc4f"
] | [
"rl-ros-agents/rl_ros_agents/env_wappers/arena2dEnv.py"
] | [
"from std_msgs.msg import String\nimport gym\nimport rospy\nfrom geometry_msgs.msg import Twist\nfrom arena2d_msgs.msg import RosAgentReq, Arena2dResp\nfrom stable_baselines.common.vec_env import SubprocVecEnv\nfrom stable_baselines.bench import Monitor\nimport numpy as np\nimport threading\nfrom typing import Unio... | [
[
"numpy.array"
]
] |
nikadilli/imgMS | [
"297493ec38cfbdc825596b50a5643290c251c976"
] | [
"imgMS/MSEval.py"
] | [
"import matplotlib.pyplot as plt\nimport numpy as np\nimport pandas as pd\nimport warnings\nfrom decimal import Decimal\nimport datetime\nimport logging\n\nfrom imgMS.side_functions import *\n\n\nclass DataReader():\n \"\"\"\n Reads data into pandas Dataframe from a file.\n\n Parameters\n ----------\n ... | [
[
"pandas.read_csv",
"numpy.isnan",
"matplotlib.pyplot.plot",
"numpy.copy",
"numpy.interp",
"pandas.ExcelFile"
]
] |
zengwang430521/PVT | [
"dddb1d386c69a11962493185ed4b928e731c281c"
] | [
"my_pvt23.py"
] | [
"import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom functools import partial\n\nfrom my_pvt_v2_ap import (Block, DropPath, to_2tuple, trunc_normal_,register_model, _cfg)\nimport math\nimport matplotlib.pyplot as plt\nvis = False\n\n\nclass Mlp_old(nn.Module):\n def __init__(self, in_featu... | [
[
"torch.nn.functional.softmax",
"torch.rand_like",
"torch.cat",
"torch.sum",
"torch.FloatTensor",
"torch.nn.functional.interpolate",
"torch.cuda.is_available",
"torch.topk",
"torch.device",
"torch.nn.Dropout",
"torch.ones",
"torch.tensor",
"matplotlib.pyplot.subp... |
cnfuture123/Machine-Learning-Tutorial | [
"18ae47d418f4047eeb9e1471350283ccf165b955"
] | [
"Tensorflow/CS 20/Lecture2-TensorBoard.py"
] | [
"import tensorflow as tf\r\n\r\na = tf.constant(2, name='a')\r\nb = tf.constant(3, name='b')\r\nx = tf.add(a, b, name='add')\r\n\r\nwriter = tf.summary.FileWriter('./graphs', tf.get_default_graph())\r\nwith tf.Session() as sess:\r\n print(sess.run(x))\r\n\r\nwriter.close()\r\n"
] | [
[
"tensorflow.get_default_graph",
"tensorflow.add",
"tensorflow.constant",
"tensorflow.Session"
]
] |
LukeEcomod/pyAPES_VESBO | [
"fdb4f44907e3055eb42db4a1260e0d7b9c55b415"
] | [
"soil/soil.py"
] | [
"# -*- coding: utf-8 -*-\n\"\"\"\n.. module: soil\n :synopsis: APES-model component\n.. moduleauthor:: Kersti Haahti\n\nNote:\n migrated to python3\n - absolute imports\n - dict.keys are not wrapped in list()\n\nSoilprofile\n\nCreated on Tue Oct 02 09:04:05 2018\n\"\"\"\n\nimport numpy as np\nimport pan... | [
[
"numpy.cumsum",
"numpy.ones",
"numpy.array",
"numpy.zeros",
"numpy.where"
]
] |
monkeysforever/Support-Vector-Machine-using-CVXOPT | [
"ee5a5b5d597753dfa32394eecfc9732e81b91d42"
] | [
"SVM/SVM.py"
] | [
"import numpy as np\nfrom cvxopt import matrix, solvers\n\nclass SVC:\n \"\"\"\n Implemenation of Support Vector binary classifier\n \"\"\"\n def __init__(self, C = None, kernel = 'Linear', degree = 2, intercept = 1, sigma = 0.1, normalize = True):\n \"\"\"\n Initialize classifier\n\n ... | [
[
"numpy.dot",
"numpy.unique",
"numpy.power",
"numpy.eye",
"numpy.matmul",
"numpy.ones",
"numpy.sign",
"numpy.copy",
"numpy.std",
"numpy.mean",
"numpy.array",
"numpy.zeros",
"numpy.sum"
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.