repo_name
stringlengths
6
130
hexsha
list
file_path
list
code
list
apis
list
DominikSpiljak/Fuzzy-Evolutionary-and-Neuro-computing
[ "fb0d54c35966ed0516c15519a6abcbffeb170f9b" ]
[ "ANFIS/fuzzy_net.py" ]
[ "import numpy as np\nimport matplotlib.pyplot as plt\nfrom mpl_toolkits import mplot3d\nfrom mpl_toolkits.mplot3d.axes3d import get_test_data\nfrom mpl_toolkits.mplot3d import Axes3D\nimport pickle\n\n\nclass ANFIS():\n\n def __init__(self, no_rules=1):\n self.no_rules = no_rules\n self.p = np.rand...
[ [ "numpy.square", "numpy.savez", "numpy.product", "numpy.meshgrid", "numpy.linspace", "numpy.arange", "matplotlib.pyplot.subplots", "numpy.cos", "numpy.random.permutation", "numpy.random.randn", "numpy.exp", "numpy.load", "numpy.array", "numpy.zeros", "num...
BRGM/map2loop-2
[ "9f9246e895e0334f3a0d53d7300b49e42f6de150" ]
[ "map2loop/config.py" ]
[ "import os\nimport sys\nimport time\nimport shutil\nimport random\n\nimport numpy as np\nimport pandas as pd\nimport geopandas as gpd\nfrom map2loop.topology import Topology\nfrom map2loop import m2l_utils\nfrom map2loop import m2l_geometry\nfrom map2loop import m2l_interpolation\nfrom map2loop import m2l_map_check...
[ [ "pandas.concat", "pandas.read_csv", "matplotlib.pyplot.tight_layout", "matplotlib.pyplot.imshow", "matplotlib.pyplot.title", "matplotlib.pyplot.subplots", "pandas.DataFrame", "numpy.ones", "matplotlib.pyplot.show" ] ]
CaptainDuke/horovod
[ "48a48f0bdf140cd4807d58688c56061dd4f2c954" ]
[ "test/parallel/test_tensorflow.py" ]
[ "# Copyright 2016 The TensorFlow Authors. All Rights Reserved.\n# Modifications copyright (C) 2018 Uber Technologies, Inc.\n# Modifications copyright (C) 2019 Intel Corporation\n# Modifications copyright (C) 2020, NVIDIA CORPORATION. All rights reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"L...
[ [ "tensorflow.random_uniform", "tensorflow.convert_to_tensor", "tensorflow.device", "tensorflow.enable_eager_execution", "tensorflow.concat", "tensorflow.cast", "numpy.all", "tensorflow.random.set_seed", "numpy.ones_like", "tensorflow.Variable", "tensorflow.config.experim...
peasant98/hiro_pytorch
[ "b2b4e5cd0933bc042f674a9ba5c99351a8ac20ed" ]
[ "envs/maze_env.py" ]
[ "# Copyright 2018 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 requi...
[ [ "numpy.ones" ] ]
felixonmars/BAG_framework
[ "321625032b40f34ea79269b0f46101b25d2f6e08", "993e7c82418443cf32e4b802d825671b78ec56fe", "993e7c82418443cf32e4b802d825671b78ec56fe", "993e7c82418443cf32e4b802d825671b78ec56fe" ]
[ "bag/data/plot.py", "bag/tech/core.py", "bag/mdao/core.py", "bag/math/dfun.py" ]
[ "# -*- coding: utf-8 -*-\n\n\"\"\"This module contains utilities to improve waveform plotting in python.\n\"\"\"\n\nimport numpy as np\nimport scipy.interpolate as interp\n\nfrom matplotlib.lines import Line2D\nfrom matplotlib.figure import Figure\nfrom matplotlib.text import Annotation\nimport matplotlib.pyplot as...
[ [ "matplotlib.pyplot.imshow", "numpy.amax", "numpy.maximum", "numpy.linspace", "numpy.amin", "matplotlib.figure.Figure.__init__", "numpy.tile", "matplotlib.pyplot.colorbar", "numpy.ceil", "matplotlib.pyplot.subplot", "numpy.diff", "numpy.argmin", "numpy.floor", ...
krish-dx/machina
[ "f93bb6f5aca1feccd71fc509bd6370d2015e2d85" ]
[ "machina/algos/r2d2_sac.py" ]
[ "\"\"\"\nThis is an implementation of R2D2(Soft Actor Critic ver).\nSee https://openreview.net/pdf?id=r1lyTjAqYX and https://arxiv.org/abs/1801.01290\n\"\"\"\n\nimport torch\nimport torch.nn as nn\n\nfrom machina import loss_functional as lf\nfrom machina import logger\nfrom machina.traj import traj_functional as t...
[ [ "torch.arange" ] ]
vanshhhhh/io
[ "2ea1121e944629c2b462773c2d8d805da427311c" ]
[ "tensorflow_io_gcs_filesystem/core/python/ops/__init__.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.experimental.register_filesystem_plugin" ] ]
xueruoyao/FCN-pytorch
[ "a5019da3943f47fa4f7baed3640cdbfeae2d677e", "a5019da3943f47fa4f7baed3640cdbfeae2d677e", "a5019da3943f47fa4f7baed3640cdbfeae2d677e", "a5019da3943f47fa4f7baed3640cdbfeae2d677e" ]
[ "code/models/SegHRNet.py", "code/utils/loss.py", "code/models/road_extraction/SIINet_model/DeeplabV3_plus.py", "code/models/Swin_LinkNet_SUA.py" ]
[ "# ------------------------------------------------------------------------------\n# Copyright (c) Microsoft\n# Licensed under the MIT License.\n# Written by Ke Sun (sunk@mail.ustc.edu.cn), Jingyi Xie (hsfzxjy@gmail.com)\n# ------------------------------------------------------------------------------\n\nimport os\...
[ [ "torch.nn.init.constant_", "torch.nn.init.normal_", "torch.nn.functional.interpolate" ], [ "torch.mean", "torch.sigmoid", "torch.ones", "torch.nn.functional.log_softmax", "torch.zeros", "torch.sum", "torch.zeros_like", "torch.tensor", "torch.arange", "numpy....
rpp0/em-operation-extraction
[ "1e2e170353ae01cb089b4a579b0ab143915acc14" ]
[ "lib/fast-wavenet/wavenet/utils.py" ]
[ "import numpy as np\n\nfrom scipy.io import wavfile\n\n\ndef normalize(data):\n temp = np.float32(data) - np.min(data)\n out = (temp / np.max(temp) - 0.5) * 2\n return out\n\n\ndef make_batch(path):\n data = wavfile.read(path)[1][:, 0]\n return get_wavenet_data(data)\n\n\ndef get_wavenet_data(data, r...
[ [ "numpy.linspace", "numpy.min", "numpy.max", "numpy.float32", "numpy.digitize", "scipy.io.wavfile.read" ] ]
bollwyvl/jupyter-cadquery
[ "f0b8a1e20cf770329a23ba802f553bd94d0869f9" ]
[ "jupyter_cadquery/cad_animation.py" ]
[ "from math import pi\nimport numpy as np\nfrom scipy.spatial.transform import Rotation as R\nfrom cadquery import Workplane, Location\nfrom pythreejs import (\n NumberKeyframeTrack,\n AnimationAction,\n AnimationClip,\n AnimationMixer,\n BooleanKeyframeTrack,\n ColorKeyframeTrack,\n QuaternionK...
[ [ "scipy.spatial.transform.Rotation.from_rotvec", "numpy.array", "scipy.spatial.transform.Rotation.from_quat" ] ]
lea-hagen/beast
[ "44d12e3ae9039fc4ad8c64721babd8f9901c48aa" ]
[ "beast/observationmodel/ast/make_ast_input_list.py" ]
[ "import os\nimport warnings\nimport numpy as np\nfrom astropy.io import ascii\nfrom astropy.table import Table\nfrom astropy.table import Column\n\nfrom beast.observationmodel.vega import Vega\nfrom beast.physicsmodel.grid import SEDGrid\n\n\ndef mag_limits(seds, faint_cut, Nfilter=1, bright_cut=None):\n \"\"\"\...
[ [ "numpy.amax", "numpy.linspace", "numpy.digitize", "numpy.where", "numpy.unique", "numpy.clip", "numpy.arange", "numpy.full", "numpy.column_stack", "numpy.zeros", "numpy.random.choice", "numpy.amin", "numpy.delete", "numpy.log10", "numpy.array", "nump...
Rsdv13/Audio-Emotion-Analysis
[ "f204e9665844665077d8004ce1d23b12535ef5fd" ]
[ "speaker_diarization.py" ]
[ "import collections\nimport contextlib\nimport sys\nimport wave\n\nimport webrtcvad\nimport librosa\n\n\ndef read_wave(path):\n\n with contextlib.closing(wave.open(path, 'rb')) as wf:\n num_channels = wf.getnchannels()\n assert num_channels == 1\n sample_width = wf.getsampwidth()\n as...
[ [ "numpy.dot", "sklearn.cluster.SpectralClustering", "numpy.shape", "sklearn.mixture.GaussianMixture", "numpy.array", "numpy.zeros", "numpy.sum", "numpy.vstack" ] ]
jamesmlane/galpy
[ "c74776ba72df5fc2dfc94ccabd89265326c6ebe6", "c74776ba72df5fc2dfc94ccabd89265326c6ebe6" ]
[ "tests/test_pv2qdf.py", "galpy/potential/planarPotential.py" ]
[ "# Tests of the quasiisothermaldf module\nfrom __future__ import print_function, division\nimport numpy\n#fiducial setup uses these\nfrom galpy.potential import MWPotential, vcirc, omegac, epifreq, verticalfreq\nfrom galpy.actionAngle import actionAngleAdiabatic, actionAngleStaeckel\nfrom galpy.df import quasiisoth...
[ [ "numpy.log", "numpy.sqrt", "numpy.linspace", "numpy.ones", "numpy.sum", "numpy.fabs" ], [ "numpy.nanmax", "numpy.sqrt", "numpy.linspace", "numpy.arcsin", "numpy.nanmin", "numpy.cos", "numpy.sin", "numpy.zeros" ] ]
Meruman/highway-env
[ "8bb23e7fa47e617971b83ddeeaab8c20c94b5c88" ]
[ "highway_env/road/graphics.py" ]
[ "from __future__ import division, print_function\nimport numpy as np\nimport pygame\n\nfrom highway_env.road.lane import LineType\nfrom highway_env.vehicle.graphics import VehicleGraphics\n\n\nclass LaneGraphics(object):\n \"\"\"\n A visualization of a lane.\n \"\"\"\n STRIPE_SPACING = 5\n \"\"\"...
[ [ "numpy.arange", "numpy.array", "numpy.clip" ] ]
yinzi-xin/hcipy
[ "e9abb037ed0d6fe06581c1ce94e5c154fa5069a7", "e9abb037ed0d6fe06581c1ce94e5c154fa5069a7" ]
[ "hcipy/metrics/contrast.py", "examples/power_spectral_density.py" ]
[ "import numpy as np\n\ndef get_strehl_from_focal(img, ref_img):\n\t'''Get the Strehl ratio from a focal-plane image.\n\n\tParameters\n\t----------\n\timg : Field or array_like\n\t\tThe focal-plane image.\n\tref_img : Field or array_like\n\t\tThe reference focal-plane image without aberrations.\n\n\tReturns\n\t-----...
[ [ "numpy.argmax", "numpy.mean", "numpy.sum" ], [ "numpy.abs", "numpy.ones", "matplotlib.pyplot.hist", "matplotlib.pyplot.show", "numpy.sum" ] ]
tifuchs/silx
[ "4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7", "035cb286dd46f3f0cb3f819a3cfb6ce253c9933b", "4b8b9e58ecd6fd4ca0ae80f2e74b956b26bcc3f7", "035cb286dd46f3f0cb3f819a3cfb6ce253c9933b", "035cb286dd46f3f0cb3f819a3cfb6ce253c9933b" ]
[ "examples/fftPlotAction.py", "src/silx/math/test/test_histogramnd_nominal.py", "examples/customHdf5TreeModel.py", "examples/plot3dContextMenu.py", "src/silx/math/setup.py" ]
[ "#!/usr/bin/env python\n# coding: utf-8\n# /*##########################################################################\n#\n# Copyright (c) 2016-2020 European Synchrotron Radiation Facility\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated document...
[ [ "numpy.abs", "numpy.fft.fft", "numpy.arange", "numpy.cos", "numpy.sin", "numpy.fft.ifft", "numpy.zeros_like" ], [ "numpy.allclose", "numpy.array_equal", "numpy.arange", "numpy.ones", "numpy.repeat", "numpy.array", "numpy.zeros" ], [ "numpy.string...
EndyLab/spaceballs
[ "331ce388674a4b01b56b36dfb3dda26729b107e6", "331ce388674a4b01b56b36dfb3dda26729b107e6" ]
[ "simanalysis_methods.py", "simanalysis.py" ]
[ "\"\"\"\nCreated by Akshay Maheshwari\n09/05/2017\n\nSimulation analysis methods for 2D hard disk systems\n\"\"\"\n\ndef loadOutputList(expt_name,outputType):\n \"\"\"Loads a file containing all file names with a specified output data into a local list\n \n Args:\n expt_name (String): Name of experi...
[ [ "matplotlib.pyplot.Subplot", "pandas.read_csv", "matplotlib.gridspec.GridSpecFromSubplotSpec", "numpy.linspace", "numpy.histogram", "matplotlib.gridspec.GridSpec", "numpy.flip", "matplotlib.ticker.ScalarFormatter", "numpy.array", "numpy.zeros", "matplotlib.pyplot.figure...
Jiang-zzz/Python
[ "3aefbfd88d53dc137dd3b019892d6affb7bc9164" ]
[ "dynamic_programming/max_sub_array.py" ]
[ "\"\"\"\nauthor : Mayank Kumar Jha (mk9440)\n\"\"\"\nfrom typing import List\n\n\ndef find_max_sub_array(A, low, high):\n if low == high:\n return low, high, A[low]\n else:\n mid = (low + high) // 2\n left_low, left_high, left_sum = find_max_sub_array(A, low, mid)\n right_low, righ...
[ [ "matplotlib.pyplot.plot", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.show", "matplotlib.pyplot.ylabel" ] ]
swirkert/ipcai2016
[ "7193b1b1a001511e7efadc2a40b4ab544be76607" ]
[ "scripts/ipcai2016/script_analyze_ipcai_in_silico.py" ]
[ "# -*- coding: utf-8 -*-\n\"\"\"\n\nipcai2016\n\nCopyright (c) German Cancer Research Center,\nComputer Assisted Interventions.\nAll rights reserved.\n\nThis software is distributed WITHOUT ANY WARRANTY; without\neven the implied warranty of MERCHANTABILITY or FITNESS FOR\nA PARTICULAR PURPOSE.\n\nSee LICENSE for d...
[ [ "matplotlib.pyplot.legend", "pandas.DataFrame", "matplotlib.pyplot.plot", "matplotlib.pyplot.gca", "numpy.ones_like", "numpy.arange", "matplotlib.pyplot.figure", "pandas.concat", "matplotlib.pyplot.ylim", "matplotlib.pyplot.fill_between", "numpy.array", "matplotlib....
7vikpeculiar/superset
[ "800ced5e257d5d83d6dbe4ced0e7318ac40d026f" ]
[ "superset/utils/pandas_postprocessing/compare.py" ]
[ "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); y...
[ [ "pandas.concat" ] ]
jkren6/PARL
[ "e8797bd0d31d81bc81aae8b12792ff922bcb8ea9" ]
[ "examples/tutorials/lesson5/ddpg/replay_memory.py" ]
[ "# Copyright (c) 2020 PaddlePaddle Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless ...
[ [ "numpy.array" ] ]
Baozhen-Li/SurfaceTopography
[ "37c70a4020c74dc56a4509969e760259ba93ec61" ]
[ "test/test_variable_bandwidth.py" ]
[ "#\n# Copyright 2017, 2020 Lars Pastewka\n# 2019-2020 Antoine Sanner\n#\n# ### MIT license\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including...
[ [ "numpy.log", "numpy.zeros", "numpy.testing.assert_allclose" ] ]
DSEI21000-S21/project-product-price-prediction
[ "bbd1eb9577b40fcb538a6b33f5ba71096b5af72f" ]
[ "final/model_evaluation/visualizations.py" ]
[ "import numpy as np\nimport pandas as pd\nimport seaborn as sns\nimport matplotlib.pyplot as plt\n\ndef plot_prediction_price(origin, predict, title):\n _, ax = plt.subplots(figsize = (15,5))\n# matplotlib.rcParams['figure.figsize'] = (10, 10)\n ax.scatter(x = range(0, origin.size), y=origin, c = 'blue', labe...
[ [ "matplotlib.pyplot.legend", "matplotlib.pyplot.title", "matplotlib.pyplot.subplots", "matplotlib.pyplot.plot", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.show", "matplotlib.pyplot.ylabel" ] ]
Tzer-AnonBot/tzer
[ "07799222118f757bdcb6a14654a6addda2dcf55c" ]
[ "paper_data/RQ3/plot_nmax.py" ]
[ "import matplotlib\nimport matplotlib.pyplot as plt\nimport pandas\nimport os\nimport re\n\n# plt.rc('font', size=SMALL_SIZE) # controls default text sizes\n# plt.rc('axes', titlesize=SMALL_SIZE) # fontsize of the axes title\nplt.rc('axes', labelsize=16) # fontsize of the x and y labels\n# plt.rc('x...
[ [ "matplotlib.pyplot.legend", "matplotlib.pyplot.tight_layout", "pandas.read_csv", "matplotlib.pyplot.ylim", "matplotlib.pyplot.rc", "matplotlib.pyplot.savefig", "matplotlib.pyplot.plot", "matplotlib.pyplot.ylabel", "matplotlib.pyplot.grid", "matplotlib.pyplot.xlabel", "m...
ThalesGroup/incubator-superset
[ "f6965f99e389436614d79d91765e88a84cc6b258" ]
[ "superset/connectors/druid/models.py" ]
[ "# Licensed to the Apache Software Foundation (ASF) under one\n# or more contributor license agreements. See the NOTICE file\n# distributed with this work for additional information\n# regarding copyright ownership. The ASF licenses this file\n# to you under the Apache License, Version 2.0 (the\n# \"License\"); y...
[ [ "pandas.DataFrame" ] ]
likweitan/final_year_project
[ "a86059cad92efe4edd85364d21b4ee6a56234b30" ]
[ "streamlit/app.py" ]
[ "import streamlit as st\nimport pandas as pd\n\nimport src.models.data_preprocessing as data_preprocessing\n\nimport src.pages.home as home\nimport src.pages.data_exploration as data_exploration\nimport src.pages.problem_statistics as problem_statistics\nimport src.pages.content_statistics as content_statistics\nim...
[ [ "pandas.read_csv" ] ]
L24358/CRIREL
[ "26a95c6e471f783106b57368431166d22242725d" ]
[ "equilibrium_points/sub_basics.py" ]
[ "import os\r\nimport numpy as np\r\nimport dynalysis.basics as bcs\r\nimport dynalysis.classes as clss\r\n\r\n#=====basics=====#\r\ndef vect_len(coor1, coor2):\r\n '''returns: length of vector'''\r\n if len(coor1)!=len(coor2): raise bcs.AlgorithmError('func vect_len')\r\n vect = [coor1[i]-coor2[i] for i in...
[ [ "numpy.array" ] ]
cambel/ur3-tools
[ "820707c1f6dc188f453228cc1b3613978696091e", "820707c1f6dc188f453228cc1b3613978696091e", "820707c1f6dc188f453228cc1b3613978696091e" ]
[ "plot/sac_plot_detail_p24.py", "scripts/plt_test.py", "plot/plotter_utils.py" ]
[ "from plotter_utils import smooth, reformat_large_tick_values\nimport matplotlib.ticker as tick\nimport matplotlib.cm as cm\nimport matplotlib.pyplot as plt\nimport numpy as np\nimport matplotlib\nmatplotlib.use('TkAgg')\n\n\ndef extract_obs(obs):\n # 6 + 6 + 24 + 6*n + 1\n n_extra = 0\n dist = obs[0][:6]....
[ [ "matplotlib.use", "matplotlib.pyplot.subplots", "numpy.rad2deg", "matplotlib.pyplot.savefig", "matplotlib.pyplot.clf", "numpy.load", "numpy.array", "matplotlib.pyplot.show" ], [ "numpy.arange", "matplotlib.pyplot.get_cmap", "numpy.random.rand", "matplotlib.pyplo...
small-zeng/nerf-pytorch
[ "59b5fc655e1c22cd42dfa4a1617ba6feb8ce3464" ]
[ "torchsearchsorted/setup.py" ]
[ "from setuptools import setup, find_packages\r\nfrom torch.utils.cpp_extension import BuildExtension, CUDA_HOME\r\nfrom torch.utils.cpp_extension import CppExtension, CUDAExtension\r\n\r\n# In any case, include the CPU version\r\nmodules = [\r\n CppExtension('torchsearchsorted.cpu',\r\n ['src/cpu...
[ [ "torch.utils.cpp_extension.CUDAExtension", "torch.utils.cpp_extension.CppExtension" ] ]
showkeyjar/beauty
[ "7c944cf896c899d9e23b2e50e293103bb03fe6cd", "7c944cf896c899d9e23b2e50e293103bb03fe6cd", "7c944cf896c899d9e23b2e50e293103bb03fe6cd", "7c944cf896c899d9e23b2e50e293103bb03fe6cd" ]
[ "App/beauty/app/src/main/assets/python/report_lite.py", "dl/autokeras/predict.py", "predict_interpret.py", "dl/scan/part_tflite.py" ]
[ "import io\nimport cv2\nimport math\nimport base64\nimport numpy as np\nfrom PIL import Image\nfrom os.path import dirname, join\nimport tensorflow as tf\nfrom explain_lite import OcclusionSensitivity\n\n\"\"\"\n模型解释\n\"\"\"\nmodel_file = join(dirname(__file__), \"model_beauty_q_v2.tflite\")\ninterpreter = tf.compa...
[ [ "tensorflow.compat.v1.lite.Interpreter", "numpy.fromstring", "tensorflow.keras.preprocessing.image.img_to_array", "tensorflow.keras.preprocessing.image.load_img" ], [ "tensorflow.keras.models.load_model", "pandas.concat", "pandas.read_csv", "tensorflow.keras.preprocessing.image...
TysonReimer/ML-in-BMS
[ "e7be69abb663a8e213ec4683818018746cb92106" ]
[ "run/ai-test/logreg_train_g2_test_g1.py" ]
[ "\"\"\"\r\nTyson Reimer\r\nUniversity of Manitoba\r\nAugust 06th, 2020\r\n\"\"\"\r\n\r\nimport os\r\nimport numpy as np\r\nimport matplotlib.pyplot as plt\r\n\r\nfrom sklearn.metrics import roc_auc_score\r\nfrom sklearn.linear_model import LogisticRegression\r\n\r\nfrom umbms import get_proj_path, get_script_logger...
[ [ "sklearn.metrics.roc_auc_score", "matplotlib.pyplot.tight_layout", "sklearn.linear_model.LogisticRegression", "numpy.linspace", "matplotlib.pyplot.rc", "matplotlib.pyplot.plot", "matplotlib.pyplot.ylabel", "numpy.size", "numpy.zeros_like", "matplotlib.pyplot.close", "ma...
drkostas/tda_examples
[ "3fdef4f890ced14b8e3207bd9393eaf262dd0c24" ]
[ "gda-public/multidim/test_rca1.py" ]
[ "r\"\"\" \nBasic tests of RCA1 algorithm in :class:`multidim.PointCloud` \n\nCopyright\n---------\n- This file is part of https://github.com/geomdata/gda-public/ \n- 2015, 2016, 2017 by Geometric Data Analytics, Inc. (http://geomdata.com)\n- AGPL license. See `LICENSE` or https://github.com/geomdata/gda-public/blob...
[ [ "numpy.load", "numpy.array" ] ]
changhaowu/macaron-net
[ "e37053e34875591f5eea2d6aaf9121819004f1dc" ]
[ "translation/fairseq/data/language_pair_dataset.py" ]
[ "# Copyright (c) 2017-present, Facebook, Inc.\n# All rights reserved.\n#\n# This source code is licensed under the license found in the LICENSE file in\n# the root directory of this source tree. An additional grant of patent rights\n# can be found in the PATENTS file in the same directory.\n\nimport numpy as np\nim...
[ [ "numpy.argsort", "torch.LongTensor", "numpy.array" ] ]
cmgreen210/cudf
[ "89462008c24a647de457ce595ab44c0c0d758450" ]
[ "python/cudf/tests/test_dataframe.py" ]
[ "# Copyright (c) 2018, NVIDIA CORPORATION.\n\nimport operator\nimport pytest\n\nimport numpy as np\nimport pandas as pd\nimport pyarrow as pa\nimport array as arr\n\nfrom librmm_cffi import librmm as rmm\n\nimport cudf as gd\nfrom cudf.dataframe.dataframe import Series, DataFrame\nfrom cudf.dataframe.buffer import ...
[ [ "pandas.Series", "numpy.asarray", "pandas.DataFrame", "numpy.dtype", "numpy.all", "numpy.max", "numpy.random.randn", "pandas.testing.assert_frame_equal", "numpy.random.sample", "numpy.digitize", "numpy.random.randint", "numpy.hstack", "numpy.testing.assert_equal...
kensugino/JUGEMu
[ "3ebf19c96e41f1c90d63d772fd4c9c5cc3d6886f" ]
[ "jgem/plotgenes.py" ]
[ "# => moved to ponder/plotgene.py\n\nimport pandas as PD\nimport numpy as N\nimport matplotlib.pyplot as P\n\n#import bedtools as BT\n#import gtfgffbed as GGB\nimport jgem.utils as UT\n\nimport random\nfrom matplotlib.patches import Rectangle, PathPatch, Circle, Ellipse\nfrom matplotlib.lines import Line2D\nfrom ma...
[ [ "numpy.log2", "numpy.arange", "matplotlib.patches.Rectangle", "matplotlib.path.Path", "matplotlib.lines.Line2D", "matplotlib.pyplot.subplots", "matplotlib.pyplot.get_cmap", "matplotlib.colors.Normalize", "numpy.max", "matplotlib.cm.ScalarMappable", "numpy.sum", "mat...
gundun/theano
[ "09d17fff10487dca7149e34601b8c6efdc572a19", "09d17fff10487dca7149e34601b8c6efdc572a19", "09d17fff10487dca7149e34601b8c6efdc572a19" ]
[ "theano/tensor/nnet/tests/test_conv3d2d.py", "theano/scan_module/tests/test_scan_checkpoints.py", "theano/sandbox/cuda/tests/test_dnn.py" ]
[ "from __future__ import absolute_import, print_function, division\nimport time\n\nfrom nose.plugins.skip import SkipTest\nfrom nose_parameterized import parameterized\nimport numpy\ntry:\n from scipy import ndimage\nexcept ImportError:\n ndimage = None\nfrom six.moves import xrange\n\nimport theano\nfrom thea...
[ [ "numpy.asarray", "numpy.arange", "scipy.ndimage.convolve", "numpy.random.rand", "numpy.zeros" ], [ "numpy.allclose", "numpy.ones" ], [ "numpy.random.random", "numpy.asarray", "numpy.finfo", "numpy.random.normal", "numpy.random.randn", "numpy.random.rand"...
TalSchuster/prototypical-networks
[ "3fb2a0c4ff8f2a463f01fafa6a2f075afc0688e5" ]
[ "train_mini_imagenet.py" ]
[ "import torch.nn.functional as F\nimport torchvision.models as models\nimport torch.utils.data.distributed\nimport torch.utils.data\nimport torch.multiprocessing as mp\nimport torch.optim\nimport torch.distributed as dist\nimport torch.backends.cudnn as cudnn\nimport torch.nn.parallel\nimport torch.nn as nn\nimport...
[ [ "torch.distributed.init_process_group", "torch.multiprocessing.spawn", "torch.cuda.set_device", "torch.load", "torch.manual_seed", "torch.nn.functional.cross_entropy", "torch.utils.data.DataLoader", "torch.nn.Linear", "torch.nn.DataParallel", "torch.no_grad", "torch.ara...
francisyyan/Detectron
[ "e38bf9692792f70b6cfbe6683b61f6e96cb63af0" ]
[ "detectron/utils/vis.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...
[ [ "matplotlib.pyplot.Rectangle", "numpy.nonzero", "matplotlib.pyplot.autoscale", "matplotlib.pyplot.Axes", "matplotlib.pyplot.get_cmap", "numpy.ones", "numpy.concatenate", "matplotlib.pyplot.plot", "numpy.copy", "matplotlib.pyplot.setp", "matplotlib.pyplot.close", "nu...
juanmc2005/MetricAMI
[ "8cb9fbe8dcf5303f1b44007f03492e065e867caf" ]
[ "losses/center.py" ]
[ "#!/usr/bin/env python3\n# -*- coding: utf-8 -*-\nimport torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\n\nclass SoftmaxCenterLoss(nn.Module):\n \"\"\"\n Cross Entropy + Center Loss module\n Reference: https://kpzhang93.github.io/papers/eccv2016.pdf\n :param device: a device in which to...
[ [ "torch.nn.Linear", "torch.nn.NLLLoss", "torch.randn" ] ]
MTandHJ/amoc
[ "0219f560936a23a28b70042ca85dc178000b1f43" ]
[ "linear_std.py" ]
[ "#!/usr/bin/env python\n\nimport torch\nimport torch.nn as nn\nimport argparse\nfrom src.loadopts import *\n\n\n\n\nMETHOD = \"LinearSTD\"\nSAVE_FREQ = 10\nFMT = \"{description}={finetune}-{bn_adv}={learning_policy}-{optim}-{lr}={epochs}-{batch_size}={transform}\"\n\nparser = argparse.ArgumentParser()\nparser.add_a...
[ [ "torch.utils.tensorboard.SummaryWriter" ] ]
dcodos/247scraper
[ "ca841376ceb24711c059a9704398302ad4e47e3a" ]
[ "neural_net.py" ]
[ "import sqlite3\nimport tensorflow as tf\nimport numpy as np\nfrom geopy import geocoders\nimport random\nfrom recruit_dao import *\n\nschools = []\nn_nodes_hl1 = 400\nn_nodes_hl2 = 400\nn_nodes_hl3 = 400\nn_classes = 419\nbatch_size = 100\n\nx = tf.placeholder('float', [None, 481])\ny = tf.placeholder('float')\n\n...
[ [ "tensorflow.nn.relu", "tensorflow.matmul", "tensorflow.nn.softmax_cross_entropy_with_logits", "tensorflow.cast", "tensorflow.placeholder", "tensorflow.initialize_all_variables", "tensorflow.Session", "tensorflow.train.AdamOptimizer", "tensorflow.argmax", "numpy.array", ...
KChen-lab/sensei
[ "591f5214b598f60e2ea21bb8b9955cc529f67eee" ]
[ "python/sensei/unpaired.py" ]
[ "import scipy.stats\nfrom .utils import *\nfrom scipy.stats import mannwhitneyu, ttest_ind, betabinom\n\ndef calc_wilcoxon_fn(M, N, m, s, alpha = 0.05, n_sim = 10_000):\n \"\"\"\n \n :param M: number of patients, as a list\n :param N: number of cells, as a list\n :param m: mean for both groups, as a ...
[ [ "scipy.stats.mannwhitneyu", "scipy.stats.betabinom.rvs" ] ]
loopylangur/numpyro
[ "7892f2bc0eba68f238228198bd2bcfcbcba2207b" ]
[ "examples/gp.py" ]
[ "# Copyright Contributors to the Pyro project.\n# SPDX-License-Identifier: Apache-2.0\n\n\"\"\"\nExample: Gaussian Process\n=========================\n\nIn this example we show how to use NUTS to sample from the posterior\nover the hyperparameters of a gaussian process.\n\n.. image:: ../_static/img/examples/gp.png\...
[ [ "numpy.random.seed", "matplotlib.use", "matplotlib.pyplot.subplots", "numpy.percentile", "matplotlib.pyplot.savefig", "numpy.mean", "numpy.random.randn" ] ]
hsokooti/RegNet
[ "28a8b6132677bb58e9fc811c0dd15d78913c7e86" ]
[ "functions/preprocessing/dirlab.py" ]
[ "import copy\nimport os\nimport numpy as np\nimport SimpleITK as sitk\nimport functions.image.image_processing as ip\n\n\ndef img_converter(data_folder, data, type_im, cn, ext='.mha', mha_folder_name='mha', point_folder_name='points'):\n \"\"\"\n convert img images to mha.\n reading image:\n 1) Size and...
[ [ "numpy.fromfile", "numpy.shape", "numpy.savetxt", "numpy.flip", "numpy.sum", "numpy.loadtxt" ] ]
krangelie/bias-in-german-nlg
[ "9fbaf50fde7d41d64692ae90c41beae61bc78d44" ]
[ "src/evaluate_bias_in_nlg/eval_bias_in_labeled_generations.py" ]
[ "import os\nimport json\n\nimport hydra.utils\nimport pandas as pd\nfrom scipy.stats import chi2, chi2_contingency\nimport matplotlib.pyplot as plt\n\nimport src.constants as constants\nfrom src.evaluate_bias_in_nlg.bias_eval_helpers import (\n single_file_to_dict,\n mult_files_to_dict,\n plot_regard_ratio...
[ [ "scipy.stats.chi2.ppf", "matplotlib.pyplot.tight_layout", "scipy.stats.chi2_contingency", "matplotlib.pyplot.subplots", "pandas.DataFrame", "matplotlib.pyplot.savefig", "matplotlib.pyplot.xlabel", "matplotlib.pyplot.ylabel" ] ]
DonliFly/tensorflow
[ "3db3e972a33760ebe6662341d5f4320a906582f7", "3db3e972a33760ebe6662341d5f4320a906582f7" ]
[ "tensorflow/python/ops/nn_test.py", "tensorflow/python/keras/layers/local_test.py" ]
[ "# Copyright 2015 The TensorFlow Authors. All Rights Reserved.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unless requ...
[ [ "tensorflow.python.ops.nn_ops.data_format_dim_map", "numpy.dot", "numpy.amax", "numpy.expand_dims", "numpy.linspace", "numpy.random.random_sample", "tensorflow.python.ops.array_ops.placeholder", "numpy.concatenate", "tensorflow.python.ops.array_ops.zeros", "numpy.random.ran...
HolgerSpernau/pandas
[ "231a3ce467da04cdfe5bfb4ba37ef91610834ded" ]
[ "pandas/tests/sparse/series/test_series.py" ]
[ "from datetime import datetime\nimport operator\n\nimport numpy as np\nfrom numpy import nan\nimport pytest\n\nfrom pandas._libs.sparse import BlockIndex, IntIndex\nfrom pandas.compat import PY36\nfrom pandas.errors import PerformanceWarning\nimport pandas.util._test_decorators as td\n\nimport pandas as pd\nfrom pa...
[ [ "pandas.util.testing.assert_sp_frame_equal", "pandas.Series", "numpy.take", "numpy.asarray", "pandas.util.testing.assert_produces_warning", "pandas._libs.sparse.IntIndex", "pandas.MultiIndex.from_tuples", "pandas.DataFrame", "pandas.SparseDataFrame", "pandas.util.testing.as...
avimehenwal/tng-sdk-benchmark
[ "e3b39769f4ebdeb02fb26e74ecf8c77ed96d85a6" ]
[ "src/tngsdk/benchmark/resultprocessor/vimemu.py" ]
[ "# Copyright (c) 2018 SONATA-NFV, 5GTANGO, Paderborn University\n# 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/LIC...
[ [ "pandas.DataFrame" ] ]
brugger1/testsuite
[ "9b504db668cdeaf7c561f15b76c95d05bfdd1517" ]
[ "validation_tests/llvm/SOLLVE/pragmas/crout/findMin.py" ]
[ "import pandas\nfrom sklearn import model_selection\nfrom sklearn.linear_model import LogisticRegression\n\ndataframe = pandas.read_csv(\"results.csv\")\narray = dataframe.values\nx = array[:,6]\n\nprint(\"Performance summary based on\", len(array), \"evaluations:\")\nprint(\"Min: \", x.min(), \"s\")\nprint(\"Max: ...
[ [ "pandas.read_csv" ] ]
S2-group/ICSME-2020-replication-package
[ "5c468f2f5552a5971d59fc84581298c9e3c469bc" ]
[ "network/parse-har.py" ]
[ "import sys\nimport json\nimport numpy\nfrom haralyzer import HarParser, HarPage\n\ndef get_number_of_requests(har_page, type):\n return len(har_page.filter_entries(request_type=type, status_code='2.*'))\n\ndef get_load_time(har_page, type):\n return round(har_page.get_load_time(request_type=type, status_code...
[ [ "numpy.mean" ] ]
emildi/pennylane
[ "64901ef2f920f42385b65c8da538941ff36da7be", "64901ef2f920f42385b65c8da538941ff36da7be", "64901ef2f920f42385b65c8da538941ff36da7be" ]
[ "tests/interfaces/test_batch_torch.py", "pennylane/numpy/tensor.py", "pennylane/ops/cv.py" ]
[ "# Copyright 2018-2021 Xanadu Quantum Technologies Inc.\r\n\r\n# Licensed under the Apache License, Version 2.0 (the \"License\");\r\n# you may not use this file except in compliance with the License.\r\n# You may obtain a copy of the License at\r\n\r\n# http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n# Unles...
[ [ "numpy.allclose", "numpy.arange", "numpy.cos", "numpy.sin", "numpy.array" ], [ "numpy.asarray", "numpy.iscomplexobj" ], [ "numpy.diag", "numpy.hstack", "scipy.linalg.block_diag", "numpy.arange", "numpy.eye", "numpy.identity", "numpy.array" ] ]
Ahostility/AnalyzePeople-1
[ "edcd70fd6b236f4fafdbe4565b8a4975c1e084e4" ]
[ "src/diarization/segment_another.py" ]
[ "import numpy as np\n\nmin_time = 3\nd = 0.06\nduration = 1.6\nmax_time = 5\n\n\ndef get_another_fragments(voice_fragments, operator_similarity, wav_splits):\n new_fragments = []\n new_similarity = []\n for voice_fragment in voice_fragments:\n cur_diff = voice_fragment[1] - voice_fragment[0]\n ...
[ [ "numpy.argsort" ] ]
mingminyu/mumu
[ "e9f6c86a0b678ce4467ffba7f3dc4c0c8f971ff8" ]
[ "mumu/feature/_woe.py" ]
[ "# coding: utf-8\n# ================================================\n# Project: mumu\n# File: feature/_woe.py\n# Author: Mingmin Yu\n# Email: yu_ming623@163.com\n# Date: 2021/6/24 18:24\n# Description:\n# ================================================\nimport os\nimport string\nimport logging\nimport math\nimpor...
[ [ "matplotlib.pyplot.legend", "numpy.dot", "numpy.asarray", "pandas.DataFrame", "matplotlib.pyplot.plot", "numpy.max", "numpy.concatenate", "sklearn.tree.DecisionTreeClassifier", "numpy.digitize", "pandas.crosstab", "matplotlib.pyplot.twinx", "numpy.arange", "matp...
stevaras2/bert
[ "1efaa300eb91dea85c40de5e1586e8d2c94b89bb", "1efaa300eb91dea85c40de5e1586e8d2c94b89bb" ]
[ "extract_features.py", "prepare_Fudan.py" ]
[ "# coding=utf-8\n# Copyright 2018 The Google AI Language Team Authors.\n#\n# Licensed under the Apache License, Version 2.0 (the \"License\");\n# you may not use this file except in compliance with the License.\n# You may obtain a copy of the License at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# Unl...
[ [ "tensorflow.contrib.tpu.TPUEstimator", "tensorflow.train.Scaffold", "tensorflow.constant", "tensorflow.gfile.Open", "numpy.asarray", "tensorflow.gfile.GFile", "tensorflow.train.init_from_checkpoint", "tensorflow.logging.info", "tensorflow.logging.set_verbosity", "tensorflow...
tlechauveCLS/kpi_mpc
[ "4dc61d210c2b97e6ac240e54a8d96c35cf9123de" ]
[ "src/kpi_WV_nrcs/reader_nasa_gsfc_distance_to_coast_super_light.py" ]
[ "\"\"\"\nAntoine Grouazel\nNov 2019\n\"\"\"\nimport netCDF4\nimport numpy as np\nimport logging\nfrom src.config import RASTER_NASA_COASTLINE\nnc = netCDF4.Dataset(RASTER_NASA_COASTLINE)\nDISTANCE_COASTs = nc.variables['distance_to_coast'][:]\nLON_COASTs = nc.variables['lon'][:]\nLAT_COASTs = nc.variables['lat'][:]...
[ [ "numpy.array", "numpy.shape", "numpy.floor" ] ]
MehdiZouitine/Learning-Disentangled-Representations-via-Mutual-Information-Estimation
[ "52952aff647a33b749b709cd7f0c3cd059c66b54" ]
[ "src/losses/loss_functions.py" ]
[ "import torch\nimport torch.nn as nn\nimport torch.nn.functional as F\n\nfrom src.utils.custom_typing import GanLossOutput, Tuple\n\n\nclass ClassifLoss(nn.Module):\n \"\"\"Classifier loss\"\"\"\n\n @staticmethod\n def accuracy(y_pred, target):\n return torch.sum(y_pred == target).float().mean()\n\n...
[ [ "torch.nn.CrossEntropyLoss", "torch.nn.functional.softmax", "torch.zeros_like", "torch.sum", "torch.nn.functional.softplus", "torch.ones_like", "torch.argmax" ] ]
artem-oppermann/Deep-Autoencoders-For-Collaborative-Filtering
[ "ae3b9592371ea2ca2fcd16551a051837309c4f14", "ae3b9592371ea2ca2fcd16551a051837309c4f14" ]
[ "src/data/dataset.py", "src/data/preprocess_data.py" ]
[ "import tensorflow as tf\nimport os\n\n\ndef _get_training_data(FLAGS): \n ''' Buildind the input pipeline for training and inference using TFRecords files.\n @return data only for the training\n @return data for the inference\n '''\n \n filenames=[FLAGS.tf_records_train_path+'/'+f for f in os.li...
[ [ "tensorflow.cast", "tensorflow.data.TFRecordDataset", "tensorflow.parse_single_example", "tensorflow.FixedLenFeature" ], [ "numpy.array", "pandas.read_csv", "numpy.zeros" ] ]
gitcheng/probfit
[ "820ce9ee4eee80bbd950be0fbe074b84afc423f8", "820ce9ee4eee80bbd950be0fbe074b84afc423f8" ]
[ "doc/pyplots/costfunc/simul.py", "probfit/plotting.py" ]
[ "from iminuit import Minuit\nfrom probfit import UnbinnedLH, gaussian, SimultaneousFit, rename\nfrom matplotlib import pyplot as plt\nfrom numpy.random import randn, seed\n\nseed(0)\nwidth = 2.\ndata1 = randn(1000)*width + 1\ndata2 = randn(1000)*width + 2\n\n#two gaussian with shared width\npdf1 = rename(gaussian, ...
[ [ "numpy.random.seed", "matplotlib.pyplot.subplot", "numpy.random.randn", "matplotlib.pyplot.suptitle", "matplotlib.pyplot.figure" ], [ "matplotlib.pyplot.gca", "numpy.sqrt", "numpy.linspace", "numpy.copy", "matplotlib.pyplot.subplot", "numpy.diff", "matplotlib.py...
Sapio-S/habitat-lab
[ "47985177d6e6932db98ee6698371253182cf96fb" ]
[ "habitat/sims/habitat_simulator/habitat_simulator.py" ]
[ "#!/usr/bin/env python3\n\n# Copyright (c) Facebook, Inc. and its affiliates.\n# This source code is licensed under the MIT license found in the\n# LICENSE file in the root directory of this source tree.\n\nfrom enum import Enum\nfrom typing import Any, List, Optional\n\nimport numpy as np\nfrom gym import Space, s...
[ [ "numpy.array", "numpy.expand_dims", "numpy.iinfo", "numpy.clip" ] ]
hyperfraise/pytorch-detect-to-track
[ "920aed6948687825d80a0eb2ab21268a5f74f9a8" ]
[ "lib/model/utils/online_tubes.py" ]
[ "import os\nimport glob\nimport shutil\nimport subprocess\nimport time\nfrom collections import deque\n\nimport numpy as np\nimport torch\nimport torch.utils.data as data\nimport cv2\nfrom model.utils.blob import prep_im_for_blob, im_list_to_blob\nfrom model.utils.config import cfg\nfrom model.nms.nms_wrapper impor...
[ [ "torch.max", "torch.cat", "numpy.min", "torch.zeros", "torch.min", "numpy.ndarray", "torch.cuda.LongTensor", "torch.from_numpy", "torch.cuda.FloatTensor", "numpy.max", "numpy.round", "torch.FloatTensor", "torch.sort", "torch.nonzero", "torch.arange", ...
alirezajahani60/flee-release
[ "33646c2224a7ef3677f82c11bf7525083e9e649c" ]
[ "burundi.py" ]
[ "from flee import flee\nfrom datamanager import handle_refugee_data\nfrom datamanager import DataTable\nimport numpy as np\nimport outputanalysis.analysis as a\nimport sys\n\n\"\"\"\nGeneration 1 code. Incorporates only distance, travel always takes one day.\n\"\"\"\n\n#Burundi Simulation\n\n\ndef date_to_sim_days(...
[ [ "numpy.sum" ] ]
xravitejax/OpenSeq2Seq
[ "dd98278b66385911a3143d8f0b95c6d5187935d0", "dd98278b66385911a3143d8f0b95c6d5187935d0" ]
[ "open_seq2seq/parts/tacotron/tacotron_decoder.py", "open_seq2seq/data/text2speech/speech_utils.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.rnn_cell_impl.assert_like_rnncell", "tensorflow.python.framework.ops.name_scope", "tensorflow.python.util.nest.map_structure", "tensorflow.python.framework.tensor_shape.TensorShape" ], [ "numpy.dot", "numpy.exp", "numpy.clip", "numpy.power" ] ]
mit-acl/dc2g
[ "6f739e191c51acd5fb4ecb50609e1c26a10782fd" ]
[ "dc2g/planners/DC2GPlanner.py" ]
[ "from dc2g.planners.FrontierPlanner import FrontierPlanner\nimport numpy as np\nfrom skimage.transform import resize\nimport tensorflow as tf\nimport json\nimport os\n\nimport matplotlib.pyplot as plt\n\n\nclass DC2GPlanner(FrontierPlanner):\n def __init__(self, model_name, traversable_colors, goal_color, room_o...
[ [ "matplotlib.pyplot.imshow", "tensorflow.compat.v1.train.import_meta_graph", "tensorflow.compat.v1.get_default_graph", "numpy.ones", "tensorflow.compat.v1.Session", "numpy.max", "tensorflow.compat.v1.get_collection", "matplotlib.pyplot.subplot", "numpy.array", "matplotlib.py...
PVSemk/segmentation_models.pytorch
[ "8d9b033be918dfc1e6186d9ef404cc7d2c171e8d", "8d9b033be918dfc1e6186d9ef404cc7d2c171e8d" ]
[ "segmentation_models_pytorch/encoders/inceptionv4.py", "segmentation_models_pytorch/encoders/dpn.py" ]
[ "\"\"\" Each encoder should have following attributes and methods and be inherited from `_base.EncoderMixin`\n\nAttributes:\n\n _out_channels (list of int): specify number of channels for each encoder feature tensor\n _depth (int): specify number of stages in decoder (in other words number of downsampling ope...
[ [ "torch.nn.Identity" ], [ "torch.nn.Sequential", "torch.nn.Identity", "torch.cat" ] ]
isabelchaves/BiGIT
[ "6b5ef354f1c9877cad47a48a3e032cd1ba8dccca" ]
[ "src/predictions.py" ]
[ "import numpy as np\nimport pandas as pd\nfrom tqdm import tqdm\n\nfrom src.configs.experiment_config import ExperimentConfig\nfrom src.configs.variables_const import VariablesConsts\nfrom src.data.processing.textual_processing import PreProcessing\nfrom src.evaluation.evaluation_method import EvaluationMethod\n\n\...
[ [ "pandas.read_parquet", "pandas.DataFrame", "numpy.add" ] ]
lukovnikov/parseq
[ "65a4a2444d78779c3255e70a7897f77e73cdcdda", "65a4a2444d78779c3255e70a7897f77e73cdcdda" ]
[ "parseq/scripts_compgen/transformer.py", "parseq/eval.py" ]
[ "\n\"\"\" Copied from Hugging face T5 model code in Pytorch. \"\"\"\n\n\nimport copy\nimport logging\nimport math\nimport os\n\nimport torch\nimport torch.nn.functional as F\nfrom torch import nn\nfrom torch.nn import CrossEntropyLoss\n\nfrom transformers import PretrainedConfig\nfrom transformers.configuration_t5 ...
[ [ "torch.all", "torch.randn_like", "torch.nn.Dropout", "torch.ones", "torch.cat", "torch.einsum", "torch.nn.ModuleList", "torch.nn.Embedding", "torch.nn.LayerNorm", "torch.tensor", "torch.nn.Linear", "torch.matmul", "torch.nn.functional.relu", "torch.relu", ...
sorrowyn/query2labels
[ "03f8aa74caa6e41fb6898bdf29565d10d212dab7" ]
[ "lib/models/tresnet/layers/general_layers.py" ]
[ "import torch\r\nimport torch.nn as nn\r\nimport torch.nn.functional as F\r\n\r\nfrom models.tresnet.layers.avg_pool import FastAvgPool2d\r\n\r\n\r\nclass Flatten(nn.Module):\r\n def forward(self, x):\r\n return x.view(x.size(0), -1)\r\n\r\n\r\nclass DepthToSpace(nn.Module):\r\n\r\n def __init__(self, ...
[ [ "torch.nn.functional.relu6", "torch.nn.ReLU", "torch.nn.Conv2d", "torch.nn.Sigmoid" ] ]
darkknight2223/streamlit-webrtc
[ "30286f5c003d443fac6d7f91a6d84e84eacc0408", "30286f5c003d443fac6d7f91a6d84e84eacc0408" ]
[ "app_deepspeech.py", "app_videochat.py" ]
[ "import logging\nimport logging.handlers\nimport queue\nimport threading\nimport time\nimport urllib.request\nfrom collections import deque\nfrom pathlib import Path\nfrom typing import List\n\nimport av\nimport numpy as np\nimport pydub\nimport streamlit as st\n\nfrom streamlit_webrtc import AudioProcessorBase, We...
[ [ "numpy.zeros" ], [ "numpy.zeros" ] ]
alvaradoo/arkouda
[ "c9e03fb1d8f7d0d1633b80b50353346ad0ffd43f", "c9e03fb1d8f7d0d1633b80b50353346ad0ffd43f" ]
[ "tests/suffixarray_test.py", "arkouda/pdarraycreation.py" ]
[ "import numpy as np\nfrom collections import Counter\nfrom context import arkouda as ak\nfrom base_test import ArkoudaTest\nimport pytest\nimport random\nimport string\nak.verbose = False\n\nN = 100\nUNIQUE = N//2\n\n# test_strings = np.array(['These are', 'some', 'interesting',\n# '~!@#$%^...
[ [ "numpy.array", "numpy.allclose", "numpy.sort", "numpy.unique" ], [ "numpy.array", "numpy.zeros", "numpy.cumsum", "numpy.isscalar" ] ]
igncp/leaves
[ "158f776a07f2a2f7f862f00976889abf0bb30fc9" ]
[ "src/languages/python/test-formatted/Pandas/series-test.py" ]
[ "import unittest\nimport pandas as pd\nimport numpy as np\nfrom pandas import Series\n\n# Using parts of Python for Data Analysis - Wes McKinney\n\nser1 = Series([1, 4, 6, 8])\nser2 = Series([1, 6, -1, 2, None], index=['g', 'r', 'a', 'z', 'u'])\n\n\nclass SeriesTestCase(unittest.TestCase):\n def using_series_test(...
[ [ "pandas.notnull", "pandas.Series" ] ]
FISHackathon2020/RAN
[ "cb5e1459f4d26bd619ba7244979fce277b44aba9", "cb5e1459f4d26bd619ba7244979fce277b44aba9" ]
[ "python/envs/hackathon/lib/python3.7/site-packages/gensim/models/deprecated/word2vec.py", "python/hackathon/src/google_word_similarity/trainer.py" ]
[ "#!/usr/bin/env python\n# -*- coding: utf-8 -*-\n#\n# Copyright (C) 2013 Radim Rehurek <me@radimrehurek.com>\n# Licensed under the GNU LGPL v2.1 - http://www.gnu.org/licenses/lgpl.html\n\n\n\"\"\"\nWarnings\n--------\n.. deprecated:: 3.3.0\n Use :mod:`gensim.models.word2vec` instead.\n\n\nProduce word vectors wit...
[ [ "numpy.dot", "numpy.sqrt", "scipy.special.expit", "numpy.vstack", "numpy.dtype", "numpy.seterr", "numpy.float32", "numpy.outer", "numpy.random.RandomState", "numpy.zeros", "numpy.sum", "numpy.empty" ], [ "sklearn.decomposition.PCA" ] ]
jsexauer/pandas
[ "85703a7806ade5394fe511b8c433cdfca5428593" ]
[ "pandas/tests/test_frame.py" ]
[ "# -*- coding: utf-8 -*-\n\nfrom __future__ import print_function\n# pylint: disable-msg=W0612,E1101\nfrom copy import deepcopy\nfrom datetime import datetime, timedelta, time\nimport sys\nimport operator\nimport re\nimport csv\nimport nose\nimport functools\nimport itertools\nfrom itertools import product, permuta...
[ [ "pandas.util.testing.choice", "pandas.merge", "pandas.core.format.set_option", "numpy.sqrt", "pandas.DataFrame.from_csv", "pandas.util.testing.assert_produces_warning", "pandas.MultiIndex.from_tuples", "pandas.compat.lzip", "numpy.where", "pandas.compat.OrderedDict", "p...
noahshpak/ray
[ "edd783bc327760a4892ab89222ee551e42df15b9", "edd783bc327760a4892ab89222ee551e42df15b9" ]
[ "rllib/models/catalog.py", "rllib/evaluation/per_policy_sample_collector.py" ]
[ "from functools import partial\nimport gym\nimport logging\nimport numpy as np\nimport tree\nfrom typing import List\n\nfrom ray.tune.registry import RLLIB_MODEL, RLLIB_PREPROCESSOR, \\\n RLLIB_ACTION_DIST, _global_registry\nfrom ray.rllib.models.action_dist import ActionDistribution\nfrom ray.rllib.models.model...
[ [ "numpy.product" ], [ "numpy.concatenate", "numpy.array", "numpy.zeros" ] ]
PhanatosZou/nltk
[ "750e488569b6f80c72ae6ca74eff90eae55e6c4e" ]
[ "nltk/metrics/scores.py" ]
[ "# Natural Language Toolkit: Evaluation\n#\n# Copyright (C) 2001-2019 NLTK Project\n# Author: Edward Loper <edloper@gmail.com>\n# Steven Bird <stevenbird1@gmail.com>\n# URL: <http://nltk.org/>\n# For license information, see LICENSE.TXT\n\nfrom math import fabs\nimport operator\nfrom random import shuffle\n...
[ [ "scipy.stats.stats.betai" ] ]
nmaeder/UmbrellaPipeline
[ "b2b3d0cadd8d6660e7a617f6204be042efd2d40a" ]
[ "UmbrellaPipeline/tests/test_thorough.py" ]
[ "import os, pytest, time, math\nimport openmmtools\nfrom openmm import Vec3, unit, app\nimport numpy as np\nimport warnings\n\nfrom UmbrellaPipeline import UmbrellaPipeline\nfrom UmbrellaPipeline.analysis import PMFCalculator\nfrom UmbrellaPipeline.path_finding import (\n Tree,\n Grid,\n GridNode,\n Tre...
[ [ "numpy.zeros" ] ]
MarceloJacinto/dsorlib
[ "5208919579726b73f088605885f6e1f0bf17d297" ]
[ "vehicles/disturbances/gaussian_disturbance.py" ]
[ "# MIT License\n#\n# Copyright (c) 2021 Marcelo Jacinto\n#\n# Permission is hereby granted, free of charge, to any person obtaining a copy\n# of this software and associated documentation files (the \"Software\"), to deal\n# in the Software without restriction, including without limitation the rights\n# to us...
[ [ "numpy.maximum", "numpy.minimum", "numpy.random.normal", "numpy.array", "numpy.zeros" ] ]
petergtz/io
[ "1f80d7dfcc824eb9803ea977228ae19249ade13f" ]
[ "tensorflow_io/core/python/ops/audio_io_tensor_ops.py" ]
[ "# Copyright 2018 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.TensorShape", "tensorflow.name_scope", "tensorflow.shape" ] ]
abagaria/RBFDQN
[ "0b31d4083abf0b1a9721a7bb0411bbe3fd873422" ]
[ "novelty_classifier.py" ]
[ "import numpy as np\nfrom thundersvm import OneClassSVM\nfrom tqdm import tqdm\n\n\nclass NoveltyDetectionClassifier(object):\n def __init__(self, nu_high, nu_low, nu_resolution, gamma=\"scale\"):\n self.nu_high = nu_high\n self.nu_low = nu_low\n self.nu_resolution = nu_resolution\n\n ...
[ [ "numpy.arange", "numpy.array", "numpy.mean" ] ]
cpcloud/ibis-bigquery
[ "e3997d42752ec49f4b8c8625097682b27ef4d350" ]
[ "ibis_bigquery/compiler.py" ]
[ "\"\"\"Module to convert from Ibis expression to SQL string.\"\"\"\n\nimport base64\nimport datetime\nfrom functools import partial\n\nimport ibis\nfrom ibis.backends.base.sql import compiler\n\ntry:\n import ibis.common.exceptions as com\nexcept ImportError:\n import ibis.common as com\n\nimport ibis.expr.da...
[ [ "numpy.isfinite" ] ]
ggsonic/BertSum
[ "7f5ce04507e92f07d51dc823ed4e42873b35f4a6" ]
[ "src/models/encoder.py" ]
[ "import math\n\nimport torch\nimport torch.nn as nn\n\nfrom models.neural import MultiHeadedAttention, PositionwiseFeedForward\nfrom models.rnn import LayerNormLSTM\n\n\nclass Classifier(nn.Module):\n def __init__(self, hidden_size):\n super(Classifier, self).__init__()\n self.linear1 = nn.Linear(h...
[ [ "torch.nn.Dropout", "torch.transpose", "torch.zeros", "torch.nn.LayerNorm", "torch.nn.Sigmoid", "torch.nn.Linear", "torch.arange" ] ]
mitdo/o2ac-ur
[ "f684f21fd280a22ec061dc5d503801f6fefb2422", "f684f21fd280a22ec061dc5d503801f6fefb2422" ]
[ "catkin_ws/src/o2ac_routines/src/o2ac_routines/assembly.py", "catkin_ws/src/o2ac_routines/src/o2ac_routines/robot_base.py" ]
[ "#!/usr/bin/env python\n\n# Software License Agreement (BSD License)\n#\n# Copyright (c) 2021, OMRON SINIC X\n# All rights reserved.\n#\n# Redistribution and use in source and binary forms, with or without\n# modification, are permitted provided that the following conditions\n# are met:\n#\n# * Redistributions of ...
[ [ "numpy.deg2rad" ], [ "numpy.all", "numpy.array" ] ]
Lucmon/TopologyDetect
[ "79607f3ce39a1ee6ded41b2500629065cf1cfe51", "79607f3ce39a1ee6ded41b2500629065cf1cfe51" ]
[ "e2efold_rt/experiment_rnastralign/e2e_learning_stage1_rnastralign_all_long.py", "e2efold_rt/experiment_archiveii/e2e_learning_stage1.py" ]
[ "import os\nfrom e2efold.common.config import process_config\nfrom e2efold.common.utils import get_args\nargs = get_args()\n\nconfig_file = args.config\n\nconfig = process_config(config_file)\nprint(\"#####Stage 1#####\")\nprint('Here is the configuration of this run: ')\nprint(config)\nos.environ[\"CUDA_VISIBLE_DE...
[ [ "torch.utils.data.DataLoader" ], [ "torch.utils.data.DataLoader" ] ]
wslerry/sketch_simplification
[ "e47c95e9c77757d520725628937fe610ba04c8f9" ]
[ "simplify.py" ]
[ "import torch\nfrom torchvision import transforms\nfrom torchvision.utils import save_image\n#from torch.utils.serialization import load_lua\nimport torchfile\n\nfrom PIL import Image\nimport argparse\n\nparser = argparse.ArgumentParser(description='Sketch simplification demo.')\nparser.add_argument('--model', type...
[ [ "torch.cuda.device_count", "torch.nn.ReplicationPad2d" ] ]
ShrishtiHore/DL_Text_Predictor
[ "049696f1995b2e23b95f7283b07b37982c77b681" ]
[ "text_predictor.py" ]
[ "import tensorflow as tf\nfrom data_provider import DataProvider\nfrom rnn_model import RNNModel\nimport sys\nimport matplotlib\nimport numpy as np\nimport time\nmatplotlib.use(\"Agg\")\nimport matplotlib.pyplot as plt\n\n# Args\nif len(sys.argv) != 2:\n print(\"Please select a dataset.\")\n print(\"Usage: py...
[ [ "tensorflow.summary.FileWriter", "matplotlib.pyplot.title", "matplotlib.use", "tensorflow.assign", "matplotlib.pyplot.savefig", "tensorflow.global_variables_initializer", "tensorflow.summary.merge_all", "numpy.mean", "matplotlib.pyplot.close", "tensorflow.Session", "mat...
arti1117/deep-learning-from-scratch
[ "6ee8cb8c16b396bfd7cb6ad6530c00bf503c6440" ]
[ "CHAPTER03/sigmoid.py" ]
[ "import numpy as np\n\ndef sigmoid(x):\n return 1 / (1 + np.exp(-x))\n\n" ]
[ [ "numpy.exp" ] ]
danjampro/panoptes-utils
[ "ff51019cdd0e188cf5e8d8d70fc3579776a31716" ]
[ "src/panoptes/utils/images/bayer.py" ]
[ "from decimal import Decimal\nfrom enum import IntEnum\n\nimport numpy as np\nfrom astropy.io import fits\nfrom astropy.stats import SigmaClip\nfrom loguru import logger\nfrom panoptes.utils.images import fits as fits_utils\nfrom photutils import Background2D\nfrom photutils import BkgZoomInterpolator\nfrom photuti...
[ [ "numpy.ma.array", "numpy.array", "numpy.ones_like" ] ]
tsalo/rapidtide
[ "9e0faff6e9796c21bd62d4b98c309034c0eba766" ]
[ "rapidtide/OrthoImageItem.py" ]
[ "#!/usr/bin/env python\n# -*- coding: latin-1 -*-\n#\n# Copyright 2016-2021 Blaise Frederick\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.or...
[ [ "numpy.rint", "numpy.round", "numpy.max", "numpy.zeros", "numpy.where" ] ]
JinxedQAQ/Generating-Talking-Face-with-Controllable-Eye-Movements-by-Disentangled-Blinking-Feature
[ "c1b68c010ccfb6b1d438dba97a1317ce0ae2aab8", "c1b68c010ccfb6b1d438dba97a1317ce0ae2aab8" ]
[ "util/util.py", "test_all_h_1v1.py" ]
[ "from __future__ import print_function\nimport torch\nimport numpy as np\nfrom PIL import Image\nimport inspect, re\nimport torch.nn as nn\nimport os\nfrom Options_all import BaseOptions\nimport collections\nconfig = BaseOptions().parse()\n\n\ndef tensor2im(image_tensor, imtype=np.uint8):\n image_numpy = image_t...
[ [ "torch.abs", "numpy.min", "torch.load", "numpy.median", "numpy.max", "numpy.std", "numpy.mean", "numpy.transpose" ], [ "torch.utils.data.DataLoader" ] ]
bentzinir/baselines
[ "5ed3f9a37272f0b7d9db3daac5e1b0a442588ff3" ]
[ "baselines/her/paper_utils/env_scripts.py" ]
[ "import sys\nfrom baselines.common.cmd_util import common_arg_parser\nfrom baselines.run import parse_cmdline_kwargs\nfrom baselines.her.metric_diversification import MetricDiversifier\nfrom baselines.her.cover_measure import init_from_point\nimport gym\n#import gym_maze\nimport numpy as np\nimport time\nfrom basel...
[ [ "numpy.minimum", "numpy.asarray", "numpy.set_printoptions", "numpy.zeros_like", "numpy.mean" ] ]
hank-ai/gradio
[ "00af5ec1abbaa3160ec45f58a22909f6453f7182" ]
[ "gradio/interface.py" ]
[ "\"\"\"\nThis is the core file in the `gradio` package, and defines the Interface class, including methods for constructing the\ninterface using the input and output types.\n\"\"\"\n\nimport gradio\nfrom gradio.inputs import InputComponent\nfrom gradio.outputs import OutputComponent\nfrom gradio import networking, ...
[ [ "tensorflow.get_default_graph", "tensorflow.keras.backend.get_session" ] ]
ykaitao/gluon-ts
[ "9622550974e9e0819e25438fc45353f8a6474b55", "9622550974e9e0819e25438fc45353f8a6474b55" ]
[ "src/gluonts/model/deepstate/issm.py", "evaluations/show_results.py" ]
[ "# Copyright 2018 Amazon.com, Inc. or its affiliates. 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# A copy of the License is located at\n#\n# http://www.apache.org/licenses/LICENSE-2.0\n#\n# or ...
[ [ "pandas.tseries.frequencies.to_offset" ], [ "pandas.DataFrame" ] ]
matangover/Wave-U-Net
[ "6f44febbda3cb685d92f9e0b84e7f06e13d03fba" ]
[ "scripts/preprocess.py" ]
[ "from sacred import Experiment\nfrom Config import config_ingredient\nimport tensorflow as tf\nimport numpy as np\nimport os\n\nimport Datasets\nimport Utils\nimport Models.UnetAudioSeparator\n\nex = Experiment('Waveunet Preprocessing', ingredients=[config_ingredient])\n\n@ex.config\n# Executed for training, sets t...
[ [ "numpy.array" ] ]
NCAR/mom6-tools
[ "e5a605eab97013a421a7ea8a93ae950f9e429730" ]
[ "mom6_tools/stats.py" ]
[ "#!/usr/bin/env python\n\n\"\"\"\nFunctions used to calculate statistics.\n\"\"\"\n\nimport xarray as xr\nimport numpy as np\nimport matplotlib.pyplot as plt\nfrom mom6_tools.DiagsCase import DiagsCase\nfrom mom6_tools.ClimoGenerator import ClimoGenerator\nfrom mom6_tools.m6toolbox import genBasinMasks, request_wor...
[ [ "numpy.isnan", "numpy.ma.masked_invalid", "matplotlib.pyplot.close" ] ]
deniztas/Dota2-Winner
[ "bc3f033c87cfdf00dd7bbe3e4e38f0efb1c58dc3" ]
[ "dota2.py" ]
[ "from helper import DataControl, DatasetFormatter, JsonReader, Scorer\nimport pandas as pd\nimport numpy as np\nfrom time import time as getTime\nimport matplotlib.pyplot as plt\nfrom sklearn import model_selection\nfrom sklearn.ensemble import RandomForestClassifier\nfrom sklearn.tree import DecisionTreeClassifier...
[ [ "sklearn.neural_network.MLPClassifier", "pandas.read_csv", "sklearn.model_selection.cross_val_score", "sklearn.model_selection.train_test_split", "sklearn.model_selection.KFold", "sklearn.neighbors.KNeighborsClassifier", "matplotlib.pyplot.show" ] ]
GCES-Pydemic/pydemic-ui
[ "8e3d8bc9f73887edf6bd8ab78a4ead29fe8239ed" ]
[ "pydemic_ui/apps/sitrep/abstract.py" ]
[ "import pandas as pd\n\nimport mundi\nimport sidekick as sk\nfrom pydemic_ui import st\nfrom pydemic_ui.i18n import _\n\nDISPLAY_NAME = _(\"Abstract\")\nABSTRACT = _(\n \"\"\"\n## Update from the last 24 hours (as {date} Brasilia Time)\n\n**{cases}** additional cases and **{deaths}** additional deaths reported f...
[ [ "pandas.Series" ] ]
dcbau/FreeGrid
[ "f9d72bbaa92b5da3d9c7d480981f6aedd559ecce", "75a4754fc2bdc2e05e682b7fcac017d05f9c3185" ]
[ "GUI/main_window.py", "grid_improving/angular_distance.py" ]
[ "# -*- coding: utf-8 -*-\n\n\nfrom PyQt5 import QtCore, QtGui, QtWidgets\nimport numpy as np\nimport os\nfrom GUI.audio_device_widget import AudioDeviceWidget\nfrom GUI.plot_widget import PlotWidget, PlotWidget_HPIRs, PlotWidget_HPCF\n\nuse_vispy = True\ntry:\n from GUI.vispyWidget import VispyCanvas\nexcept Imp...
[ [ "numpy.array" ], [ "numpy.dot", "numpy.ones_like", "numpy.sqrt", "numpy.einsum", "numpy.clip", "numpy.cos", "numpy.sin", "numpy.arctan2" ] ]
OptimalDesignLab/pyStatReduce
[ "9ea128409b91dd582e574e2e1cc153572b6c60a4", "9ea128409b91dd582e574e2e1cc153572b6c60a4" ]
[ "pystatreduce/doc/plot/plot_hadamard/run_hadamard_eigen_accuracy.py", "pystatreduce/optimize/rosenbrock/pyopt_uq_rosenbrock.py" ]
[ "# run_hadamard_eigen_accuracy\nimport os\nimport sys\nimport errno\n\nimport numpy as np\nimport chaospy as cp\n\nfrom pystatreduce.stochastic_collocation import StochasticCollocation\nfrom pystatreduce.quantity_of_interest import QuantityOfInterest\nfrom pystatreduce.dimension_reduction import DimensionReduction\...
[ [ "numpy.diag", "numpy.min", "numpy.linalg.norm", "numpy.max", "numpy.mean", "numpy.random.randn", "numpy.savetxt" ], [ "numpy.eye", "numpy.ones" ] ]
JappaB/Active_Learning_Object_Detection
[ "3d9ad367aa872cbf3e9d71c566042c78fe2d0e76" ]
[ "active_learning_package/voc_eval_helpers.py" ]
[ "import os\nimport numpy as np\nimport pickle\nimport xml.etree.ElementTree as ET\nimport time\nimport sys\n\nimport torch\nfrom torch.autograd import Variable\n\nimport data\nfrom . import helpers\n\n\ndef eval(test_dataset, args, net, al_iteration, eval_ensemble_idx = 99999, epochs_test = False, train_iters = Non...
[ [ "numpy.maximum", "numpy.minimum", "numpy.linspace", "numpy.arange", "numpy.cumsum", "numpy.sort", "numpy.finfo", "numpy.concatenate", "numpy.max", "numpy.argmax", "numpy.mean", "numpy.where", "torch.cuda.is_available", "numpy.argsort", "numpy.array", ...
thomasbarillot/DAQ
[ "20126655f74194757d25380680af9429ff27784e" ]
[ "eTOF/ADQAPI_python/FWPD/modules/example_helpers.py" ]
[ "import ctypes as ct\r\nimport sys\r\nimport matplotlib.pyplot as plt\r\nimport matplotlib.patches as patches\r\nimport numpy as np\r\nimport os\r\n\r\n# Setup for individual channels, these are default values\r\nclass channel_setup:\r\n def __init__(self, channel):\r\n # Set channel\r\n self.channel = chann...
[ [ "numpy.append", "matplotlib.patches.Rectangle", "matplotlib.pyplot.draw" ] ]
qnity/insurance_python
[ "8dff5e365e3749b76adaeea90d89909af5f3c1b0" ]
[ "stationary-bootstrap/StationaryBootstrap.py" ]
[ "import numpy as np\r\n\r\ndef StationaryBootstrap(data: np.ndarray, m, sampleLength)-> np.ndarray:\r\n \"\"\"\r\n Returns a bootstraped sample of the time-series \"data\" of length \"sampleLength. \r\n The algorithm used is stationary bootstrap from 1994 Politis & Romano.\r\n \r\n Args: \r\n ...
[ [ "numpy.random.uniform", "numpy.zeros", "numpy.random.randint" ] ]