repo_name stringlengths 6 130 | hexsha list | file_path list | code list | apis list |
|---|---|---|---|---|
dtrckd/sparkit-learn | [
"0498502107c1f7dcf33cda0cdb6f5ba4b42524b7"
] | [
"splearn/naive_bayes.py"
] | [
"# -*- coding: utf-8 -*-\n\nimport operator\n\nimport numpy as np\nimport scipy.sparse as sp\nfrom sklearn.base import copy\nfrom sklearn.naive_bayes import (BaseDiscreteNB, BaseNB, BernoulliNB,\n GaussianNB, MultinomialNB)\n\nfrom splearn import BlockRDD\nfrom splearn.base import Sp... | [
[
"numpy.sum",
"sklearn.base.copy.deepcopy"
]
] |
IBM/oct-glaucoma-forecast | [
"760a6013ed6cfd8ba6954c708bb224541c002f7c",
"760a6013ed6cfd8ba6954c708bb224541c002f7c"
] | [
"orig/scripts/eval_mlode_sync.py",
"revised/training/test_latentode_larger_gap.py"
] | [
"import numpy as np\nimport torch\n\nfrom losses import mae_loss, mae_globalmean\nfrom utils.oct_utils import get_mask_rnfl\nfrom utils.utils import select_modalities, subsample\n\nGPU = 0\ndevice = torch.device('cuda:' + str(GPU) if torch.cuda.is_available() else 'cpu')\n\none_ = torch.tensor(1.0).to(device)\nzero... | [
[
"torch.sigmoid",
"torch.no_grad",
"torch.std",
"torch.ones",
"torch.from_numpy",
"torch.cuda.is_available",
"torch.tensor",
"numpy.abs",
"torch.mean",
"torch.where",
"torch.sum"
],
[
"numpy.std",
"numpy.set_printoptions",
"numpy.mean"
]
] |
michael-kitchin/CarND-Vehicle-Detection | [
"ad7167b8e6b1cfa993941ee39d3eb529ded2c394"
] | [
"util/classifier.py"
] | [
"import cv2\nimport numpy as np\nfrom skimage.feature import hog\n\nfrom util import image\n\n\ndef get_hog_features(input_image,\n orientation,\n px_per_cell,\n cell_per_blk,\n visualize=False,\n feature_vector=True... | [
[
"numpy.array",
"numpy.copy",
"numpy.ravel",
"numpy.zeros"
]
] |
muizzk/Marabou | [
"b938c474bbf7820854822ca407b64b53dfcf6c7c"
] | [
"maraboupy/DnCParallelSolver.py"
] | [
"'''\n/* ******************* */\n/*! \\file DnCParallelSolver.py\n ** \\verbatim\n ** Top contributors (to current version):\n ** Haoze Wu\n ** This file is part of the Marabou project.\n ** Copyright (c) 2017-2019 by the authors listed in the file AUTHORS\n ... | [
[
"numpy.random.seed"
]
] |
nayanbera/SAXS_Drive | [
"1c5a83c6575fa888bfbcc3c34cedb38321bd5f92",
"1c5a83c6575fa888bfbcc3c34cedb38321bd5f92"
] | [
"Functions/ASAXS/Cylinder_Uniform.py",
"XAnoS_Fit.py"
] | [
"####Please do not remove lines below####\nfrom lmfit import Parameters\nimport numpy as np\nimport sys\nimport os\nsys.path.append(os.path.abspath('.'))\nsys.path.append(os.path.abspath('./Functions'))\nsys.path.append(os.path.abspath('./Fortran_routines'))\nfrom functools import lru_cache\n####Please do not remov... | [
[
"numpy.array",
"numpy.zeros_like",
"numpy.ones_like",
"numpy.sin",
"numpy.absolute",
"numpy.sum",
"numpy.real",
"numpy.arange",
"numpy.abs",
"numpy.cumsum"
],
[
"numpy.max",
"numpy.array",
"numpy.delete",
"numpy.savetxt",
"numpy.sum",
"numpy.perc... |
BuildJet/crocoddyl | [
"274274602b0e6bcfaed446fecef8a09931dbc1c0"
] | [
"examples/bipedal_walk.py"
] | [
"import os\nimport sys\n\nimport numpy as np\n\nimport crocoddyl\nimport example_robot_data\nimport pinocchio\nfrom crocoddyl.utils.biped import SimpleBipedGaitProblem, plotSolution\n\nWITHDISPLAY = 'display' in sys.argv or 'CROCODDYL_DISPLAY' in os.environ\nWITHPLOT = 'plot' in sys.argv or 'CROCODDYL_PLOT' in os.e... | [
[
"numpy.concatenate"
]
] |
DazEB2/SimplePyScripts | [
"1dde0a42ba93fe89609855d6db8af1c63b1ab7cc"
] | [
"Bot Buff Knight Advanced/common.py"
] | [
"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\n__author__ = 'ipetrash'\n\n\nfrom datetime import datetime\nimport cv2\nimport numpy as np\n\n\ndef get_logger(name, file='log.txt', encoding='utf-8', log_stdout=True, log_file=True):\n import logging\n log = logging.getLogger(name)\n log.setLevel(logging... | [
[
"numpy.array"
]
] |
task-master98/AI_dev | [
"da5b217e6c6d9ed9077e2bf3394f34403e91ab9f"
] | [
"ML/first_att.py"
] | [
"from sklearn.datasets import *\r\nfrom sklearn.model_selection import train_test_split\r\nfrom matplotlib import pyplot as plt\r\nfrom sklearn.neighbors import KNeighborsClassifier\r\nimport numpy as np\r\n\r\n'''\r\nThe iris dataset is loaded on to the var iris which is called Bunched. Works like a dictionary\r\n... | [
[
"sklearn.model_selection.train_test_split",
"matplotlib.pyplot.suptitle",
"matplotlib.pyplot.subplots"
]
] |
daniel-fink/periscope | [
"4ff4f7dbde54df0e3b8bd81aaf9fa86cfffa7c8d"
] | [
"display.py"
] | [
"# Library file for functions to display various tabular and geospatial datasets\n# Imports:\nimport matplotlib\nimport shapely\nimport cartoframes\nfrom cartoframes.viz import Map, Layer, popup_element, color_category_style\nimport matplotlib.pyplot as plt\nimport seaborn as sns\nimport contextily as ctx\nfrom IPy... | [
[
"matplotlib.pyplot.subplots"
]
] |
imatge-upc/AI4Agriculture-grape-detection | [
"4adc277320f527f1bbefe4d504e3223928201f69"
] | [
"src/metrics/mask_metrics.py"
] | [
"import numpy as np\nfrom scipy.stats import hmean\n\nfrom .ap import get_ap\n\n\ndef add_mask(mask, boxes):\n for box in boxes:\n mask[box[1]:box[3], box[0]:box[2]] = 1\n\ndef get_metrics_from_masks(pred_mask, target_mask):\n tp = np.sum(pred_mask * target_mask)\n fp = np.sum(pred_mask * (1... | [
[
"numpy.concatenate",
"numpy.sum",
"numpy.zeros",
"scipy.stats.hmean"
]
] |
ShawnZhong/pytorch-einsum-cuda | [
"b6672b10e153b63748874ca9008fd3160f38c3dd"
] | [
"test/test_torch.py"
] | [
"# -*- coding: utf-8 -*-\n# Owner(s): [\"module: tests\"]\n\nimport torch\nimport torch.utils.data\nimport numpy as np\n\nimport contextlib\nimport gc\nimport io\nimport inspect\nimport itertools\nimport math\nimport random\nimport re\nimport copy\nimport os\nimport tempfile\nimport unittest\nimport warnings\nimpor... | [
[
"torch.cat",
"torch.nn.MaxPool3d",
"torch.Generator",
"torch.from_dlpack",
"torch.cuda.device",
"torch.bmm",
"torch.squeeze",
"torch.cuda.default_stream",
"torch.testing.assert_close",
"torch.load",
"torch.transpose",
"torch.exp",
"torch.testing._internal.common... |
fmott/two_goal_task | [
"b2a7948ced432b48566d8d00e97e83a65fba7ca5"
] | [
"Code/helpers.py"
] | [
"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCollection of helper functions \n\n@author: Dimtirije Markovic\n\"\"\"\nimport numpy as np\nimport torch\n\ndef offer_state_mapping(L, no, nd=2):\n \"\"\"\n Compute the state transition matrix for a given offer.\n L -> size of the state space along ... | [
[
"numpy.array",
"numpy.indices",
"numpy.zeros",
"numpy.exp",
"torch.from_numpy",
"numpy.arange",
"numpy.ravel_multi_index"
]
] |
mpecimotika/ctapipe | [
"ffd7930921f7139b761fbf1208da16dd302e97a6"
] | [
"ctapipe/reco/tests/test_energy_regressor.py"
] | [
"from tempfile import TemporaryDirectory\n\nimport numpy as np\nfrom numpy.testing import assert_allclose\n\nfrom astropy import units as u\n\nfrom ctapipe.reco.energy_regressor import *\n\n\ndef test_prepare_model():\n cam_id_list = [\"FlashCam\", \"ASTRICam\"]\n feature_list = {\"FlashCam\": [[1, 10], [2, 2... | [
[
"numpy.random.seed",
"numpy.testing.assert_allclose",
"numpy.array"
]
] |
utkarshdeorah/sympy | [
"dcdf59bbc6b13ddbc329431adf72fcee294b6389"
] | [
"bin/test_optional_dependencies.py"
] | [
"#!/usr/bin/env python\n\"\"\"\nRun tests for specific packages that use optional dependencies.\n\nThe optional dependencies need to be installed before running this.\n\"\"\"\n\n\n# Add the local sympy to sys.path (needed for CI)\nfrom get_sympy import path_hack\npath_hack()\n\n\nclass TestsFailedError(Exception):\... | [
[
"matplotlib.use"
]
] |
debaraj-barua/director | [
"9766469a2976719d2cb38e194d9415dd6ebd0164",
"9766469a2976719d2cb38e194d9415dd6ebd0164"
] | [
"src/python/director/affordanceitems.py",
"src/python/director/pydrakeik.py"
] | [
"import director\nimport director.objectmodel as om\nfrom director import visualization as vis\nfrom director.visualization import PolyDataItem\nfrom director import filterUtils\nfrom director import ioUtils\nfrom director import meshmanager\nfrom director import transformUtils\nfrom director.uuidutil import newUUI... | [
[
"numpy.array",
"numpy.sin",
"numpy.linalg.norm",
"numpy.cos"
],
[
"numpy.max",
"numpy.logical_not",
"numpy.array",
"numpy.asarray",
"numpy.zeros",
"numpy.diff",
"numpy.radians",
"numpy.vstack",
"numpy.transpose",
"numpy.hstack",
"numpy.linspace",
... |
Treeconomy/DeepForest | [
"9fcb82e78cbb467ae810d64402b25e41e3c56913"
] | [
"deepforest/utilities.py"
] | [
"\"\"\"Utilities model\"\"\"\nimport json\nimport os\nimport urllib\nimport warnings\n\nimport geopandas as gpd\nimport numpy as np\nimport pandas as pd\nimport rasterio\nimport shapely\nimport xmltodict\nimport yaml\nfrom tqdm import tqdm\n\nfrom deepforest import _ROOT\n\n\ndef read_config(config_path):\n \"\"... | [
[
"pandas.DataFrame",
"pandas.read_csv"
]
] |
tiagocoutinho/taurus | [
"7a3f522e5bf4b5f864873618d3eaaeba9fcb8189"
] | [
"lib/taurus/qt/qtgui/input/qwheel.py"
] | [
"#!/usr/bin/env python\n\n#############################################################################\n##\n# This file is part of Taurus\n##\n# http://taurus-scada.org\n##\n# Copyright 2011 CELLS / ALBA Synchrotron, Bellaterra, Spain\n##\n# Taurus is free software: you can redistribute it and/or modify\n# it unde... | [
[
"numpy.finfo"
]
] |
HaoLiangPao/MachineLearningA-Z | [
"6cf1bf0243aa20847a66270683f0d1e7683a07f9"
] | [
"Part 3 - Classification/Section 15 - Random Forest Classification/Hao_RandomForest.py"
] | [
"#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Thu Jun 27 11:22:56 2019\n\n@author: lianghao\n\"\"\"\n\n#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Tue Jun 25 10:37:14 2019\n\n@author: lianghao\n\"\"\"\n\n# Random Forest\n# Importing the libraries\nimport numpy as np\ni... | [
[
"sklearn.metrics.confusion_matrix",
"sklearn.preprocessing.StandardScaler",
"sklearn.ensemble.RandomForestClassifier",
"matplotlib.pyplot.xlabel",
"matplotlib.pyplot.title",
"matplotlib.pyplot.legend",
"matplotlib.colors.ListedColormap",
"matplotlib.pyplot.ylabel",
"sklearn.mod... |
brianmcera/DRL_ObservationalDropout | [
"2d6b7c88700b3de455cc2ca70ccde5fc7b52c490"
] | [
"src/models/A2C_SharedCNN.py"
] | [
"import numpy as np\nimport tensorflow as tf\nimport random\nfrom tensorflow.keras import Model, layers\nfrom tensorflow.keras import regularizers\nfrom tensorflow.keras.layers import Dense, Flatten, Conv2D, Dropout, MaxPool2D, ReLU\n\nclass ProbabilityDistribution(Model):\n def call(self, logits, **kwargs):\n ... | [
[
"tensorflow.random.categorical",
"tensorflow.keras.layers.add",
"tensorflow.keras.layers.Flatten",
"tensorflow.keras.layers.MaxPool2D",
"tensorflow.keras.regularizers.l2",
"numpy.squeeze",
"tensorflow.keras.layers.ReLU",
"tensorflow.nn.sparse_softmax_cross_entropy_with_logits"
]
... |
saikrishnarallabandi/compositionality-expts | [
"98da8dff150db2b1d68560dd3f875f57142254e8"
] | [
"explorations/question_type/main_VAE_barebones_optim.py"
] | [
"# coding: utf-8\nimport argparse\nimport time\nimport math\nimport os\nimport torch\nimport torch.nn as nn\nimport torch.onnx\nfrom torch.autograd import Variable\nfrom data_loader_barebones_optim import *\nimport model_VAE_barebones as model\nimport generation_VAE_barebones as generation\nfrom logger import *\nim... | [
[
"torch.isnan",
"torch.autograd.Variable",
"torch.no_grad",
"torch.manual_seed",
"torch.cuda.is_available",
"torch.optim.lr_scheduler.ReduceLROnPlateau",
"torch.nn.CrossEntropyLoss"
]
] |
nalzok/xgboost | [
"75c4c7b0a80a2a4e8f89468f2d7956251dc6677b"
] | [
"python-package/xgboost/dask.py"
] | [
"# pylint: disable=too-many-arguments, too-many-locals\n\"\"\"Dask extensions for distributed training. See\nhttps://xgboost.readthedocs.io/en/latest/tutorials/dask.html for simple\ntutorial. Also xgboost/demo/dask for some examples.\n\nThere are two sets of APIs in this module, one is the functional API including... | [
[
"numpy.concatenate",
"numpy.empty"
]
] |
AntonSamojlow/authenticity-portal | [
"d3a38096c9c6aaf688ed9783464396be3ebbe673"
] | [
"portalsite/portal/core/model_type/simca/simca.py"
] | [
"\"\"\"\nImplementation of a SIMCA model, gathering the core code in the 'Simca' class.\n\nThis is a port of selected concepts from the R package 'mdatools' - https://mdatools.com/docs/simca.html\n\"\"\"\n# region - imports\n# standard\nfrom dataclasses import dataclass, field\n\n# 3rd party\nimport numpy as np\n\n... | [
[
"numpy.std",
"numpy.abs",
"numpy.mean"
]
] |
ogotaiking/anti_ml | [
"bb40f75c918e20c49f27ce54029bc293a2d17f85",
"bb40f75c918e20c49f27ce54029bc293a2d17f85",
"bb40f75c918e20c49f27ce54029bc293a2d17f85"
] | [
"model/model_backup/GBDT_DNN/post_process.py",
"lib/atecml/gcforest/cascade/cascade_classifier.py",
"model/model_backup/GBDT_DNN/reg_model_gen.py"
] | [
"import matplotlib\nimport matplotlib.pyplot as plt\nimport matplotlib.gridspec as gridspec\nimport seaborn as sns\nimport os\n\nimport numpy as np\nimport pandas as pd\nimport tensorflow as tf\n\nimport atecml.data\n\nfrom contextlib import contextmanager\nfrom tqdm import tqdm\nfrom sklearn.neighbors import KNeig... | [
[
"sklearn.externals.joblib.load",
"pandas.DataFrame",
"pandas.concat"
],
[
"numpy.max",
"numpy.asarray",
"numpy.zeros",
"numpy.min",
"numpy.argmax",
"numpy.hstack",
"numpy.unique"
],
[
"sklearn.externals.joblib.load",
"sklearn.externals.joblib.dump"
]
] |
fabianhormigo/chemistry-reaction-simulation-gillespie-method | [
"f82df751980fcd5a6fbae7559402a19c0e9f2305"
] | [
"reaccion4elementos.py"
] | [
"# -*- coding: utf-8 -*-\r\n\"\"\"\r\nCreated on Tue Jan 11 04:31:42 2022\r\n\r\n@author: fabia\r\n\"\"\"\r\n\r\n\r\n\"\"\r\n\r\n_author__ = \"Fabian Hormigo Pereila\"\r\n__copyright__ = \"Copyright (C) 2021 Fabian Hormigo Pereila\"\r\n__license__ = \"Public Domain\"\r\n__version__ = \"1.0\"\r\nimport numpy as np \... | [
[
"numpy.array",
"numpy.zeros",
"numpy.median",
"matplotlib.pyplot.xlabel",
"matplotlib.pyplot.plot",
"numpy.ones",
"matplotlib.pyplot.figure",
"numpy.std",
"matplotlib.pyplot.ylabel",
"numpy.append"
]
] |
jongfeel/EBS-AI | [
"8d879e4842cd969aa3165400f621860a72b1f1be",
"8d879e4842cd969aa3165400f621860a72b1f1be"
] | [
"chapter3/1_soccer_team_manager/1to4_data_processing/3-1-03.py",
"chapter3/1_soccer_team_manager/5_learning/3-1-14.py"
] | [
"# 궁금한 선수의 데이터 검색하기\n\nimport pandas as pd\n\nfifa2019 = pd.read_csv('fifa2019.csv')\n\n# --------------------------------------------\n\nsub1 = fifa2019.loc[14] # fifa2019의 인덱스 레이블 14인 행값을 sub1에 저장\nprint(sub1)\n\n",
"# 각 표본에 가까운 중심에 할당하기\n\nimport pandas as pd\n\n\nfifa2019 = pd.read_csv('fifa2019.csv')\nd... | [
[
"pandas.read_csv"
],
[
"numpy.array",
"numpy.random.choice",
"numpy.zeros",
"pandas.DataFrame",
"numpy.power",
"pandas.read_csv"
]
] |
firehose-dataset/congrad | [
"20792f43aa89beae75454e30b82b2e1280ed3106"
] | [
"core/models/mem_transformer.py"
] | [
"import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\nfrom core.models.decoder import RelPartialLearnableDecoderLayer\nfrom core.models.embeddings import AdaptiveEmbedding, PositionalEmbedding\nfrom core.constants import constants\n\nclass MemTransformerLM(nn.Module):\n def __init__(self,\n ... | [
[
"torch.nn.Linear",
"torch.device",
"torch.nn.Dropout",
"torch.cat",
"torch.zeros",
"torch.arange",
"torch.nn.ModuleList",
"torch.no_grad",
"torch.nn.functional.log_softmax",
"torch.triu",
"torch.empty",
"torch.Tensor"
]
] |
cclauss/openfold | [
"a933bc7479a13e4fcb95f7c7d7ffb9a6b55b0d4f"
] | [
"run_pretrained_openfold.py"
] | [
"# Copyright 2021 AlQuraishi Laboratory\n# Copyright 2021 DeepMind Technologies 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 License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LI... | [
[
"torch.no_grad",
"numpy.mean",
"torch.cuda.is_available",
"numpy.repeat",
"torch.as_tensor"
]
] |
alan-turing-institute/spatial-inequality | [
"13e47817db92c14aaf3b0f3d020305adb821e0b5"
] | [
"spineq/data_fetcher.py"
] | [
"import os\nfrom io import BytesIO\nimport zipfile\nimport time\nimport warnings\nimport json\nfrom pathlib import Path\nimport argparse\nimport requests\n\nimport pandas as pd\nimport geopandas as gpd\nimport fiona\n\nDATA_DIR = Path(os.path.dirname(__file__), \"../data\")\nRAW_DIR = Path(DATA_DIR, \"raw\")\nPROCE... | [
[
"pandas.merge",
"pandas.DataFrame",
"pandas.read_excel",
"pandas.concat",
"pandas.read_csv"
]
] |
craigshall/chiptools | [
"a3358203a1e1f873c4a3c9a490b57fa847f5bd13"
] | [
"tests/test_drop_emptier_dups.py"
] | [
"from chiptools import drop_emptier_dups\nimport pandas as pd\nimport numpy as np\nfrom pandas.util.testing import assert_frame_equal\n\ncolumns = ['A', 'B', 'C']\nrows = [[1.0, 2.0, np.NaN], [3.0, np.NaN, 4.0], [np.NaN, 5.0, np.NaN]]\ntime = '2019-04-02 11:00:00'\n\ndef _create_docstring_df():\n \"\"\"creates t... | [
[
"pandas.to_datetime",
"numpy.random.rand",
"pandas.util.testing.assert_frame_equal",
"numpy.random.seed",
"pandas.date_range"
]
] |
bcaplins/NIST_APT_TOOLS | [
"80c25498e8b069b8ee289a2d09c76c932c054cea",
"80c25498e8b069b8ee289a2d09c76c932c054cea"
] | [
"RandomScripts/convert_ToF_to_m2q.py",
"ChargingManuscriptFigures/R20_MnM2020_fig.py"
] | [
"# -*- coding: utf-8 -*-\n\"\"\"\nSpyder Editor\n\nThis is a temporary script file.\n\"\"\"\n\n# Need to put the functions in the path\n# Probably not necessary if I understood Python/Git/modules better\nimport os \nimport sys\nparent_directory = os.getcwd().rsplit(sep='\\\\',maxsplit=1)[0]\nif parent_directory not... | [
[
"numpy.array",
"numpy.ones",
"numpy.nonzero",
"numpy.arange",
"numpy.cumsum"
],
[
"numpy.square",
"numpy.histogram2d",
"numpy.array",
"numpy.max",
"numpy.zeros",
"numpy.sum",
"matplotlib.pyplot.close",
"numpy.nonzero",
"matplotlib.pyplot.figure",
"nu... |
shatayu/copg | [
"830b654c8db7ec74f84ee8584e2215200cf8a68d"
] | [
"car_racing_simulator/VehicleModel.py"
] | [
"import torch\nimport car_racing_simulator.Track as Track\nimport numpy as np\nimport copy\n\n\nclass VehicleModel():\n def __init__(self,n_batch,device,config):\n\n self.device = device\n self.track = Track.Track(config)\n\n self.track_s = torch.from_numpy(self.track.s).type(torch.FloatTens... | [
[
"torch.acos",
"torch.argmin",
"torch.ones",
"torch.sum",
"numpy.max",
"torch.sqrt",
"torch.norm",
"torch.tensor",
"numpy.sqrt",
"torch.empty",
"torch.zeros",
"torch.cos",
"torch.min",
"torch.max",
"torch.fmod",
"torch.clamp",
"torch.sin",
"to... |
omridanan/plotly.py | [
"a8d26670cba49ce15ce9b7639ae0f55a6088a825"
] | [
"_plotly_utils/tests/validators/test_integer_validator.py"
] | [
"# Array not ok\n# ------------\nimport pytest\nfrom pytest import approx\nfrom _plotly_utils.basevalidators import IntegerValidator\nimport numpy as np\n\n\n# ### Fixtures ###\n@pytest.fixture()\ndef validator():\n return IntegerValidator('prop', 'parent')\n\n\n@pytest.fixture\ndef validator_min_max():\n ret... | [
[
"numpy.array",
"numpy.iinfo"
]
] |
itouchz/Mr.TAD | [
"da81bca9d6e98509046618f2417b69a28a424ecf"
] | [
"data_loader.py"
] | [
"# Dataset Loader\n# Univariate Datasets: KDD Cup'21 UCR, Yahoo S5, Power-demand\n# Multivariate Datasets: NASA, ECG, 2D Gesture, SMD\n\nimport os\nimport numpy as np\nimport pandas as pd\n\nfrom sklearn.preprocessing import StandardScaler, MinMaxScaler\nfrom tqdm.notebook import tqdm\n\nTIME_STEPS = 6\n\n# Generat... | [
[
"pandas.read_pickle",
"numpy.concatenate",
"numpy.zeros",
"numpy.load",
"numpy.where",
"numpy.stack",
"sklearn.preprocessing.MinMaxScaler",
"pandas.read_csv"
]
] |
trungd/speech-recognition | [
"1b033d535e98f141e63ca7a5f286f23c8fa1214f"
] | [
"src/models/ctc.py"
] | [
"import os\nfrom .base import BaseModel\nimport tensorflow as tf\nfrom six.moves import xrange as range\nfrom ..utils import ops_utils\n\n\nclass CTCModel(BaseModel):\n def __init__(self):\n super().__init__()\n\n def __call__(self, hparams, mode, batched_input, **kwargs):\n BaseModel.__call__(s... | [
[
"tensorflow.contrib.rnn.LSTMCell",
"tensorflow.contrib.rnn.stack_bidirectional_dynamic_rnn",
"tensorflow.nn.ctc_loss",
"tensorflow.transpose",
"tensorflow.sparse_tensor_to_dense",
"tensorflow.variable_scope",
"tensorflow.nn.ctc_beam_search_decoder",
"tensorflow.nn.ctc_greedy_decode... |
L-Net-1992/DI-drive | [
"cc7f47bedbf60922acbcf3a5f77fc8e274df62cf"
] | [
"demo/cilrs/cilrs_eval.py"
] | [
"from easydict import EasyDict\nimport torch\nfrom functools import partial\n\nfrom core.envs import SimpleCarlaEnv\nfrom core.policy import CILRSPolicy\nfrom core.eval import CarlaBenchmarkEvaluator\nfrom core.utils.others.tcp_helper import parse_carla_tcp\nfrom ding.utils import set_pkg_seed, deep_merge_dicts\nfr... | [
[
"torch.load"
]
] |
PROMNY/pymc_pp | [
"b5b5a611a0b66cf4ae2732c31b1531e8ae132a0e"
] | [
"tests/lattice/test_graphene_lattice.py"
] | [
"import numpy as np\nimport sys\nimport os\n\nsys.path.insert(0, os.path.abspath(os.path.join(\n os.path.dirname(__file__), '../../pymc')))\nimport lattice\n\nclass TestGrapheneLattice():\n \"\"\"Basic test cases.\"\"\"\n\n def test_adj_matrix_graphene(self):\n a = lattice.GrapheneLattice(4)\n ... | [
[
"numpy.testing.assert_array_almost_equal",
"numpy.testing.assert_array_equal",
"numpy.asarray"
]
] |
asmcleod/NearFieldOptics | [
"f896474eaabbc655939263afa25e990bea8078ba"
] | [
"Materials/TransferMatrixMedia/Calculator.py"
] | [
"'''\nCreated on Apr 3, 2019\n\n@author: Leo Lo\n'''\n\nfrom NearFieldOptics.Materials.material_types import *\nfrom NearFieldOptics.Materials.TransferMatrixMedia import MatrixBuilder as mb\nimport sympy\nimport copy\nimport numpy as np\nfrom common.baseclasses import ArrayWithAxes as AWA\n\nclass Calculator():\n ... | [
[
"numpy.matrix",
"numpy.exp",
"numpy.linspace",
"numpy.append"
]
] |
StephanAkkerman/TensorTrade | [
"42e6c3d71ba1074ba1181f2315a2766a4e9d527f"
] | [
"Extra/Old Versions/TT_v2 (Impala)/BinanceData.py"
] | [
"import numpy as np\nimport pandas as pd\nimport math\nfrom datetime import datetime\nfrom binance.client import Client\n\nclient = Client()\n\ndef fetch4Hour(symbol, days):\n # https://python-binance.readthedocs.io/en/latest/binance.html#binance.client.Client.get_klines\n\n candleList = []\n #symbol = 'BA... | [
[
"pandas.to_datetime",
"pandas.DataFrame",
"pandas.to_numeric"
]
] |
rubiagatra/stock-ticker-id | [
"42213dd19b68f3541d501f3c7974029fa2e357fc"
] | [
"stock-prediction/stockpredict.py"
] | [
"import numpy as np\nimport pandas as pd\nimport pandas_datareader.data as web\nimport datetime\nfrom fbprophet import Prophet\n\n\nclass StockPredict:\n def __init__(self):\n self.close = None\n self.forecast = None\n self.prediction = None\n self.end = None\n self.pred_df = N... | [
[
"pandas.DataFrame",
"numpy.exp",
"numpy.log"
]
] |
uamericana/PINV18_846-Experiments | [
"57004a7b54df6d0bb23224e087754252cb430bc4"
] | [
"lib/data.py"
] | [
"import os\nimport pathlib\nimport re\nfrom typing import List, Type\n\nimport numpy as np\nimport pandas as pd\nimport tensorflow as tf\n\nfrom lib.datasets.info import DatasetInfo\n\n\ndef download_dataset(dataset_info: Type[DatasetInfo], dest_dir: str):\n \"\"\"\n Download dataset\n :param dataset_info:... | [
[
"tensorflow.image.resize",
"tensorflow.data.Dataset.from_tensor_slices",
"tensorflow.keras.utils.get_file",
"pandas.DataFrame",
"tensorflow.argmax",
"tensorflow.io.read_file",
"numpy.select",
"tensorflow.image.decode_jpeg"
]
] |
SortAnon/Fre-GAN-pytorch | [
"b2572e08acb98302bb963ed640a73cc79279dfcc"
] | [
"dwt.py"
] | [
"# Copyright (c) 2019, Adobe Inc. All rights reserved.\n#\n# This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike\n# 4.0 International Public License. To view a copy of this license, visit\n# https://creativecommons.org/licenses/by-nc-sa/4.0/legalcode.\n\n# DWT code borrow from http... | [
[
"torch.zeros",
"torch.nn.Parameter",
"torch.nn.functional.conv1d",
"torch.cuda.is_available",
"torch.tensor",
"torch.nn.functional.pad"
]
] |
williamcorsel/teNNo | [
"67c088f0303e6c53628e2c52c7fcecb9cfdcda62"
] | [
"internal/detectors/yolodark/darknet.py"
] | [
"#!python3\n\"\"\"\nPython 3 wrapper for identifying objects in images\n\nRequires DLL compilation\n\nBoth the GPU and no-GPU version should be compiled; the no-GPU version should be renamed \"yolo_cpp_dll_nogpu.dll\".\n\nOn a GPU system, you can force CPU evaluation by any of:\n\n- Set global variable DARKNET_FORC... | [
[
"numpy.concatenate",
"numpy.ascontiguousarray",
"numpy.rint"
]
] |
mive93/nasnet-tensorflow | [
"edb0c98424521253c3afe2436384d5dc9a9e6582"
] | [
"slim/data/tfexample_decoder.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.python.ops.image_ops.decode_jpeg",
"tensorflow.python.ops.image_ops.is_jpeg",
"tensorflow.python.ops.math_ops.equal",
"tensorflow.python.ops.parsing_ops.decode_raw",
"tensorflow.python.ops.parsing_ops.parse_single_example",
"tensorflow.python.ops.sparse_ops.sparse_reshape",
... |
akrajewska/fancyimpute | [
"36ee0a975f05258795fbe19e4fa05b206b43723d"
] | [
"fancyimpute/soft_impute.py"
] | [
"# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or agreed to in writing, software\n# distri... | [
[
"numpy.dot",
"numpy.log",
"numpy.sum",
"numpy.copy",
"numpy.finfo",
"numpy.linalg.svd",
"numpy.sqrt",
"sklearn.utils.extmath.randomized_svd",
"sklearn.utils.check_array",
"numpy.diag",
"numpy.maximum"
]
] |
xuyang7952/SparrowRecSys | [
"90d20f84aa6184963290ee87b4766a82b1c1280e"
] | [
"TFRecModel/src/com/sparrowrecsys/offline/tensorflow/DIN.py"
] | [
"import tensorflow as tf\n\n# Training samples path, change to your local path\ntraining_samples_file_path = tf.keras.utils.get_file(\"trainingSamples.csv\",\n \"file:///Users/zhewang/Workspace/SparrowRecSys/src/main\"\n ... | [
[
"tensorflow.keras.utils.get_file",
"tensorflow.keras.layers.RepeatVector",
"tensorflow.keras.layers.Dense",
"tensorflow.keras.Model",
"tensorflow.keras.layers.PReLU",
"tensorflow.keras.backend.sum",
"tensorflow.keras.layers.DenseFeatures",
"tensorflow.feature_column.numeric_column"... |
JackwithWilshere/FashionAI- | [
"9a7a30aa12035418c835cdb4e05641cdb7a456b3"
] | [
"test.py"
] | [
"import torch\r\nimport torch.nn as nn\r\nimport torch.optim as optim\r\nimport torchvision.transforms as transforms\r\nimport os\r\nfrom torch.autograd import Variable\r\nimport argparse\r\nimport numpy as np \r\nfrom torch.optim.lr_scheduler import *\r\nimport csv\r\n\r\nfrom model.resnet import resnet101\r\nfrom... | [
[
"torch.nn.Linear",
"torch.utils.data.DataLoader",
"torch.load"
]
] |
takanobu-watanabe/bert-japanese | [
"c4ccf65c01f515b6de9ddece7b04c8bd61a4a262"
] | [
"src/run_classifier.py"
] | [
"# coding=utf-8\n# This file is based on https://github.com/google-research/bert/blob/master/run_classifier.py.\n# It is changed to use SentencePiece tokenizer and https://www.rondhuit.com/download/ldcc-20140209.tar.gz.\n\"\"\"BERT finetuning runner.\"\"\"\n\nfrom __future__ import absolute_import\nfrom __future__ ... | [
[
"tensorflow.contrib.tpu.TPUEstimatorSpec",
"tensorflow.data.TFRecordDataset",
"tensorflow.train.Features",
"tensorflow.contrib.tpu.TPUEstimator",
"tensorflow.matmul",
"tensorflow.metrics.mean",
"tensorflow.nn.softmax",
"tensorflow.one_hot",
"tensorflow.parse_single_example",
... |
denix56/stylegan2-ada-pytorch | [
"9df6a704a5dd1db779966307422b70c293b393fc",
"9df6a704a5dd1db779966307422b70c293b393fc"
] | [
"training/stylegan_lightning.py",
"training/helpers.py"
] | [
"import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\nimport pytorch_lightning as pl\nimport dnnlib\nimport copy\nimport numpy as np\nfrom torch_utils.ops import conv2d_gradfix\nfrom functools import partial\nfrom torch_utils import misc\nfrom .metrics_lightning import StyleGANMetric\nfrom .dataloa... | [
[
"torch.zeros",
"torch.rand",
"torch.nn.functional.softplus",
"torch.nn.ModuleList",
"torch.cuda.max_memory_allocated",
"torch.full_like",
"torch.from_numpy",
"numpy.sign",
"torch.randn_like",
"torch.tensor",
"numpy.sqrt",
"torch.zeros_like",
"torch.empty",
"... |
aeroaks/PySyft | [
"88220c38faf3cd72ddc63c73f3c0533695df53c9"
] | [
"tests/syft/core/pointer/pointer_test.py"
] | [
"# third party\nimport pytest\nimport torch as th\n\n# syft absolute\nimport syft as sy\n\n\n@pytest.mark.parametrize(\"with_verify_key\", [True, False])\ndef test_make_searchable(with_verify_key: bool) -> None:\n bob = sy.VirtualMachine(name=\"Bob\")\n root_client = bob.get_root_client()\n client = bob.ge... | [
[
"torch.tensor"
]
] |
PrimaryKey/Scripts | [
"02fd0094876176e983486c55a1d6555fb0b13421"
] | [
"GeneticAlgorithm_v2.0/individual.py"
] | [
"# -*- coding: utf-8 -*-\nfrom math import sin,cos,tan,floor\nimport random\nfrom pandas import Series\nimport numpy as np\nfrom numpy import array\n\n\nclass Individual():\n def __init__(self,genetic):\n self.genetic=genetic\n self.count=100 #个体数\n self.iterNum=200 #染色体进化/迭代次数\n ... | [
[
"numpy.array",
"numpy.random.rand",
"pandas.Series"
]
] |
jp3477/curation | [
"41f98d57c8273d9963ad6d466a237c99b63c74be"
] | [
"data_steward/analytics/table_metrics/combined_deid_scripts/measurement_integration_success_rate.py"
] | [
"# ---\n# jupyter:\n# jupytext:\n# formats: ipynb,py:light\n# text_representation:\n# extension: .py\n# format_name: light\n# format_version: '1.5'\n# jupytext_version: 1.3.0\n# kernelspec:\n# display_name: Python 3\n# language: python\n# name: python3\n# ---\n\nfrom ... | [
[
"pandas.io.gbq.read_gbq",
"pandas.merge",
"matplotlib.pyplot.style.use"
]
] |
vanderGoes/great_expectations | [
"9790cd992a8a4de672c640e89ddd7278a0ca0889",
"9790cd992a8a4de672c640e89ddd7278a0ca0889"
] | [
"great_expectations/expectations/self_check_util.py",
"tests/execution_engine/test_execution_engine.py"
] | [
"# TODO: This util module contains methods required to execute expectations examples as tests.\n# The methods were pretty hastily copied from test_utils and conftest. It is very possible\n# that some are not even needed. A cleanup pass is required.\n\n\nimport copy\nimport locale\nimport os\nimport random\nimport s... | [
[
"pandas.to_datetime",
"numpy.isnan",
"pandas.DataFrame",
"pandas.__version__.split",
"numpy.allclose",
"pandas.to_numeric",
"numpy.dtype"
],
[
"pandas.DataFrame"
]
] |
jerlfan/PyMoDAQ | [
"d77636fbe686685a257b99c36281194da196851f",
"d77636fbe686685a257b99c36281194da196851f"
] | [
"src/pymodaq/daq_viewer/utility_classes.py",
"src/pymodaq/daq_utils/plotting/graph_items.py"
] | [
"import os\nfrom PyQt5 import QtWidgets\nfrom PyQt5.QtCore import QObject, pyqtSlot, pyqtSignal\n\nfrom pymodaq.daq_utils.parameter import ioxml\nfrom pymodaq.daq_utils.parameter.utils import get_param_path, get_param_from_name, iter_children\nfrom pyqtgraph.parametertree import Parameter\nfrom easydict import Easy... | [
[
"numpy.array",
"numpy.linspace",
"numpy.roll",
"numpy.random.rand"
],
[
"numpy.histogram",
"numpy.ceil",
"numpy.mean",
"numpy.isscalar",
"numpy.arange",
"numpy.isfinite"
]
] |
compgeolab/eql-gradient-boosted | [
"759a0c6f34e92d83551b14c8dfaeae2a8be1e949"
] | [
"notebooks/boost_and_layouts/test_layouts.py"
] | [
"\"\"\"\nTest functions for layouts constructors\n\"\"\"\nimport pytest\nimport numpy as np\nimport numpy.testing as npt\nimport verde as vd\n\nfrom .layouts import (\n constant_depth,\n relative_depth,\n variable_depth,\n source_below_data,\n block_averaged_sources,\n grid_sources,\n)\n\n\n@pytes... | [
[
"numpy.testing.assert_allclose",
"numpy.array",
"numpy.random.seed",
"numpy.allclose",
"numpy.random.uniform",
"numpy.all"
]
] |
ID56/Multimodal-Fusion-CRNN | [
"1775ec0cb9d0878c2635860c291b343130296797"
] | [
"train_shrec.py"
] | [
"from argparse import ArgumentParser\nfrom config_parser import get_config\n\nfrom utils.loss import LabelSmoothingLoss\nfrom utils.opt import get_optimizer\nfrom utils.scheduler import WarmUpLR, get_scheduler\nfrom utils.trainer import train\nfrom utils.load_SHREC import get_loaders\nfrom utils.misc import seed_ev... | [
[
"torch.nn.CrossEntropyLoss"
]
] |
richpsharp/pygeoprocessing | [
"51afe79ae402c1dec3beb3805ce6d6be2e4fc0d5"
] | [
"src/pygeoprocessing/symbolic.py"
] | [
"# coding=UTF-8\r\n\"\"\"Module to hold symbolic PyGeoprocessing utilities.\"\"\"\r\nimport ast\r\nimport logging\r\n\r\nfrom . import geoprocessing\r\nfrom .geoprocessing import DEFAULT_GTIFF_CREATION_TUPLE_OPTIONS\r\nfrom osgeo import gdal\r\nimport numpy\r\n\r\nLOGGER = logging.getLogger(__name__)\r\n\r\n\r\ndef... | [
[
"numpy.isinf",
"numpy.result_type",
"numpy.isnan",
"numpy.empty",
"numpy.isclose",
"numpy.dtype"
]
] |
salamenthe/STA-Robot-autonome | [
"fb55cb0de0a23c05d049ae7d3859f2b6cdbb9b54"
] | [
"Exploration Strategy/distancemin.py"
] | [
"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Mon Nov 8 14:48:20 2021\n\n@author: utilisateur\n\"\"\"\n\nimport numpy as np\nimport heapq \nimport matplotlib.pyplot as plt\nfrom PIL import Image \n\n\n\n# Trouver la zone inexplorée la plus proche du robot\nM = np.array([[0,0,1,1],\n [0,1,0.5,1],\n ... | [
[
"numpy.array",
"numpy.shape",
"numpy.arctan",
"numpy.sqrt",
"matplotlib.pyplot.show",
"matplotlib.pyplot.imshow"
]
] |
MaxCodeXTC/InnerEye-DeepLearning | [
"12b496093097ef48d5ac8880985c04918d7f76fe"
] | [
"Tests/ML/utils/test_io_util.py"
] | [
"# ------------------------------------------------------------------------------------------\n# Copyright (c) Microsoft Corporation. All rights reserved.\n# Licensed under the MIT License (MIT). See LICENSE in the repo root for license information.\n# -----------------------------------------------------------... | [
[
"numpy.array",
"numpy.array_equal",
"numpy.random.rand",
"numpy.zeros",
"numpy.random.seed",
"torch.is_tensor",
"numpy.ones",
"numpy.save",
"torch.all",
"numpy.stack",
"numpy.random.randint",
"numpy.argmax",
"numpy.all",
"torch.allclose"
]
] |
rmill040/pypso | [
"69acad4b71addaea679677da4695b5db30b1c76a"
] | [
"pypso/tests/optimizers/test_bpso.py"
] | [
"import numpy as np\n\nfrom pypso.optimizers import BPSO\n\n# Simple objective and constraint function\ndef sphere(x): return np.sum(x*x)\ndef cons(x) : return sum(x) > 1\n\n# Define global class\npso = BPSO(n_particles=5, n_dimensions=2, random_state=1718)\nlb = [0]*2\nub = [1]*2\n\ndef test_str():\n \"\"\"T... | [
[
"numpy.sum",
"numpy.array",
"numpy.ones"
]
] |
Derek-tjhwang/CATS-LAB | [
"1068c33fdbd55bc7e8e0968fcee62ef0786ff323"
] | [
"coza/api/public.py"
] | [
"import time\nimport requests\nimport datetime\nimport pandas as pd\n\nfrom coza.config import COZA_HOST\nfrom coza.utils import now\nfrom coza.errors import (CozaRequestException, CozaCurrencyException, CozaExchangeException)\n\n\ndef _request(url, method, **kwargs):\n params = kwargs.get('params', {})\n dat... | [
[
"pandas.DataFrame"
]
] |
Ely-S/EfficientDet | [
"da1d0f25c38d5498edf93f23b0f85661ee6e589d"
] | [
"make_tpu_dataset.py"
] | [
"import os\nimport math\nimport tensorflow as tf\nimport tensorflow_datasets as tfds\nimport argparse\n\nimport utils\nimport utils.anchors\nimport utils.anchors_tpu\nimport utils.compute_overlap\nfrom model import image_sizes\n\n\nparser = argparse.ArgumentParser(\n description='Generate a preprocessed dataset ... | [
[
"tensorflow.train.BytesList",
"tensorflow.train.Features",
"tensorflow.io.serialize_tensor",
"tensorflow.TensorShape",
"tensorflow.compat.v1.assert_greater_equal",
"tensorflow.constant",
"tensorflow.numpy_function",
"tensorflow.io.TFRecordWriter",
"tensorflow.compat.v1.enable_e... |
vene/marseille | [
"c86faf3d97fd9063a6fe0ee74b302f09250e36c5"
] | [
"experiments/results_pystruct_cv.py"
] | [
"import numpy as np\nimport sys\n\nfrom marseille.io import load_results\nfrom marseille.custom_logging import logging\n\nif __name__ == '__main__':\n dataset = sys.argv[1]\n\n\n pystruct_df = []\n class_weight = 'balanced'\n\n Cs = (0.001, 0.003, 0.01, 0.03, 0.1, 0.3, 1, 3, 10)\n constraint_vals = (... | [
[
"numpy.mean"
]
] |
nd1/odds-and-ends | [
"8be5c6dfab733038bb3b7a35eaa6ae4f630d2ace"
] | [
"avaya/loadIQ.py"
] | [
"'''\nLoad Avaya IQ report data to a MS SQL db.\n\nNicole Donnelly 20170530\n'''\n\nimport os\nimport sys\nimport pandas as pd\n\nfrom sqlalchemy import create_engine, text, types\n\n\ndef convert_time(x):\n\n # change a hh:mm:ss string to number of seconds\n times = x.split(':')\n return (360*int(times[0]... | [
[
"pandas.read_excel",
"pandas.Series"
]
] |
elainehoml/Savu | [
"e4772704606f71d6803d832084e10faa585e7358",
"e4772704606f71d6803d832084e10faa585e7358",
"e4772704606f71d6803d832084e10faa585e7358"
] | [
"examples/plugin_examples/plugin_templates/general/plugin_template5.py",
"savu/plugins/filters/paganin_filter.py",
"savu/plugins/filters/hilbert_filter.py"
] | [
"# Copyright 2014 Diamond Light Source 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/licenses/LICENSE-2.0\n#\n# Unless required by applicable ... | [
[
"numpy.array"
],
[
"numpy.ceil",
"numpy.nan_to_num",
"numpy.reshape",
"numpy.zeros",
"numpy.log",
"numpy.float32",
"numpy.arange"
],
[
"numpy.ceil",
"numpy.nan_to_num",
"numpy.ones",
"numpy.float32",
"numpy.imag"
]
] |
ericlee0920/Cluster-Viz | [
"2958de21dc948931611cd1eaef5a0527ca55208d"
] | [
"extraction.py"
] | [
"import itertools\r\nimport numpy as np\r\nimport pandas as pd\r\nimport networkx as nx\r\nfrom scipy.stats import zscore\r\nfrom scipy.spatial.distance import squareform, pdist\r\nimport matplotlib.pyplot as plt\r\n\r\n\"\"\"\r\nHow to use:\r\nexpression_matrix, location_matrix, axis_matrix, size = read_data(pd.re... | [
[
"scipy.stats.zscore",
"pandas.DataFrame.from_dict",
"numpy.save",
"numpy.arange",
"pandas.read_csv"
]
] |
Sun1992/T-Pose-model-for-SLR | [
"301087fd14f1c36c6b922c075269aa398120defa"
] | [
"SSTCN-for-SLR/train_parallel.py"
] | [
"import torch\nimport sys\nimport numpy as np\nimport itertools\nfrom SSTCN_Pose_model import *\nfrom load_newfeature import *\nfrom torch.utils.data import DataLoader\nfrom torch.autograd import Variable\nimport torch.nn.parallel\nimport argparse\nimport time\nimport datetime\n\nif __name__ == \"__main__\":\n p... | [
[
"torch.autograd.Variable",
"torch.no_grad",
"numpy.mean",
"torch.cuda.device_count",
"torch.cuda.empty_cache",
"torch.cuda.is_available",
"torch.utils.data.DataLoader",
"torch.load",
"torch.nn.DataParallel"
]
] |
raulorteg/cellular-automata101 | [
"de7731c10cd8adc9a42d0049922016747886d63f"
] | [
"generations.py"
] | [
"\"\"\"\r\nCreated on Fri April 9 2021\r\n@author: Raul Ortega\r\n\"\"\"\r\nimport pygame\r\nimport numpy as np\r\nimport random\r\nimport argparse\r\nimport copy\r\nfrom time import sleep\r\nimport matplotlib.pyplot as plt\r\nfrom numba import jit\r\n\r\n# RGB colors of cells\r\nBLACK = (0, 0, 0)\r\nWHITE = (255, ... | [
[
"numpy.zeros",
"matplotlib.pyplot.xlabel",
"matplotlib.pyplot.savefig",
"matplotlib.pyplot.title",
"matplotlib.pyplot.plot",
"numpy.sum",
"matplotlib.pyplot.ylabel",
"matplotlib.pyplot.show"
]
] |
Rukaume/LRCN | [
"0d1928cc72544f59a4335fea7febc561d3dfc118"
] | [
"Data_preparation/images_to_numpy.py"
] | [
"# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Thu Sep 3 09:30:18 2020\n\n@author: miyas\nThis script is for converting Images to Numpy binary file.\n\"\"\"\nimport pandas as pd\nfrom tkinter import messagebox\nfrom tkinter import filedialog\nimport tkinter \nimport numpy as np\nfrom scipy import stats\nimport matpl... | [
[
"numpy.asarray"
]
] |
liuvictoria/sleepingbeauty | [
"e165bea614d58ddd2c5c2a860df622241065cf47"
] | [
"sandbox_code/viz_explore_two_arrival_story.py"
] | [
"# -*- coding: utf-8 -*-\n# ---\n# jupyter:\n# jupytext:\n# text_representation:\n# extension: .py\n# format_name: light\n# format_version: '1.3'\n# jupytext_version: 0.8.6\n# kernelspec:\n# display_name: Python 3\n# language: python\n# name: python3\n# ---\n\n\"\"\"\ncod... | [
[
"numpy.concatenate",
"numpy.array",
"numpy.isclose",
"pandas.DataFrame",
"numpy.random.default_rng",
"numpy.exp",
"numpy.ndarray",
"numpy.linspace"
]
] |
mscschliemann/customer_simulation | [
"95df976db1a41e3ba6933ef1ca420ceafa10a138"
] | [
"simulation.py"
] | [
"import os\r\nimport random\r\nimport pandas as pd\r\nimport numpy as np\r\nfrom PIL import Image\r\nfrom PIL import GifImagePlugin\r\nfrom PIL import ImageFont\r\nfrom PIL import ImageDraw \r\n\r\ncwd = os.getcwd()\r\n\r\nclass Goods():\r\n\r\n def __init__(self):\r\n self.goods = {'drinks': [(9,4), (9,5... | [
[
"pandas.to_datetime",
"numpy.array",
"pandas.Timedelta",
"numpy.round",
"pandas.date_range",
"numpy.abs"
]
] |
gbull25/ouster_example | [
"09950a863c94a87eb9d31f7073df84e66a7add13"
] | [
"python/src/ouster/sdk/examples/open3d.py"
] | [
"\"\"\"Ouster Open3D visualizations examples.\"\"\"\nimport time\n\nfrom more_itertools import consume, nth\nimport numpy as np\nimport open3d as o3d # type: ignore\n\nfrom ouster import client\nfrom .colormaps import normalize, colorize\n\nZ_NEAR = 1.0\n\n\ndef view_from(vis: o3d.visualization.Visualizer,\n ... | [
[
"numpy.array",
"numpy.copyto",
"numpy.asarray",
"numpy.zeros",
"numpy.ones",
"numpy.eye",
"numpy.transpose",
"numpy.dstack",
"numpy.cross"
]
] |
svakulenk0/MP_EL | [
"605cdfd70bd5b5ad2148b548b2d2d30e2ecaef90"
] | [
"utils/data_processing.py"
] | [
"import pandas as pd\n\nfrom tqdm.auto import tqdm\n\nimport sys\nimport csv\n\ncsv.field_size_limit(sys.maxsize)\n\ndef add_beginnings(df, target_column='NE-COARSE-LIT'):\n '''\n Turns starting I-labels into B-labels and returns a modified df\n '''\n all_labels = df[target_column].tolist()\n res = d... | [
[
"pandas.DataFrame",
"pandas.read_table",
"pandas.Series",
"pandas.concat"
]
] |
cclauss/pythran | [
"6f9fc994d34fc0ed328a199ee6fec8499049a7f8",
"6f9fc994d34fc0ed328a199ee6fec8499049a7f8"
] | [
"pythran/dist.py",
"pythran/tests/test_advanced.py"
] | [
"'''\nThis modules contains a distutils extension mechanism for Pythran\n * PythranExtension: is used as distutils's Extension\n'''\n\nimport pythran.config as cfg\nimport pythran.toolchain as tc\n\nfrom numpy.distutils.extension import Extension\n\nimport os.path\nimport os\n\n\nclass PythranExtension(Extension... | [
[
"numpy.distutils.extension.Extension.__init__"
],
[
"numpy.array"
]
] |
aligholami/imgviz | [
"3dc84b260e5bced65ebc2c45c40c8fa65f9b5aa9"
] | [
"imgviz/draw.py"
] | [
"import collections\nimport os.path as osp\n\nimport numpy as np\nimport PIL.Image\nimport PIL.ImageDraw\nimport PIL.ImageFont\n\nfrom . import color as color_module\n\n\ndef triangle(src, center, size, fill=None, outline=None):\n \"\"\"Draw triangle on numpy array with Pillow.\n\n Parameters\n ----------\... | [
[
"numpy.pad",
"numpy.array",
"numpy.sin",
"numpy.tan",
"numpy.stack",
"numpy.arange",
"numpy.cos"
]
] |
saxenam06/neural_clbf | [
"1f2a43b579330172a03f284a5673b00f0899c755"
] | [
"neural_clbf/training/train_inverted_pendulum.py"
] | [
"from argparse import ArgumentParser\n\nimport torch\nimport torch.multiprocessing\nimport pytorch_lightning as pl\nfrom pytorch_lightning import loggers as pl_loggers\nimport numpy as np\n\nfrom neural_clbf.controllers import NeuralCLBFController\nfrom neural_clbf.datamodules.episodic_datamodule import (\n Epis... | [
[
"torch.autograd.set_detect_anomaly",
"torch.tensor",
"torch.multiprocessing.set_sharing_strategy"
]
] |
mwtoews/scipy | [
"3edebe0cb4831ffd52cbd4a5b5550fa16789e441"
] | [
"scipy/optimize/tests/test_minpack.py"
] | [
"\"\"\"\nUnit tests for optimization routines from minpack.py.\n\"\"\"\nfrom __future__ import division, print_function, absolute_import\n\nimport warnings\n\nfrom numpy.testing import (assert_, assert_almost_equal, assert_array_equal,\n assert_array_almost_equal, assert_allclose)\nfrom py... | [
[
"numpy.testing.assert_allclose",
"scipy.optimize.minpack.curve_fit",
"numpy.ones_like",
"numpy.exp",
"scipy.optimize.root",
"numpy.sin",
"scipy.special.lambertw",
"numpy.empty",
"numpy.zeros_like",
"numpy.log",
"numpy.seterr",
"numpy.testing.assert_array_almost_equa... |
RomanKosobrodov/serial-numbers-production-years | [
"69be5eb53dc6e0713ae7c7e948a2121c0afc80d4"
] | [
"photography/plot_serial_numbers.py"
] | [
"from photography.serial_numbers import SERIAL_NUMBERS\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport argparse\n\nif __name__ == \"__main__\":\n parser = argparse.ArgumentParser(description=\"Plot serial numbers vs. production years\")\n parser.add_argument(\"manufacturer\", help=\"Manufacturer\... | [
[
"numpy.array",
"matplotlib.pyplot.FormatStrFormatter",
"matplotlib.pyplot.xlabel",
"matplotlib.pyplot.plot",
"matplotlib.pyplot.figure",
"matplotlib.pyplot.ylabel",
"matplotlib.pyplot.show",
"matplotlib.pyplot.gca"
]
] |
jasonfyw/ocr-copy | [
"cb79553f0b323759dd411d1fa5e0379c8ae31ff5"
] | [
"ocrcopy/ocrcopy.py"
] | [
"from pynput import mouse\nimport pyscreenshot\nimport pytesseract\nimport pyperclip\nimport numpy as np\nfrom PIL import ImageOps, ImageEnhance\n\n\"\"\"\nHandles the backend stuff\n\"\"\"\nclass OCRCopy():\n def __init__(self, langs):\n self.langs = langs\n\n # start a mouse listener \n se... | [
[
"numpy.mean"
]
] |
tvanderbruggen/SciCpp | [
"09408506c8d0b49ca5dadb8cd1f3cb4db41c8c46"
] | [
"examples/example1.py"
] | [
"# SPDX-License-Identifier: MIT\n# Copyright (c) 2019-2021 Thomas Vanderbruggen <th.vanderbruggen@gmail.com>\n\nimport numpy as np\n\nif __name__ == \"__main__\":\n a = np.linspace(0.0, 10.0, 100)\n print(a)\n print(\"Mean {}\".format(np.mean(a)))\n print(\"Var {}\\n\".format(np.var(a)))\n \n v = ... | [
[
"numpy.var",
"numpy.linspace",
"numpy.mean"
]
] |
qianyuqian-DeepLearning/YoloV3-prune-layer | [
"5b4a4d6346d980b36235eae5335003f2c43a28cf"
] | [
"utils/prune_utils.py"
] | [
"import torch\r\nfrom terminaltables import AsciiTable\r\nfrom copy import deepcopy\r\nimport numpy as np\r\nimport torch.nn.functional as F\r\n\r\n\r\ndef get_sr_flag(epoch, sr):\r\n # return epoch >= 5 and sr\r\n return sr\r\n\r\n\r\ndef parse_module_defs(module_defs):\r\n\r\n CBL_idx = []\r\n Conv_id... | [
[
"numpy.concatenate",
"torch.cat",
"torch.nn.functional.softplus",
"numpy.ones",
"torch.sign",
"torch.from_numpy",
"torch.sum",
"torch.tensor",
"numpy.argwhere",
"torch.sort",
"torch.nn.functional.leaky_relu"
]
] |
twguest/VPIEPY | [
"5c4aa2e4ca036c04f57abb92c7be610602159afb"
] | [
"vpiepy/optics_utils.py"
] | [
"import numpy as np\nimport scipy as sp\n\n\ndef randomise_amplitude(pix, minval, maxval):\n absrange = maxval - minval\n return np.random.rand(pix, pix) * absrange + minval\n\n\ndef randomise_phase(pix, minval, maxval):\n phaserange = maxval - minval\n return np.random.rand(pix, pix) * phaserange + min... | [
[
"numpy.fft.ifft2",
"numpy.random.rand",
"numpy.zeros",
"numpy.log",
"numpy.sum",
"numpy.exp",
"numpy.abs",
"numpy.fft.fftshift",
"scipy.hypot"
]
] |
mzabrams/fars-cleaner | [
"789a8c735654fc8a88fb4b5e20d1292eb1ead204"
] | [
"tests/test_processor.py"
] | [
"from fars_cleaner import FARSProcessor\nimport fars_cleaner.extra_info as ei\nimport pandas as pd\n\nfrom hypothesis import given\nfrom hypothesis import strategies as st\nfrom hypothesis.extra.pandas import column, data_frames\n\n@given(\n data_frames(\n columns=[\n column(\n name='HOUR',\... | [
[
"pandas.isna"
]
] |
glotzerlab/freud-test | [
"acbccc38bbcc984d84758048f1fdefc4252ce3d3"
] | [
"tests/test_box_Box.py"
] | [
"import warnings\nfrom collections import namedtuple\n\nimport matplotlib\nimport numpy as np\nimport numpy.testing as npt\nimport pytest\n\nimport freud\n\nmatplotlib.use(\"agg\")\n\n\nclass TestBox:\n def test_construct(self):\n \"\"\"Test correct behavior for various constructor signatures\"\"\"\n ... | [
[
"matplotlib.use",
"numpy.testing.assert_allclose",
"numpy.array",
"numpy.isclose",
"numpy.asarray",
"numpy.zeros",
"numpy.testing.assert_equal",
"numpy.sum",
"numpy.testing.assert_array_equal",
"numpy.ones",
"numpy.random.uniform",
"numpy.random.randint",
"numpy... |
aarkwright/arkml | [
"a2f3d9bea5298233187d9c82457ed9e83cd37ceb"
] | [
"transfer_learn.py"
] | [
"import glob\nimport matplotlib.pyplot as plt\n\nfrom tensorflow.keras.applications.inception_v3 import InceptionV3, preprocess_input\nfrom tensorflow.keras.preprocessing.image import ImageDataGenerator\nfrom keras.optimizers import SGD\nfrom tensorflow.keras.models import Model\nfrom tensorflow.keras.layers import... | [
[
"tensorflow.keras.preprocessing.image.ImageDataGenerator",
"tensorflow.keras.applications.inception_v3.InceptionV3",
"tensorflow.keras.models.Model",
"tensorflow.keras.layers.Dense",
"tensorflow.keras.layers.GlobalAveragePooling2D"
]
] |
basaashokkumar/5G-cellsites-Distribution | [
"2a9d6846432a86703c15acb143d607fcedabac37"
] | [
"datagen.py"
] | [
"import csv\nimport itertools\nimport numpy as np\nimport matplotlib.pyplot as plt\n\ndef read_hotspots(hotspots_filepath):\n with open(hotspots_filepath) as hotspots_datafile:\n datapoint_reader = csv.reader(hotspots_datafile)\n hotspots = [list(map(float, datapoint)) for datapoint in datapoint_re... | [
[
"matplotlib.pyplot.scatter",
"numpy.array",
"numpy.random.randint",
"matplotlib.pyplot.show"
]
] |
node21challenge/rank3_node21_detection | [
"bac22d4aef5e83481c3ff1db3f8f0891ce05f8d6"
] | [
"detectron2/data/build.py"
] | [
"# Copyright (c) Facebook, Inc. and its affiliates.\nimport itertools\nimport logging\nimport numpy as np\nimport operator\nimport pickle\nfrom typing import Any, Callable, Dict, List, Optional, Union\nimport torch\nimport torch.utils.data as torchdata\nfrom tabulate import tabulate\nfrom termcolor import colored\n... | [
[
"torch.utils.data.ConcatDataset",
"numpy.histogram",
"numpy.array",
"numpy.zeros",
"torch.initial_seed",
"numpy.arange",
"torch.utils.data.DataLoader"
]
] |
zhouyao4321/apollo | [
"3ceaec8843ffe0fb8e821089b2e4708eaf1fa455"
] | [
"modules/tools/record_play/rtk_player.py"
] | [
"#!/usr/bin/env python3\n\n###############################################################################\n# Copyright 2017 The Apollo 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... | [
[
"scipy.signal.filtfilt",
"numpy.genfromtxt",
"scipy.signal.butter"
]
] |
deerluffy/tensorflow | [
"73e9dc4e1eae1589c8ea4a7cf1e8398c1eff3ab1"
] | [
"tensorflow/python/util/nest.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.python._pywrap_utils.RegisterType",
"tensorflow.python._pywrap_utils.Flatten",
"tensorflow.python._pywrap_utils.AssertSameStructure",
"tensorflow.python._pywrap_utils.IsNamedtuple",
"tensorflow.python.util.tf_export.tf_export"
]
] |
marcin-sielski/CarND-Capstone | [
"9d305fef9a908604809d5b0056a19ce8ff2e1edd"
] | [
"ros/src/waypoint_updater/waypoint_updater.py"
] | [
"#!/usr/bin/env python\n\nimport rospy\nfrom geometry_msgs.msg import PoseStamped\nfrom styx_msgs.msg import Lane, Waypoint\nfrom std_msgs.msg import Int32\nfrom scipy.spatial import KDTree\nimport numpy as np\n\nimport math\n\n'''\nThis node will publish waypoints from the car's current position to some `x` distan... | [
[
"scipy.spatial.KDTree",
"numpy.array",
"numpy.dot"
]
] |
bwilder0/covid_abm_release | [
"fdaa0f8667733a729c76785123c3e2ebda7d5d5f"
] | [
"analyze_bayesian_comparative.py"
] | [
"import numpy as np \nimport pandas as pd\nimport datetime\nimport json\nimport matplotlib.pyplot as plt\nfrom numba import jit\n\nfiles = ['inputs/lombardy_bayesian.json', 'inputs/hubei_bayesian.json', 'inputs/nyc_bayesian.json']\n\nall_ifr = {}\nall_r0 = {}\nall_dmult = {}\nall_doc = {}\nall_susceptible = {}\n\ni... | [
[
"matplotlib.pyplot.xlim",
"numpy.median",
"numpy.copy",
"numpy.where",
"numpy.cumsum",
"pandas.read_csv",
"numpy.log",
"matplotlib.pyplot.tick_params",
"numpy.argmax",
"matplotlib.pyplot.tight_layout",
"numpy.array",
"numpy.zeros",
"matplotlib.pyplot.figure",
... |
joe-cipolla/nyiso_sql | [
"f2f8473c9bb1791d1a02994143677e4ed225ef2a"
] | [
"nyiso_sql/sql_utils.py"
] | [
"\"\"\"sql worker functions and queries\"\"\"\n\nimport psycopg2\nimport pandas as pd\nimport nyiso_sql.global_vars as gvars\n\nconn_closed_msg = \"PostgreSQL connection is close.\"\n\n\ndef insert_row(table_name, record, conn=None, pkey_id=None, cur=None):\n \"\"\" inserts single row into table\n :param tabl... | [
[
"pandas.to_datetime",
"pandas.read_sql",
"pandas.date_range"
]
] |
tuanho27/FCOS | [
"56208b318f81acd51e7e3d079ce3c416133a11ed"
] | [
"setup.py"
] | [
"# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\n#!/usr/bin/env python\n\nimport glob\nimport os\n\nimport torch\nfrom setuptools import find_packages\nfrom setuptools import setup\nfrom torch.utils.cpp_extension import CUDA_HOME\nfrom torch.utils.cpp_extension import CppExtension\nfrom tor... | [
[
"torch.cuda.is_available"
]
] |
felixbrf/tensornet | [
"f45a04f5afe990154a15c24d387386370332821e"
] | [
"tensornet/model/Model.py"
] | [
"# Copyright (c) 2020, Qihoo, Inc. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required... | [
[
"tensorflow.python.eager.backprop.GradientTape",
"tensorflow.python.keras.engine.data_adapter.unpack_x_y_sample_weight",
"tensorflow.io.read_file",
"tensorflow.io.gfile.exists",
"tensorflow.python.keras.engine.data_adapter.expand_1d",
"tensorflow.python.framework.ops.control_dependencies",... |
antoinehabis/Histopathology | [
"87fe328522f1a61415c7e643c61230df4571565c"
] | [
"splinedist/splinedist/utils.py"
] | [
"from __future__ import print_function, unicode_literals, absolute_import, division\n\nimport numpy as np\nimport warnings\nimport os\nimport datetime\nfrom tqdm import tqdm\nfrom zipfile import ZipFile, ZIP_DEFLATED\nfrom scipy.ndimage.morphology import distance_transform_edt, binary_fill_holes\nfrom scipy.ndimage... | [
[
"scipy.optimize.minimize_scalar",
"numpy.mean",
"scipy.ndimage.morphology.distance_transform_edt",
"numpy.max",
"numpy.zeros_like",
"numpy.nonzero",
"numpy.logical_and",
"numpy.transpose",
"numpy.argmax",
"numpy.append",
"numpy.expand_dims",
"numpy.logical_or",
... |
soichih/kwyk_neuronet | [
"850b77a2af1ea7438737636b5eda8bd52d1cc323"
] | [
"nobrainer/metrics_test.py"
] | [
"# -*- coding: utf-8 -*-\n\"\"\"Tests for `nobrainer.metrics`.\"\"\"\n\nimport numpy as np\nimport scipy as sp\nimport tensorflow as tf\n\nfrom nobrainer.metrics import dice\nfrom nobrainer.metrics import hamming\n\n\ndef test_dice():\n shape = (2, 10)\n\n foo = np.zeros(shape, dtype=np.float64)\n foo[:, 4... | [
[
"numpy.testing.assert_almost_equal",
"tensorflow.Session",
"tensorflow.placeholder",
"numpy.zeros"
]
] |
tadejs/crab | [
"ba3899f965061770b86fa27f3ffa5906e0afdf25"
] | [
"scikits/crab/recommenders/knn/classes.py"
] | [
"\"\"\"\nGeneralized Recommender models.\n\nThis module contains basic memory recommender interfaces used throughout\nthe whole scikit-crab package.\n\nThe interfaces are realized as abstract base classes (ie., some optional\nfunctionality is provided in the interface itself, so that the interfaces\ncan be subclass... | [
[
"numpy.array",
"numpy.isnan",
"numpy.vectorize",
"numpy.setdiff1d",
"numpy.lexsort",
"numpy.sum"
]
] |
sgherbst/cs229-project | [
"ed4a3131f8f5dc3d3ab097b692d0ff10ebb20015",
"ed4a3131f8f5dc3d3ab097b692d0ff10ebb20015"
] | [
"cs229/annotation.py",
"cs229/util.py"
] | [
"import json\nimport numpy as np\nimport os\nimport os.path\nfrom glob import glob\nfrom itertools import chain\n\nfrom cs229.files import get_dir\n\ndef project(a, b, c):\n \"\"\"\n Project (c-a) onto (b-a) and return the projection coefficient. If this coefficient is between 0 and 1, then\n c can be int... | [
[
"numpy.array",
"numpy.linalg.norm"
],
[
"numpy.max",
"matplotlib.pyplot.grid",
"matplotlib.pyplot.savefig",
"numpy.sum",
"matplotlib.pyplot.xlabel",
"matplotlib.pyplot.hist",
"matplotlib.pyplot.ylabel"
]
] |
Be-Secure/pykale | [
"f8d479e9861639773de603ffaa20127a0ce66e58"
] | [
"tests/pipeline/test_mpca_trainer.py"
] | [
"import matplotlib.figure\nimport numpy as np\nimport pytest\nfrom numpy import testing\nfrom sklearn.metrics import accuracy_score, roc_auc_score\n\nfrom kale.interpret import model_weights\nfrom kale.pipeline.mpca_trainer import MPCATrainer\n\nCLASSIFIERS = [\"svc\", \"linear_svc\", \"lr\"]\nPARAMS = [\n {\"cl... | [
[
"numpy.max",
"numpy.zeros",
"numpy.min",
"sklearn.metrics.accuracy_score",
"numpy.where",
"sklearn.metrics.roc_auc_score",
"numpy.unique"
]
] |
anhvth/openpifpaf | [
"a88edd744b50f76dfdae9dbb180d4a403cbfd060"
] | [
"openpifpaf/encoder/annrescaler.py"
] | [
"import logging\n\nimport numpy as np\n\nLOG = logging.getLogger(__name__)\n\n\nclass AnnRescaler():\n suppress_selfhidden = True\n\n def __init__(self, stride, pose=None):\n self.stride = stride\n self.pose = pose\n\n self.pose_total_area = None\n self.pose_45 = None\n self... | [
[
"numpy.isinf",
"numpy.max",
"numpy.array",
"numpy.ceil",
"numpy.sum",
"numpy.copy",
"numpy.ones",
"numpy.min",
"numpy.any",
"numpy.einsum",
"numpy.sqrt",
"numpy.abs",
"numpy.deg2rad"
]
] |
XinYao1994/FluentPS-paper | [
"a83570c6c96cabd4f1dd5f47ce1bb06532a78e16"
] | [
"worker/lars_caffe/examples/cifar100/scripts/convert_cifar100_lmdb.py"
] | [
"import os\nfrom os.path import dirname, join\nimport cPickle\n\nimport numpy as np\nimport sklearn\nimport sklearn.linear_model\nfrom sklearn.model_selection import train_test_split\n\nimport lmdb\nimport sys\nprint(dirname(os.path.realpath(__file__))+\"/../../../python/\")\nsys.path.append(dirname(os.path.realpat... | [
[
"sklearn.model_selection.train_test_split",
"numpy.array"
]
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.