repo_name
stringlengths
6
130
hexsha
list
file_path
list
code
list
apis
list
ZJUGuoShuai/vision
[ "a9940fe4b2b63bd82a2f853616e00fd0bd112f9a", "a9940fe4b2b63bd82a2f853616e00fd0bd112f9a", "a9940fe4b2b63bd82a2f853616e00fd0bd112f9a" ]
[ "torchvision/models/quantization/resnet.py", "test/common_utils.py", "torchvision/__init__.py" ]
[ "from typing import Any, Type, Union, List\n\nimport torch\nimport torch.nn as nn\nfrom torch import Tensor\nfrom torch.quantization import fuse_modules\nfrom torchvision.models.resnet import Bottleneck, BasicBlock, ResNet, model_urls\n\nfrom ..._internally_replaced_utils import load_state_dict_from_url\nfrom .util...
[ [ "torch.quantization.fuse_modules", "torch.quantization.DeQuantStub", "torch.nn.ReLU", "torch.nn.quantized.FloatFunctional", "torch.quantization.QuantStub" ], [ "torch.set_rng_state", "torch.jit.script", "torch.abs", "torch.randint", "torch.manual_seed", "torch.get_r...
jonathanyepez/Master-C3
[ "37a3a13ef2bc8f51d3da3ca1b3704569ef83ef3d" ]
[ "CasoPractico01.py" ]
[ "# -*- coding: utf-8 -*-\r\n\"\"\"\r\nCreated on Mon Jul 6 18:03:09 2020\r\n\r\n@author: Jonathan A. Yepez M.\r\n\"\"\"\r\n\r\n#Task Description\r\n\"\"\"\r\nEn el archivo auto.csv se encuentran los siguientes datos de diferentes automoviles:\r\n * Cilindros\r\n * Cilindrada\r\n * Potencia\r\n * Peso\r...
[ [ "pandas.read_csv", "sklearn.model_selection.train_test_split", "sklearn.metrics.mean_squared_error", "matplotlib.pyplot.setp", "sklearn.linear_model.LinearRegression", "pandas.plotting.scatter_matrix", "matplotlib.pyplot.figure" ] ]
meltmedia/the-ark
[ "d559897494e02a2e2048fdc44014f17af89691bb" ]
[ "the_ark/screen_capture.py" ]
[ "import math\nimport numpy\nfrom PIL import Image\nfrom the_ark.selenium_helpers import SeleniumHelperExceptions, ElementNotVisibleError, ElementError\nfrom StringIO import StringIO\nimport time\nimport traceback\n\nDEFAULT_SCROLL_PADDING = 100\nSCREENSHOT_FILE_EXTENSION = \"png\"\nDEFAULT_PIXEL_MATCH_OFFSET = 100\...
[ [ "numpy.asarray", "numpy.array_equal" ] ]
feng-y16/Hamiltonian-Generative-Networks
[ "702d3ff3aec40eba20e17c5a1612b5b0b1e2f831", "702d3ff3aec40eba20e17c5a1612b5b0b1e2f831" ]
[ "train.py", "environments/gravity.py" ]
[ "\"\"\"Script to train the Hamiltonian Generative Network\n\"\"\"\nimport ast\nimport argparse\nimport copy\nimport pprint\nimport os\nimport warnings\nimport yaml\n\nimport numpy as np\nimport torch\nimport tqdm\n\nfrom utilities.integrator import Integrator\nfrom utilities.training_logger import TrainingLogger\nf...
[ [ "torch.optim.Adam", "torch.__getattribute__", "numpy.concatenate", "torch.cuda.is_available", "torch.clamp" ], [ "numpy.power", "numpy.cos", "numpy.linalg.norm", "numpy.sin", "numpy.max", "numpy.zeros_like", "numpy.random.randn", "numpy.random.rand", "nu...
puririshi98/benchmark
[ "2440b3b6e177a9b38011eff3ec25f3b6052acfd0", "79f554f1e1cf36f62994c78e0e6e5b360f554022", "79f554f1e1cf36f62994c78e0e6e5b360f554022", "df51ed9c1d6dbde1deef63f2a037a369f8554406", "79f554f1e1cf36f62994c78e0e6e5b360f554022", "79f554f1e1cf36f62994c78e0e6e5b360f554022", "2440b3b6e177a9b38011eff3ec25f3b6052acfd...
[ "DeepLearningExamples/PyTorch/Recommendation/DLRM/preproc/parquet_to_binary.py", "DeepLearningExamples/TensorFlow2/Segmentation/MaskRCNN/mrcnn_tf2/object_detection/argmax_matcher.py", "DeepLearningExamples/TensorFlow2/LanguageModeling/BERT/official/nlp/modeling/networks/encoder_scaffold.py", "DeepLearningExam...
[ "# Copyright (c) 2021 NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless re...
[ [ "pandas.read_parquet" ], [ "tensorflow.reduce_max", "tensorflow.multiply", "tensorflow.greater", "tensorflow.shape", "tensorflow.cast", "tensorflow.ones", "tensorflow.one_hot", "tensorflow.where", "tensorflow.argmax", "tensorflow.greater_equal" ], [ "tensorf...
jklymak/dolfyn
[ "eea98fe0021886cf654e25293c385c5c3707ff8d", "eea98fe0021886cf654e25293c385c5c3707ff8d" ]
[ "dolfyn/io/rdi.py", "docs/examples/adv_motion_correction2.py" ]
[ "import numpy as np\nimport xarray as xr\nfrom .. import time as tmlib\nimport warnings\nfrom os.path import getsize\nfrom ._read_bin import bin_reader\nfrom .base import _find_userdata, _create_dataset, _abspath\nfrom ..rotate.rdi import _calc_beam_orientmat, _calc_orientmat\nfrom ..rotate.base import _set_coords\...
[ [ "numpy.unique", "numpy.isnan", "numpy.arange", "numpy.median", "numpy.nanmean", "numpy.array", "numpy.zeros", "numpy.empty" ], [ "matplotlib.pyplot.legend", "matplotlib.dates.DateFormatter", "matplotlib.pyplot.title", "numpy.logspace", "matplotlib.pyplot.plo...
Prepaire/MolGNN_fewshot
[ "c7c17afdeae7f2ef0c8e3ca2da033091ec7537ca", "c7c17afdeae7f2ef0c8e3ca2da033091ec7537ca" ]
[ "chem/util.py", "chem/pretrain_fingerprint.py" ]
[ "import torch\nimport random\nimport collections\n\nimport networkx as nx\nfrom rdkit.Chem import AllChem\nimport numpy as np\n\nfrom loader import graph_data_obj_to_nx_simple, nx_to_graph_data_obj_simple\n\nfrom loader import MoleculeDataset\n\n\ndef get_filtered_fingerprint(smiles):\n \"\"\" Get filtered PubCh...
[ [ "torch.randint", "torch.empty", "torch.Tensor", "torch.cat", "torch.tensor", "numpy.delete", "numpy.vstack" ], [ "sklearn.metrics.roc_auc_score", "numpy.random.seed", "torch.cat", "torch.manual_seed", "torch.nn.BCEWithLogitsLoss", "torch.no_grad", "torch...
eunice-chan/train-procgen
[ "3f7cc3e54c535ed41aa9cb510f408e87d74c87aa" ]
[ "train_procgen/evaluate.py" ]
[ "import tensorflow as tf\nfrom baselines.ppo2 import ppo2\nfrom baselines.common.models import build_impala_cnn\nfrom baselines.common.mpi_util import setup_mpi_gpus\nfrom procgen import ProcgenEnv\nfrom baselines.common.vec_env import (\n VecExtractDictObs,\n VecMonitor,\n VecFrameStack,\n VecNormalize...
[ [ "tensorflow.ConfigProto", "tensorflow.Session" ] ]
thomasjpfan/pyamg
[ "b0904d31c8da0c29affcd7d0fcd2bb8cb910b42a", "cabbb008fa26d4c9d8c24decf06374185864c88b" ]
[ "pyamg/aggregation/aggregation.py", "pyamg/vis/vtk_writer.py" ]
[ "\"\"\"Support for aggregation-based AMG.\"\"\"\nfrom __future__ import absolute_import\n\n\nfrom warnings import warn\nimport numpy as np\nfrom scipy.sparse import csr_matrix, isspmatrix_csr, isspmatrix_bsr,\\\n SparseEfficiencyWarning\n\nfrom pyamg.multilevel import multilevel_solver\nfrom pyamg.relaxation.smo...
[ [ "numpy.asarray", "scipy.sparse.csr_matrix", "scipy.sparse.isspmatrix_bsr", "scipy.sparse.isspmatrix_csr", "numpy.zeros" ], [ "numpy.hstack", "numpy.arange", "numpy.ones", "numpy.ndim", "numpy.zeros", "numpy.vstack" ] ]
MuellerSeb/jams_python
[ "1bca04557da79d8f8a4c447f5ccc517c40ab7dfc", "1bca04557da79d8f8a4c447f5ccc517c40ab7dfc", "1bca04557da79d8f8a4c447f5ccc517c40ab7dfc", "1bca04557da79d8f8a4c447f5ccc517c40ab7dfc", "1bca04557da79d8f8a4c447f5ccc517c40ab7dfc", "1bca04557da79d8f8a4c447f5ccc517c40ab7dfc" ]
[ "jams/errormeasures.py", "jams/str2tex.py", "jams/eddybox/energyclosure.py", "jams/eddybox/sltclean.py", "jams/ascii2ascii.py", "jams/eddybox/profile2storage.py" ]
[ "#!/usr/bin/env python\nfrom __future__ import division, absolute_import, print_function\nimport numpy as np\nfrom scipy.stats import t\n\n\"\"\"\n Defines common error measures.\n\n \n Definition\n ----------\n def bias(y_obs,y_mod): bias\n def mae(y_obs,y_mod): mean absolute error\n ...
[ [ "numpy.sqrt", "numpy.isnan", "numpy.ma.abs", "numpy.std", "numpy.mean", "numpy.ma.array", "numpy.corrcoef" ], [ "numpy.array" ], [ "matplotlib.pyplot.legend", "numpy.vstack", "numpy.ma.count", "scipy.optimize.fmin", "numpy.ma.array", "numpy.ma.max", ...
Davide-DD/distributed-machine-learning-architectures
[ "998d86368c4122ad9937b505405191b316afb060", "998d86368c4122ad9937b505405191b316afb060" ]
[ "architectures/gossip-learning/nodes/fog-node/code/classes/aged_model.py", "analyzer/federated_visualize.py" ]
[ "from keras import backend as K\nfrom keras.models import *\nfrom keras.layers import *\nimport os\nfrom datetime import datetime\nimport tensorflow as tf\nimport numpy as np\n\n\nclass AgedModel:\n\n\n\tdef __init__(self, model=None, age=None):\t\t\n\t\tself.graph = tf.Graph()\n\n\t\twith self.graph.as_default():\...
[ [ "tensorflow.Graph", "tensorflow.Session" ], [ "matplotlib.pyplot.xlabel", "pandas.read_csv", "matplotlib.pyplot.ylabel" ] ]
mwisnie5/pybaseball
[ "0a2a84d757e478aa79619100872ef48cf7da52c5" ]
[ "pybaseball/teamid_lookup.py" ]
[ "import logging\nimport os\nfrom datetime import date\nfrom typing import Optional\n\nimport pandas as pd\n\nfrom . import lahman\nfrom .datasources import fangraphs\n\n_DATA_FILENAME = os.path.join(os.path.dirname(os.path.realpath(__file__)), 'data', 'fangraphs_teams.csv')\n\n\ndef team_ids(season: Optional[int] =...
[ [ "pandas.concat", "pandas.read_csv" ] ]
micsthepick/boxed-bottles
[ "424cc0aec3e5d6897a38fc0507d9c609c9f78a1e" ]
[ "object_detection/utils/variables_helper.py" ]
[ "# Copyright 2017 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.logging.warning", "tensorflow.train.NewCheckpointReader", "tensorflow.logging.info" ] ]
connectthefuture/tensorflow
[ "93812423fcd5878aa2c1d0b68dc0496980c8519d", "93812423fcd5878aa2c1d0b68dc0496980c8519d", "93812423fcd5878aa2c1d0b68dc0496980c8519d", "93812423fcd5878aa2c1d0b68dc0496980c8519d", "93812423fcd5878aa2c1d0b68dc0496980c8519d", "93812423fcd5878aa2c1d0b68dc0496980c8519d", "93812423fcd5878aa2c1d0b68dc0496980c8519...
[ "tensorflow/contrib/seq2seq/python/kernel_tests/seq2seq_test.py", "tensorflow/python/training/device_setter_test.py", "tensorflow/python/ops/parsing_ops.py", "tensorflow/tools/test/run_and_gather_logs_lib.py", "tensorflow/tensorboard/backend/handler_test.py", "tensorflow/python/kernel_tests/pool_test.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.constant", "tensorflow.contrib.seq2seq.simple_decoder_fn_inference", "tensorflow.contrib.layers.linear", "tensorflow.contrib.seq2seq.dynamic_rnn_decoder", "tensorflow.test.main", "tensorflow.constant_initializer", "tensorflow.global_variables_initializer", "tensorflow.c...
ReyhaneAskari/SLA_violation_classification
[ "258a3c415cebcd04601e4d794d42d664471df668", "258a3c415cebcd04601e4d794d42d664471df668" ]
[ "3_create_database/scripts/createDB2.py", "4_simple_models/scripts/random_forest_SMOTE_bordeline_1.py" ]
[ "# -*- coding: utf-8 -*-\n\n# In this script we find all the history behind an evicted task that has not been finished/killed/failed/lost.\n# We find how many times it has been submitted and what were the events related to this task. \n# The violatedtasks dictionary is the one that is we are looking for. It has onl...
[ [ "pandas.read_csv" ], [ "sklearn.cross_validation.cross_val_score", "matplotlib.pyplot.legend", "sklearn.cross_validation.train_test_split", "pandas.read_csv", "sklearn.ensemble.RandomForestClassifier", "matplotlib.pyplot.title", "matplotlib.use", "matplotlib.pyplot.ylim", ...
dg4271/haystack
[ "e930d8a717dfca0c7d502f331d7076b51b5f6898", "e930d8a717dfca0c7d502f331d7076b51b5f6898" ]
[ "test/benchmarks/retriever.py", "test/test_retriever.py" ]
[ "import pandas as pd\nfrom pathlib import Path\nfrom time import perf_counter\nfrom utils import get_document_store, get_retriever, index_to_doc_store, load_config\nfrom haystack.preprocessor.utils import eval_data_from_json\nfrom haystack.document_store.faiss import FAISSDocumentStore\n\nfrom haystack import Docum...
[ [ "pandas.DataFrame.from_records" ], [ "numpy.sum" ] ]
khawar512/OPVT
[ "690e540e7f54e43751d28a046009993e3e325291", "690e540e7f54e43751d28a046009993e3e325291" ]
[ "vit_pytorch/do_conv_pytorch.py", "vit_pytorch/efficient_VIT.py" ]
[ "# coding=utf-8\n\nimport math\nimport torch\nimport numpy as np\nfrom torch.nn import init\nfrom itertools import repeat\nfrom torch.nn import functional as F\nimport collections.abc as container_abcs\nfrom typing import Optional\nfrom torch.nn.parameter import Parameter\nfrom torch.nn.modules.module import Module...
[ [ "torch.nn.init.uniform_", "torch.Tensor", "torch.zeros", "torch.cat", "torch.einsum", "torch.nn.functional.conv2d", "torch.reshape", "torch.eye", "torch.from_numpy", "torch.nn.parameter.Parameter", "torch.nn.init._calculate_fan_in_and_fan_out", "numpy.zeros", "t...
gunpowder78/google-research
[ "d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5", "d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5", "d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5", "d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5", "d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5", "d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e5", "d41bbaca1eb9bfd980ec2b3fd201c3ddb4d1f2e...
[ "unprocessing/process.py", "tf3d/object_detection/preprocessor_test.py", "combiner/combiner/tf/approx_attention.py", "polish/ppo/ppo_model_fn.py", "scann/configure.py", "ebp/ebp/common/plot_utils/plot_2d.py", "aloe/aloe/rfill/seq_embed.py", "neutra/ebm/train_ebm.py", "readtwice/models/optimization.p...
[ "# coding=utf-8\n# Copyright 2022 The Google Research Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.compat.v1.ones_like", "tensorflow.compat.v1.stack", "tensorflow.compat.v1.image.flip_up_down", "tensorflow.compat.v1.concat", "tensorflow.compat.v1.reduce_sum", "tensorflow.compat.v1.space_to_depth", "tensorflow.compat.v1.image.flip_left_right", "tensorflow.compat.v1.sh...
manuelmusngi/machine_learning_algorithms_for_development
[ "f344634f84d8f3a60fbb93892bdaed877855b710", "f344634f84d8f3a60fbb93892bdaed877855b710", "f344634f84d8f3a60fbb93892bdaed877855b710" ]
[ "preprocessing_tools.py", "k_fold_cross_validation.py", "k_nearest_neighbors.py" ]
[ "# Data Preprocessing Tools for Data Cleaning\n\n# Import libraries\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport pandas as pd\n\n# Importing the dataset\ndataset = pd.read_ ('')\nX = dataset.iloc[:, :-1].values\ny = dataset.iloc[:, -1].values\nprint(X)\nprint(y)\n\n# Taking care of missing data\nfro...
[ [ "pandas.read_", "sklearn.preprocessing.OneHotEncoder", "sklearn.impute.SimpleImputer", "sklearn.model_selection.train_test_split", "sklearn.preprocessing.StandardScaler", "sklearn.preprocessing.LabelEncoder" ], [ "matplotlib.pyplot.legend", "pandas.read_", "sklearn.model_se...
qianrusun1015/Disentangled-Person-Image-Generation
[ "e4703860bb1b351050ce50f339985ff0811f1d64" ]
[ "score_mask.py" ]
[ "from __future__ import print_function\n\nimport os, pdb, sys, glob\n# we need to set GPUno first, otherwise may out of memory\nstage = int(sys.argv[1])\ngpuNO = sys.argv[2]\nmodel_dir = sys.argv[3]\ntest_dir = sys.argv[4]\nos.environ[\"CUDA_DEVICE_ORDER\"]=\"PCI_BUS_ID\"\nos.environ[\"CUDA_VISIBLE_DEVICES\"]=str(g...
[ [ "numpy.product", "numpy.abs", "numpy.uint8", "numpy.std", "numpy.mean", "numpy.sum" ] ]
fogx/docarray
[ "2cb60f893ebcfd29708132e44202ccb20e639c6b" ]
[ "tests/unit/document/test_converters.py" ]
[ "import os\n\nimport numpy as np\nimport pytest\n\nfrom docarray import Document\nfrom docarray.document.generators import from_files\nfrom docarray.helper import __windows__\n\ncur_dir = os.path.dirname(os.path.abspath(__file__))\n\n\ndef test_video_convert_pipe(pytestconfig, tmpdir):\n num_d = 0\n fname = s...
[ [ "numpy.random.RandomState", "numpy.random.random", "numpy.random.randint" ] ]
mevalle/r-DEP-Classifier
[ "c18625fe6b69ec9cc4edead7bb7f647ebf71956a" ]
[ "rDEP.py" ]
[ "import numpy as np\nimport cvxpy as cp\nimport dccp\nimport matplotlib.pyplot as plt\nfrom matplotlib.patches import Polygon\nfrom sklearn.base import BaseEstimator, ClassifierMixin, TransformerMixin\nfrom sklearn.utils.multiclass import unique_labels\nfrom sklearn.metrics import pairwise_distances\nfrom sklearn.u...
[ [ "matplotlib.pyplot.contourf", "sklearn.utils.validation.check_is_fitted", "numpy.max", "numpy.mean", "matplotlib.pyplot.gca", "numpy.arange", "sklearn.model_selection.StratifiedKFold", "numpy.zeros", "matplotlib.pyplot.figure", "numpy.min", "matplotlib.pyplot.ylim", ...
zzdxfei/detectron_cascade_code
[ "59706f1687ee067d1df5da60e7a4a442fb2d59f8" ]
[ "detectron/ops/distribute_cascade_proposals.py" ]
[ "# Copyright (c) 2017-present, Facebook, 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/LICENSE-2.0\n#\n# Unless required by applicabl...
[ [ "numpy.concatenate", "numpy.argsort", "numpy.where", "numpy.empty" ] ]
iamchosenlee/MolDQN-pytorch
[ "bda8a74eb9e5d2f3232a6a27b6a32928a3797f6d" ]
[ "dqn.py" ]
[ "import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\n\nclass MolDQN(nn.Module):\n def __init__(self, input_length, output_length):\n super(MolDQN, self).__init__()\n\n self.linear_1 = nn.Linear(input_length, 1024)\n self.linear_2 = nn.Linear(1024, 512)\n self.linea...
[ [ "torch.nn.Linear", "torch.nn.ReLU" ] ]
markqiu/zvt
[ "1bcfb71279f2652c3600f0f8e45d941f98ceaa10", "23105a5bfdc3a5080c6c22d11e9e53d216688dea" ]
[ "zvt/recorders/joinquant/meta/china_stock_status_recorder.py", "zvt/recorders/exchange/china_index_list_spider.py" ]
[ "# -*- coding: utf-8 -*-\nimport pandas as pd\nfrom jqdatasdk import auth, logout, finance, query\nfrom zvt.recorders.joinquant.common import to_jq_entity_id\n\nfrom zvt import zvt_env\nfrom zvt.api import TIME_FORMAT_DAY, get_str_schema\nfrom zvt.contract.api import df_to_db\nfrom zvt.contract.recorder import Time...
[ [ "pandas.to_datetime" ], [ "pandas.concat", "pandas.DataFrame", "pandas.read_html" ] ]
TUM-AIMED/hyfed
[ "06e0ea66a8bf88ecaf09ebc0ff20cdd850d81b7f" ]
[ "hyfed-compensator/hyfed_compensator/project/hyfed_compensator_project.py" ]
[ "\"\"\"\n The main class to obtain the compensation parameters from the clients, aggregate them,\n and share the aggregation results with the server\n\n Copyright 2021 Reza NasiriGerdeh. All Rights Reserved.\n\n Licensed under the Apache License, Version 2.0 (the \"License\");\n you may not use this ...
[ [ "numpy.array" ] ]
muzi2045/second_TANET.pytorch
[ "3e10c93075a76684871fe0f188819c7b282671fd" ]
[ "second/core/non_max_suppression/nms_cpu.py" ]
[ "import math\r\nfrom pathlib import Path\r\nimport numba\r\nimport numpy as np\r\nfrom spconv.spconv_utils import (\r\n non_max_suppression_cpu, rotate_non_max_suppression_cpu)\r\nfrom second.core import box_np_ops\r\nfrom second.core.non_max_suppression.nms_gpu import rotate_iou_gpu\r\n\r\n\r\ndef nms_cc(dets, ...
[ [ "numpy.exp", "numpy.zeros" ] ]
MuhammadSYahyaS/cs-flow
[ "bef320ae7b2063f1dce41fb2f2225228cd43a589" ]
[ "train.py" ]
[ "import numpy as np\nimport torch\nfrom sklearn.metrics import roc_auc_score\nfrom tqdm import tqdm\nimport config as c\nfrom model import get_cs_flow_model, save_model, FeatureExtractor, nf_forward\nfrom utils import *\n\n\ndef train(train_loader, test_loader):\n model = get_cs_flow_model()\n optimizer = tor...
[ [ "sklearn.metrics.roc_auc_score", "numpy.concatenate", "torch.no_grad", "numpy.mean", "numpy.array" ] ]
sungheeyun/optmlstat
[ "11d529c915bf27976da9157471a6dbf7df34d205" ]
[ "optmlstat/test/test_basic_functions.py" ]
[ "import unittest\nfrom logging import Logger, getLogger\n\nfrom numpy import ndarray, power, allclose\nfrom numpy.random import randn\nfrom freq_used.logging_utils import set_logging_basic_config\n\nfrom optmlstat.functions.function_base import FunctionBase\nfrom optmlstat.functions.example_functions import get_sum...
[ [ "numpy.random.randn", "numpy.allclose", "numpy.power" ] ]
mmderakhshani/ML-From-Scratch
[ "86ccc5273e0182b66c5d93c428f75dad61d8ced3" ]
[ "mlfromscratch/unsupervised_learning/gaussian_mixture_model.py" ]
[ "from __future__ import division, print_function\nimport sys\nimport os\nimport math\nimport random\nfrom sklearn import datasets\nimport numpy as np\n\n# Import helper functions\nfrom mlfromscratch.utils.data_manipulation import normalize\nfrom mlfromscratch.utils.data_operation import euclidean_distance, calculat...
[ [ "numpy.expand_dims", "numpy.linalg.norm", "numpy.ones", "numpy.linalg.det", "numpy.max", "numpy.linalg.pinv", "numpy.shape", "numpy.zeros", "numpy.sum", "sklearn.datasets.make_blobs" ] ]
EEEGUI/Mapillary-vistas-semseg
[ "d07a107fd08a7536f09f25e426a6f15033cbb609" ]
[ "ptsemseg/loader/mapillary_vistas_loader.py" ]
[ "import os\nimport json\nimport torch\nimport numpy as np\n\nfrom torch.utils import data\nfrom PIL import Image\n\nfrom ptsemseg.utils import recursive_glob\nfrom ptsemseg.augmentations import Compose, RandomHorizontallyFlip, RandomRotate\n\nclass mapillaryVistasLoader(data.Dataset):\n def __init__(\n se...
[ [ "numpy.uint8", "numpy.array", "torch.utils.data.DataLoader", "numpy.zeros" ] ]
vinay-swamy/gMVP
[ "62202baa0769dfe0e47c230e78dffa42fb1280f1" ]
[ "trainer/trainer.py" ]
[ "import time\nimport json\nimport argparse\nimport os\nimport sys\nimport logging\nimport shutil\nfrom datetime import datetime\nimport glob\nimport random\n\nfrom scipy.stats import mannwhitneyu\nfrom scipy.stats import spearmanr\n\nimport numpy as np\n\nfrom sklearn.metrics import roc_auc_score, precision_recall_...
[ [ "tensorflow.norm", "tensorflow.config.threading.set_intra_op_parallelism_threads", "tensorflow.keras.optimizers.schedules.PolynomialDecay", "tensorflow.summary.histogram", "tensorflow.zeros", "sklearn.metrics.auc", "scipy.stats.spearmanr", "tensorflow.cast", "numpy.max", "s...
v1259397/cosmic-gnuradio
[ "64c149520ac6a7d44179c3f4a38f38add45dd5dc" ]
[ "gnuradio-3.7.13.4/gr-analog/python/analog/qa_fastnoise.py" ]
[ "#!/usr/bin/env python\n#\n# Copyright 2007,2010,2012 Free Software Foundation, Inc.\n#\n# This file is part of GNU Radio\n#\n# GNU Radio is free software; you can redistribute it and/or modify\n# it under the terms of the GNU General Public License as published by\n# the Free Software Foundation; either version 3,...
[ [ "numpy.array_equal" ] ]
Saiprasad16/transform
[ "774458bf0c296f8275fedf3ace303427654dace7" ]
[ "tensorflow_transform/schema_inference.py" ]
[ "# Copyright 2017 Google Inc. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by appl...
[ [ "tensorflow.constant", "tensorflow.compat.v1.logging.warn", "tensorflow.io.VarLenFeature", "tensorflow.python.framework.ops.get_default_graph", "tensorflow.compat.v1.add_to_collection", "tensorflow.function" ] ]
ZzhKlaus/2018-SURF-Trajectory-Estimation
[ "71c62c816d1531f6806bfa9455fec9affe36496c" ]
[ "Data_Processing/BoxPlot_error.py" ]
[ "#By Zhenghang(Klaus) Zhong\n\n#Box Plot of error distribution\n\nfrom pandas import DataFrame\nfrom pandas import read_csv\nimport pandas as pd\nimport numpy as np\nfrom matplotlib import pyplot\n# load results into a dataframe\nfilenames_128 = ['dis_diff_128.csv']\nfilenames_256 = ['dis_diff_256.csv']\nfilenames_...
[ [ "pandas.read_csv", "pandas.DataFrame", "numpy.concatenate", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.show", "matplotlib.pyplot.ylabel" ] ]
python3f/spectral_clustering
[ "bd5900dfa7ada69bd77080b905ef08ea62b420e9" ]
[ "main.py" ]
[ "from sklearn.cluster import KMeans\nfrom sklearn.neighbors import kneighbors_graph\nfrom scipy.spatial.distance import pdist, squareform\nfrom scipy.sparse.csgraph import laplacian\nimport numpy as np\n\n\n\"\"\"Args:\nX: input samples, array (num, dim)\nn_clusters: no. of clusters\nn_neighbours: n...
[ [ "sklearn.cluster.KMeans", "numpy.linalg.eig", "sklearn.neighbors.kneighbors_graph", "scipy.sparse.csgraph.laplacian", "numpy.argsort" ] ]
sinzlab/orbit_transfer
[ "812d89af5c7ab26d9ea26766a4250ae023bb20b8", "812d89af5c7ab26d9ea26766a4250ae023bb20b8" ]
[ "orbit_transfer/models/__init__.py", "orbit_transfer/dataset/mnist_c/run_generation.py" ]
[ "import torch\nimport numpy as np\nfrom torch.hub import load_state_dict_from_url\n\nfrom nnfabrik.utility.nn_helpers import load_state_dict\n\n\nfrom nntransfer.models.resnet import resnet_builder\nfrom nntransfer.models.utils import get_model_parameters\nfrom nntransfer.models.vgg import vgg_builder\nfrom nntrans...
[ [ "torch.manual_seed", "torch.hub.load_state_dict_from_url", "numpy.random.seed", "torch.zeros" ], [ "numpy.std", "numpy.mean" ] ]
inamori/DeepLearningImplementations
[ "8bbd3c5a4a7d24b2c098ba47cfd45fe2c152771d", "8bbd3c5a4a7d24b2c098ba47cfd45fe2c152771d", "8bbd3c5a4a7d24b2c098ba47cfd45fe2c152771d" ]
[ "GAN_tf/src/model/flags.py", "Colorful/src/utils/general_utils.py", "WGAN-GP/src/model/train_wgan_GP.py" ]
[ "\nimport tensorflow as tf\n\nFLAGS = tf.app.flags.FLAGS\n\n\ndef define_flags():\n\n ############\n # Run mode\n ############\n tf.app.flags.DEFINE_string('run', None, \"Which operation to run. [train|inference]\")\n\n ##########################\n # Training parameters\n ######################...
[ [ "tensorflow.app.flags.DEFINE_bool", "tensorflow.app.flags.DEFINE_string", "tensorflow.app.flags.DEFINE_integer", "tensorflow.app.flags.DEFINE_float" ], [ "matplotlib.pylab.tight_layout", "matplotlib.pylab.show", "numpy.log", "numpy.sum", "numpy.repeat", "numpy.concatena...
kwangsungjun/lrbandit
[ "2f1f7ca4bbefe2bfd3e0bc50c4423a9791bfcde8" ]
[ "matrixrecovery/matrixrecovery.py" ]
[ "import myutils_cython\nimport numpy as np, numpy.random as ra, scipy.linalg as sla\nfrom tqdm import tqdm\n\ndef rankone(X,Z,y,r,R=.1, C=.1, tolPred=0.01, tolTh=0.01, maxIter=400, verbose=False):\n \"\"\"\n matrix recovery with rank-one measurements using Burer-Monteiro approach \n measurement model: (X[i...
[ [ "numpy.eye", "numpy.random.randn", "scipy.linalg.norm", "scipy.linalg.solve", "numpy.zeros" ] ]
kassyray/NeuroKit
[ "b84d110a71d5d17c0d1efde0d60d00446fda16cb", "b84d110a71d5d17c0d1efde0d60d00446fda16cb", "b84d110a71d5d17c0d1efde0d60d00446fda16cb" ]
[ "tests/tests_complexity.py", "neurokit2/rsp/rsp_process.py", "neurokit2/signal/signal_findpeaks.py" ]
[ "import numpy as np\nimport pandas as pd\nimport neurokit2 as nk\nimport nolds\n\nfrom pyentrp import entropy as pyentrp\n\n\"\"\"\nFor the testing of complexity, we test our implementations against existing and established ones.\nHowever, some of these other implementations are not really packaged in a way\nSO THA...
[ [ "numpy.linspace", "numpy.asarray", "sklearn.neighbors.KDTree", "numpy.lib.stride_tricks.as_strided", "numpy.max", "numpy.mean", "numpy.fill_diagonal", "numpy.var", "numpy.divide", "pandas.read_csv", "numpy.allclose", "numpy.subtract", "numpy.std", "numpy.cop...
shangz-ai/transformers
[ "75259b44bf2e2b98b5a4d431fb400b7190342a01", "75259b44bf2e2b98b5a4d431fb400b7190342a01", "75259b44bf2e2b98b5a4d431fb400b7190342a01", "75259b44bf2e2b98b5a4d431fb400b7190342a01", "75259b44bf2e2b98b5a4d431fb400b7190342a01", "75259b44bf2e2b98b5a4d431fb400b7190342a01" ]
[ "tests/models/tapas/test_tokenization_tapas.py", "tests/models/big_bird/test_modeling_big_bird.py", "src/transformers/models/longformer/modeling_longformer.py", "src/transformers/models/xlm/modeling_xlm.py", "tests/models/lxmert/test_modeling_lxmert.py", "src/transformers/models/wav2vec2_conformer/modelin...
[ "# coding=utf-8\n# Copyright 2020 The HuggingFace Inc. team.\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...
[ [ "pandas.DataFrame.from_records", "numpy.array", "torch.no_grad", "pandas.DataFrame.from_dict" ], [ "torch.Size", "torch.ones", "torch.cat", "torch.zeros", "torch.manual_seed", "torch.einsum", "torch.tensor", "torch.no_grad", "torch.allclose", "torch.ones...
Haiper-ai/kubric
[ "d096ba178b8a78ea2c840ae121646d36281d31d9" ]
[ "challenges/multiview_matting/worker.py" ]
[ "# Copyright 2021 The Kubric 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# https://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by applicable law or ...
[ [ "numpy.dot", "numpy.cos", "numpy.linalg.norm", "numpy.random.RandomState", "numpy.vstack" ] ]
KiLJ4EdeN/tf2_nn
[ "0ccec7692f061e7e066a4a2439683e3b09faa7bc" ]
[ "tfnn_mlp.py" ]
[ "import tensorflow as tf\nimport matplotlib.pyplot as plt\n\n# MNIST dataset parameters.\nnum_classes = 10 # 0 to 9 digits\nnum_features = 784 # 28*28\n\n# Training parameters.\nlearning_rate = 0.001\ntraining_steps = 1000\nbatch_size = 256\ndisplay_step = 100\n\n# Network parameters.\nn_hidden_1 = 128 # 1st layer ...
[ [ "tensorflow.clip_by_value", "tensorflow.matmul", "tensorflow.nn.softmax", "tensorflow.Variable", "tensorflow.zeros", "tensorflow.initializers.RandomNormal", "tensorflow.data.Dataset.from_tensor_slices", "tensorflow.reshape", "tensorflow.cast", "tensorflow.keras.datasets.mni...
kevin3/cwl-ica
[ "cf706ea42993d563f364c0847ee4b882f8fe067c", "cf706ea42993d563f364c0847ee4b882f8fe067c", "cf706ea42993d563f364c0847ee4b882f8fe067c" ]
[ "src/subcommands/listers/list_users.py", "src/subcommands/listers/list_projects.py", "src/subcommands/listers/list_tenants.py" ]
[ "#!/usr/bin/env python3\n\n\"\"\"\nList all users registered in <CWL_ICA_REPO_PATH>/config/user.yaml\n\"\"\"\n\nfrom classes.command import Command\nfrom utils.logging import get_logger\nimport pandas as pd\nfrom utils.repo import read_yaml, get_user_yaml_path\nimport sys\n\nlogger = get_logger()\n\n\nclass ListUse...
[ [ "pandas.DataFrame" ], [ "pandas.DataFrame" ], [ "pandas.DataFrame" ] ]
Broly498/sentinel2-cloud-detector
[ "912880fcd6fed482475b4cd8da07bda17993ebe8" ]
[ "examples/plotting_utils.py" ]
[ "\"\"\"\nPlotting utilities for example notebooks\n\"\"\"\nimport matplotlib.pyplot as plt\nimport numpy as np\n\n\ndef plot_image(image=None, mask=None, ax=None, factor=3.5/255, clip_range=(0, 1), **kwargs):\n \"\"\" Utility function for plotting RGB images and masks.\n \"\"\"\n if ax is None:\n _,...
[ [ "numpy.clip", "numpy.asarray", "matplotlib.pyplot.subplots", "matplotlib.pyplot.subplot", "numpy.zeros", "matplotlib.pyplot.figure" ] ]
henrykironde/DeepForest
[ "9df98ea30debc8a1dc98edfa45dada063b109e6e" ]
[ "deepforest/preprocess.py" ]
[ "# Deepforest Preprocessing model\n\"\"\"The preprocessing module is used to reshape data into format suitable for\ntraining or prediction.\n\nFor example cutting large tiles into smaller images.\n\"\"\"\nimport os\n\nimport numpy as np\nimport pandas as pd\nimport slidingwindow\nfrom PIL import Image\nimport torch...
[ [ "pandas.concat", "pandas.read_csv", "torch.tensor", "numpy.moveaxis", "numpy.array" ] ]
furkannturkmen/CS231n-2021
[ "2c6618d16bfd4e02e0493e8b8a411a6509206bb4" ]
[ "assignment2/cs231n/optim.py" ]
[ "import numpy as np\n\n\"\"\"\nThis file implements various first-order update rules that are commonly used\nfor training neural networks. Each update rule accepts current weights and the\ngradient of the loss with respect to those weights and produces the next set of\nweights. Each update rule has the same interfa...
[ [ "numpy.zeros_like", "numpy.sqrt" ] ]
kaikun213/fonduer-troy200
[ "d5653df48e3ce3037f4f1b500d454947ad0d010c" ]
[ "src/fonduer_utils.py" ]
[ "import emmental\nimport numpy as np\n\nfrom fonduer import Meta\nfrom emmental.modules.embedding_module import EmbeddingModule\nfrom emmental.data import EmmentalDataLoader\nfrom emmental.model import EmmentalModel\nfrom emmental.learner import EmmentalLearner\nfrom fonduer.learning.utils import collect_word_count...
[ [ "numpy.array" ] ]
neptune-ai/examples
[ "e64cfaadb028e2187063fc43768dfee44074729b" ]
[ "integrations-and-supported-tools/optuna/scripts/Neptune_Optuna_integration_customize_callback.py" ]
[ "import lightgbm as lgb\nimport neptune.new as neptune\nimport neptune.new.integrations.optuna as optuna_utils\nimport optuna\nfrom sklearn.datasets import load_breast_cancer\nfrom sklearn.metrics import roc_auc_score\nfrom sklearn.model_selection import train_test_split\n\n\ndef objective(trial):\n data, target...
[ [ "sklearn.metrics.roc_auc_score", "sklearn.model_selection.train_test_split", "sklearn.datasets.load_breast_cancer" ] ]
mttgdd/liegroups
[ "ca637bd461300d70d70f90bff7a18462d06f5f82" ]
[ "liegroups/torch/se2.py" ]
[ "import torch\n\nfrom . import _base\nfrom . import utils\nfrom .so2 import SO2Matrix\n\n\nclass SE2Matrix(_base.SEMatrixBase):\n \"\"\"See :mod:`liegroups.SE2`\"\"\"\n dim = 3\n dof = 3\n RotationType = SO2Matrix\n\n def adjoint(self):\n rot_part = self.rot.as_matrix()\n if rot_part.di...
[ [ "torch.cat", "torch.zeros", "torch.sin", "torch.eye", "torch.bmm", "torch.cos" ] ]
972d5defe3218bd62b741e6a2f11f5b3/riptable
[ "bb928c11752e831ec701f91964979b31db53826a", "bb928c11752e831ec701f91964979b31db53826a", "bb928c11752e831ec701f91964979b31db53826a", "bb928c11752e831ec701f91964979b31db53826a" ]
[ "riptable/tests/test_scalar.py", "riptable/tests/test_accum2.py", "riptable/hypothesis_tests/test_riptide_numpy_equivalency.py", "riptable/benchmarks/bench_merge.py" ]
[ "\"\"\"Test around scalar constructors and scalar methods.\"\"\"\r\nimport riptable as rt\r\nimport numpy as np\r\nimport pytest\r\n\r\nfrom numpy.testing import assert_almost_equal, assert_warns\r\n\r\n\r\nclass TestScalarConstructor(object):\r\n # Type-coercion from strings test cases adapted from numpy/core/t...
[ [ "numpy.testing.assert_almost_equal" ], [ "pandas.util.testing.makeTimeDataFrame", "numpy.testing.assert_almost_equal", "pandas.DataFrame" ], [ "numpy.minimum", "numpy.sqrt", "numpy.cumsum", "numpy.nan_to_num", "numpy.dtype", "numpy.all", "numpy.concatenate", ...
vik748/OpenSfM
[ "bd949246e3e0d6d3a707a08224038034d27e3ee8", "569144c26df860cfa45d183f7701d0414e35d086" ]
[ "scripts/track_length_analysis_test.py", "opensfm/test/test_triangulation.py" ]
[ "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Mon Apr 19 08:11:51 2021\n\n@author: vik748\n\"\"\"\nimport json\nimport numpy as np\nimport matplotlib.pyplot as plt\nimport sys,os\nimport pandas as pd\n\ndef tracks_histogram(recon_file, tracks_file, ax, model_num=0, bins=np.linspace(2,15,14)):...
[ [ "matplotlib.pyplot.legend", "pandas.read_csv", "numpy.linspace", "matplotlib.pyplot.subplots", "matplotlib.pyplot.MultipleLocator", "matplotlib.pyplot.show" ], [ "numpy.radians", "numpy.allclose", "numpy.linalg.norm", "numpy.identity", "numpy.array" ] ]
prkkumar/WarpX
[ "a83c9c03ecc9850cd724efc14075eb95ff8a6138" ]
[ "Python/pywarpx/fields.py" ]
[ "# Copyright 2017-2019 David Grote\n#\n# This file is part of WarpX.\n#\n# License: BSD-3-Clause-LBNL\n\n\"\"\"Provides wrappers around field and current density on multiFABs\n\nAvailable routines:\n\nExWrapper, EyWrapper, EzWrapper\nBxWrapper, ByWrapper, BzWrapper\nJxWrapper, JyWrapper, JzWrapper\n\n\"\"\"\nimport...
[ [ "numpy.arange", "numpy.array", "numpy.zeros_like", "numpy.zeros" ] ]
brianwa84/probability
[ "6f8e78d859ac41170be5147c8c7bde54cc5aa83e", "6f8e78d859ac41170be5147c8c7bde54cc5aa83e", "6f8e78d859ac41170be5147c8c7bde54cc5aa83e", "6f8e78d859ac41170be5147c8c7bde54cc5aa83e", "6f8e78d859ac41170be5147c8c7bde54cc5aa83e", "6f8e78d859ac41170be5147c8c7bde54cc5aa83e", "6f8e78d859ac41170be5147c8c7bde54cc5aa83...
[ "tensorflow_probability/python/distributions/skellam_test.py", "tensorflow_probability/python/distributions/lognormal_test.py", "tensorflow_probability/python/internal/tensor_util.py", "spinoffs/inference_gym/inference_gym/targets/vector_model.py", "spinoffs/oryx/oryx/util/summary_test.py", "spinoffs/infe...
[ "# Copyright 2018 The TensorFlow Probability Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless required by a...
[ [ "scipy.stats.skellam.logpmf", "scipy.stats.skellam.mean", "tensorflow.compat.v2.Variable", "tensorflow.compat.v2.test.main", "tensorflow.compat.v2.constant", "numpy.linspace", "numpy.sqrt", "tensorflow.compat.v2.GradientTape", "scipy.stats.skellam.pmf", "tensorflow.compat.v...
Pandinosaurus/model-optimization
[ "12dc84dd34ee3c6eb08b381c0abcd65b31a42366", "12dc84dd34ee3c6eb08b381c0abcd65b31a42366" ]
[ "tensorflow_model_optimization/python/core/quantization/keras/collaborative_optimizations/cluster_preserve/cluster_preserve_quantize_registry.py", "tensorflow_model_optimization/python/core/clustering/keras/cluster_wrapper.py" ]
[ "# Copyright 2021 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.multiply", "tensorflow.unique", "tensorflow.shape", "tensorflow.reduce_any", "tensorflow.reshape", "tensorflow.one_hot", "tensorflow.math.divide_no_nan", "tensorflow.size", "tensorflow.abs" ], [ "tensorflow.math.multiply", "tensorflow.math.not_equal", ...
Luciano233/OCR_Japanease
[ "055bdd0cc8e4d053dfb471cd642b1616ba0938d1" ]
[ "nets/classifiernet.py" ]
[ "import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\nfrom .block import Mish, SeparableConv2d, Block\n\nclass WideTipXception(nn.Module):\n def __init__(self, num_class):\n super(WideTipXception, self).__init__()\n\n self.conv1 = nn.Conv2d(1, 192, 3, 2, 1, bias=True)\n se...
[ [ "torch.nn.Linear", "torch.nn.Conv2d", "torch.nn.functional.adaptive_avg_pool2d", "torch.nn.BatchNorm2d" ] ]
HMS-CardiacMR/MyoMapNet-Myocardial-Parametric-Mapping
[ "1e2dee8d6d1f97722eba91618462537faf9efba7" ]
[ "InLine_Implementation/Code/utils/fftutils.py" ]
[ "\nfrom __future__ import absolute_import\nfrom __future__ import division\nfrom __future__ import print_function\n\nimport numpy as np\nimport torch\n\n################################################################################\n################################################################################\...
[ [ "numpy.log2", "numpy.sqrt", "numpy.linspace", "torch.cat", "numpy.reshape", "numpy.cos", "numpy.arctan2", "torch.unbind", "torch.stack", "numpy.meshgrid" ] ]
natemalek/molen-pater-nathan-rma-thesis-coreference-with-singletons
[ "3d2d6c751eadd6438a80b0c24f48b2635bc6acc7" ]
[ "deep-coref/modified_keras/examples/babi_memnn.py" ]
[ "from __future__ import print_function\nfrom keras.models import Sequential\nfrom keras.layers.embeddings import Embedding\nfrom keras.layers.core import Activation, Dense, Merge, Permute, Dropout\nfrom keras.layers.recurrent import LSTM\nfrom keras.datasets.data_utils import get_file\nfrom keras.preprocessing.sequ...
[ [ "numpy.array" ] ]
TatsuyaShirakawa/torchemb
[ "b72912c7602537f368c16fdeb2bb6cf177b742be" ]
[ "scripts/poincare_embeddings.py" ]
[ "'''\nA rouch implementation of the following paper\n\nM. Nickel+, \"Poincaré Embeddings for Learning Hierarchical Representations\", NeurIPS2017\nhttps://arxiv.org/pdf/1705.08039.pdf\n'''\nimport argparse\nfrom pathlib import Path\nimport itertools\nimport math\nimport numpy as np\nimport torch\nimport torch.nn as...
[ [ "torch.nn.CrossEntropyLoss", "torch.LongTensor", "torch.isnan", "numpy.random.seed", "torch.manual_seed", "torch.no_grad" ] ]
kbots-dga/ml_classificator
[ "0163141de7389825787b9813019582be98d0f266" ]
[ "app.py" ]
[ "import streamlit as st\nimport plotly.express as px\nimport pandas as pd\nimport pickle\nimport os\nimport base64\nfrom io import BytesIO\nfrom datetime import datetime\n\n\ndef to_excel(df):\n output = BytesIO()\n writer = pd.ExcelWriter(output, engine='xlsxwriter')\n df.to_excel(writer, index=False, she...
[ [ "pandas.read_excel", "pandas.read_csv", "pandas.ExcelWriter" ] ]
tomkimpson/ML4L
[ "ffa8360cb80df25bd6af4fa5cc39b42bd6f405cd", "ffa8360cb80df25bd6af4fa5cc39b42bd6f405cd" ]
[ "legacy/legacy_scripts/legacy/.ipynb_checkpoints/train_and_predict-checkpoint.py", "pipeline/raw_data_processor/prep_for_ML.py" ]
[ "\n\n\n\n\nimport tensorflow as tf\nimport os\nimport time\nimport json\nimport pandas as pd\n\n\n\n\"\"\"\nScript to train a sequential NN.\nTakes a df, filters based on `condition` (default None), and separates into test/train based on time\nNN trains on training data, all results output to disk\n\"\"\"\n\n\ndef ...
[ [ "tensorflow.keras.layers.Dense", "pandas.read_pickle", "tensorflow.config.list_physical_devices", "tensorflow.keras.layers.Normalization" ], [ "pandas.read_parquet", "pandas.concat", "pandas.merge" ] ]
paul-ang/nas-segm-pytorch
[ "e83704b6cdac6426d6ee51059f82cf650238677c", "e83704b6cdac6426d6ee51059f82cf650238677c" ]
[ "src/utils/solvers.py", "src/data/hsi_dataset.py" ]
[ "\"\"\"Initialising Optimisers\"\"\"\n\nimport torch\n\n\ndef create_optimisers(\n optim_enc,\n optim_dec,\n lr_enc,\n lr_dec,\n mom_enc,\n mom_dec,\n wd_enc,\n wd_dec,\n param_enc,\n param_dec,\n):\n \"\"\"Create optimisers for encoder, decoder\n\n Args:\n optim_enc (str) :...
[ [ "torch.optim.Adam", "torch.optim.SGD" ], [ "torch.Tensor", "numpy.min", "numpy.concatenate", "numpy.max", "numpy.argmax", "numpy.float32", "numpy.moveaxis", "numpy.argsort", "numpy.zeros", "numpy.where", "numpy.loadtxt", "torch.as_tensor" ] ]
rpalovics/Alpenglow
[ "7a15d5c57b511787379f095e7310e67423159fa0" ]
[ "examples/external_models/turicreate/run_turicreate.py" ]
[ "import os\nos.environ[\"OMP_NUM_THREADS\"] = \"10\"\n\nimport sys\nimport pandas as pd\nimport numpy as np\nimport turicreate as tc\n\n\nfor i in range(1, 14):\n print(\"running batch %d\" % i)\n batch = pd.read_csv(\"batches/batch_%d_train.dat\" % i)\n test_users = pd.read_csv(\"batches/batch_%d_test.dat...
[ [ "pandas.read_csv" ] ]
smarsu/facenet
[ "a0fa3ffe32e295b4cc980a4a178593cc7f1bad12" ]
[ "compare.py" ]
[ "# --------------------------------------------------------\n# SMNet FaceNet\n# Licensed under The MIT License [see LICENSE for details]\n# Copyright 2019 smarsu. All Rights Reserved.\n# --------------------------------------------------------\n\nimport os.path as osp\nimport numpy as np\nfrom sklearn import metric...
[ [ "numpy.square", "sklearn.metrics.roc_auc_score", "sklearn.metrics.roc_curve", "matplotlib.pyplot.savefig", "matplotlib.pyplot.plot", "numpy.array", "numpy.sum" ] ]
Ombarus/python_env
[ "4615976a51aa4f02206f5e03fc091b088d3273fc", "4615976a51aa4f02206f5e03fc091b088d3273fc" ]
[ "python35/Lib/site-packages/sklearn/linear_model/base.py", "python35/Lib/site-packages/sklearn/linear_model/ridge.py" ]
[ "\"\"\"\nGeneralized Linear models.\n\"\"\"\n\n# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>\n# Fabian Pedregosa <fabian.pedregosa@inria.fr>\n# Olivier Grisel <olivier.grisel@ensta.org>\n# Vincent Michel <vincent.michel@inria.fr>\n# Peter Prettenhofer <peter.prettenhofer@gmail.com>\n# ...
[ [ "numpy.dot", "numpy.sqrt", "numpy.iinfo", "numpy.exp", "scipy.sparse.dia_matrix", "scipy.sparse.issparse", "scipy.linalg.lstsq", "numpy.atleast_1d", "numpy.ravel", "numpy.reciprocal", "numpy.zeros", "scipy.sparse.csc_matrix", "scipy.sparse.csr_matrix", "nump...
StephenLouis/ISIC_2019
[ "340ece42915c770e68bc13da64698a7a8987420e" ]
[ "Data_Loader.py" ]
[ "import os\nimport torch\nimport csv\nimport numpy as np\nfrom torch.utils.data import Dataset\nfrom PIL import Image\n\ndef split_csv(file):\n data = []\n a_train_file = r'/home/huangyinyue/ISIC_2019/train.csv'\n a_test_file = r'/home/huangyinyue/ISIC_2019/test.csv'\n\n seed = 3\n np.random.seed(see...
[ [ "numpy.random.seed", "numpy.random.choice", "numpy.asarray", "torch.from_numpy", "numpy.array" ] ]
daniyaljamal/Personality-prediction-based-on-video-using-CNN
[ "0f1052d09fe14c73e38ac529ad35e4e98a8d859e" ]
[ "data preprocessing/MTCNN2.py" ]
[ "# extract and plot each detected face in a photograph\nfrom facenet_pytorch import MTCNN\nfrom cv2 import cv2\nfrom PIL import Image\nimport numpy as np\nfrom matplotlib import pyplot as plt\nfrom tqdm.notebook import tqdm\nimport os\nimport tensorflow as tf\nfrom torchvision import models\nimport torch\nfrom torc...
[ [ "matplotlib.pyplot.axis" ] ]
Igor-ID/Image-Compression
[ "e54881b62f258260baa7036cdd3b264b0d8adf05" ]
[ "wavelet_compress.py" ]
[ "import pywt\nimport matplotlib.pyplot as plt\nfrom matplotlib.image import imread\nimport numpy as np\n\n\"\"\"Image compression using discrete Wavelet transform.\"\"\"\n\nplt.rcParams['figure.figsize'] = [8, 8]\nplt.rcParams.update({'font.size': 18})\n\nim = imread('data/dog.jpg')\nim_gray = np.mean(im, -1) # co...
[ [ "numpy.abs", "matplotlib.image.imread", "numpy.mean", "matplotlib.pyplot.axis", "matplotlib.pyplot.rcParams.update", "matplotlib.pyplot.show", "matplotlib.pyplot.figure" ] ]
drigols/Studies
[ "9c293156935b491ded24be6b511daac67fd43538", "9c293156935b491ded24be6b511daac67fd43538", "9c293156935b491ded24be6b511daac67fd43538", "9c293156935b491ded24be6b511daac67fd43538", "9c293156935b491ded24be6b511daac67fd43538", "9c293156935b491ded24be6b511daac67fd43538" ]
[ "modules/ai-codes/modules/knn/src/iris-v1.py", "modules/math-codes/modules/linear-algebra/matrices/src/sparsity.py", "modules/math-codes/modules/linear-algebra/vectors/src/vector_addition.py", "modules/ai-codes/modules/logistic-regression/src/deodorant_instant_liking_gridSearchCV.py", "modules/ai-codes/modu...
[ "########################################################\n# Rodrigo Leite - drigols #\n# Last update: 31/10/2021 #\n########################################################\n\nfrom sklearn.datasets import load_iris\nimport pandas as pd\n\niris = load_iris()...
[ [ "sklearn.datasets.load_iris", "pandas.Series", "pandas.DataFrame" ], [ "numpy.count_nonzero", "numpy.array", "scipy.sparse.csr_matrix" ], [ "matplotlib.pyplot.savefig", "matplotlib.pyplot.grid", "matplotlib.pyplot.axis", "matplotlib.pyplot.quiver", "matplotlib.p...
tableClothed/face-filters
[ "8b236643b4e22a925df6a1c299f3887fdedb3e8e" ]
[ "flask/camera.py" ]
[ "import cv2\nimport numpy as np\nimport dlib\nfrom imutils import face_utils, translate\n\nclass Camera(object):\n\tdef __init__(self):\n\t\tself.camera = cv2.VideoCapture(0)\n\n\t\tp = \"../data/shape_predictor_68_face_landmarks.dat\"\n\t\tself.detector = dlib.get_frontal_face_detector()\n\t\tself.predictor = dlib...
[ [ "numpy.hstack", "numpy.linspace", "numpy.median", "numpy.zeros_like", "numpy.mean", "numpy.array", "numpy.zeros" ] ]
RudyVenguswamy/DALI
[ "1456689cbb06a6d6f2c46c3fd231d1c296808e00" ]
[ "dali/test/python/test_operator_gaussian_blur.py" ]
[ "# Copyright (c) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless req...
[ [ "numpy.uint8", "numpy.array", "numpy.float32" ] ]
stephenpascoe/arrow
[ "3efd08f0cbaa40d0d3a329b8613fb80ac022b985" ]
[ "python/pyarrow/tests/test_convert_pandas.py" ]
[ "# -*- coding: utf-8 -*-\n# 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....
[ [ "pandas.to_datetime", "pandas.Series", "numpy.sqrt", "numpy.random.random_sample", "pandas.DataFrame", "numpy.dtype", "pandas.util.testing.assert_frame_equal", "numpy.random.randn", "numpy.iinfo", "numpy.bool_", "numpy.random.randint", "numpy.testing.assert_equal", ...
msenosain/TMA36_dataanalysis
[ "ba390b40e9ffb2bf8ec39b3bd6e8aa000174c313" ]
[ "src/data_integration/pw_corr.py" ]
[ "import pandas as pd\nimport pingouin as pg\n\ndef pw_corr(data_path=\"data/TMA36_project/Radiomics/processed/rad_healthmyne.csv\", \n cde_path=\"data/TMA36_project/CDE/CDE_TMA36_2020FEB25_SA_MF.csv\"):\n rad_hm = pd.read_csv(data_path, index_col=0)\n cde = pd.read_csv(cde_path, index_col=1)\n c...
[ [ "pandas.merge", "pandas.read_csv", "pandas.DataFrame" ] ]
kyuhyoung/grasping-invisible
[ "2aaaeb9e28995628ec038a79496453be9f26ffff", "2aaaeb9e28995628ec038a79496453be9f26ffff" ]
[ "utils.py", "policies.py" ]
[ "import math\n\nimport numpy as np\nfrom skimage.morphology.convex_hull import convex_hull_image\nfrom scipy.ndimage.morphology import binary_dilation\n\n\ndef check_grasp_margin(target_mask_heightmap, depth_heightmap):\n margin_mask = binary_dilation(target_mask_heightmap, iterations=10).astype(np.float32)-targ...
[ [ "numpy.dot", "scipy.ndimage.morphology.binary_dilation", "numpy.linspace", "numpy.asarray", "numpy.concatenate", "numpy.round", "numpy.sin", "numpy.argmax", "numpy.zeros", "numpy.random.power", "numpy.multiply", "numpy.isnan", "numpy.deg2rad", "numpy.floor",...
xiebaiyuan/PaddleLite
[ "6f7280a91741d1c63fcb0296ac5c08c4e81c2a90" ]
[ "lite/tests/unittest_py/auto_scan_base.py" ]
[ "# Copyright (c) 2021 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless re...
[ [ "numpy.array", "numpy.allclose", "numpy.random.seed" ] ]
jdehotin/TensorFlow
[ "a6c5f8e4e013e54fed8dfcf49fb6de365f018022", "a6c5f8e4e013e54fed8dfcf49fb6de365f018022", "a6c5f8e4e013e54fed8dfcf49fb6de365f018022", "a6c5f8e4e013e54fed8dfcf49fb6de365f018022", "a6c5f8e4e013e54fed8dfcf49fb6de365f018022", "a6c5f8e4e013e54fed8dfcf49fb6de365f018022", "a6c5f8e4e013e54fed8dfcf49fb6de365f01802...
[ "tensorflow/python/summary/impl/io_wrapper.py", "tensorflow/contrib/distributions/python/ops/dirichlet_multinomial.py", "tensorflow/contrib/slim/python/slim/evaluation_test.py", "tensorflow/contrib/layers/python/layers/feature_column_ops_test.py", "tensorflow/python/client/session_test.py", "tensorflow/co...
[ "# 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.summary.impl.gcs_file_loader.GCSFileLoader", "tensorflow.python.platform.gfile.Walk", "tensorflow.python.platform.gfile.ListDirectory", "tensorflow.python.summary.impl.gcs.IsDirectory", "tensorflow.python.summary.impl.gcs.IsGCSPath", "tensorflow.python.summary.impl.event...
ahoneybun/tensorflow
[ "51100a8de57ef53e36a8a9f5a9829cbd33fbed04", "5134e65300d1ac384eeb1f4ca72a011ad7225bc8", "5134e65300d1ac384eeb1f4ca72a011ad7225bc8", "5134e65300d1ac384eeb1f4ca72a011ad7225bc8" ]
[ "tensorflow/python/keras/engine/training.py", "tensorflow/python/keras/applications/imagenet_utils_test.py", "tensorflow/compiler/tests/eager_test.py", "tensorflow/contrib/constrained_optimization/python/swap_regret_optimizer.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.keras.engine.training_eager.predict_loop", "numpy.expand_dims", "tensorflow.python.keras.backend.name_scope", "tensorflow.python.keras.engine.training_eager.test_on_batch", "numpy.asarray", "tensorflow.python.keras.engine.training_utils.prepare_sample_weights", "tens...
jkrogager/PyNOT
[ "2514a443079e50c12a13ebbd89a48f91a8d20626" ]
[ "pynot/phot.py" ]
[ "\"\"\"\nFunctions for Imaging Pipeline\n\"\"\"\n\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom matplotlib.patches import Ellipse\nfrom astropy.io import fits\nfrom astropy.modeling import models, fitting\nfrom astropy.table import Table\nfrom scipy.optimize import curve_fit\nimport os\n\nfrom astropy....
[ [ "numpy.nanmax", "numpy.nanmedian", "numpy.sqrt", "numpy.nanmin", "numpy.round", "numpy.max", "numpy.argmin", "numpy.nanmean", "numpy.zeros_like", "numpy.mean", "scipy.optimize.curve_fit", "numpy.arange", "numpy.std", "numpy.nansum", "matplotlib.pyplot.fi...
RobinVogel/metric-learn
[ "a30471424d35b0ef47582751fa6acea7b3a3bce5", "a30471424d35b0ef47582751fa6acea7b3a3bce5" ]
[ "test/metric_learn_test.py", "metric_learn/nca.py" ]
[ "import unittest\nimport re\nimport pytest\nimport numpy as np\nimport scipy\nfrom scipy.optimize import check_grad, approx_fprime\nfrom six.moves import xrange\nfrom sklearn.metrics import pairwise_distances, euclidean_distances\nfrom sklearn.datasets import (load_iris, make_classification, make_regression,\n ...
[ [ "numpy.diag", "numpy.dot", "sklearn.datasets.make_classification", "numpy.random.randn", "numpy.zeros_like", "numpy.fill_diagonal", "numpy.where", "sklearn.datasets.make_spd_matrix", "numpy.random.randint", "numpy.ones_like", "numpy.unique", "numpy.arange", "num...
WeatherGod/numpy
[ "5be45b280b258e158b93163b937f8f9c08d30393", "5be45b280b258e158b93163b937f8f9c08d30393", "5be45b280b258e158b93163b937f8f9c08d30393", "5be45b280b258e158b93163b937f8f9c08d30393", "5be45b280b258e158b93163b937f8f9c08d30393" ]
[ "numpy/ma/tests/test_regression.py", "numpy/distutils/fcompiler/absoft.py", "numpy/random/__init__.py", "numpy/linalg/setup.py", "numpy/distutils/fcompiler/pg.py" ]
[ "from __future__ import division, absolute_import, print_function\n\nimport numpy as np\nimport numpy.ma as ma\nfrom numpy.testing import *\nfrom numpy.compat import sixu\n\nrlevel = 1\n\nclass TestRegression(TestCase):\n def test_masked_array_create(self,level=rlevel):\n \"\"\"Ticket #17\"\"\"\n x...
[ [ "numpy.ma.nonzero", "numpy.arange", "numpy.atleast_2d", "numpy.ma.zeros", "numpy.compat.sixu", "numpy.ma.masked_array", "numpy.ma.array", "numpy.ma.masked_where", "numpy.zeros" ], [ "numpy.distutils.fcompiler.FCompiler.get_libraries", "numpy.distutils.fcompiler.FCom...
zhanyinx/SPT_analysis
[ "1cf806c1fd6051e7fc998d2860a16bea6aa9de1a" ]
[ "source/spot_detection_tracking/trackmate_xml_2d.py" ]
[ "\"\"\"\\U0001F1EB\\U0001F1EF \\U00002B50 CSV track coordinate to TrackMate XML conversion.\nFiji allows for quick and easy viewing of images. TrackMate can be used to view tracks.\nUnfortunately, it isn't that simple to convert \"normal\" coordinate output into\nTrackMate-viewable format.\nRequires a \"tracks.csv...
[ [ "numpy.expand_dims", "numpy.setdiff1d" ] ]
PatrykNeubauer/NeMo
[ "3ada744b884dba5f233f22c6991fc6092c6ca8d0", "3ada744b884dba5f233f22c6991fc6092c6ca8d0" ]
[ "scripts/asr_language_modeling/neural_rescorer/eval_neural_rescorer.py", "nemo/collections/nlp/models/text_classification/text_classification_model.py" ]
[ "# Copyright (c) 2021, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless re...
[ [ "pandas.read_csv", "matplotlib.pyplot.title", "numpy.linspace", "torch.cat", "torch.utils.data.DataLoader", "torch.sum", "matplotlib.pyplot.plot", "numpy.round", "torch.no_grad", "torch.cuda.is_available", "torch.device", "matplotlib.pyplot.xlabel", "numpy.array...
mattzett/numerical_electromagnetics
[ "07634817ba854a5515c8c31545b735f651878c5e" ]
[ "magnetic_diffusion/diffusion1D.py" ]
[ "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\n\"\"\"\nCreated on Mon Feb 21 19:43:50 2022\n\nIllustrating a basic transient magnetic diffusion problem, See Jackson Section 5.18\n\n@author: zettergm\n\"\"\"\n\nimport numpy as np\nimport scipy.sparse.linalg\nimport scipy.sparse\nfrom scipy.special import erf\nimp...
[ [ "matplotlib.pyplot.legend", "numpy.abs", "numpy.linspace", "matplotlib.pyplot.title", "numpy.reshape", "matplotlib.pyplot.ylim", "numpy.sqrt", "matplotlib.pyplot.plot", "matplotlib.pyplot.ylabel", "matplotlib.pyplot.clf", "matplotlib.pyplot.xlim", "matplotlib.pyplot...
Yang-YiFan/DiracDeltaNet
[ "36487542422d7573fec6e852b9eece18c6cbce21" ]
[ "extensions/utils.py" ]
[ "'''Some helper functions for PyTorch, including:\r\n - get_mean_and_std: calculate the mean and std value of dataset.\r\n - msr_init: net parameter initialization.\r\n - progress_bar: progress bar mimic xlua.progress.\r\n'''\r\nimport os\r\nimport sys\r\nimport time\r\nimport math\r\n\r\nimport torch\r\ni...
[ [ "torch.nn.init.kaiming_normal", "torch.zeros", "numpy.clip", "torch.utils.data.DataLoader", "torch.from_numpy", "numpy.ones", "torch.nn.init.normal", "torch.nn.init.constant", "numpy.random.randint" ] ]
XinYao1994/mindspore
[ "2c1a2bf752a1fde311caddba22633d2f4f63cb4e" ]
[ "tests/ut/python/ops/test_tensor_slice.py" ]
[ "# Copyright 2020 Huawei Technologies Co., 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 l...
[ [ "numpy.arange", "numpy.random.uniform", "numpy.array", "numpy.ones" ] ]
Strasser-Pablo/pipelines
[ "a1d513eb412f3ffd44edf82af2fa7edb05c3b952" ]
[ "components/deprecated/tfx/ExampleGen/CsvExampleGen/with_URI_IO/component.py" ]
[ "from typing import NamedTuple\n\ndef CsvExampleGen(\n output_examples_uri: 'ExamplesUri',\n input_base: str,\n input_config: {'JsonObject': {'data_type': 'proto:tfx.components.example_gen.Input'}},\n output_config: {'JsonObject': {'data_type': 'proto:tfx.components.example_gen.Output'}},\n range_con...
[ [ "tensorflow.io.gfile.listdir" ] ]
AcudoDev/FinanceToolbox
[ "90676e798f2e8eac164ccfcd6708cc717e1911f2" ]
[ "Other/GaussianRandomStockPrice.py" ]
[ "import pandas as pd\nimport numpy as np\n\nimport yfinance as yf\nfrom sklearn.linear_model import LinearRegression\nimport statsmodels\nimport statsmodels.api as sm\nimport statsmodels.tsa.stattools as ts\n\nimport datetime\n\nimport scipy.stats\nimport math\nimport openpyxl as pyxl\nfrom scipy import signal\nfro...
[ [ "numpy.random.normal", "pandas.DataFrame", "pandas.date_range" ] ]
UCLA-SEAL/QDiff
[ "d968cbc47fe926b7f88b4adf10490f1edd6f8819", "d968cbc47fe926b7f88b4adf10490f1edd6f8819", "d968cbc47fe926b7f88b4adf10490f1edd6f8819", "d968cbc47fe926b7f88b4adf10490f1edd6f8819", "d968cbc47fe926b7f88b4adf10490f1edd6f8819", "d968cbc47fe926b7f88b4adf10490f1edd6f8819", "d968cbc47fe926b7f88b4adf10490f1edd6f881...
[ "data/p3BR/R2/benchmark/startQiskit289.py", "benchmark/startQiskit2375.py", "data/p3BR/R1/benchmark/startQiskit_QC456.py", "benchmark/startQiskit_Class2296.py", "data/p4VQE/R4/benchmark/startQiskit_noisy62.py", "benchmark/startQiskit_noisy2042.py", "benchmark/startQiskit2925.py", "benchmark/startQiski...
[ "# qubit number=3\n# total number=60\n\nimport numpy as np\n\nfrom qiskit import QuantumCircuit, execute, Aer, QuantumRegister, ClassicalRegister, transpile, BasicAer, IBMQ\nfrom qiskit.visualization import plot_histogram\nfrom typing import *\nfrom pprint import pprint\nfrom math import log2\nfrom collections impo...
[ [ "numpy.binary_repr" ], [ "numpy.binary_repr" ], [ "numpy.binary_repr" ], [ "numpy.binary_repr" ], [ "numpy.amax", "numpy.arange", "numpy.cos", "numpy.sin", "numpy.meshgrid" ], [ "numpy.binary_repr" ], [ "numpy.binary_repr" ], [ "numpy.bin...
JoZimmer/ParOptBeam
[ "50d15d8d822a2718f2932807e06c4a7e02f866a3" ]
[ "test_scripts/test_element_and_compare_to_kratos.py" ]
[ "from source.element.cr_beam_element import CRBeamElement\n\nimport numpy as np\n\nnp.set_printoptions(suppress=False, precision=4, linewidth=100)\n\n\ndef test_crbeam_element_update_incremental():\n material_params = {'rho': 7850, 'e': 2069000000.0, 'nu': 0.29, 'zeta': 0.05, 'lx_i': 1.2, 'is_nonlinear': True}\n...
[ [ "numpy.set_printoptions", "numpy.array" ] ]
jab0707/UncertainSCI
[ "569c978c4f67dd7bb37e730276f2a376b8639235" ]
[ "tests/test_laguerre_inv.py" ]
[ "import unittest\n\nimport numpy as np\n\nfrom UncertainSCI.families import LaguerrePolynomials\n\n\nclass IDistTestCase(unittest.TestCase):\n \"\"\"\n Tests for (Laguerre polynomial) inversed induced distributions.\n \"\"\"\n\n def test_idistinv_laguerre(self):\n \"\"\"Evaluation of Laguerre inv...
[ [ "numpy.abs", "numpy.random.random", "numpy.linalg.norm", "numpy.random.rand" ] ]
alnah005/aggregation-for-caesar
[ "d6bca0a1126e0397315d5773401c71075c33ee2f" ]
[ "panoptes_aggregation/running_reducers/tess_user_reducer.py" ]
[ "'''\nTESS User Reducer\n-----------------\nThis module porvides functions to calculate uesr weights for the TESS project.\nExtracts are from Ceasars `PluckFieldExtractor`.\n'''\nfrom .running_reducer_wrapper import running_reducer_wrapper\nimport numpy as np\n\n\n@running_reducer_wrapper(relevant_reduction=True)\n...
[ [ "numpy.log10", "numpy.where" ] ]
StarGazer1995/OpenPCDet
[ "4af33e8badb0c8e68c7c94c71b0ec5667aad2348" ]
[ "pcdet/models/backbones_3d/spconv_unet.py" ]
[ "import torch\nimport torch.nn as nn\nimport spconv\nfrom functools import partial\nfrom .spconv_backbone import post_act_block\nfrom ...utils import common_utils\n\n\nclass SparseBasicBlock(spconv.SparseModule):\n expansion = 1\n\n def __init__(self, inplanes, planes, stride=1, downsample=None, indice_key=No...
[ [ "torch.nn.ReLU", "torch.cat" ] ]
ChenLi0830/Clevo-Categorization-Service
[ "44b509786849a6dce610171d86e5da68ad748b4b" ]
[ "temp/train_cnn.py" ]
[ "'''This example demonstrates the use of Convolution1D for text classification.\n'''\n\nfrom __future__ import print_function\n\n\nimport sys\nsys.path.append('/Users/wangwei/anaconda2/envs/python3_keras/lib/python3.6/site-packages')\n\nfrom keras.preprocessing import sequence\nfrom keras.models import Sequential\n...
[ [ "numpy.max", "pandas.DataFrame" ] ]
MOONJOOYOUNG/AdamP
[ "64a63106a2ac62bcbe90627f2a83ec1b488f3416" ]
[ "adamp/sgdp.py" ]
[ "\"\"\"\nAdamP\nCopyright (c) 2020-present NAVER Corp.\nMIT license\n\"\"\"\n\nimport torch\nimport torch.nn as nn\nfrom torch.optim.optimizer import Optimizer, required\nimport math\n\nclass SGDP(Optimizer):\n def __init__(self, params, lr=required, momentum=0, dampening=0,\n weight_decay=0, nes...
[ [ "torch.zeros_like" ] ]
antgonza/qtp-diversity
[ "0c2ec84711decf798ea6ffdb3e97dc9582ba4035" ]
[ "qtp_diversity/tests/test_validate.py" ]
[ "# -----------------------------------------------------------------------------\n# Copyright (c) 2014--, The Qiita Development Team.\n#\n# Distributed under the terms of the BSD 3-clause License.\n#\n# The full license is in the file LICENSE, distributed with this software.\n# -------------------------------------...
[ [ "numpy.asarray", "pandas.Series", "numpy.random.randint" ] ]
methane/astropy
[ "1a065d5ce403e226799cfb3d606fda33be0a6c08", "1a065d5ce403e226799cfb3d606fda33be0a6c08" ]
[ "astropy/coordinates/sky_coordinate.py", "astropy/io/fits/tests/test_core.py" ]
[ "import re\nimport copy\nimport warnings\nimport operator\n\nimport numpy as np\n\nfrom astropy import _erfa as erfa\nfrom astropy.utils.compat.misc import override__dir__\nfrom astropy import units as u\nfrom astropy.constants import c as speed_of_light\nfrom astropy.utils.data_info import MixinInfo\nfrom astropy....
[ [ "numpy.logical_not", "numpy.all", "numpy.isscalar", "numpy.array", "numpy.zeros" ], [ "numpy.all", "numpy.arange", "numpy.zeros" ] ]
LauraOlivera/gammapy
[ "8aadf0ec524bcf51d0ac5655a04507d5d449e7ed" ]
[ "gammapy/estimators/tests/test_flux_point.py" ]
[ "# Licensed under a 3-clause BSD style license - see LICENSE.rst\nimport pytest\nimport numpy as np\nfrom numpy.testing import assert_allclose\nimport astropy.units as u\nfrom astropy.table import Table\nfrom gammapy.catalog.fermi import SourceCatalog3FGL\nfrom gammapy.estimators import FluxPoints\nfrom gammapy.mod...
[ [ "numpy.log", "numpy.sqrt", "numpy.testing.assert_allclose", "numpy.array", "numpy.exp" ] ]
MaxxWilson/ASE389Project
[ "13c3c72887e27fbed2eef63c1e27b4a185036a39" ]
[ "pnc/draco3_lb_pnc/draco3_lb_controller.py" ]
[ "import numpy as np\n\nfrom util import util\nfrom config.draco3_lb_config import PnCConfig, WBCConfig\nfrom pnc.wbc.ihwbc.ihwbc import IHWBC\nfrom pnc.wbc.ihwbc.joint_integrator import JointIntegrator\n\n\nclass Draco3LBController(object):\n def __init__(self, tci_container, robot):\n self._tci_container...
[ [ "numpy.dot", "numpy.linalg.inv", "numpy.eye", "numpy.array", "numpy.zeros" ] ]
Barry-lab/Publication_TanniDeCothiBarry2021
[ "425bc0bd9a74b837d912820e9ea1539a111fcb1f", "425bc0bd9a74b837d912820e9ea1539a111fcb1f", "425bc0bd9a74b837d912820e9ea1539a111fcb1f" ]
[ "visual_change_analysis/main.py", "electrophysiology_analysis/barrylab_ephys_analysis/spatial/fields.py", "electrophysiology_analysis/barrylab_ephys_analysis/lfp/oscillations.py" ]
[ "import numpy as np\nimport matplotlib.pyplot as plt\nimport pandas as pd\nfrom scipy.stats import pearsonr\nfrom bin_data import bin_data\n\n# import pixel data \nright_z_pixel_change = np.load(\"right_z_pixel_change.npy\")\nleft_z_pixel_change = np.load(\"left_z_pixel_change.npy\")\nfront_z_pixel_change = np.lo...
[ [ "matplotlib.pyplot.imshow", "matplotlib.pyplot.title", "matplotlib.pyplot.clim", "scipy.stats.pearsonr", "numpy.vstack", "matplotlib.pyplot.get_cmap", "numpy.degrees", "numpy.append", "matplotlib.pyplot.subplot", "numpy.std", "numpy.diff", "numpy.mean", "matplot...
alik-git/mbrl-lib
[ "b364f8e64ca71ebd18147fe8cdbd3068b74e1f1e", "b364f8e64ca71ebd18147fe8cdbd3068b74e1f1e" ]
[ "mbrl/examples/main.py", "mbrl/models/planet_legacy.py" ]
[ "# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.\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.\nfrom typing import Iterable\nimport hydra\nimport numpy as np\nimport omegaconf\nimport torch\n\nimport mbrl.algo...
[ [ "torch.manual_seed", "numpy.random.seed" ], [ "torch.BoolTensor", "torch.cat", "torch.zeros", "torch.FloatTensor", "torch.stack", "numpy.array" ] ]