repo_name
string
path
string
copies
string
size
string
content
string
license
string
zrhans/pythonanywhere
.virtualenvs/django19/lib/python3.4/site-packages/pandas/tests/test_nanops.py
9
40509
# -*- coding: utf-8 -*- from __future__ import division, print_function from functools import partial import warnings import numpy as np from pandas import Series from pandas.core.common import isnull, is_integer_dtype import pandas.core.nanops as nanops import pandas.util.testing as tm use_bn = nanops._USE_BOTTLENE...
apache-2.0
hvasbath/beat
beat/plotting.py
1
171926
from pymc3 import plots as pmp from pymc3 import quantiles import math import os import logging import copy from beat import utility from beat.models import Stage, load_stage from beat.models.corrections import StrainRateCorrection from beat.sampler.metropolis import get_trace_stats from beat.heart import (init_seis...
gpl-3.0
Delosari/dazer
bin/lib/Astro_Libraries/spectrum_fitting/plot_tools.py
1
47742
import numpy as np import corner import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec from matplotlib import cm from matplotlib import rcParams from matplotlib import colors from matplotlib.mlab import detrend_mean from mpl_toolkits.mplot3d import Axes3D from numpy import array, reshape, empty, ceil, ...
mit
gfyoung/pandas
pandas/core/strings/accessor.py
1
100231
import codecs from functools import wraps import re from typing import Dict, List, Optional import warnings import numpy as np import pandas._libs.lib as lib from pandas.util._decorators import Appender from pandas.core.dtypes.common import ( ensure_object, is_bool_dtype, is_categorical_dtype, is_int...
bsd-3-clause
openDAQ/opendaq-gui
daq_control/main.py
1
42392
#!/usr/bin/env python # Copyright 2012 # Adrian Alvarez <alvarez@ingen10.com> and Juan Menendez <juanmb@ingen10.com> # # This file is part of opendaq. # # opendaq is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free So...
lgpl-3.0
ai-se/george
testRig.py
1
51380
from __future__ import division,print_function import sys, random, math import numpy as np from sklearn.tree import DecisionTreeClassifier , DecisionTreeRegressor from sklearn.linear_model import LinearRegression from lib import * from where2 import * import Technix.sk as sk import Technix.CoCoMo as CoCoMo import Techn...
mit
pravsripad/mne-python
mne/dipole.py
3
57802
# -*- coding: utf-8 -*- """Single-dipole functions and classes.""" # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # # License: Simplified BSD from copy import deepcopy import functools from functools import partial import re import numpy as np from .cov ...
bsd-3-clause
jlowin/airflow
airflow/www/views.py
1
92442
# -*- coding: utf-8 -*- # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software ...
apache-2.0
rsivapr/scikit-learn
sklearn/neighbors/tests/test_neighbors.py
5
31813
import warnings from itertools import product import numpy as np from scipy.sparse import (bsr_matrix, coo_matrix, csc_matrix, csr_matrix, dok_matrix, lil_matrix) from sklearn.cross_validation import train_test_split from sklearn.utils.testing import assert_array_almost_equal from sklearn.ut...
bsd-3-clause
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/pandas/tests/types/test_inference.py
7
31375
# -*- 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 """ import nose import collections import re from datetime import datetime, date, timedelta, time import numpy as np import pandas as pd from pandas import ...
gpl-3.0
tmpgit/intellij-community
python/helpers/pydev/pydevd.py
4
99854
#IMPORTANT: pydevd_constants must be the 1st thing defined because it'll keep a reference to the original sys._getframe from __future__ import nested_scopes # Jython 2.1 support import pydev_monkey_qt from pydevd_utils import save_main_module import pydevd_utils pydev_monkey_qt.patch_qt() import traceback from pyde...
apache-2.0
louispotok/pandas
pandas/tests/tseries/offsets/test_offsets.py
1
130504
import os from distutils.version import LooseVersion from datetime import date, datetime, timedelta import pytest from pandas.compat import range from pandas import compat import numpy as np from pandas.compat.numpy import np_datetime64_compat from pandas.core.series import Series from pandas._libs.tslibs.frequenci...
bsd-3-clause
bmcfee/librosa
librosa/core/audio.py
2
49849
#!/usr/bin/env python # -*- coding: utf-8 -*- """Core IO, DSP and utility functions.""" import pathlib import warnings import soundfile as sf import audioread import numpy as np import scipy.signal import resampy from numba import jit from .fft import get_fftlib from .convert import frames_to_samples, time_to_sample...
isc
ESSS/numpy
numpy/lib/function_base.py
5
150005
from __future__ import division, absolute_import, print_function import warnings import sys import collections import operator import numpy as np import numpy.core.numeric as _nx from numpy.core import linspace, atleast_1d, atleast_2d from numpy.core.numeric import ( ones, zeros, arange, concatenate, array, asarr...
bsd-3-clause
alexandrebarachant/mne-python
mne/preprocessing/maxwell.py
2
84848
# -*- coding: utf-8 -*- # Authors: Mark Wronkiewicz <wronk.mark@gmail.com> # Eric Larson <larson.eric.d@gmail.com> # Jussi Nurminen <jnu@iki.fi> # License: BSD (3-clause) from math import factorial from os import path as op import numpy as np from scipy import linalg from .. import __version__ fr...
bsd-3-clause
willettk/rgz-analysis
python/consensus_multi_ir.py
2
57512
from __future__ import division ''' consensus.py This is the collation and aggregation code for the Radio Galaxy Zoo project. The main intent of the code is to take in the raw classifications generated by Ouroboros (as a MongoDB file), combine classifications by independent users, and generate a single cons...
mit
tseaver/google-cloud-python
bigquery/google/cloud/bigquery/job.py
1
124592
# Copyright 2015 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, s...
apache-2.0
JPFrancoia/scikit-learn
sklearn/utils/estimator_checks.py
3
58667
from __future__ import print_function import types import warnings import sys import traceback import pickle from copy import deepcopy import numpy as np from scipy import sparse import struct from sklearn.externals.six.moves import zip from sklearn.externals.joblib import hash, Memory from sklearn.utils.testing imp...
bsd-3-clause
gregcaporaso/scikit-bio
skbio/stats/distance/_base.py
1
44987
# ---------------------------------------------------------------------------- # Copyright (c) 2013--, scikit-bio development team. # # Distributed under the terms of the Modified BSD License. # # The full license is in the file COPYING.txt, distributed with this software. # --------------------------------------------...
bsd-3-clause
e-q/scipy
scipy/signal/ltisys.py
3
128113
""" ltisys -- a collection of classes and functions for modeling linear time invariant systems. """ # # Author: Travis Oliphant 2001 # # Feb 2010: Warren Weckesser # Rewrote lsim2 and added impulse2. # Apr 2011: Jeffrey Armstrong <jeff@approximatrix.com> # Added dlsim, dstep, dimpulse, cont2discrete # Aug 2013: Jua...
bsd-3-clause
plotly/python-api
packages/python/plotly/plotly/graph_objs/scattercarpet/marker/_colorbar.py
1
69857
from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): # class properties # -------------------- _parent_path_str = "scattercarpet.marker" _path_str = "scattercarpet.marker.colorbar" _valid_props = { ...
mit
cxxgtxy/tensorflow
tensorflow/contrib/learn/python/learn/estimators/estimator_test.py
1
46526
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
zuku1985/scikit-learn
sklearn/externals/joblib/parallel.py
33
32728
""" Helpers for embarrassingly parallel code. """ # Author: Gael Varoquaux < gael dot varoquaux at normalesup dot org > # Copyright: 2010, Gael Varoquaux # License: BSD 3 clause from __future__ import division import os import sys from math import sqrt import functools import time import threading import itertools fr...
bsd-3-clause
asimshankar/tensorflow
tensorflow/contrib/metrics/python/ops/metric_ops_test.py
17
282180
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
ryfeus/lambda-packs
Pandas_numpy/source/pandas/io/sql.py
1
58662
# -*- coding: utf-8 -*- """ Collection of query wrappers / abstractions to both facilitate data retrieval and to reduce dependency on DB-specific API. """ from __future__ import print_function, division from datetime import datetime, date, time import warnings import re import numpy as np import pandas._libs.lib as ...
mit
hyperion-rt/hyperion
hyperion/dust/dust_type.py
1
31342
############################################################################## # # File format versions: # # 1: initial version # # 2: now contains reciprocal planck opacity and rosseland opacity # previous rosseland opacity was actually reciprocal planck opacity # ###############################################...
bsd-2-clause
sauloal/cnidaria
scripts/venv/lib/python2.7/site-packages/pandas/sparse/tests/test_sparse.py
1
67074
# pylint: disable-msg=E1101,W0612 import operator from datetime import datetime import functools import nose from numpy import nan import numpy as np import pandas as pd dec = np.testing.dec from pandas.util.testing import (assert_almost_equal, assert_series_equal, assert_frame_equa...
mit
Designist/sympy
sympy/utilities/runtests.py
34
81153
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
bsd-3-clause
xtotdam/leipzig-report
arrhenuis/arrhenius.py
1
30926
from scipy.stats import linregress import numpy as np from pprint import pprint from matplotlib import pyplot as plt, ticker import matplotlib.lines as mlines import sys import argparse parser = argparse.ArgumentParser() parser.add_argument('--skipplots', action='store_true', required=False, help='skip arrhen...
mit
kambysese/mne-python
mne/decoding/transformer.py
14
30673
# -*- coding: utf-8 -*- # Authors: Mainak Jas <mainak@neuro.hut.fi> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Romain Trachel <trachelr@gmail.com> # # License: BSD (3-clause) import numpy as np from .mixin import TransformerMixin from .base import BaseEstimator from .. import pick_types f...
bsd-3-clause
nan86150/ImageFusion
lib/python2.7/site-packages/matplotlib/axes/_base.py
10
115150
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import xrange import itertools import warnings import math from operator import itemgetter import numpy as np from numpy import ma import matplotlib rcParams = matplotlib.rcParams ...
mit
jesuscript/topo-mpi
contrib/jsldefs.py
1
77574
""" File containing definitions used by jude law. """ import topo import matplotlib import os, topo, __main__ import pylab import numpy from numpy import exp,zeros,ones,concatenate,median, abs,array,where, ravel from pylab import save import copy import param from math import pi, sqrt from matplotlib.figure import Fig...
bsd-3-clause
chrysante87/pyterpol
synthetic/makespectrum.py
1
45773
import os import sys import copy import warnings import numpy as np import matplotlib.pyplot as plt from astropy.constants import c from auxiliary import is_within_interval from auxiliary import instrumental_broadening from auxiliary import interpolate_spec from auxiliary import interpolate_block_faster from auxiliary ...
gpl-2.0
rousseab/pymatgen
pymatgen/symmetry/bandstructure.py
1
32428
# coding: utf-8 from __future__ import division, unicode_literals """ Created on March 25, 2013 @author: geoffroy """ import numpy as np from math import ceil from math import cos from math import sin from math import tan from math import pi from warnings import warn from pymatgen.symmetry.analyzer import Spacegro...
mit
giorgiop/scikit-learn
sklearn/linear_model/ridge.py
13
51357
""" Ridge regression """ # Author: Mathieu Blondel <mathieu@mblondel.org> # Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com> # Fabian Pedregosa <fabian@fseoane.net> # Michael Eickenberg <michael.eickenberg@nsup.org> # License: BSD 3 clause from abc import ABCMeta, abstractmethod impor...
bsd-3-clause
vnaidu/loan-status
src/vn_datasci/blagging.py
1
35981
"""B(l)agging meta-estimator, modified to handle imbalanced distributions.""" # Based on bagging.py. # Original Author: Gilles Louppe <g.louppe@gmail.com> # License: BSD 3 clause # # Adaptations by Tom Fawcett <tfawcett@acm.org>, noted as TEF inline. # # NOTE: This is NOT an official file of sklearn. It is based on #...
mit
dato-code/numpy
numpy/core/tests/test_multiarray.py
4
198902
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import os import shutil import warnings import operator import io if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decimal import Decimal import numpy as np fro...
bsd-3-clause
s-good/AutoQC
tests/EN_track_validation.py
1
70742
# Recall parameters are queried from the database in the order uid, year, month, day, time, lat, long, probe import util.main as main import os, math from wodpy import wod import numpy, pandas import util.testingProfile import qctests.EN_track_check import util.geo class TestClass(): distRes = 20000. #meters ...
mit
fabianp/scikit-learn
sklearn/metrics/classification.py
28
67703
"""Metrics to assess performance on classification task given classe prediction Functions named as ``*_score`` return a scalar value to maximize: the higher the better Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: the lower the better """ # Authors: Alexandre Gramfort <alexandre.gram...
bsd-3-clause
rerpy/rerpy
rerpy/events.py
1
47408
# This file is part of rERPy # Copyright (C) 2012-2013 Nathaniel Smith <njs@pobox.com> # See file LICENSE.txt for license information. # Need to put this somewhere, so... # # NOTES ON SQLITE3 TRANSACTION HANDLING # ------------------------------------- # # The Python sqlite3 module has really confusing transaction beh...
gpl-2.0
hitszxp/scikit-learn
sklearn/tests/test_cross_validation.py
2
41896
"""Test the cross_validation module""" from __future__ import division import warnings import numpy as np from scipy.sparse import coo_matrix from scipy import stats from sklearn.utils.testing import assert_true from sklearn.utils.testing import assert_false from sklearn.utils.testing import assert_equal from sklearn...
bsd-3-clause
pong3489/TEST_Mission
Lib/site-packages/numpy/lib/polynomial.py
58
35930
""" Functions to operate on polynomials. """ __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] import re import warnings import numpy.core.numeric as NX from numpy.core import isscalar, abs, finfo, atleas...
gpl-3.0
tudorian/eden
controllers/msg.py
3
80678
# -*- coding: utf-8 -*- """ Messaging Module - Controllers """ module = request.controller resourcename = request.function if not settings.has_module(module): raise HTTP(404, body="Module disabled: %s" % module) # ----------------------------------------------------------------------------- def index(): ...
mit
f3r/scikit-learn
sklearn/metrics/tests/test_classification.py
20
50188
from __future__ import division, print_function import numpy as np from scipy import linalg from functools import partial from itertools import product import warnings from sklearn import datasets from sklearn import svm from sklearn.datasets import make_multilabel_classification from sklearn.preprocessing import la...
bsd-3-clause
Kate-Willett/HadISDH_Marine_Build
ANALYSIS_PLOTS/MakeObsCountList_APR2016.py
1
53529
#!/usr/local/sci/bin/python # PYTHON2.7 # # Author: Kate Willett # Created: 23 April 2016 # Last update: 23 April 2016 # Location: /data/local/hadkw/HADCRUH2/MARINE/EUSTACEMDS/EUSTACE_SST_MAT/ # GitHub: https://github.com/Kate-Willett/HadISDH_Marine_Build/ # ----------------------- # CODE PURPOSE AND OUTPUT # ---...
cc0-1.0
woodscn/scipy
scipy/stats/stats.py
9
179575
# Copyright (c) Gary Strangman. All rights reserved # # Disclaimer # # This software is provided "as-is". There are no expressed or implied # warranties of any kind, including, but not limited to, the warranties # of merchantability and fitness for a given application. In no event # shall Gary Strangman be liable fo...
bsd-3-clause
astrofrog/numpy
numpy/lib/polynomial.py
12
37449
""" Functions to operate on polynomials. """ __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] import re import warnings import numpy.core.numeric as NX from numpy.core import isscalar, abs, finfo, atleas...
bsd-3-clause
rstoneback/pysat
pysat/tests/test_files.py
2
45371
""" tests the pysat meta object and code """ import glob import numpy as np import os import sys from nose.tools import raises import pandas as pds import tempfile import pysat import pysat.instruments.pysat_testing if sys.version_info[0] >= 3: from importlib import reload as re_load else: re_load = reload ...
bsd-3-clause
gotgenes/BiologicalProcessNetworks
scripts/summarize_bpns.py
1
97780
#!/usr/bin/env python # -*- coding: UTF-8 -*- # Copyright (c) 2011 Christopher D. Lasher # # This software is released under the MIT License. Please see # LICENSE.txt for details. """Calculates the overlap between significant links.""" import collections import datetime import itertools import logging import math ...
mit
uglyboxer/linear_neuron
net-p3/lib/python3.5/site-packages/sklearn/tree/tree.py
1
33517
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
mit
ashhher3/scikit-learn
sklearn/preprocessing/data.py
3
39819
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # License: BSD 3 clause from itertools import chain, combinations import numbers import numpy as np f...
bsd-3-clause
vlas-sokolov/pyspeckit
pyspeckit/spectrum/models/model.py
1
47916
""" ============================= Generic SpectralModel wrapper ============================= .. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com> """ import numpy as np from pyspeckit.mpfit import mpfit,mpfitException from pyspeckit.spectrum.parinfo import ParinfoList,Parinfo import copy from astropy import log...
mit
lthurlow/Network-Grapher
proj/external/numpy-1.7.0/build/lib.linux-i686-2.7/numpy/fft/fftpack.py
9
39261
""" Discrete Fourier Transforms Routines in this module: fft(a, n=None, axis=-1) ifft(a, n=None, axis=-1) rfft(a, n=None, axis=-1) irfft(a, n=None, axis=-1) hfft(a, n=None, axis=-1) ihfft(a, n=None, axis=-1) fftn(a, s=None, axes=None) ifftn(a, s=None, axes=None) rfftn(a, s=None, axes=None) irfftn(a, s=None, axes=None...
mit
TNick/pyl2extra
pyl2extra/models/overfeat_class_labels.py
1
42789
# -*- coding: utf-8 -*- """ This module was retreived from https://github.com/sklearn-theano/sklearn-theano/blob/master/sklearn_theano/feature_extraction/overfeat_class_labels.py The content of the LICENSE file follows: Copyright (c) 2014, Kyle Kastner and Michael Eickenberg All rights reserved. Redistribution and u...
bsd-3-clause
jmontoyam/mne-python
mne/channels/channels.py
2
36805
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Matti Hamalainen <msh@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # Andrew Dykstra <andrew.r.dykstra@gmail.com> # Teon Brooks <teon.brooks@gmail.com> # # License: BSD (3-clause) import os ...
bsd-3-clause
asnorkin/sentiment_analysis
site/lib/python2.7/site-packages/sklearn/tree/tree.py
7
44619
""" This module gathers tree-based methods, including decision, regression and randomized trees. Single and multi-output problems are both handled. """ # Authors: Gilles Louppe <g.louppe@gmail.com> # Peter Prettenhofer <peter.prettenhofer@gmail.com> # Brian Holt <bdholt1@gmail.com> # Noel Da...
mit
ashmanmode/TTSDNNRepo
src/work_in_progress/oliver/run_tpdnn.py
3
102468
import cPickle import gzip import os, sys, errno import time import math # numpy & theano imports need to be done in this order (only for some numpy installations, not sure why) import numpy # we need to explicitly import this in some cases, not sure why this doesn't get imported with numpy itself import numpy.distu...
apache-2.0
pratapvardhan/pandas
pandas/core/dtypes/cast.py
1
44306
""" routings for casting """ from datetime import datetime, timedelta import numpy as np import warnings from pandas._libs import tslib, lib from pandas._libs.tslib import iNaT from pandas.compat import string_types, text_type, PY3 from .common import (_ensure_object, is_bool, is_integer, is_float, ...
bsd-3-clause
Newman101/scipy
scipy/interpolate/interpolate.py
14
104866
""" Classes for interpolating values. """ from __future__ import division, print_function, absolute_import __all__ = ['interp1d', 'interp2d', 'spline', 'spleval', 'splmake', 'spltopp', 'ppform', 'lagrange', 'PPoly', 'BPoly', 'NdPPoly', 'RegularGridInterpolator', 'interpn'] import itertools fro...
bsd-3-clause
RobertABT/heightmap
build/matplotlib/lib/matplotlib/colorbar.py
4
47866
''' Colorbar toolkit with two classes and a function: :class:`ColorbarBase` the base class with full colorbar drawing functionality. It can be used as-is to make a colorbar for a given colormap; a mappable object (e.g., image) is not needed. :class:`Colorbar` the derived class ...
mit
dssg/wikienergy
disaggregator/build/pandas/pandas/tests/test_generic.py
1
52839
# -*- coding: utf-8 -*- # pylint: disable-msg=E1101,W0612 from datetime import datetime, timedelta import nose import numpy as np from numpy import nan import pandas as pd from pandas import (Index, Series, DataFrame, Panel, isnull, notnull, date_range, period_range) from pandas.core.index import ...
mit
Dronecode/MAVProxy
MAVProxy/modules/lib/MacOS/backend_wx.py
6
72673
from __future__ import division, print_function """ A wxPython backend for matplotlib, based (very heavily) on backend_template.py and backend_gtk.py Author: Jeremy O'Donoghue (jeremy@o-donoghue.com) Derived from original copyright work by John Hunter (jdhunter@ace.bsd.uchicago.edu) Copyright (C) Jeremy O'Dono...
gpl-3.0
gclenaghan/scikit-learn
sklearn/externals/joblib/parallel.py
17
35626
""" Helpers for embarrassingly parallel code. """ # Author: Gael Varoquaux < gael dot varoquaux at normalesup dot org > # Copyright: 2010, Gael Varoquaux # License: BSD 3 clause from __future__ import division import os import sys import gc import warnings from math import sqrt import functools import time import thr...
bsd-3-clause
Neurosim-lab/netpyne
netpyne/metadata/metadata.py
1
132453
""" Module containing NetPyNE metadata """ from __future__ import unicode_literals from __future__ import print_function from __future__ import division from __future__ import absolute_import from future import standard_library standard_library.install_aliases() metadata = { # ---------------------------------------...
mit
astocko/statsmodels
statsmodels/emplike/descriptive.py
8
38775
""" Empirical likelihood inference on descriptive statistics This module conducts hypothesis tests and constructs confidence intervals for the mean, variance, skewness, kurtosis and correlation. If matplotlib is installed, this module can also generate multivariate confidence region plots as well as mean-variance con...
bsd-3-clause
xray/xray
xarray/tests/test_coding_times.py
1
33660
import warnings from itertools import product import numpy as np import pandas as pd import pytest from pandas.errors import OutOfBoundsDatetime from xarray import DataArray, Dataset, Variable, coding, decode_cf from xarray.coding.times import ( cftime_to_nptime, decode_cf_datetime, encode_cf_datetime, ...
apache-2.0
mapillary/OpenSfM
opensfm/stats.py
1
31368
import datetime import math import os import random import statistics from collections import defaultdict from functools import lru_cache import matplotlib as mpl import matplotlib.cm as cm import matplotlib.colors as colors import matplotlib.pyplot as plt import numpy as np from opensfm import io, multiview, feature_...
bsd-2-clause
sampadsaha5/sympy
sympy/utilities/runtests.py
7
82184
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
bsd-3-clause
matteobachetti/srt-single-dish-tools
srttools/imager.py
1
58021
"""Produce calibrated images. ``SDTimage`` is a script that, given a list of cross scans composing an on-the-fly map, is able to calculate the map and save it in FITS format after cleaning the data. """ from __future__ import (absolute_import, division, print_function) import numpy as np impor...
bsd-3-clause
Featuretools/featuretools
featuretools/tests/synthesis/test_deep_feature_synthesis.py
1
50179
import copy import pandas as pd import pytest import featuretools as ft from featuretools.feature_base import ( AggregationFeature, DirectFeature, IdentityFeature, TransformFeature ) from featuretools.primitives import ( # CumMean, Absolute, AddNumeric, Count, CumCount, CumMean, ...
bsd-3-clause
numpy/numpy
numpy/lib/function_base.py
2
162009
import collections.abc import functools import re import sys import warnings import numpy as np import numpy.core.numeric as _nx from numpy.core import transpose from numpy.core.numeric import ( ones, zeros_like, arange, concatenate, array, asarray, asanyarray, empty, ndarray, around, floor, ceil, take, dot, w...
bsd-3-clause
ryfeus/lambda-packs
Tensorflow_Pandas_Numpy/source3.6/pandas/plotting/_core.py
1
126105
# being a bit too dynamic # pylint: disable=E1101 from __future__ import division import warnings import re from collections import namedtuple from distutils.version import LooseVersion import numpy as np from pandas.util._decorators import cache_readonly import pandas.core.common as com from pandas.core.base import...
mit
astrofrog/hyperion
hyperion/model/analytical_yso_model.py
1
30768
from __future__ import print_function, division from copy import deepcopy import numpy as np from . import Model from ..densities import FlaredDisk, AlphaDisk, PowerLawEnvelope, UlrichEnvelope, AmbientMedium from ..util.interpolate import interp1d_fast_loglog from ..util.constants import pi, sigma, c, G from ..sourc...
bsd-2-clause
lovexiaov/SandwichApp
.eggs/py2app-0.9-py2.7.egg/py2app/build_app.py
9
77527
""" Mac OS X .app build command for distutils Originally (loosely) based on code from py2exe's build_exe.py by Thomas Heller. """ from __future__ import print_function import imp import sys import os import zipfile import plistlib import shlex import shutil import textwrap import pkg_resources import collections from...
apache-2.0
jzt5132/scikit-learn
sklearn/grid_search.py
61
37197
""" The :mod:`sklearn.grid_search` includes utilities to fine-tune the parameters of an estimator. """ from __future__ import print_function # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # ...
bsd-3-clause
strint/tensorflow
tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined_test.py
2
64729
# Copyright 2016 The TensorFlow Authors. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applica...
apache-2.0
leylabmpi/pyTecanFluent
pyTecanFluent/Map2Robot.py
1
30410
from __future__ import print_function # import ## batteries import os import re import sys import argparse import functools from itertools import product,cycle ## 3rd party import numpy as np import pandas as pd ## package from pyTecanFluent import Utils from pyTecanFluent import Fluent from pyTecanFluent import Labwar...
mit
jakobworldpeace/scikit-learn
sklearn/svm/tests/test_svm.py
19
35876
""" Testing for Support Vector Machine module (sklearn.svm) TODO: remove hard coded numerical results when possible """ import numpy as np import itertools from numpy.testing import assert_array_equal, assert_array_almost_equal from numpy.testing import assert_almost_equal from numpy.testing import assert_allclose fro...
bsd-3-clause
robert-digit/superset
superset/connectors/druid/models.py
1
39487
# pylint: disable=invalid-unary-operand-type from collections import OrderedDict import json import logging from copy import deepcopy from datetime import datetime, timedelta from six import string_types import requests import sqlalchemy as sa from sqlalchemy import ( Column, Integer, String, ForeignKey, Text, Boo...
apache-2.0
chrsrds/scikit-learn
sklearn/linear_model/tests/test_ridge.py
1
43025
import numpy as np import scipy.sparse as sp from scipy import linalg from itertools import product import pytest from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import assert_allclose from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert...
bsd-3-clause
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/model_selection/tests/test_search.py
1
30845
"""Test the search module""" import pickle import sys from collections import Iterable, Sized from itertools import chain, product import numpy as np import scipy.sparse as sp from scipy.stats import bernoulli, expon, uniform from sklearn.base import BaseEstimator from sklearn.datasets import make_blobs from sklearn....
mit
vitaliykomarov/NEUCOGAR
nest/noradrenaline/nest-2.10.0/topology/pynest/hl_api.py
9
67672
# -*- coding: utf-8 -*- # # hl_api.py # # This file is part of NEST. # # Copyright (C) 2004 The NEST Initiative # # NEST is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 2 of the License, or # (a...
gpl-2.0
hsiaoyi0504/scikit-learn
sklearn/metrics/tests/test_common.py
27
44210
from __future__ import division, print_function from functools import partial from itertools import product import numpy as np import scipy.sparse as sp from sklearn.datasets import make_multilabel_classification from sklearn.preprocessing import LabelBinarizer, MultiLabelBinarizer from sklearn.utils.multiclass impo...
bsd-3-clause
jseabold/statsmodels
statsmodels/graphics/gofplots.py
1
34471
from statsmodels.compat.python import lzip import numpy as np from scipy import stats from statsmodels.distributions import ECDF from statsmodels.regression.linear_model import OLS from statsmodels.tools.decorators import cache_readonly from statsmodels.tools.tools import add_constant from . import utils __all__ = ...
bsd-3-clause
bringingheavendown/numpy
numpy/core/tests/test_multiarray.py
1
259254
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools import functools import ctypes import os import gc from contextlib import contextmanager if sys.version_info[0] >= 3: import builti...
bsd-3-clause
hugobowne/scikit-learn
sklearn/svm/tests/test_svm.py
29
31448
""" Testing for Support Vector Machine module (sklearn.svm) TODO: remove hard coded numerical results when possible """ import numpy as np import itertools from numpy.testing import assert_array_equal, assert_array_almost_equal from numpy.testing import assert_almost_equal from scipy import sparse from nose.tools im...
bsd-3-clause
18padx08/PPTex
PPTexEnv_x86_64/lib/python2.7/site-packages/matplotlib/backends/backend_ps.py
10
62836
""" A PostScript backend, which can produce both PostScript .ps and .eps """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import StringIO import glob, math, os, shutil, sys, time def _fn_name(): return sys._getframe(1).f_code.c...
mit
omeed-maghzian/mtag
ldsc_mod/munge_sumstats.py
1
31956
#!/usr/bin/env python from __future__ import division from __future__ import absolute_import import pandas as pd import numpy as np import os import sys import traceback import gzip import bz2 import argparse from scipy.stats import chi2 import logging from ldsc_mod.ldscore import allele_info import time np.seterr(inva...
gpl-3.0
Erotemic/ibeis
ibeis/other/detectcore.py
1
34726
# -*- coding: utf-8 -*- """Developer convenience functions for ibs (detections). TODO: need to split up into sub modules: consistency_checks feasibility_fixes move the export stuff to dbio then there are also convineience functions that need to be ordered at least within this file """ from __futur...
apache-2.0
jpautom/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
14
39946
""" Testing for the gradient boosting module (sklearn.ensemble.gradient_boosting). """ import warnings import numpy as np from itertools import product from scipy.sparse import csr_matrix from scipy.sparse import csc_matrix from scipy.sparse import coo_matrix from sklearn import datasets from sklearn.base import clo...
bsd-3-clause
zaxtax/scikit-learn
sklearn/gaussian_process/gpc.py
42
31571
"""Gaussian processes classification.""" # Authors: Jan Hendrik Metzen <jhm@informatik.uni-bremen.de> # # License: BSD 3 clause import warnings from operator import itemgetter import numpy as np from scipy.linalg import cholesky, cho_solve, solve from scipy.optimize import fmin_l_bfgs_b from scipy.special import erf...
bsd-3-clause
mayavanand/RMMAFinalProject
azimuth/util.py
2
45317
import pandas import matplotlib.pylab as plt import scipy.stats import scipy as sp import numpy as np import itertools import sklearn.metrics import Bio.SeqUtils.MeltingTemp as Tm import Bio.Entrez as Entrez import Bio.SeqUtils as SeqUtil import features.microhomology as microhomology from Bio import SeqIO import metri...
bsd-3-clause
18padx08/PPTex
PPTexEnv_x86_64/lib/python2.7/site-packages/matplotlib/colors.py
10
57606
""" A module for converting numbers or color arguments to *RGB* or *RGBA* *RGB* and *RGBA* are sequences of, respectively, 3 or 4 floats in the range 0-1. This module includes functions and classes for color specification conversions, and for mapping numbers to colors in a 1-D array of colors called a colormap. Color...
mit
Akshay0724/scikit-learn
sklearn/metrics/tests/test_common.py
7
43069
from __future__ import division, print_function from functools import partial from itertools import product import numpy as np import scipy.sparse as sp from sklearn.datasets import make_multilabel_classification from sklearn.preprocessing import LabelBinarizer from sklearn.utils.multiclass import type_of_target fro...
bsd-3-clause
mistercrunch/panoramix
superset/db_engine_specs/base.py
1
52473
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
apache-2.0
rwgdrummer/maskgen
maskgen/tool_set.py
1
138337
# ============================================================================= # Authors: PAR Government # Organization: DARPA # # Copyright (c) 2016 PAR Government # All rights reserved. # ============================================================================== import imghdr import math import platform import ...
bsd-3-clause
raoulbq/scipy
scipy/stats/_distn_infrastructure.py
6
112709
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import from scipy._lib.six import string_types, exec_ import sys import keyword import re import inspect import types import warnings from scipy.misc impor...
bsd-3-clause
anhaidgroup/py_entitymatching
py_entitymatching/tests/test_catalog.py
1
33641
import os from nose.tools import * import unittest import pandas as pd import numpy as np from py_entitymatching.utils.generic_helper import get_install_path import py_entitymatching.catalog.catalog_manager as cm import py_entitymatching.utils.catalog_helper as ch from py_entitymatching.io.parsers import read_csv_meta...
bsd-3-clause
jyhmiinlin/cineFSE
GeRaw/pfileparser.py
1
125830
import matplotlib.pyplot import numpy # import correctmotion #import nitime.algorithms.spectral # N=256 # width = 3 # n_bases= 30 # v,e = nitime.algorithms.spectral.dpss_windows(N,width, n_bases ) # print(v.shape) import AverageHermitian # from Im2Polar import * ''' Created on 2013/1/14 @author: sr...
gpl-3.0
mjudsp/Tsallis
sklearn/linear_model/ridge.py
4
49614
""" Ridge regression """ # Author: Mathieu Blondel <mathieu@mblondel.org> # Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com> # Fabian Pedregosa <fabian@fseoane.net> # Michael Eickenberg <michael.eickenberg@nsup.org> # License: BSD 3 clause from abc import ABCMeta, abstractmethod impor...
bsd-3-clause