repo_name stringlengths 6 112 | path stringlengths 4 204 | copies stringlengths 1 3 | size stringlengths 4 6 | content stringlengths 714 891k | license stringclasses 15
values | hash int64 -9,223,135,201,861,841,000 9,223,183,049B | line_mean float64 6 99.4 | line_max int64 17 1k | alpha_frac float64 0.25 0.89 | autogenerated bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|
adamrvfisher/TechnicalAnalysisLibrary | PriceRelativeRemoteSignalATROptimizerTwoAsset.py | 1 | 7759 | # -*- coding: utf-8 -*-
"""
Created on Wed Aug 30 19:07:37 2017
@author: AmatVictoriaCuramIII
"""
import numpy as np
import random as rand
import pandas as pd
import time as t
from DatabaseGrabber import DatabaseGrabber
from YahooGrabber import YahooGrabber
Empty = []
Dataset = pd.DataFrame()
Portfolio =... | apache-2.0 | -6,308,838,753,224,976,000 | 36.61194 | 101 | 0.608197 | false |
neutrons/FastGR | addie/processing/idl/table_handler.py | 1 | 22403 | from __future__ import (absolute_import, division, print_function)
#import re
import glob
import os
import numpy as np
from qtpy.QtCore import (Qt)
from qtpy.QtGui import (QCursor)
from qtpy.QtWidgets import (QFileDialog, QMenu, QMessageBox, QTableWidgetSelectionRange)
import addie.processing.idl.populate_master_table... | mit | 796,581,622,623,209,200 | 39.148746 | 120 | 0.573138 | false |
ryanjmccall/nupic.research | union_pooling/union_pooling/experiments/union_sdr_overlap/plot_experiment.py | 4 | 4392 | #!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2015, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions ... | gpl-3.0 | -4,415,004,528,747,624,400 | 30.826087 | 77 | 0.673042 | false |
AhmedHani/Kaggle-Machine-Learning-Competitions | Medium/Toxic Comment Classification Challenge/train_ffnn.py | 1 | 1063 | import numpy as np
import pandas as pd
from keras.models import Model
from keras.layers import Dense, Embedding, Input
from keras.layers import LSTM, Bidirectional, GlobalMaxPool1D, Dropout
from keras.preprocessing import text, sequence
from keras.callbacks import EarlyStopping, ModelCheckpoint
max_features = 20000
m... | mit | 61,240,177,327,376,260 | 35.689655 | 88 | 0.775165 | false |
ecervera/mindstorms-nb | nxt/functions.py | 1 | 7333 | import json
import shutil
from IPython.core.display import display, HTML
def configure(n):
config = {
'version' : 'nxt',
'number' : n
}
with open('../task/robot_config.json', 'w') as f:
json.dump(config, f)
shutil.copyfile('./functions.py', '../task/functions.py')
print("\x... | mit | -1,915,779,626,699,435,000 | 34.634146 | 346 | 0.609309 | false |
leojohnthomas/ahkab | ekv.py | 1 | 25762 | # -*- coding: iso-8859-1 -*-
# ekv.py
# Partial implementation of the EKV 3.0 MOS transistor model
# Copyright 2010 Giuseppe Venturini
#
# The EKV model was developed by Matthias Bucher, Christophe Lallement,
# Christian Enz, Fabien Théodoloz, François Krummenacher at the Electronics
# Laboratories, Swiss Federal In... | gpl-2.0 | 2,957,746,477,690,178,000 | 33.296937 | 251 | 0.636914 | false |
ceroytres/RBM | binary_RBM.py | 1 | 4503 | from __future__ import print_function
import numpy as np
from numba import jit
class binary_RBM(object):
def __init__(self,n_visible=None,n_hidden=256,batchSize=256,lr=0.1,alpha=0,
mu=.95,epochs=1,k=10):
self.n_hidden=n_hidden
self.n_visible=n_visible
self.batchSize=batch... | mit | -6,674,141,656,296,916,000 | 28.431373 | 90 | 0.487897 | false |
bloyl/mne-python | mne/channels/tests/test_layout.py | 4 | 14417 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
#
# License: Simplified BSD
import copy
import os.path as op
import numpy as np
from numpy.testing im... | bsd-3-clause | -6,684,274,647,835,185,000 | 38.283379 | 79 | 0.623569 | false |
mailund/pairwise-IM | IMSystem.py | 1 | 3547 | from numpy import matrix
from scipy.linalg import expm
## Constants used as indices in rate and transition matrices
LINEAGES_IN_SEP_POPS = 0
LINEAGES_IN_POP_1 = 1
LINEAGES_IN_POP_2 = 2
COALESCED = 3
NOT_COALESCED = [0,1,2]
def make_rate_matrix(c1, c2, m12, m21):
'''Create a rate matrix based on coalescence rates ... | gpl-3.0 | 5,477,560,428,867,526,000 | 36.336842 | 95 | 0.572597 | false |
ky822/Data_Bootcamp | Code/Python/WB_wdi_all.py | 2 | 2294 | """
Messing around with World Bank data. We start by reading in the whole WDI
from the online csv. Since the online file is part of a zipped collection,
this turned into an exploration of how to handle zip files -- see Section 1.
Section 2 (coming) does slicing and plotting.
Prepared for the NYU Course "Data Boo... | mit | 3,442,475,768,866,982,000 | 30.424658 | 102 | 0.709677 | false |
AtsushiSakai/jsk_visualization_packages | jsk_rqt_plugins/src/jsk_rqt_plugins/hist.py | 1 | 7882 | #!/usr/bin/env python
from rqt_gui_py.plugin import Plugin
from python_qt_binding import loadUi
from python_qt_binding.QtCore import Qt, QTimer, qWarning, Slot
from python_qt_binding.QtGui import QAction, QIcon, QMenu, QWidget
from python_qt_binding.QtGui import QWidget, QVBoxLayout, QSizePolicy, QColor
from rqt_py_com... | mit | 4,489,442,462,833,596,400 | 39.214286 | 113 | 0.632581 | false |
guziy/basemap | examples/save_background.py | 2 | 1364 | from __future__ import (absolute_import, division, print_function)
import matplotlib, sys
matplotlib.use('Agg')
from mpl_toolkits.basemap import Basemap
import matplotlib.pyplot as plt
# this example shows how to save a map background and
# reuse it in another figure.
# make sure we have all the same properties on a... | gpl-2.0 | 4,759,339,645,438,496,000 | 32.268293 | 66 | 0.76173 | false |
vatsan/pandas_via_psql | setup.py | 2 | 4301 | from setuptools import setup, find_packages
from distutils.util import convert_path
import os,sys
from fnmatch import fnmatchcase
# Provided as an attribute, so you can append to these instead
# of replicating them:
standard_exclude = ('*.pyc', '*$py.class', '*~', '.*', '*.bak')
standard_exclude_directories = ('.*', '... | bsd-2-clause | -4,267,674,333,726,588,400 | 40.355769 | 95 | 0.549872 | false |
stephane-caron/pymanoid | examples/contact_stability/zmp_support_area.py | 3 | 5631 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# Copyright (C) 2015-2020 Stephane Caron <stephane.caron@normalesup.org>
#
# This file is part of pymanoid <https://github.com/stephane-caron/pymanoid>.
#
# pymanoid is free software: you can redistribute it and/or modify it under the
# terms of the GNU General Public Lic... | gpl-3.0 | -3,208,270,963,893,853,000 | 30.110497 | 79 | 0.640206 | false |
rema-git/lichtmalen | image_to_tpm2.py | 1 | 3589 | #!/usr/bin/python
# -*- coding: utf-8 -*-
"""
Created on Mon Oct 27 00:33:17 2014
@author: Reinhardt A.W. Maier <rema@zaehlwerk.net>
"""
import os
import argparse
import binascii
import numpy as np
import Image as pil
#import textwrap
#import matplotlib.pyplot as plt
def tpm2(image, lastFrameBlack=False):
"""
... | gpl-3.0 | -8,740,749,091,339,044,000 | 28.178862 | 111 | 0.629145 | false |
activitynet/ActivityNet | Evaluation/get_ava_active_speaker_performance.py | 1 | 8421 | r"""Compute active speaker detection performance for the AVA dataset.
Please send any questions about this code to the Google Group ava-dataset-users:
https://groups.google.com/forum/#!forum/ava-dataset-users
Example usage:
python -O get_ava_active_speaker_performance.py \
-g testdata/eval.csv \
-p testdata/predictio... | mit | -3,192,975,491,083,719,000 | 33.093117 | 80 | 0.676879 | false |
CCS-Lab/hBayesDM | Python/hbayesdm/models/_pst_Q.py | 1 | 10143 | from typing import Sequence, Union, Any
from collections import OrderedDict
from numpy import Inf, exp
import pandas as pd
from hbayesdm.base import TaskModel
from hbayesdm.preprocess_funcs import pst_preprocess_func
__all__ = ['pst_Q']
class PstQ(TaskModel):
def __init__(self, **kwargs):
super().__ini... | gpl-3.0 | -2,116,428,267,287,271,000 | 42.161702 | 566 | 0.643104 | false |
linebp/pandas | pandas/tests/dtypes/test_inference.py | 1 | 35947 | # -*- coding: utf-8 -*-
"""
These the test the public routines exposed in types/common.py
related to inference and not otherwise tested in types/test_common.py
"""
from warnings import catch_warnings
import collections
import re
from datetime import datetime, date, timedelta, time
from decimal import Decimal
import n... | bsd-3-clause | 3,442,768,526,486,067,000 | 33.300573 | 79 | 0.567919 | false |
Ernestyj/PyStudy | finance/DaysTest/MICAnalysis.py | 1 | 4363 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
import numpy as np
from minepy import MINE
import pandas as pd
import seaborn as sns
import matplotlib.pyplot as plt
sns.set(style="white", context="talk")
from sklearn import preprocessing
pd.set_option('display.max_rows', 500)
pd.set_option('display.max_columns', 30)
p... | apache-2.0 | -3,788,239,183,814,603,000 | 29.06993 | 104 | 0.604327 | false |
End of preview. Expand in Data Studio
- Downloads last month
- 160