repo_name
string
path
string
copies
string
size
string
content
string
license
string
rohit21122012/DCASE2013
runs/2016/dnn2016med_traps/traps2/src/dataset.py
55
78980
#!/usr/bin/env python # -*- coding: utf-8 -*- import locale import socket import tarfile import urllib2 import zipfile from sklearn.cross_validation import StratifiedShuffleSplit, KFold from files import * from general import * from ui import * class Dataset(object): """Dataset base class. The specific da...
mit
yufengg/tensorflow
tensorflow/contrib/learn/python/learn/estimators/estimator_test.py
16
46691
# 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
Tong-Chen/scikit-learn
sklearn/cross_validation.py
2
50225
""" The :mod:`sklearn.cross_validation` module includes utilities for cross- validation and performance evaluation. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Grisel <olivier.grisel@ensta.org> # License: BSD 3 clause from...
bsd-3-clause
jereze/scikit-learn
sklearn/utils/estimator_checks.py
31
52862
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
edwardb/sattrackV2
base.py
2
54414
#!/usr/bin/python # -*- coding: utf-8 -*- """Basic methods to help plot and interpret experimental data This module contains the following classes: - :class:`ArrowLine` - A matplotlib subclass to draw an arrowhead on a line - :class:`Quantity` - Named tuple class for a constant physical quantity and the following f...
gpl-3.0
rmcgibbo/scipy
scipy/stats/tests/test_morestats.py
2
44608
# Author: Travis Oliphant, 2002 # # Further enhancements and tests added by numerous SciPy developers. # from __future__ import division, print_function, absolute_import import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (TestCase, run_module_suite, assert_array_equal, ...
bsd-3-clause
MartialD/hyperspy
hyperspy/_signals/eds.py
2
44775
# -*- coding: utf-8 -*- # Copyright 2007-2016 The HyperSpy developers # # This file is part of HyperSpy. # # HyperSpy 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 3 of the License, or # (at...
gpl-3.0
saketkc/statsmodels
statsmodels/discrete/tests/test_discrete.py
19
55886
""" Tests for discrete models Notes ----- DECIMAL_3 is used because it seems that there is a loss of precision in the Stata *.dta -> *.csv output, NOT the estimator for the Poisson tests. """ # pylint: disable-msg=E1101 from statsmodels.compat.python import range import os import numpy as np from numpy.testing import ...
bsd-3-clause
hlin117/scikit-learn
sklearn/tree/tests/test_tree.py
17
64758
""" Testing for the tree module (sklearn.tree). """ import copy import pickle from functools import partial from itertools import product import struct import numpy as np from scipy.sparse import csc_matrix from scipy.sparse import csr_matrix from scipy.sparse import coo_matrix from sklearn.random_projection import s...
bsd-3-clause
mgr0dzicki/python-neo
neo/io/neuralynxio.py
2
106780
# -*- coding: utf-8 -*- """ Class for reading data from Neuralynx files. This IO supports NCS, NEV and NSE file formats. Depends on: numpy Supported: Read Author: Julia Sprenger, Carlos Canova Adapted from the exampleIO of python-neo """ # needed for python 3 compatibility from __future__ import absolute_import, di...
bsd-3-clause
ericmckean/syzygy
third_party/numpy/files/numpy/lib/function_base.py
16
109648
__docformat__ = "restructuredtext en" __all__ = ['select', 'piecewise', 'trim_zeros', 'copy', 'iterable', 'percentile', 'diff', 'gradient', 'angle', 'unwrap', 'sort_complex', 'disp', 'extract', 'place', 'nansum', 'nanmax', 'nanargmax', 'nanargmin', 'nanmin', 'vectorize', 'asarray_chkfinite', 'av...
apache-2.0
lancezlin/ml_template_py
lib/python2.7/site-packages/matplotlib/backends/backend_pgf.py
7
36822
from __future__ import (absolute_import, division, print_function, unicode_literals) from matplotlib.externals import six import math import os import sys import errno import re import shutil import tempfile import codecs import atexit import weakref import warnings import numpy as np import...
mit
Mistobaan/tensorflow
tensorflow/contrib/metrics/python/ops/metric_ops_test.py
7
266607
# 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
krez13/scikit-learn
sklearn/utils/estimator_checks.py
17
56282
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
RegulatoryGenomicsUPF/pyicoteo
pyicoteolib/parser_old.py
1
45496
""" Pyicoteo 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 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY...
gpl-3.0
buguen/pylayers
pylayers/antprop/signature.py
1
118968
#-*- coding:Utf-8 -*- """ Class Signatures ================ .. autosummary:: :toctree: generated/ Signatures.__init__ Signatures.__repr__ Signatures.__len__ Signatures.num Signatures.info Signatures.saveh5 Signatures.loadh5 Signatures._saveh5 Signatures._loadh5 Signatures.l...
lgpl-3.0
ahaberlie/MetPy
src/metpy/xarray.py
1
42403
# Copyright (c) 2018,2019 MetPy Developers. # Distributed under the terms of the BSD 3-Clause License. # SPDX-License-Identifier: BSD-3-Clause """Provide accessors to enhance interoperability between xarray and MetPy. MetPy relies upon the `CF Conventions <http://cfconventions.org/>`_. to provide helpful attributes an...
bsd-3-clause
MycChiu/tensorflow
tensorflow/contrib/learn/python/learn/estimators/estimator_test.py
6
36350
# 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
lordkman/burnman
misc/pyrolite_uncertainty.py
5
38404
from __future__ import absolute_import from __future__ import print_function # This file is part of BurnMan - a thermoelastic and thermodynamic toolkit for the Earth and Planetary Sciences # Copyright (C) 2012 - 2015 by the BurnMan team, released under the GNU # GPL v2 or later. import os.path import sys if not os.pa...
gpl-2.0
ofrei/ldsc
ldsc.py
1
33879
#!/usr/bin/env python ''' (c) 2014 Brendan Bulik-Sullivan and Hilary Finucane LDSC is a command line tool for estimating 1. LD Score 2. heritability / partitioned heritability 3. genetic covariance / correlation ''' from __future__ import division import ldscore.ldscore as ld import ldscore.parse as ps im...
gpl-3.0
kirichoi/tellurium
tellurium/sedml/tesedml.py
1
82282
# -*- coding: utf-8 -*- """ Tellurium SED-ML support. This module implements SED-ML support for tellurium. ---------------- Overview SED-ML ---------------- SED-ML is build of main classes the Model Class, the Simulation Class, the Task Class, the DataGenerator Class, and the Output Class. The Mo...
apache-2.0
pv/scikit-learn
sklearn/externals/joblib/parallel.py
86
35087
""" 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
webmasterraj/FogOrNot
flask/lib/python2.7/site-packages/pandas/tseries/tests/test_period.py
2
119392
"""Tests suite for Period handling. Parts derived from scikits.timeseries code, original authors: - Pierre Gerard-Marchant & Matt Knox - pierregm_at_uga_dot_edu - mattknow_ca_at_hotmail_dot_com """ from datetime import datetime, date, timedelta from numpy.ma.testutils import assert_equal from pandas import Timesta...
gpl-2.0
PatrickOReilly/scikit-learn
sklearn/cluster/k_means_.py
5
59442
"""K-means clustering""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.prettenh...
bsd-3-clause
xyguo/scikit-learn
sklearn/tree/tests/test_tree.py
32
52369
""" Testing for the tree module (sklearn.tree). """ import pickle from functools import partial from itertools import product import platform import numpy as np from scipy.sparse import csc_matrix from scipy.sparse import csr_matrix from scipy.sparse import coo_matrix from sklearn.random_projection import sparse_rand...
bsd-3-clause
ritviksahajpal/LUH2
LUH2/GlobalCropRotations/crop_stats.py
1
44843
import logging import os import pdb import sys import matplotlib.pyplot as plt import numpy as np import pandas as pd import pygeoutil.util as util import GLM.constants as constants_glm import constants import plots reload(sys) sys.setdefaultencoding('utf-8') pd.options.mode.chained_assignment = None # default='war...
mit
alexsavio/scikit-learn
sklearn/ensemble/gradient_boosting.py
6
74941
"""Gradient Boosted Regression Trees This module contains methods for fitting gradient boosted regression trees for both classification and regression. The module structure is the following: - The ``BaseGradientBoosting`` base class implements a common ``fit`` method for all the estimators in the module. Regressio...
bsd-3-clause
pkruskal/scikit-learn
sklearn/metrics/tests/test_common.py
83
41144
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
awsteiner/o2sclpy
o2sclpy/doc_data.py
1
39617
from o2sclpy.utils import terminal ter=terminal() version='0.926.a1' cmaps=[('Perceptually Uniform Sequential', ['viridis','plasma','inferno','magma']), ('Sequential', ['Greys','Purples','Blues','Greens','Oranges','Reds', 'YlOrBr','YlOrRd','OrRd','PuRd','RdPu','BuPu', 'GnBu'...
gpl-3.0
krikru/tensorflow-opencl
tensorflow/contrib/learn/python/learn/estimators/linear_test.py
6
64222
# 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
chaluemwut/fbserver
venv/lib/python2.7/site-packages/sklearn/metrics/tests/test_metrics.py
1
104453
from __future__ import division, print_function import numpy as np from functools import partial from itertools import product import warnings from sklearn import datasets from sklearn import svm from sklearn import ensemble from sklearn.preprocessing import LabelBinarizer, MultiLabelBinarizer from sklearn.datasets ...
apache-2.0
jblackburne/scikit-learn
sklearn/metrics/cluster/supervised.py
11
33436
"""Utilities to evaluate the clustering performance of models. Functions named as *_score return a scalar value to maximize: the higher the better. """ # Authors: Olivier Grisel <olivier.grisel@ensta.org> # Wei LI <kuantkid@gmail.com> # Diego Molla <dmolla-aliod@gmail.com> # Arnaud Fouchet ...
bsd-3-clause
MTgeophysics/mtpy
mtpy/utils/shapefiles_creator.py
1
35249
#! /usr/bin/env python """ Description: Create shape files for Phase Tensor Ellipses, Tipper Real/Imag. export the phase tensor map and tippers into jpeg/png images CreationDate: 2017-03-06 Developer: fei.zhang@ga.gov.au Revision History: LastUpdate: 10/11/2017 FZ fix bugs after the big merge...
gpl-3.0
btabibian/scikit-learn
sklearn/externals/joblib/parallel.py
24
33170
""" 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
HolgerPeters/scikit-learn
sklearn/mixture/tests/test_gaussian_mixture.py
26
40216
# Author: Wei Xue <xuewei4d@gmail.com> # Thierry Guillemot <thierry.guillemot.work@gmail.com> # License: BSD 3 clauseimport warnings import sys import warnings import numpy as np from scipy import stats, linalg from sklearn.covariance import EmpiricalCovariance from sklearn.datasets.samples_generator import...
bsd-3-clause
rhyolight/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/mlab.py
69
104273
""" Numerical python functions written for compatability with matlab(TM) commands with the same names. Matlab(TM) compatible functions ------------------------------- :func:`cohere` Coherence (normalized cross spectral density) :func:`csd` Cross spectral density uing Welch's average periodogram :func:`detrend`...
agpl-3.0
atechnicolorskye/Stratospheric-UAV-Simulator
gfs_data_simulator_local.py
1
100831
""" gfs_data_simulator_local.py GFS Local Data Simulator DESCRIPTION ----------- GFS Data Local Simulator Module: This module simulates the descent of a UAV through multiple atmopsheric layers. The properties of the layers are obtained from National Oceanic and Atmospheric Administration's (NOAA) Global Forecast Sys...
gpl-2.0
lheagy/casingResearch
casingSimulations/sources.py
2
32188
import numpy as np import matplotlib.pyplot as plt import os import properties import discretize from discretize.utils import closestPoints from SimPEG.utils import setKwargs from SimPEG.electromagnetics import frequency_domain as fdem from SimPEG.electromagnetics import time_domain as tdem from .base import Loadabl...
mit
cligs/tmw
tmw.py
1
81506
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # Filename: tmw.py # Authors: christofs, daschloer # Version 0.3.0 (2016-03-20) ################################################################## ### Topic Modeling Workflow (tmw) ### ##########################################################...
mit
OLAPLINE/TM1py
Tests/Utils.py
1
41892
import configparser import json from pathlib import Path import unittest import uuid import pandas as pd from TM1py import Subset from TM1py.Objects import Process, Dimension, Hierarchy, Cube from TM1py.Services import TM1Service from TM1py.Utils import TIObfuscator from TM1py.Utils import Utils, MDXUtils from TM1py....
mit
ammarkhann/FinalSeniorCode
lib/python2.7/site-packages/pandas/tests/indexes/common.py
4
35247
# -*- coding: utf-8 -*- import pytest from pandas import compat from pandas.compat import PY3 import numpy as np from pandas import (Series, Index, Float64Index, Int64Index, UInt64Index, RangeIndex, MultiIndex, CategoricalIndex, DatetimeIndex, TimedeltaIndex, PeriodIndex, Int...
mit
tangyouze/tushare
tushare/datayes/macro.py
17
191349
# -*- coding:utf-8 -*- """ 通联数据 Created on 2015/08/24 @author: Jimmy Liu @group : waditu @contact: jimmysoa@sina.cn """ from pandas.compat import StringIO import pandas as pd from tushare.util import vars as vs from tushare.util.common import Client from tushare.util import upass as up class Macro(): def __...
bsd-3-clause
gcarq/freqtrade
tests/optimize/test_backtesting.py
1
36022
# pragma pylint: disable=missing-docstring, W0212, line-too-long, C0103, unused-argument import random from pathlib import Path from unittest.mock import MagicMock, PropertyMock import numpy as np import pandas as pd import pytest from arrow import Arrow from freqtrade import constants from freqtrade.commands.optimi...
gpl-3.0
MTgeophysics/mtpy
mtpy/modeling/ws3dinv.py
1
280366
# -*- coding: utf-8 -*- """ =============== ws3dinv =============== * Deals with input and output files for ws3dinv written by: Siripunvaraporn, W.; Egbert, G.; Lenbury, Y. & Uyeshima, M. Three-dimensional magnetotelluric inversion: data-space method Physics of The Earth and Planetary Inte...
gpl-3.0
dimroc/tensorflow-mnist-tutorial
lib/python3.6/site-packages/matplotlib/backend_bases.py
6
111196
""" Abstract base classes define the primitives that renderers and graphics contexts must implement to serve as a matplotlib backend :class:`RendererBase` An abstract base class to handle drawing/rendering operations. :class:`FigureCanvasBase` The abstraction layer that separates the :class:`matplotlib.fi...
apache-2.0
macks22/scikit-learn
sklearn/linear_model/tests/test_sgd.py
129
43401
import pickle import unittest import numpy as np import scipy.sparse as sp from sklearn.utils.testing import assert_array_equal from sklearn.utils.testing import assert_almost_equal from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import assert_greater from sklearn.utils.testing ...
bsd-3-clause
PyPSA/PyPSA
pypsa/linopf.py
1
45233
## Copyright 2019 Tom Brown (KIT), Fabian Hofmann (FIAS) ## This program 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 3 of the ## License, or (at your option) any later version. ## This p...
gpl-3.0
gojira/tensorflow
tensorflow/python/estimator/canned/dnn_linear_combined_test.py
11
33691
# Copyright 2017 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
RRCKI/panda-jedi
pandajedi/jedibrokerage/AtlasProdTaskBroker.py
1
40285
import re import sys import random import traceback from pandajedi.jedicore.MsgWrapper import MsgWrapper from pandajedi.jedicore import Interaction from TaskBrokerBase import TaskBrokerBase from pandajedi.jedicore.ThreadUtils import ListWithLock,ThreadPool,WorkerThread,MapWithLock import AtlasBrokerUtils from AtlasPro...
apache-2.0
JPFrancoia/scikit-learn
sklearn/ensemble/forest.py
14
67896
"""Forest of trees-based ensemble methods Those methods include random forests and extremely randomized trees. The module structure is the following: - The ``BaseForest`` base class implements a common ``fit`` method for all the estimators in the module. The ``fit`` method of the base ``Forest`` class calls the ...
bsd-3-clause
smeerten/ssnake
src/ssNake.py
1
398261
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright 2016 - 2020 Bas van Meerten and Wouter Franssen # This file is part of ssNake. # # ssNake 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 vers...
gpl-3.0
mueller-lab/PyFRAP
pyfrp/subclasses/pyfrp_fit.py
2
30354
#===================================================================================================================================== #Copyright #===================================================================================================================================== #Copyright (C) 2014 Alexander Blaessle...
gpl-3.0
rkmaddox/mne-python
mne/fixes.py
4
35959
"""Compatibility fixes for older versions of libraries If you add content to this file, please give the version of the package at which the fix is no longer needed. # originally copied from scikit-learn """ # Authors: Emmanuelle Gouillart <emmanuelle.gouillart@normalesup.org> # Gael Varoquaux <gael.varoquau...
bsd-3-clause
themrmax/scikit-learn
sklearn/cluster/k_means_.py
8
60187
"""K-means clustering""" # Authors: Gael Varoquaux <gael.varoquaux@normalesup.org> # Thomas Rueckstiess <ruecksti@in.tum.de> # James Bergstra <james.bergstra@umontreal.ca> # Jan Schlueter <scikit-learn@jan-schlueter.de> # Nelle Varoquaux # Peter Prettenhofer <peter.prettenh...
bsd-3-clause
zzcclp/spark
python/pyspark/pandas/utils.py
9
34052
# # 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 us...
apache-2.0
leezu/mxnet
python/mxnet/numpy/multiarray.py
1
408331
#!/usr/bin/env python # 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 # "L...
apache-2.0
pabryan/smc
src/build.py
1
54952
#!/usr/bin/env python ############################################################################### # # SageMathCloud: A collaborative web-based interface to Sage, IPython, LaTeX and the Terminal. # # Copyright (C) 2014-2015, William Stein # # This program is free software: you can redistribute it and/or modify...
gpl-3.0
informatics-isi-edu/deriva-py
tests/deriva/core/test_datapath.py
1
35124
# Tests for the datapath module. # # Environment variables: # DERIVA_PY_TEST_HOSTNAME: hostname of the test server # DERIVA_PY_TEST_CREDENTIAL: user credential, if none, it will attempt to get credentail for given hostname # DERIVA_PY_TEST_VERBOSE: set for verbose logging output to stdout from copy import deepcopy ...
apache-2.0
Aegeaner/spark
python/pyspark/sql/types.py
1
67445
# # 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 us...
apache-2.0
byuflowlab/gaussian-wake
doc/compare_all_sowfa.py
1
44719
import numpy as np import matplotlib.pyplot as plt from scipy.io import loadmat import cPickle as pickle from openmdao.api import Problem from wakeexchange.OptimizationGroups import OptAEP from wakeexchange.gauss import gauss_wrapper, add_gauss_params_IndepVarComps from wakeexchange.floris import floris_wrapper, add_...
apache-2.0
tejasnikumbh/ThesisCode
lib/python2.7/site-packages/numpy/linalg/linalg.py
35
67345
"""Lite version of scipy.linalg. Notes ----- This module is a lite version of the linalg.py module in SciPy which contains high-level Python interface to the LAPACK library. The lite version only accesses the following LAPACK functions: dgesv, zgesv, dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr...
mit
GuessWhoSamFoo/pandas
pandas/io/pytables.py
1
168497
# pylint: disable-msg=E1101,W0613,W0603 """ High level interface to PyTables for reading and writing pandas data structures to disk """ import copy from datetime import date, datetime from distutils.version import LooseVersion import itertools import os import re import time import warnings import numpy as np from p...
bsd-3-clause
cbmoore/statsmodels
statsmodels/regression/tests/test_robustcov.py
25
31412
# -*- coding: utf-8 -*- """Testing OLS robust covariance matrices against STATA Created on Mon Oct 28 15:25:14 2013 Author: Josef Perktold """ import numpy as np from scipy import stats from numpy.testing import (assert_allclose, assert_equal, assert_warns, assert_raises) from statsmode...
bsd-3-clause
PanDAWMS/pilot
RunJob.py
1
98438
# Class definition: # RunJob # This is the main RunJob class; RunJobEvent etc will inherit from this class # Note: at the moment, this class is essentially the old runJob module turned object oriented. # The class will later become RunJobNormal, ie responible for running normal PanDA jobs. # At th...
apache-2.0
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/io/tests/test_pytables.py
1
202104
import nose import sys import os import warnings import tempfile from contextlib import contextmanager import datetime import numpy as np import pandas import pandas as pd from pandas import (Series, DataFrame, Panel, MultiIndex, Int64Index, RangeIndex, Categorical, bdate_range, ...
gpl-2.0
wasade/american-gut-web
amgut/lib/locale_data/american_gut.py
1
136152
#!/usr/bin/env python from __future__ import division from amgut.lib.config_manager import AMGUT_CONFIG # ----------------------------------------------------------------------------- # Copyright (c) 2014--, The American Gut Project Development Team. # # Distributed under the terms of the BSD 3-clause License. # # The...
bsd-3-clause
bblay/iris
lib/iris/unit.py
2
60011
# (C) British Crown Copyright 2010 - 2013, Met Office # # This file is part of Iris. # # Iris 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 Software Foundation, either version 3 of the License, or # (at your option) any l...
gpl-3.0
C2SM/hymet_idealized
neatpostproc_user.py
1
69273
# This program 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 Software Foundation, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful...
lgpl-3.0
DailyActie/Surrogate-Model
01-codes/scipy-master/scipy/interpolate/interpolate.py
1
101080
""" 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 impor...
mit
louisLouL/pair_trading
capstone_env/lib/python3.6/site-packages/matplotlib/backends/backend_tkagg.py
2
39111
# Todd Miller jmiller@stsci.edu from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import tkinter as Tk from six.moves import tkinter_filedialog as FileDialog import os, sys, math import os.path # Paint image to Tk photo blitter ex...
mit
futurulus/scipy
scipy/spatial/kdtree.py
11
37913
# Copyright Anne M. Archibald 2008 # Released under the scipy license from __future__ import division, print_function, absolute_import import sys import numpy as np from heapq import heappush, heappop import scipy.sparse __all__ = ['minkowski_distance_p', 'minkowski_distance', 'distance_matrix', ...
bsd-3-clause
matthewalbani/scipy
scipy/interpolate/interpolate.py
4
106038
""" 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
CanisMajoris/ThinkStats2
code/thinkstats2.py
68
68825
"""This file contains code for use with "Think Stats" and "Think Bayes", both by Allen B. Downey, available from greenteapress.com Copyright 2014 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division """This file contains class definitions for: H...
gpl-3.0
kalvdans/scipy
scipy/special/basic.py
2
71090
# # Author: Travis Oliphant, 2002 # from __future__ import division, print_function, absolute_import import warnings import numpy as np import math from scipy._lib.six import xrange from numpy import (pi, asarray, floor, isscalar, iscomplex, real, imag, sqrt, where, mgrid, sin, place, issubdtype,...
bsd-3-clause
css-lucas/GAT
gat/core/sna/SNAcityUpdate.py
1
33078
import tempfile import matplotlib.pyplot as plt import networkx as nx import numpy as np import xlrd from networkx.algorithms import bipartite as bi from networkx.algorithms import centrality from itertools import product from collections import defaultdict import pandas as pd import datetime from gat.core.sna import ...
mit
pv/scikit-learn
sklearn/utils/estimator_checks.py
41
47834
from __future__ import print_function import types import warnings import sys import traceback import inspect 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.ut...
bsd-3-clause
ryfeus/lambda-packs
Sklearn_scipy_numpy/source/numpy/linalg/linalg.py
32
75738
"""Lite version of scipy.linalg. Notes ----- This module is a lite version of the linalg.py module in SciPy which contains high-level Python interface to the LAPACK library. The lite version only accesses the following LAPACK functions: dgesv, zgesv, dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr...
mit
ryfeus/lambda-packs
LightGBM_sklearn_scipy_numpy/source/sklearn/utils/estimator_checks.py
3
66863
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 from scipy.stats import rankdata import struct from sklearn.externals.six.moves import zip from sklearn.externals.joblib import hash, Memor...
mit
tetherless-world/ecoop
pyecoop/lib/ecoop/cf.py
1
36336
# /usr/bin/env python # -*- coding: utf-8 -*- # ############################################################################## # # # Project: ECOOP, sponsored by The National Science Foundation # Purpose: this code is part of the Cyberinfrastructure developed for the ECOOP project # http://tw.rpi.edu/web/project/ECOOP...
apache-2.0
clawpack/seismic
2d/sloping_fault_water/dtopotools_horiz_okada.py
2
80673
#!/usr/bin/env python # encoding: utf-8 r""" GeoClaw dtopotools Module `$CLAW/geoclaw/src/python/geoclaw/dtopotools.py` Module provides several functions for dealing with changes to topography (usually due to earthquakes) including reading sub-fault specifications, writing out dtopo files, and calculating Okada bas...
bsd-2-clause
mikestock/intf-tools
xintf.py
1
41182
#!/usr/bin/python import matplotlib matplotlib.use('WXAgg') from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas from matplotlib.backends.backend_wx import NavigationToolbar2Wx from matplotlib.figure import Figure, SubplotParams from matplotlib.widgets import SpanSelector, RectangleSelector...
gpl-2.0
shahankhatch/scikit-learn
sklearn/linear_model/stochastic_gradient.py
65
50308
# Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author) # Mathieu Blondel (partial_fit support) # # License: BSD 3 clause """Classification and regression using Stochastic Gradient Descent (SGD).""" import numpy as np import scipy.sparse as sp from abc import ABCMeta, abstractmethod from ...
bsd-3-clause
mhvk/numpy
numpy/lib/histograms.py
8
40215
""" Histogram-related functions """ import contextlib import functools import operator import warnings import numpy as np from numpy.core import overrides __all__ = ['histogram', 'histogramdd', 'histogram_bin_edges'] array_function_dispatch = functools.partial( overrides.array_function_dispatch, module='numpy') ...
bsd-3-clause
datapythonista/pandas
versioneer.py
4
70101
# Version: 0.19 """The Versioneer - like a rocketeer, but for versions. The Versioneer ============== * like a rocketeer, but for versions! * https://github.com/python-versioneer/python-versioneer * Brian Warner * License: Public Domain * Compatible with: Python 3.6, 3.7, 3.8, 3.9 and pypy3 * [![Latest Version][pypi...
bsd-3-clause
sid88in/incubator-airflow
airflow/www/views.py
1
113062
# -*- coding: utf-8 -*- # # 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 #...
apache-2.0
jm-begon/scikit-learn
doc/sphinxext/gen_rst.py
142
40026
""" Example generation for the scikit learn Generate the rst files for the examples by iterating over the python example files. Files that generate images should start with 'plot' """ from __future__ import division, print_function from time import time import ast import os import re import shutil import traceback i...
bsd-3-clause
effigies/mne-python
mne/coreg.py
1
38779
"""Coregistration between different coordinate frames""" # Authors: Christian Brodbeck <christianbrodbeck@nyu.edu> # # License: BSD (3-clause) from .externals.six.moves import configparser import fnmatch from glob import glob, iglob import os import stat import sys import re import shutil from warnings import warn i...
bsd-3-clause
clemkoa/scikit-learn
sklearn/model_selection/_search.py
8
56392
""" The :mod:`sklearn.model_selection._search` includes utilities to fine-tune the parameters of an estimator. """ from __future__ import print_function from __future__ import division # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # Andreas...
bsd-3-clause
bnaul/scikit-learn
sklearn/decomposition/_nmf.py
2
47427
""" Non-negative matrix factorization """ # Author: Vlad Niculae # Lars Buitinck # Mathieu Blondel <mathieu@mblondel.org> # Tom Dupre la Tour # License: BSD 3 clause import numbers import numpy as np import scipy.sparse as sp import time import warnings from math import sqrt from ._cdnmf_fast ...
bsd-3-clause
daodaoliang/neural-network-animation
matplotlib/finance.py
10
51311
""" A collection of functions for collecting, analyzing and plotting financial data. User contributions welcome! This module is deprecated in 1.4 and will be moved to `mpl_toolkits` or it's own project in the future. """ from __future__ import (absolute_import, division, print_function, unic...
mit
anntzer/scikit-learn
sklearn/utils/tests/test_extmath.py
1
30713
# Authors: Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # Denis Engemann <denis-alexander.engemann@inria.fr> # # License: BSD 3 clause import numpy as np from scipy import sparse from scipy import linalg from scipy import stats from scipy.special import expit im...
bsd-3-clause
WangWenjun559/Weiss
summary/sumy/sklearn/metrics/tests/test_classification.py
15
49665
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...
apache-2.0
mjfarmer/scada_py
env/lib/python2.7/site-packages/IPython/core/interactiveshell.py
6
132557
# -*- coding: utf-8 -*- """Main IPython class.""" #----------------------------------------------------------------------------- # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> # Copyright (C) 2001-2007 Fernando Perez. <fperez@colorado.edu> # Copyright (C) 2008-2011 The IPython Development Team # # Distribu...
gpl-3.0
Titan-C/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
21
41305
""" 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
DuCorey/bokeh
bokeh/core/properties.py
2
64367
''' Properties are objects that can be assigned as class attributes on Bokeh models, to provide automatic serialization, validation, and documentation. This documentation is broken down into the following sections: .. contents:: :local: Overview -------- There are many property types defined in the module, for ...
bsd-3-clause
Martin09/E-BeamPatterns
111 Wafers - 1.2cm Triangles/111A Nanowires/v1.3/gdsCAD_v045/templates111.py
2
33363
# -*- coding: utf-8 -*- """ Templates for automating the design of different wafer styles. .. note:: Copyright 2009-2012 Lucas Heitzmann Gabrielli Copyright 2013 Andrew G. Mark gdsCAD (based on gdspy) is released under the terms of the GNU GPL """ # TODO: Make it more pythonic, create separate c...
gpl-3.0
guilgautier/DPPy
dppy/multivariate_jacobi_ope.py
1
36593
# coding: utf8 """ Implementation of the class :class:`MultivariateJacobiOPE` used in :cite:`GaBaVa19` for Monte Carlo with Determinantal Point Processes It has 3 main methods: - :py:meth:`~dppy.multivariate_jacobi_ope.MultivariateJacobiOPE.sample` to generate samples - :py:meth:`~dppy.multivariate_jacobi_ope.Multiva...
mit
gertingold/scipy
scipy/cluster/tests/test_hierarchy.py
11
41545
# # Author: Damian Eads # Date: April 17, 2008 # # Copyright (C) 2008 Damian Eads # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # 1. Redistributions of source code must retain the above copyright # notice, this...
bsd-3-clause
nistats/nistats
nistats/first_level_model.py
1
42594
""" This module presents an interface to use the glm implemented in nistats.regression. It contains the GLM and contrast classes that are meant to be the main objects of fMRI data analyses. Author: Bertrand Thirion, Martin Perez-Guevara, 2016 """ import glob import json import os import sys import time from warnings...
bsd-3-clause
feilchenfeldt/enrichme
enrichme.py
1
51923
#!/usr/bin/env python """ TODO: -- fix the gene summary mode so that is supports overlapping features (necessary to implement max_dist argument) DONE? -- allow prior windowing of input data for better performance -- ask magnus about applications In top scores enrichment: If data is on a grid: do not keep the ...
mit