repo_name stringlengths 6 130 | hexsha list | file_path list | code list | apis list |
|---|---|---|---|---|
JustinZhengBC/pandas | [
"1f02bf240c3d0d3da338af868d056bfc169b28c2"
] | [
"pandas/tests/scalar/timedelta/test_timedelta.py"
] | [
"\"\"\" test the scalar Timedelta \"\"\"\nfrom datetime import timedelta\n\nimport numpy as np\nimport pytest\n\nfrom pandas._libs.tslib import NaT, iNaT\nimport pandas.compat as compat\n\nimport pandas as pd\nfrom pandas import (\n Series, Timedelta, TimedeltaIndex, timedelta_range, to_timedelta)\nfrom pandas.c... | [
[
"pandas.Timestamp",
"pandas.core.tools.timedeltas._coerce_scalar_to_timedelta_type",
"pandas.util.testing.assert_numpy_array_equal",
"pandas.Timedelta",
"pandas.util.testing.assert_index_equal",
"pandas.timedelta_range",
"numpy.arange",
"pandas.util.testing.assert_produces_warning"... |
rsiverd/kwhere | [
"5acd561b1e58d254d80a94f8a5e1a6af6bf17547"
] | [
"angle.py"
] | [
"#!/usr/bin/env python\n# vim: set fileencoding=utf-8 :\n#\n# Some useful functions for angle manipulation.\n#\n# Rob Siverd\n# Created: 2011-04-25\n# Last modified: 2018-07-19\n#--------------------------------------------------------------------------\n#***************************************************... | [
[
"numpy.zeros_like",
"numpy.arccos",
"numpy.sin",
"numpy.arcsin",
"numpy.tan",
"numpy.degrees",
"numpy.radians",
"numpy.atleast_1d",
"numpy.arctan2",
"numpy.sqrt",
"numpy.cos",
"numpy.floor"
]
] |
zhangmozhe/torch3d | [
"d47e9b243e520f9c0c72a26c271d2c7ad242cb65"
] | [
"torch3d/nn/deconv.py"
] | [
"import torch\nimport torch.nn as nn\nfrom torch3d.nn import functional as F\nfrom torch3d.nn.utils import _single\n\n\nclass FeaturePropagation(nn.Sequential):\n \"\"\"\n The feature propagation from the `\"PointNet++: Deep Hierarchical Feature Learning on Point Sets in a Metric Space\" <https://arxiv.org/ab... | [
[
"torch.cat",
"torch.nn.Conv1d",
"torch.nn.Sequential",
"torch.gather",
"torch.nn.Sigmoid",
"torch.nn.BatchNorm2d",
"torch.nn.ReLU",
"torch.nn.Conv2d",
"torch.nn.BatchNorm1d",
"torch.reciprocal"
]
] |
ngocjr7/stavia | [
"39c6c311f3888adb6d08b11190e651ed3b4ef01b",
"39c6c311f3888adb6d08b11190e651ed3b4ef01b"
] | [
"stavia/logistic_regression.py",
"stavia/feature_extraction.py"
] | [
"from __future__ import absolute_import\n\nfrom sklearn.linear_model import LogisticRegression\nfrom sklearn.externals import joblib\nfrom sklearn.model_selection import train_test_split\n\nfrom .utils.parameters import *\nfrom .data_processing import load_data\nfrom .init_es import init_es\nfrom .fuzzy_matching.ca... | [
[
"sklearn.model_selection.train_test_split",
"sklearn.linear_model.LogisticRegression",
"numpy.zeros"
],
[
"numpy.zeros"
]
] |
nils-werner/pymushra | [
"ff9d70879223a43b225ef7eb07813dc24545cb80"
] | [
"pymushra/casting.py"
] | [
"import pandas as pd\nimport uuid\nimport itertools\nimport datetime\nfrom . import utils\n\n\ndef escape_objects(df, columns=None):\n df = df.copy()\n\n if columns is None:\n columns = [\n ('questionaire', 'uuid'),\n ('wm', 'id',),\n ]\n\n # Add flattened columns too, s... | [
[
"pandas.to_datetime",
"pandas.DataFrame",
"pandas.MultiIndex.from_tuples"
]
] |
MukaJiTrue/incubator-superset | [
"e2854994bae0e390bfbf446c94ccb4a86792220b"
] | [
"tests/celery_tests.py"
] | [
"\"\"\"Unit tests for Superset Celery worker\"\"\"\nimport json\nimport subprocess\nimport time\nimport unittest\n\nimport pandas as pd\nfrom past.builtins import basestring\n\nfrom superset import app, db\nfrom superset.models.helpers import QueryStatus\nfrom superset.models.sql_lab import Query\nfrom superset.sql... | [
[
"pandas.read_sql_query"
]
] |
haipinglu/nilearn | [
"82a9791f4428389b3a57b82cc57406a3a5cb50b1"
] | [
"nilearn/plotting/html_surface.py"
] | [
"import json\nimport collections\n\nimport numpy as np\nimport matplotlib as mpl\nfrom matplotlib import cm as mpl_cm\n\nfrom .._utils.niimg_conversions import check_niimg_3d\nfrom .. import datasets, surface\nfrom . import cm\nfrom .js_plotting_utils import (\n HTMLDocument, colorscale, mesh_to_plotly, get_html... | [
[
"numpy.max",
"matplotlib.cm.get_cmap",
"numpy.min",
"matplotlib.colors.Normalize",
"numpy.abs"
]
] |
lrahmani/agents-aea | [
"9bd1d51530fc21bf41b5adea031cda19a94b048b",
"9bd1d51530fc21bf41b5adea031cda19a94b048b"
] | [
"packages/fetchai/skills/tac_control_contract/helpers.py",
"packages/fetchai/skills/ml_train/model.py"
] | [
"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n# ------------------------------------------------------------------------------\n#\n# Copyright 2018-2019 Fetch.AI Limited\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the Licen... | [
[
"numpy.divide",
"numpy.array",
"numpy.sum",
"numpy.random.uniform",
"numpy.transpose"
],
[
"tensorflow.keras.layers.Flatten",
"tensorflow.keras.layers.Dense",
"tensorflow.get_default_graph"
]
] |
godspeed5/Project_Face | [
"f9121e58081736ded918cee768e3ab713844031c"
] | [
"src/utils/haar_cascade.py"
] | [
"#!/usr/bin/env python\n\n## @package haar_cascade.py\n#\n# Massimiliano Patacchiola, Plymouth University 2016\n#\n# This module use the opencv haar cascade classifier\n# to find frontal and profile faces in a frame.\n\nimport numpy\nimport cv2\nimport sys\nimport os.path\n\n\nclass haarCascade:\n\n\n def __init... | [
[
"numpy.shape"
]
] |
gargrohin/sngan.pytorch | [
"58d200c731935360f1b0fdcb1865c366c633e56c"
] | [
"functions.py"
] | [
"# -*- coding: utf-8 -*-\n# @Date : 2019-07-25\n# @Author : Xinyu Gong (xy_gong@tamu.edu)\n# @Link : None\n# @Version : 0.0\n\nimport comet_ml\nimport os\nimport numpy as np\nimport torch\nimport torch.nn as nn\nfrom torchvision.utils import make_grid\nimport torch.nn.functional as F\nfrom imageio import ims... | [
[
"torch.argmin",
"torch.ones",
"numpy.sort",
"torch.sum",
"numpy.random.normal",
"torch.nn.init.constant_",
"torch.nn.init.normal_",
"numpy.random.randint",
"torch.nn.BCELoss",
"torch.nn.init.orthogonal_",
"torch.neg",
"torch.zeros",
"torch.nn.functional.softplus... |
msalvaris/IIC | [
"2915d2de160608aaf16d776eaebf93c45d07223a",
"2915d2de160608aaf16d776eaebf93c45d07223a"
] | [
"iic/utils/cluster/data.py",
"iic/scripts/segmentation/analysis/clone_and_eval.py"
] | [
"import sys\nfrom datetime import datetime\n\nimport torch\nimport torchvision\nfrom torch.utils.data import ConcatDataset\n\nfrom iic.datasets.clustering.truncated_dataset import TruncatedDataset\nfrom iic.utils.cluster.transforms import sobel_make_transforms, \\\n greyscale_make_transforms\nfrom iic.utils.semisu... | [
[
"torch.utils.data.ConcatDataset",
"torch.utils.data.DataLoader"
],
[
"matplotlib.use",
"torch.nn.DataParallel"
]
] |
microsoft/event-vae-rl | [
"cb64c2809bcbfec81e84fff93a912f65c72f73d3"
] | [
"event_vae/test.py"
] | [
"import argparse\nimport os\nimport random\nimport numpy as np\nimport torch\nimport torch.nn as nn\nimport torch.nn.parallel\nimport torch.backends.cudnn as cudnn\nimport torch.optim as optim\nfrom torch.utils import data\nimport torchvision.datasets as dset\nimport torchvision.transforms as transforms\nimport tor... | [
[
"numpy.empty",
"torch.autograd.Variable",
"torch.no_grad",
"torch.manual_seed",
"torch.load",
"torch.utils.tensorboard.SummaryWriter"
]
] |
andreaskuster/dace | [
"f2c16430543bb56c54a833beeb626b8c30967428",
"f2c16430543bb56c54a833beeb626b8c30967428",
"f2c16430543bb56c54a833beeb626b8c30967428",
"f2c16430543bb56c54a833beeb626b8c30967428"
] | [
"tests/control_flow_test.py",
"tests/transformations/subgraph_fusion/block_allreduce_cudatest.py",
"dace/symbolic.py",
"dace/dtypes.py"
] | [
"# Copyright 2019-2021 ETH Zurich and the DaCe authors. All rights reserved.\nimport dace\nimport numpy as np\nW = dace.symbol('W')\nH = dace.symbol('H')\n\n\n@dace.program\ndef control_flow_test(A, B, tol):\n if tol[0] < 4:\n while tol[0] < 4:\n\n @dace.map(_[0:W])\n def something(i... | [
[
"numpy.array",
"numpy.random.rand",
"numpy.zeros",
"numpy.allclose",
"numpy.random.randint"
],
[
"numpy.allclose",
"numpy.linalg.norm"
],
[
"numpy.any"
],
[
"numpy.finfo",
"numpy.issubdtype",
"numpy.iinfo",
"numpy.dtype"
]
] |
previtus/facenet | [
"9597e7955014f05f655c7617c1edbf41eaf1a3e3"
] | [
"src/load_my_dataset.py"
] | [
"#import cPickle as pickle\nimport pickle\nimport numpy as np\n\n#pickle.dump([embeddings], open('embeddings_from_XYZ.p', 'wb'))\n\n# ../\nload_path = \"ebmeddings_from_celeb_12k_noflips_160px.p\"\nload_path = \"embeddings_from_celeb_12kwithflips_160px.p\"\nload_path = \"embeddings_from_celeb_30k_noflip_160px.p\"\n... | [
[
"numpy.asarray"
]
] |
A4Vision/naive-decision-tree | [
"91ee33c91b3f8a596991959ac23c161b5552d9bf"
] | [
"tree/optimized_train/runtime_stats.py"
] | [
"from typing import Tuple\n\nimport pandas as pd\n\n\nclass RuntimeStats:\n def __init__(self, all_data_shape: Tuple[int, int]):\n self._x_shape = []\n self._data_size = []\n self._current_x_shape = None\n self._data_shape = all_data_shape\n\n def as_dataframe(self) -> pd.DataFrame... | [
[
"pandas.DataFrame"
]
] |
stnie/FrontDetection | [
"742ebf9619dcde40d42891073739945a05631ea3"
] | [
"getRandomSamples.py"
] | [
"import numpy as np\nimport torch\nimport os\n\nfrom scipy.ndimage import distance_transform_edt\n\nfrom Models.FDU3D import *\n\nfrom tqdm import tqdm\nimport argparse\n\nfrom era5dataset.FrontDataset import *\n# ERA Extractors\nfrom era5dataset.EraExtractors import *\n\nfrom IOModules.csbReader import *\n\nfrom N... | [
[
"numpy.concatenate",
"numpy.max",
"numpy.array",
"numpy.zeros",
"numpy.median",
"numpy.sum",
"torch.no_grad",
"numpy.percentile",
"numpy.random.default_rng",
"numpy.nonzero",
"torch.cuda.is_available",
"numpy.arange",
"scipy.ndimage.distance_transform_edt",
... |
LemonJust/psd95_segmentation | [
"5514c19d328b9b9043931e21017d4a28a717def7"
] | [
"src/features/build_features.py"
] | [
"from pathlib import Path\nimport numpy as np\nimport tifffile as tif\nimport pandas as pd\nimport matplotlib.pyplot as plt\nimport pickle\nimport seaborn as sns\nimport requests\n\n# import local package\nfrom src.data.read_data import read_channel\n\n\ndef get_percentiles(data, step=10):\n \"\"\"\n The func... | [
[
"numpy.zeros",
"numpy.percentile",
"pandas.DataFrame",
"numpy.mean",
"numpy.arange",
"pandas.concat"
]
] |
marcinjurek/pyMRA | [
"896964175e9d373aedfd0b91e074df1932bbabfc"
] | [
"pyMRA/tests/test-param-est.py"
] | [
"import pdb\nimport scipy.optimize as opt\nimport logging\nimport numpy as np\nimport sys\nimport scipy.linalg as lng\nfrom scipy.stats import multivariate_normal as mvn\n\nsys.path.append('../..')\n\nfrom pyMRA.MRATree import MRATree\nimport pyMRA.MRATools as mt\n\n\n\nlogging.basicConfig(format='%(asctime)s %(mes... | [
[
"numpy.max",
"numpy.linalg.slogdet",
"numpy.matrix",
"numpy.zeros",
"numpy.log",
"numpy.random.seed",
"numpy.min",
"numpy.nanmean",
"scipy.linalg.inv",
"numpy.isfinite",
"numpy.abs",
"scipy.optimize.minimize",
"numpy.unique"
]
] |
KanHatakeyama/ion_predictor | [
"cc3fd4366a70726c7479685485fe02b74b526647"
] | [
"ion_manager/ion_predictor/ml/pretrain_descriptors.py"
] | [
"\nimport pandas as pd\nimport numpy as np\nimport joblib\nimport random\nfrom ..chem_utils.Autodescriptor import MordredDescriptor\nfrom tqdm import tqdm\nfrom sklearn.preprocessing import StandardScaler\nimport yaml\n\nrandom.seed(0)\n\n\ndef dump(\n settings\n):\n \"\"\"\n automatically calculate de... | [
[
"numpy.array",
"pandas.read_csv",
"sklearn.preprocessing.StandardScaler"
]
] |
numb3r3/runx | [
"7745dd3a2994a444352e12ba4afaec5ed112b743"
] | [
"runx/logx.py"
] | [
"\"\"\"\nCopyright 2020 Nvidia Corporation\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n1. Redistributions of source code must retain the above copyright notice, this\n list of conditions and the following dis... | [
[
"torch.save",
"torch.load"
]
] |
NathanRiviere/Recipe-Recommender | [
"f0a7266b07899cbeeaa001e889305822d9c13a8d"
] | [
"src/train.py"
] | [
"import argparse\nfrom datetime import datetime\nimport numpy as np\nimport os\nimport os.path\nfrom sklearn.model_selection import train_test_split\nimport torch\nfrom torch.utils.data import Dataset, DataLoader\n\nfrom helpers import *\nfrom ctrmf import CTRMF\n\n\n# Parse input arguments\nap = argparse.ArgumentP... | [
[
"torch.nn.MSELoss",
"torch.diagonal",
"torch.no_grad",
"torch.FloatTensor",
"torch.cuda.is_available",
"torch.LongTensor"
]
] |
bcha92/ML_Training_Template | [
"e76eeb58f440f3eb2fb35e2df87033e7473c6f91"
] | [
"1S_regression_model_selection/decision_tree_regression.py"
] | [
"# Decision Tree Regression\n\n# Importing the libraries\nimport numpy as np\n# no visual graph in this template, plt is commented out as such\n# import matplotlib.pyplot as plt\nimport pandas as pd\n\n# Importing the dataset\ndataset = pd.read_csv('Data.csv')\nX = dataset.iloc[:, :-1].values\ny = dataset.iloc[:, -... | [
[
"numpy.set_printoptions",
"sklearn.metrics.r2_score",
"sklearn.tree.DecisionTreeRegressor",
"sklearn.model_selection.train_test_split",
"pandas.read_csv"
]
] |
Stranger469/ARS2 | [
"b6d62b66997180abe01b676d5359c20daa42b7ad",
"b6d62b66997180abe01b676d5359c20daa42b7ad"
] | [
"wrench/classification/denoise.py",
"wrench/labelmodel/gold.py"
] | [
"import logging\nfrom typing import Any, Optional, Union, Callable\n\nimport numpy as np\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom torch.utils.data import DataLoader\nfrom tqdm.auto import trange\nfrom transformers import AutoTokenizer\n\nfrom ..backbone import BackBone\nfrom ..bas... | [
[
"torch.nn.Linear",
"torch.cat",
"torch.max",
"torch.nan_to_num",
"torch.no_grad",
"torch.nn.Tanh",
"torch.FloatTensor",
"torch.nn.functional.log_softmax",
"torch.nn.functional.cross_entropy",
"torch.nn.functional.softmax",
"torch.mean",
"numpy.vstack",
"torch.su... |
dvp2015/nuclide-data | [
"6f33831220b5f9cb9e82bb7917bfb53dee2c8bc3"
] | [
"test_nuclide_data.py"
] | [
"#!/usr/bin/env python\n\"\"\"\nTests for nuclide_data\n\n\"\"\"\n\nimport numpy as np\nimport uncertainties as unc\nimport unittest\nimport nuclide_data\n\nclass TestNuclideData(unittest.TestCase):\n\n def test_isotopes(self):\n \"\"\"Do we have the correct isotopes for select elements?\"\"\"\n\n ... | [
[
"numpy.allclose"
]
] |
slowy07/tf-quant-finance | [
"0976f720fb58a2d7bfd863640c12a2425cd2f94f",
"0976f720fb58a2d7bfd863640c12a2425cd2f94f"
] | [
"tf_quant_finance/experimental/local_stochastic_volatility/local_stochastic_volatility_model_test.py",
"tf_quant_finance/black_scholes/variance_swaps_test.py"
] | [
"# Lint as: python3\n# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | [
[
"tensorflow.compat.v2.math.exp",
"tensorflow.compat.v2.nn.relu",
"tensorflow.compat.v2.transpose",
"numpy.array",
"tensorflow.compat.v2.broadcast_to",
"tensorflow.compat.v2.math.is_nan",
"numpy.sqrt",
"tensorflow.compat.v2.convert_to_tensor",
"tensorflow.compat.v2.test.main"
... |
bupt-nlp/model-getting-started | [
"d3afee2eb91b90b5910fd0473a67a9b3343298b2"
] | [
"classifier.py"
] | [
"from __future__ import annotations\nimport datetime\nimport os\nimport pickle\n\nimport numpy as np\nimport torch\n\nfrom src.data_process import THCNewsDataProcessor, DataIterator, THCNewsFeaturesExtractor\nfrom src.models.base_model import SequenceClassificationModel, BiLSTMSequenceClassificationModel\nfrom src.... | [
[
"numpy.load"
]
] |
w6688j/bert-utils | [
"a066214e9cbd3ff5cc905f94c7354189d986a1fd"
] | [
"args.py"
] | [
"import os\nimport tensorflow as tf\n\ntf.logging.set_verbosity(tf.logging.INFO)\n\nfile_path = os.path.dirname(__file__)\n\nmodel_dir = os.path.join(file_path, 'chinese_L-12_H-768_A-12/')\nconfig_name = os.path.join(model_dir, 'bert_config.json')\nckpt_name = os.path.join(model_dir, 'bert_model.ckpt')\noutput_dir ... | [
[
"tensorflow.logging.set_verbosity"
]
] |
JackCaster/pytorch-lightning | [
"c94c0a2b1ee6b444ab1ecf58059e922229d44436"
] | [
"tests/callbacks/test_model_checkpoint.py"
] | [
"import os\nimport pickle\nimport platform\nimport re\nfrom pathlib import Path\n\nimport cloudpickle\nimport pytest\nimport tests.base.develop_utils as tutils\nimport torch\nfrom pytorch_lightning import Trainer, seed_everything\nfrom pytorch_lightning.callbacks import ModelCheckpoint\nfrom pytorch_lightning.logge... | [
[
"torch.load"
]
] |
hebpmo/TMA | [
"b07747d3112e822ff92dd2ba4589d2288adab154",
"b07747d3112e822ff92dd2ba4589d2288adab154"
] | [
"tma/collector/xhn.py",
"tma/collector/sse.py"
] | [
"# -*- coding: UTF-8 -*-\n\n\"\"\"\ncollector.xhn - 新华网数据采集\n\n官网:http://www.xinhuanet.com/\n\n接口分析:\n1. 获取文章列表\nhttp://qc.wa.news.cn/nodeart/list?nid=115093&pgnum=1&cnt=10000\n\n新华全媒体头条\nhttp://www.xinhuanet.com/politics/qmtt/index.htm\n====================================================================\n\"\"\"\n... | [
[
"pandas.DataFrame"
],
[
"pandas.DataFrame"
]
] |
BBarbara-fr/pySPM | [
"6dfd59b0e873173c455b1085e091495cf775f852"
] | [
"pySPM/tools/spectra.py"
] | [
"from PyQt5.QtWidgets import QMainWindow, QShortcut, QApplication, QFileDialog, QSizePolicy, QTableWidgetItem\nfrom PyQt5.QtCore import Qt, QSettings, QDir, QFileInfo\nfrom pySPM.tools.spectraviewer import Ui_SpectraViewer\nimport pySPM\nimport sys\nimport numpy as np\nimport os\nimport struct\n\nDPI = 100.0\nclass... | [
[
"numpy.max",
"numpy.round",
"numpy.argmax",
"numpy.abs",
"numpy.sqrt"
]
] |
BenjaminWegener/tensorflow-directml | [
"ecdbdbd2691e17dcc462fc49138fc7cc1536b7d5"
] | [
"tensorflow/python/kernel_tests/segment_reduction_ops_test.py"
] | [
"# Copyright 2015 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | [
[
"tensorflow.python.framework.test_util.gpu_device_name",
"numpy.array",
"tensorflow.python.framework.ops.Graph",
"numpy.asarray",
"numpy.zeros",
"tensorflow.python.ops.math_ops.unsorted_segment_sum",
"numpy.place",
"numpy.ones",
"tensorflow.python.client.session.Session",
"... |
quantumiracle/Reinforcement-Learning-for-Robotics | [
"527befb0545d90fc278a820d85af77336b0a9763"
] | [
"DDPG4Reacher2/env_test.py"
] | [
"import pygame\nimport numpy as np\nimport math\nimport time\nimport matplotlib.pyplot as plt\nfrom matplotlib.colors import BoundaryNorm\nfrom matplotlib.ticker import MaxNLocator\nfrom mpl_toolkits.mplot3d import Axes3D\nfrom matplotlib import cm\nfrom matplotlib.ticker import LinearLocator, FormatStrFormatter\n\... | [
[
"numpy.concatenate",
"numpy.array",
"numpy.random.rand",
"matplotlib.pyplot.figure",
"numpy.random.uniform",
"numpy.arange",
"matplotlib.pyplot.show",
"numpy.meshgrid"
]
] |
Alwaysproblem/explore-ipu | [
"7f039768d40e1f3163e0941e2f8246f11ab953c2"
] | [
"tensorflow2/access_outfeed.py"
] | [
"from threading import Thread\n\nfrom tensorflow.python.ipu import ipu_outfeed_queue\nfrom tensorflow.python.ipu import ipu_strategy\nfrom tensorflow.python.ipu import utils\nfrom tensorflow import keras\nimport tensorflow as tf\n\n# The host side queue\noutfeed_queue = ipu_outfeed_queue.IPUOutfeedQueue(feed_name=\... | [
[
"tensorflow.keras.optimizers.SGD",
"tensorflow.GradientTape",
"tensorflow.python.ipu.ipu_strategy.IPUStrategy",
"tensorflow.python.ipu.ipu_outfeed_queue.IPUOutfeedQueue",
"tensorflow.keras.layers.Flatten",
"tensorflow.python.ipu.utils.create_ipu_config",
"tensorflow.keras.layers.Dense"... |
SamuelmsWong/tensor2tensor | [
"7172ad8dc5f1d8f8c0e21cbb831ae2657387a2af"
] | [
"tensor2tensor/data_generators/imdb.py"
] | [
"# coding=utf-8\n# Copyright 2020 The Tensor2Tensor Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requir... | [
[
"tensorflow.compat.v1.gfile.Exists"
]
] |
rcmdnk/phys_learning | [
"2ea0b3e133aed1f57ede03c8ab0c43487a2e0266"
] | [
"src/phys_learning/core.py"
] | [
"import numpy as np\nfrom var_learning.core import VarLearning\nfrom var_learning.formula import Formula\nfrom var_learning.plot import hist_two\nfrom .two_particles import TwoParticles\nfrom .phys import hist_two_phys, mass, pt\n\n\nclass PhysLearning(VarLearning):\n def __init__(self, signal=None, bg=None,\n ... | [
[
"numpy.concatenate",
"numpy.percentile",
"numpy.array"
]
] |
mustaric/TESS_JWST_calibration_stars | [
"045507685309d7aab609be6c98721e4ee3a5701b"
] | [
"paper_plots_tables.py"
] | [
"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Wed Sep 1 11:57:52 2021\n\n@author: smullally\n\"\"\"\n\nimport Susan \nimport matplotlib.pyplot as plt\nimport numpy as np\n\noutdir = \"/Users/smullally/Science/tess_monitor_standards/paper/plots/\"\n#Directory of the data files\nddir = \"/User... | [
[
"numpy.array",
"numpy.savetxt",
"matplotlib.pyplot.savefig",
"pandas.DataFrame",
"numpy.min",
"numpy.loadtxt",
"pandas.read_csv"
]
] |
cgajagon/Trading-App | [
"10ffbea9dec3deca94489bf62d9f79e22f5ebebc"
] | [
"trading/services.py"
] | [
"import requests\nimport json\nimport pandas as pd\nfrom django.conf import settings\n\nfrom rest_framework.response import Response\nfrom rest_framework import status\n\nfrom trading import serializers, models\n\n# 3rd Part API: iextrading.com\ndef get_symbols():\n url = 'https://api.iextrading.com/1.0/ref-data... | [
[
"pandas.to_datetime",
"pandas.DataFrame"
]
] |
ibancg/meshio | [
"ef56ba90b3a072b75aa504d4dde40c8cb1a0a35e",
"ef56ba90b3a072b75aa504d4dde40c8cb1a0a35e"
] | [
"meshio/abaqus/_abaqus.py",
"meshio/gmsh/_gmsh22.py"
] | [
"\"\"\"\nI/O for Abaqus inp files.\n\"\"\"\nimport numpy\n\nfrom ..__about__ import __version__\nfrom .._exceptions import ReadError\nfrom .._files import open_file\nfrom .._helpers import register\nfrom .._mesh import CellBlock, Mesh\n\nabaqus_to_meshio_type = {\n # trusses\n \"T2D2\": \"line\",\n \"T2D2H... | [
[
"numpy.array",
"numpy.arange"
],
[
"numpy.max",
"numpy.concatenate",
"numpy.array",
"numpy.savetxt",
"numpy.asarray",
"numpy.zeros",
"numpy.ascontiguousarray",
"numpy.arange",
"numpy.fromfile",
"numpy.hstack",
"numpy.fromstring",
"numpy.dtype",
"nump... |
ai-erorr404/opencv-practice | [
"60ef5e4aec61ee5f7e675fb919e8f612e59f664a"
] | [
"workshops/12-section/2-clazz.py"
] | [
"#!/usr/bin/env python3\r\n# -*- coding=utf-8 -*-\r\n\r\nimport cv2 as cv\r\nimport numpy as np\r\n\r\n\"\"\"\r\nOpencv DNN 实现图像分类\r\n 使用ImageNet数据集支持1000分类的GoogleNet网络模型,其中label标签是在一个单独的文本文件中读取\r\n \r\n读取模型的API:\r\n cv.dnn.readNetFromCaffe(prototxt, caffeModel)\r\n - prototxt 模型配置文件\r\n - ca... | [
[
"numpy.copy",
"numpy.argmax"
]
] |
UCD4IDS/sage | [
"43474c96d533fd396fe29fe0782d44dc7f5164f7"
] | [
"src/sage/plot/graphics.py"
] | [
"# -*- encoding: utf-8 -*-\nr\"\"\"\nGraphics objects\n\nThis file contains the definition of the class :class:`Graphics`.\nUsually, you don't call the constructor of this class directly\n(although you can do it), you would use :func:`plot` instead.\n\nAUTHORS:\n\n- Jeroen Demeyer (2012-04-19): split off this file ... | [
[
"matplotlib.ticker.FixedFormatter",
"matplotlib.backends.backend_pgf.FigureCanvasPgf",
"matplotlib.ticker.MaxNLocator",
"matplotlib.ticker.AutoMinorLocator",
"matplotlib.ticker.LogLocator",
"matplotlib.backends.backend_agg.FigureCanvasAgg",
"matplotlib.ticker.NullLocator",
"matplot... |
felipeblazing/cudf | [
"ccc6883c5ec1cdd1f5070f0bba561587f3bd701e"
] | [
"python/cudf/tests/test_dataframe.py"
] | [
"# Copyright (c) 2018, NVIDIA CORPORATION.\n\nimport pytest\n\nimport numpy as np\nimport pandas as pd\nimport pyarrow as pa\n\nfrom librmm_cffi import librmm as rmm\n\nimport cudf as gd\nfrom cudf.dataframe.dataframe import Series, DataFrame\nfrom cudf.dataframe.buffer import Buffer\nfrom cudf.settings import set_... | [
[
"numpy.random.random",
"numpy.dtype",
"pandas.DataFrame",
"numpy.arange",
"numpy.random.randint",
"numpy.vstack",
"numpy.array",
"pandas.testing.assert_frame_equal",
"numpy.zeros",
"numpy.testing.assert_equal",
"numpy.random.randn",
"numpy.random.shuffle",
"nump... |
t20100/sandbox | [
"eec6bed5c59142a5febc9e212edadf690c0dea8c"
] | [
"testPlotWidget.py"
] | [
"# coding: utf-8\n# /*##########################################################################\n#\n# Copyright (c) 2016 European Synchrotron Radiation Facility\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\... | [
[
"numpy.array",
"numpy.sin",
"numpy.ones",
"numpy.random.random_sample",
"numpy.arange",
"numpy.sqrt",
"numpy.random.random",
"numpy.dtype"
]
] |
TJUMMG/SiamDMU | [
"728ba1333b8d600a8b238a7d29901a01b653c33d"
] | [
"pysot/models/neck/neck.py"
] | [
"# Copyright (c) SenseTime. All Rights Reserved.\n\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\nfrom __future__ import unicode_literals\n\nimport torch.nn as nn\n\n\nclass AdjustLayer(nn.Module):\n def __init__(self, in_channels, out_channels, c... | [
[
"torch.nn.Conv2d",
"torch.nn.BatchNorm2d"
]
] |
wxwxzhang/tensorflow | [
"fd2d5a3739590590b6bec4c856421ed6eb73a905"
] | [
"tensorflow/python/data/experimental/ops/distribute.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.framework.tensor_shape.TensorShape",
"tensorflow.python.framework.ops.device",
"tensorflow.python.data.util.nest.map_structure",
"tensorflow.python.compat.compat.forward_compatible",
"tensorflow.python.data.util.structure.convert_legacy_structure",
"tensorflow.python.ops... |
chaitanyaKaushal/TOPSIS-Chaitanya-101803269 | [
"7b67d603806867114c3cc7787ad3e786bb1d4b7b"
] | [
"TOPSIS_Chaitanya_Kaushal/topsis.py"
] | [
"if __name__ == \"__main__\":\n import os\n import numpy as np\n import pandas as pd\n import sys\n import copy\n\n if len(sys.argv) != 5:\n raise Exception('Number of params incorrect')\n\n dataFile = sys.argv[1]\n weights = sys.argv[2]\n impacts = sys.argv[3]\n resultFile = sy... | [
[
"numpy.max",
"numpy.array",
"numpy.sum",
"numpy.min",
"pandas.read_csv"
]
] |
wilhelmzh/Paddle | [
"e352467c1c3843cb0036604d81a8185c6d6cb337"
] | [
"python/paddle/fluid/optimizer.py"
] | [
"# Copyright (c) 2019 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"
]
] |
clvrai/goal_prox_il | [
"7c809b2ee575a69a14997068db06f3c1f3c8bd08",
"7c809b2ee575a69a14997068db06f3c1f3c8bd08",
"7c809b2ee575a69a14997068db06f3c1f3c8bd08"
] | [
"goal_prox/method/goal_gail_discriminator.py",
"goal_prox/envs/fetch/custom_push.py",
"d4rl/d4rl/hand_manipulation_suite/door_v0.py"
] | [
"import torch\n\nfrom rlf.algos.il.gaifo import GaifoDiscrim\nfrom rlf.algos.nested_algo import NestedAlgo\nfrom goal_prox.method.goal_gail_algo import GoalGAILAlgo\nfrom goal_prox.method.goal_gail_dataset import GoalGAILTrajDataset\n\n\nclass GoalGAIL(NestedAlgo):\n def __init__(self, agent_updater=GoalGAILAlgo... | [
[
"torch.sigmoid"
],
[
"numpy.concatenate",
"numpy.array",
"torch.cat",
"numpy.linalg.norm"
],
[
"numpy.concatenate",
"numpy.array",
"numpy.linalg.norm",
"numpy.sum",
"numpy.mean",
"numpy.clip"
]
] |
Tommy-Ngx/AutoGradingOA | [
"5e69bd38abaf01f03d8d837da68701a86bac1bb0"
] | [
"ClsKL/vis/knee_tsne.py"
] | [
"# -*- coding: utf-8 -*-\n\nimport os, sys, pdb\nimport numpy as np\nimport deepdish as dd\nfrom time import time\nimport matplotlib.pyplot as plt\nfrom sklearn import manifold\nfrom yellowbrick.text import TSNEVisualizer\n\n\n# knee = dd.io.load('./data/feas1646_auto.h5')\nknee = dd.io.load('./data/tsne/vgg19_feas... | [
[
"matplotlib.pyplot.savefig",
"matplotlib.pyplot.title",
"matplotlib.pyplot.legend",
"sklearn.manifold.TSNE",
"matplotlib.pyplot.figure",
"matplotlib.pyplot.scatter",
"matplotlib.pyplot.show"
]
] |
DeFi-Analytics/DeFi-Analytics | [
"25fa0588758313c6a207848080a5f2d994316a24"
] | [
"script4Task/getDEXPriceMinutely.py"
] | [
"import requests\nimport pandas as pd\nimport numpy as np\nfrom pycoingecko import CoinGeckoAPI\nimport time\nfrom datetime import datetime\n\n\nscriptPath = __file__\npath = scriptPath[:-35] + '/data/'\nfilepath = path + 'LMPoolData_ShortTerm.csv'\n\nwhile True: \n start_time = pd.Timestamp.now()\n print('Ge... | [
[
"pandas.Timestamp.now",
"pandas.read_json",
"pandas.read_csv"
]
] |
kimig001/openpilot | [
"4af0c7f21c801ea23cc0e7fa5a86a577180755a4"
] | [
"selfdrive/ntune.py"
] | [
"import os\nimport fcntl\nimport signal\nimport json\nimport numpy as np\n\nfrom selfdrive.hardware import TICI\n\nCONF_PATH = '/data/ntune/'\nCONF_LQR_FILE = '/data/ntune/lat_lqr.json'\n\nntunes = {}\n\ndef file_watch_handler(signum, frame):\n global ntunes\n for ntune in ntunes.values():\n ntune.handle()\n\n... | [
[
"numpy.array"
]
] |
BalazsSzekeres/python-template | [
"0ad886c06af522d34f9fe188ecfe466e8f8450dc"
] | [
"src/foo/bar.py"
] | [
"import numpy as np\nfrom math import factorial as std_factorial\n\n\ndef hello(name: str) -> str:\n return f\"Hello {name}!!\"\n\n\n# Implement factorial for numpy arrays:\nfactorial = np.vectorize(std_factorial)\n"
] | [
[
"numpy.vectorize"
]
] |
areeq-hasan/qpu | [
"05b828eae18d5e53179b6cda5b2a97d3e16896a7"
] | [
"qpu/__init__.py"
] | [
"\"\"\"QuantumComputer Module\n\nDefines a quantum circuit with an input register and a memory register onto which\ninstructions can be encoded as a bitstring. The core quantum computer circuit executes\nthe instructions. The state of the memory register is read out and returned to the\nuser.\n\n\"\"\"\n\nimport nu... | [
[
"numpy.zeros"
]
] |
rensutheart/flowdec | [
"bc817c71e00090061070f0cdeb4c80524f122950"
] | [
"python/flowdec/psf.py"
] | [
"\"\"\"PSF Generator Module based on Fast Gibson Lanni Approximation\n\nThis is the exact same implementation (used with permission from\nhttp://kmdouglass.github.io/posts/implementing-a-fast-gibson-lanni-psf-solver-in-python.html)\n\"\"\"\nimport argparse\nimport json\nfrom collections import OrderedDict\n\n\n# ##... | [
[
"numpy.max",
"numpy.sin",
"numpy.zeros",
"numpy.linalg.lstsq",
"numpy.arange",
"numpy.sqrt",
"numpy.cos",
"numpy.moveaxis",
"numpy.linspace"
]
] |
huseinzol05/Hackathon-Huseinhouse | [
"6796af2fe02f10d7860ac8db27bd24fa27b8bb01"
] | [
"Hackathon/Emotion-Music/utils_emotion.py"
] | [
"import numpy as np\nimport os\nfrom sklearn.preprocessing import LabelEncoder\n\ndef get_dataset():\n \n list_folder = os.listdir('data/')\n list_images = []\n for i in xrange(len(list_folder)):\n images = os.listdir('data/' + list_folder[i])\n for x in xrange(len(images)):\n i... | [
[
"sklearn.preprocessing.LabelEncoder",
"numpy.array",
"numpy.random.shuffle",
"numpy.unique"
]
] |
yskn67/xgboost | [
"70a4c419e966fea9418bc09dfec19e41215f7fb2"
] | [
"tests/python-gpu/test_gpu_updaters.py"
] | [
"from __future__ import print_function\n\nimport sys\n\nsys.path.append(\"../../tests/python\")\nimport xgboost as xgb\nimport numpy as np\nimport unittest\nfrom nose.plugins.attrib import attr\nfrom sklearn.datasets import load_digits, load_boston, load_breast_cancer, make_regression\nimport itertools as it\n\nrng... | [
[
"sklearn.datasets.load_digits",
"sklearn.datasets.load_breast_cancer",
"numpy.random.RandomState",
"numpy.allclose",
"sklearn.datasets.make_regression",
"sklearn.datasets.load_boston"
]
] |
incredelous/bert_reader | [
"d7a54fce83a5678777a02bc50176e7fa527d7f9f"
] | [
"run_forum_data.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... | [
[
"tensorflow.contrib.tpu.TPUEstimatorSpec",
"tensorflow.data.TFRecordDataset",
"tensorflow.train.Features",
"tensorflow.contrib.tpu.TPUEstimator",
"tensorflow.matmul",
"tensorflow.reshape",
"tensorflow.one_hot",
"tensorflow.logging.warning",
"tensorflow.parse_single_example",
... |
semodi/arxiv_app | [
"e33e8e1eae96e25cf41d4169dca82d88615e5d08"
] | [
"arxv/app.py"
] | [
"import arxiv\nfrom flask import Flask, request, redirect, url_for, flash, jsonify\nimport pymysql\nimport pandas as pd\nimport datetime\nimport time\nimport mysql_config\nimport sys\nimport logging\nMAX_ARTICLES = 10000\n\ndef make_entry(d):\n \"\"\" Create database entry from query result\"\"\"\n id_ = d['i... | [
[
"pandas.read_sql"
]
] |
vespa-mrs/vespa | [
"6d3e84a206ec427ac1304e70c7fadf817432956b"
] | [
"vespa/analysis/functors/funct_fidsum_wbnaa.py"
] | [
"# Python modules\n\n\n\n# 3rd party modules\nimport numpy as np\n\n\n# Our modules\nimport vespa.common.constants as common_constants\nimport vespa.common.minf_parabolic_info as minf\nimport vespa.common.util.generic_spectral as util_spectral\n\n\n\n\ndef funct_optimize_phase0(rad, info):\n \"\"\"\n Optimiza... | [
[
"numpy.zeros",
"numpy.sum",
"numpy.roll",
"numpy.exp",
"numpy.fft.fft",
"numpy.arange",
"numpy.abs"
]
] |
adamjorr/kbbq-py | [
"a1b6049458ec03d305c4f4148aad325a3867d627"
] | [
"tests/test_recalibrate.py"
] | [
"import pytest\nfrom test_compare_reads import FakeRead, bamread_to_fakeread\nimport kbbq.main\nfrom kbbq import recalibrate\nfrom kbbq import compare_reads\nimport pysam\nimport numpy as np\n\ndef test_find_corrected_sites(simple_fastq_reads):\n for r in simple_fastq_reads:\n r2 = pysam.FastxRecord(name ... | [
[
"numpy.array",
"numpy.array_equal",
"numpy.zeros"
]
] |
kigesui/open-covid-19-data | [
"d40d86fc2c8f53462677f19e86f9f84f0810ca52"
] | [
"tests/test_exported_data.py"
] | [
"#!/usr/bin/python\n#\n# 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 app... | [
[
"pandas.read_csv"
]
] |
skyyuntian/Giotto | [
"6a107ef568161f5d2e65184a72b3b699ed918d33"
] | [
"inst/python/reader.py"
] | [
"#!/usr/bin/python\nfrom smfishHmrf.HMRFInstance import HMRFInstance\nfrom smfishHmrf.DatasetMatrix import DatasetMatrix, DatasetMatrixSingleField, DatasetMatrixMultiField\nfrom smfishHmrf.spatial import rank_transform_matrix, calc_silhouette_per_gene\nimport sys\nimport os\nimport math\nimport subprocess\nimport n... | [
[
"scipy.stats.zscore",
"numpy.array",
"numpy.empty"
]
] |
fzalkow/PCP | [
"45f705fa5b6e86eb6fe1269221979e5cb1d4fa57"
] | [
"LibPCP/complex.py"
] | [
"\"\"\"\nSource: PCP Notebooks (https://www.audiolabs-erlangen.de/PCP)\nModule: LibPCP.complex\nAuthor: Meinard Mueller, International Audio Laboratories Erlangen\nLicense: The MIT license, https://opensource.org/licenses/MIT\n\"\"\"\nimport os\nimport numpy as np\nfrom matplotlib import pyplot as plt\nfrom matplot... | [
[
"matplotlib.pyplot.xlim",
"numpy.cos",
"numpy.deg2rad",
"numpy.imag",
"matplotlib.colors.LinearSegmentedColormap.from_list",
"numpy.sin",
"numpy.angle",
"numpy.warnings.filterwarnings",
"numpy.log",
"matplotlib.pyplot.savefig",
"matplotlib.pyplot.subplots",
"numpy.c... |
matejklemen/slovene-coreference-resolution | [
"3dc19c03dcef244c4cc4f6e0415915455014964d"
] | [
"src/data.py"
] | [
"import os\nimport logging\nimport csv\nimport pandas as pd\nfrom collections import OrderedDict\n\nfrom bs4 import BeautifulSoup\n\nDUMMY_ANTECEDENT = None\n\n#####################\n# GLOBAL PARAMETERS\n#####################\n# Path \"./data/*\" assumes you are running from root folder, i.e. (python /src/baseline.... | [
[
"pandas.read_table"
]
] |
SNAPsoftware/ANLffr | [
"0dae88e0867ed75f8bad5e16e778a2aa27373e0d"
] | [
"anlffr/preproc.py"
] | [
"# -*- coding: utf-8 -*-\n\"\"\"\nModule for preprocessing utilities. These are supposed to complement\nthe preproessing utilities that are available with MNE.\n\n\"\"\"\nimport numpy as np\n\nfrom math import ceil\nfrom anlffr.utils import logger, verbose\nfrom mne import pick_channels\nfrom mne.filter import filt... | [
[
"numpy.concatenate",
"numpy.max",
"numpy.zeros",
"numpy.ones",
"numpy.min",
"numpy.diff",
"numpy.finfo",
"numpy.where",
"numpy.argmax",
"numpy.abs",
"numpy.int64",
"numpy.asanyarray"
]
] |
xiadeye/PaddleOCR | [
"ffecf10688f1af030db8f8dd3f70def9a2875595"
] | [
"tools/infer_det.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.concatenate"
]
] |
Martinouj/ludwig | [
"71ca2189bcee7a2667c428aeb1bf738697cbe83d",
"71ca2189bcee7a2667c428aeb1bf738697cbe83d"
] | [
"ludwig/utils/tf_utils.py",
"ludwig/features/set_feature.py"
] | [
"#! /usr/bin/env python\n# coding=utf-8\n# Copyright (c) 2019 Uber Technologies, Inc.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENS... | [
[
"tensorflow.abs",
"tensorflow.SparseTensor",
"tensorflow.sequence_mask",
"tensorflow.shape",
"tensorflow.equal",
"tensorflow.ConfigProto",
"tensorflow.reduce_sum",
"tensorflow.boolean_mask",
"tensorflow.GPUOptions",
"tensorflow.cast"
],
[
"tensorflow.matmul",
"t... |
gumpy-hybridBCI/gumpy-Realtime | [
"163f72ff4d8734cbfd13848e21ce7d4cafc6e8e9",
"163f72ff4d8734cbfd13848e21ce7d4cafc6e8e9"
] | [
"src/live-generation-spectrograms/live_processing.py",
"src/Live-EEG_decoding/TEST_live_EEG-Split.py"
] | [
"\"\"\"Utility scripts to provide a filterbank and spectrogram generator.\n\n\nThe filterbank utilizes filter functions defined in gumpy.signal.\n\nTo ensure a consistent spectrogram size, either cropping or scaling can be\nused. Just change the corresponding lines in the specGen.process function.\n\n\"\"\"\n\nimpo... | [
[
"scipy.signal.spectrogram",
"numpy.zeros"
],
[
"numpy.int_"
]
] |
arghyaganguly/model-analysis | [
"1617375dd35e72447653e54330484c3a2950e4c6"
] | [
"tensorflow_model_analysis/size_estimator_test.py"
] | [
"# Lint as: python3\n# Copyright 2020 Google LLC\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appli... | [
[
"tensorflow.test.main"
]
] |
will-moore/napari | [
"56d18b4563654417067d187f8d796c7b3898c56f"
] | [
"napari/layers/labels/_tests/test_labels.py"
] | [
"import numpy as np\nimport pytest\n\nfrom napari._tests.utils import check_layer_world_data_extent\nfrom napari.layers import Labels\nfrom napari.layers.labels._labels_constants import LabelColorMode\nfrom napari.utils import Colormap\n\n\ndef test_random_labels():\n \"\"\"Test instantiating Labels layer with r... | [
[
"numpy.array",
"numpy.zeros",
"numpy.random.seed",
"numpy.sum",
"numpy.allclose",
"numpy.subtract",
"numpy.random.randint",
"numpy.all",
"numpy.unique"
]
] |
simon-donne/defusr | [
"fa4275070af4024eea128e99d7c6df2358d129a5",
"fa4275070af4024eea128e99d7c6df2358d129a5"
] | [
"code/losses/depth_gt.py",
"code/utils/chamfer_evaluation.py"
] | [
"\nimport torch\nimport numpy as np\n\nclass DepthGTLoss(torch.nn.Module):\n \"\"\"\n A simple L1 loss, but restricted to the cropped center of the image.\n It also does not count pixels outside of a given range of values (in target).\n Additionally, there is also an L1 loss on the gradient.\n \"\"\"... | [
[
"torch.device",
"numpy.array",
"torch.clamp",
"torch.abs",
"torch.nn.Conv2d"
],
[
"numpy.array",
"numpy.random.rand",
"torch.cuda.synchronize",
"numpy.zeros",
"numpy.all",
"torch.Tensor"
]
] |
wanghongsheng01/oneflow_cambricon | [
"187faaa2cb9ba995080ba22499b6219c2d36f0ac"
] | [
"oneflow_cambricon-cambricon/oneflow/python/test/ops/test_layers_conv1d.py"
] | [
"\"\"\"\nCopyright 2020 The OneFlow Authors. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by ap... | [
[
"tensorflow.GradientTape",
"tensorflow.concat",
"tensorflow.config.experimental.set_memory_growth",
"tensorflow.nn.conv1d",
"numpy.allclose",
"numpy.abs",
"numpy.absolute",
"tensorflow.split",
"tensorflow.config.experimental.list_physical_devices"
]
] |
Jo951128/2021-2-MIP | [
"511e0a38816d16fdba9631f76cf913ba51c43138"
] | [
"datasets.py"
] | [
"import torch\nfrom torch.utils.data import Dataset \nimport cv2\nimport numpy as np \nimport pandas as pd\n\n__all__ = ['VideoDataset', 'VideoLabelDataset']\n\nclass VideoDataset(Dataset):\n \"\"\" Video Dataset for loading video.\n It will output only path of video (neither video file path or video fold... | [
[
"pandas.read_csv",
"torch.utils.data.DataLoader"
]
] |
jleni/lola | [
"9b9a2122aefc97d9ed1529b875912816f1acb5d6"
] | [
"lola/utils.py"
] | [
"\"\"\"\nVarious utility functions.\n\"\"\"\nimport numpy as np\nimport tensorflow as tf\n\n\ndef batch_to_seq(h, nbatch, nsteps, flat=False):\n if flat:\n h = tf.reshape(h, [nbatch, nsteps])\n else:\n h = tf.reshape(h, [nbatch, nsteps, -1])\n return [tf.squeeze(v, [1]) for v in tf.split(axis... | [
[
"tensorflow.get_default_session",
"tensorflow.constant_initializer",
"tensorflow.group",
"tensorflow.matmul",
"tensorflow.ones",
"tensorflow.gradients",
"tensorflow.reshape",
"tensorflow.clip_by_norm",
"tensorflow.zeros_like",
"tensorflow.stack",
"tensorflow.tanh",
... |
alibaba/EasyRec | [
"436205f8480fa131d4b6e9d166b3ab85bd6b9d9d"
] | [
"easy_rec/python/test/export_test.py"
] | [
"# -*- encoding:utf-8 -*-\n# Copyright (c) Alibaba, Inc. and its affiliates.\n# Date: 2020-10-06\n# Filename:export_test.py\nimport functools\nimport json\nimport logging\nimport os\nimport unittest\n\nimport numpy as np\nimport tensorflow as tf\n\nimport easy_rec\nfrom easy_rec.python.inference.predictor import Pr... | [
[
"tensorflow.load_op_library",
"numpy.abs",
"tensorflow.train.latest_checkpoint",
"tensorflow.test.main"
]
] |
wanglxi1/tensorflow | [
"08ed32dbb9e8f67eec9efce3807b5bdb3933eb2f",
"f9e536b4a9d96322d7e971073602c8969dbd9369"
] | [
"tensorflow/tools/dist_test/python/mnist_replica.py",
"tensorflow/python/framework/common_shapes.py"
] | [
"# Copyright 2016 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.train.Server",
"tensorflow.zeros",
"tensorflow.train.AdamOptimizer",
"tensorflow.train.ClusterSpec",
"tensorflow.nn.relu",
"tensorflow.examples.tutorials.mnist.input_data.read_data_sets",
"tensorflow.Variable",
"tensorflow.train.Supervisor",
"tensorflow.ConfigProto"... |
Robert-sktai/skt | [
"3075c1f4875f9acba927a53c7a2d0e1f7eb302dc",
"3075c1f4875f9acba927a53c7a2d0e1f7eb302dc"
] | [
"skt/ye.py",
"skt/mls.py"
] | [
"from skt.vault_utils import get_secrets\n\n\ndef get_hive_conn():\n from pyhive import hive\n\n hiveserver2 = get_secrets(path=\"ye/hiveserver2\")\n host = hiveserver2[\"ip\"]\n port = hiveserver2[\"port\"]\n user = hiveserver2[\"user\"]\n conn = hive.connect(host, port=port, username=user)\n ... | [
[
"pandas.read_sql"
],
[
"pandas.DataFrame.from_records",
"pandas.concat"
]
] |
gzyszuuow/BusBunching | [
"e9b01a62e422ae6525d9287bdf46c25aacdf9c6c"
] | [
"12.20/model2.py"
] | [
"from keras.models import Model\r\nfrom keras.layers import Input\r\nfrom keras.layers import LSTM\r\nfrom keras.layers import Dense\r\nfrom keras.layers import GRU,Embedding,concatenate,Reshape\r\nimport numpy as np\r\nimport keras\r\n#from loaddata2 import *\r\n\r\npath1 = \"C:\\\\Users\\\\bdu\\\\Desktop\\\\gzy\\... | [
[
"numpy.array",
"numpy.random.randint",
"numpy.load"
]
] |
MaplewithMoon/CodedVision | [
"b98a06f5014fde30f316433b145dd8c8bd777b47"
] | [
"PascalLoader.py"
] | [
"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Fri Aug 18 11:58:07 2017\n\n@author: Biagio Brattoli\n\"\"\"\n\nimport os, numpy as np\nimport torch\nimport torch.utils.data as data\nfrom scipy.misc import imread, imresize\nfrom scipy.sparse import csr_matrix\nfrom PIL import Image\nimport xml.etree.ElementTree as ET\... | [
[
"numpy.array",
"torch.stack",
"numpy.random.rand",
"numpy.zeros",
"scipy.misc.imread"
]
] |
yizhouzhao/GPointNet | [
"883585821bff89e29cbd22f70083966bc1854f2c"
] | [
"new/aae/pcutil.py"
] | [
"import matplotlib.pyplot as plt\nimport numpy as np\nfrom numpy.linalg import norm\n\n# Don't delete this line, even if PyCharm says it's an unused import.\n# It is required for projection='3d' in add_subplot()\n# from mpl_toolkits.mplot3d import Axes3D\n\n\ndef rand_rotation_matrix(deflection=1.0, seed=None):\n ... | [
[
"numpy.tile",
"numpy.min",
"numpy.cos",
"numpy.outer",
"matplotlib.pyplot.switch_backend",
"numpy.random.normal",
"numpy.sin",
"matplotlib.pyplot.colorbar",
"numpy.linalg.norm",
"numpy.max",
"numpy.eye",
"matplotlib.pyplot.tight_layout",
"numpy.sqrt",
"matpl... |
Xirider/tdnc | [
"4e2b18dd3dd9e160fef42e89506aaf3b6e15fe12"
] | [
"argmax_task.py"
] | [
"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\nimport warnings\nwarnings.filterwarnings('ignore')\n\nimport numpy as np\nimport getopt\nimport sys\nimport os\nimport math\nimport time\nimport argparse\nfrom visdom import Visdom\n\nsys.path.insert(0, os.path.join('..', '..'))\n\nimport torch as T\nfrom torch.au... | [
[
"numpy.array",
"numpy.reshape",
"numpy.zeros",
"torch.save",
"numpy.mean",
"torch.manual_seed",
"numpy.random.randint"
]
] |
nisheetsun/lost | [
"44678b8e3cfe8e640c05e868e2bc9e19d8b09252"
] | [
"backend/lost/db/model.py"
] | [
"__author__ = 'Jonas Jaeger, Gereon Reus'\nfrom flask_user import current_user, UserMixin\nfrom werkzeug.security import generate_password_hash, check_password_hash\nfrom sqlalchemy.ext.declarative import declarative_base\nfrom sqlalchemy import Column, Integer, String, DateTime, Float, Text, Boolean\nfrom sqlalche... | [
[
"pandas.DataFrame"
]
] |
nguyenphan99/test | [
"75429497b0ca8b802803dd1518d0dc25a7fd4008"
] | [
"models/resnet.py"
] | [
"from typing import Type, Any, Callable, Union, List, Optional\n\nimport torch\nimport torch.nn as nn\nfrom torch import Tensor\n\nfrom ._internally_replaced_utils import load_state_dict_from_url\nfrom .utils import _log_api_usage_once\n\n\n__all__ = [\n \"ResNet\",\n \"resnet18\",\n \"resnet34\",\n \"r... | [
[
"torch.nn.Linear",
"torch.flatten",
"torch.nn.MaxPool2d",
"torch.nn.Sequential",
"torch.nn.init.constant_",
"torch.nn.init.kaiming_normal_",
"torch.nn.ReLU",
"torch.nn.Conv2d",
"torch.nn.AdaptiveAvgPool2d"
]
] |
Morgan-Gan/2D-3D-SLowFast-TSM--Proj | [
"9568be69fc87d59d569327ae5c3d2c448bc23648"
] | [
"backbone/hidden_for_roi_maxpool.py"
] | [
"import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nfrom torch.autograd import Variable\nimport numpy as np\n\n\nclass Hidden(nn.Module):\n\n def __init__(self, inplanes, planes, stride=1):\n super(Hidden, self).__init__()\n\n def forward(self, x):\n out=x.view(x.shape[0],-1)\... | [
[
"torch.nn.init.kaiming_normal_"
]
] |
doggeral/incubator-mxnet | [
"bcff49888fdaae6b9922de4d4712d505cf33c596"
] | [
"python/mxnet/image/image.py"
] | [
"# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); y... | [
[
"numpy.random.normal",
"numpy.array",
"numpy.dot",
"numpy.sin",
"numpy.log",
"numpy.cos",
"numpy.frombuffer",
"numpy.sqrt"
]
] |
xuyongzhi/SparseVoxelNet | [
"2b8338c3291880ee1ef7739580eeaefb737f6164"
] | [
"datasets/all_datasets_meta/datasets_meta.py"
] | [
"# May 2018 xyz\n\nfrom __future__ import print_function\nimport os\nimport sys, glob\nimport numpy as np\nBASE_DIR = os.path.dirname(os.path.abspath(__file__))\nROOT_DIR = os.path.dirname(BASE_DIR)\nsys.path.append(os.path.join(ROOT_DIR))\n\nDATASETS = ['MATTERPORT', 'SCANNET', 'ETH', 'MODELNET40']\nfor ds in DATA... | [
[
"numpy.array",
"numpy.zeros"
]
] |
kutao207/SiamGCN | [
"d53a5d9b91428cc51811803abab1877791af35d3"
] | [
"main_pointnet.py"
] | [
"import os\nimport os.path as osp\n\nimport argparse\nfrom datetime import datetime\n\nimport torch \nimport torch.nn.functional as F\nfrom torch.nn import Sequential as Seq, Linear as Lin, ReLU, BatchNorm1d as BN, Dropout\nfrom torch.optim.lr_scheduler import StepLR\n\nimport torch_geometric.transforms as T\nfrom ... | [
[
"torch.nn.Linear",
"torch.cat",
"torch.nn.Dropout",
"torch.optim.lr_scheduler.StepLR",
"torch.nn.functional.nll_loss",
"torch.nn.functional.dropout",
"torch.no_grad",
"torch.nn.functional.log_softmax",
"torch.nn.ReLU",
"torch.cuda.is_available",
"torch.load",
"torch... |
mhkarazeybek/Python | [
"8aa00ac15f9e198db421bbc05c37410b8d844632"
] | [
"OpenCV/opticalFlow.py"
] | [
"#mouse ile herhangi bir objenin üzerine tıklayıp hareket ettirebilirsiniz\nimport cv2\nimport numpy as np\n\ncap = cv2.VideoCapture(0)\n\n#Create old frame\n_, frame = cap.read()\noldGray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)\n\n# Lucas kanade params\nlkParams = dict(winSize=(15, 15),\n maxLevel... | [
[
"numpy.array"
]
] |
pepelawycliffe/keras | [
"0f8da5a7b814cb37baba868fc11fe8b10b3d4cf8"
] | [
"keras/layers/preprocessing/index_lookup_test.py"
] | [
"# Copyright 2020 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ... | [
[
"tensorflow.compat.v2.SparseTensor",
"numpy.array",
"tensorflow.compat.v2.TensorShape",
"tensorflow.compat.v2.ragged.constant",
"tensorflow.compat.v2.data.Dataset.from_tensor_slices",
"tensorflow.compat.v2.__internal__.tf2.enabled",
"tensorflow.compat.v2.data.Dataset.from_tensors",
... |
HDembinski/mplhep | [
"5ae7601bd8922074dfc1ee92fc81f590a9efa7d5"
] | [
"tests/test.py"
] | [
"import os\nimport sys\nimport pytest\nimport matplotlib.pyplot as plt\nimport numpy as np\n\nos.environ[\"RUNNING_PYTEST\"] = \"true\"\n\nimport mplhep as hep # noqa\n\n\"\"\"\nTo test run:\npy.test --mpl\n\nWhen adding new tests, run:\npy.test --mpl-generate-path=tests/baseline\n\"\"\"\n\nplt.switch_backend(\"Agg... | [
[
"matplotlib.pyplot.switch_backend",
"numpy.random.normal",
"numpy.histogram2d",
"matplotlib.pyplot.rcParams.update",
"numpy.ones_like",
"numpy.random.seed",
"matplotlib.pyplot.subplots",
"numpy.arange",
"matplotlib.pyplot.style.use",
"numpy.sqrt"
]
] |
sridhar0605/cnvkit | [
"f4ccc908bb3fb07ee701ace63f1f3702ef109f2d"
] | [
"skgenome/gary.py"
] | [
"\"\"\"Base class for an array of annotated genomic regions.\"\"\"\nimport logging\nfrom collections import OrderedDict\n\nimport numpy as np\nimport pandas as pd\n\nfrom .chromsort import sorter_chrom\nfrom .intersect import by_ranges, into_ranges, iter_ranges, iter_slices\nfrom .merge import flatten, merge\nfrom ... | [
[
"pandas.isnull",
"pandas.DataFrame.from_records",
"numpy.zeros",
"pandas.DataFrame.from_dict",
"numpy.random.seed",
"pandas.DataFrame",
"numpy.random.shuffle",
"pandas.concat",
"pandas.Series",
"numpy.dtype"
]
] |
Slowika/GameBias-EmeCom2020 | [
"5b94c47559f8202bca99c26fc1bcb078dd0509a6"
] | [
"lib/EGG_research/egg/zoo/language_bottleneck/mnist_adv/train.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 argparse\nimport json\nfrom torch.nn import functional as F\nimport torch.utils.data\nfrom torchvision import datasets, transf... | [
[
"torch.nn.functional.nll_loss"
]
] |
immortalFrogJiang/mars | [
"93c786e38bdc0fbb483282d7792379db0345a3b6",
"93c786e38bdc0fbb483282d7792379db0345a3b6",
"93c786e38bdc0fbb483282d7792379db0345a3b6"
] | [
"mars/tensor/expressions/linalg/svd.py",
"mars/tensor/execution/arithmetic.py",
"mars/core.py"
] | [
"#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n# Copyright 1999-2018 Alibaba Group Holding Ltd.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/li... | [
[
"numpy.ones"
],
[
"numpy.errstate"
],
[
"numpy.isinf",
"numpy.prod"
]
] |
jylong9/tf-quant-finance | [
"7990f016dceda8249990abec58fbb5f5e02a747e"
] | [
"tf_quant_finance/black_scholes/vanilla_prices.py"
] | [
"# Lint as: python3\n# Copyright 2019 Google LLC\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 applicab... | [
[
"tensorflow.compat.v2.shape",
"tensorflow.compat.v2.cast",
"tensorflow.compat.v2.math.divide",
"tensorflow.compat.v2.reduce_sum",
"tensorflow.compat.v2.math.log",
"tensorflow.compat.v2.bitwise.left_shift",
"tensorflow.compat.v2.exp",
"numpy.sqrt",
"tensorflow.compat.v2.stack",
... |
SteffenBauer/Deep_RL | [
"6671c723098037cef1013af9a7f434df993c9d91",
"6671c723098037cef1013af9a7f434df993c9d91"
] | [
"train_tromis.py",
"rl/agents/pg.py"
] | [
"#!/usr/bin/env python3\n\nimport os\nos.environ['TF_CPP_MIN_LOG_LEVEL'] = '3'\nos.environ['TF_FORCE_GPU_ALLOW_GROWTH'] = 'true'\nimport tensorflow as tf\nimport tensorflow.keras as keras\ntf.get_logger().setLevel('ERROR')\n\nfrom rl.games import tromis\nfrom rl.agents import dqn\nfrom rl.memory import uniqmemory\n... | [
[
"tensorflow.keras.losses.LogCosh",
"tensorflow.keras.layers.Input",
"tensorflow.keras.layers.AveragePooling3D",
"tensorflow.keras.layers.Conv3D",
"tensorflow.keras.models.Model",
"tensorflow.keras.layers.Dense",
"tensorflow.keras.optimizers.RMSprop",
"tensorflow.keras.layers.Global... |
sebszyller/counterfit | [
"e3075b76e3616f2cf2e7767152d1be4852b4a213"
] | [
"counterfit/frameworks/textattack/textattack.py"
] | [
"import re\nimport importlib\n\nfrom textattack import Attacker\nimport numpy as np\nfrom textattack.datasets import Dataset\n\nfrom counterfit.core.attacks import CFAttack\nfrom counterfit.core.frameworks import Framework\nfrom counterfit.core.utils import get_subclasses\nfrom counterfit.report.report_generator im... | [
[
"numpy.array",
"numpy.atleast_1d"
]
] |
Ahanio/nucleoli_segment | [
"11a63117c83e607cf9752007e6ccc8766d01ca9e"
] | [
"inference_example.py"
] | [
"from all_in_one import AllInOneModel\nimport os\nfrom skimage.io import imsave\nimport torch\nimport numpy as np\nfrom imageio import volread\n\npaths = [\n \"./data_example/e-0479_c-1_siRNA-11_pos-10_RI.tiff\",\n \"./data_example/e-0479-c-61-untreated-test_RI.tiff\",\n]\n\nimg = torch.cat([torch.Tensor([vol... | [
[
"torch.device"
]
] |
Yaodong1208/adv | [
"0306bf658c95df9dede67991fc79c29e887ee128"
] | [
"stAdv/tests/test_optimization.py"
] | [
"from .context import stadv, call_assert\n\nimport tensorflow as tf\nimport numpy as np\n\n\nclass LBFGSCase(tf.test.TestCase):\n \"\"\"Test the lbfgs optimization function.\n Note: we are NOT testing the LBFGS implementation from SciPy, instead we\n test our wrapping and its interplay with TensorFlow.\"\"... | [
[
"numpy.array",
"numpy.zeros",
"tensorflow.Variable",
"tensorflow.test.main",
"tensorflow.global_variables_initializer",
"tensorflow.square"
]
] |
sandmaennchen/acados | [
"3119e2dda636a8358fbd52247eb0163a167cbc97"
] | [
"examples/acados_python/getting_started/ocp/example_gnsf_ocp.py"
] | [
"#\n# Copyright 2019 Gianluca Frison, Dimitris Kouzoupis, Robin Verschueren,\n# Andrea Zanelli, Niels van Duijkeren, Jonathan Frey, Tommaso Sartor,\n# Branimir Novoselnik, Rien Quirynen, Rezart Qelibari, Dang Doan,\n# Jonas Koenemann, Yutao Chen, Tobias Schöls, Jonas Schlagenhauf, Moritz Diehl\n#\n# This file is pa... | [
[
"numpy.array",
"numpy.zeros",
"numpy.eye",
"numpy.ndarray",
"numpy.linspace",
"numpy.diag"
]
] |
slamavl/QChemTool | [
"b6b17adf6cfa8ac1db47acba93aab1ee49c1be47"
] | [
"tests/Polarizability/Derivative/Derivative_elstat.py"
] | [
"# -*- coding: utf-8 -*-\r\n\"\"\"\r\nCreated on Fri Jan 5 17:09:34 2018\r\n\r\n@author: Vladislav Sláma\r\n\"\"\"\r\n\r\nimport numpy as np\r\nfrom QChemTool.Polarizable_atoms.Electrostatics_module import Electrostatics\r\n\r\n'''----------------------- TEST PART --------------------------------'''\r\nif __name__... | [
[
"numpy.array",
"numpy.ones",
"numpy.zeros",
"numpy.abs"
]
] |
jairoruizsaenz/scattertext | [
"5d96f62434057cc26ed90a1d0b314984e4ef90f8"
] | [
"scattertext/TermDocMatrix.py"
] | [
"import warnings\nfrom copy import copy\n\nimport numpy as np\nimport pandas as pd\nimport scipy\nfrom pandas.core.common import SettingWithCopyWarning\nfrom scipy.sparse import csr_matrix\nfrom scipy.stats import hmean, fisher_exact, rankdata, norm\nfrom sklearn.feature_extraction.text import TfidfTransformer\nfro... | [
[
"sklearn.linear_model.LassoCV",
"numpy.array",
"numpy.zeros",
"numpy.log",
"pandas.DataFrame",
"scipy.sparse.hstack",
"scipy.sparse.vstack",
"scipy.stats.hmean",
"sklearn.feature_extraction.text.TfidfTransformer",
"sklearn.linear_model.ElasticNet",
"sklearn.linear_model... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.