repo_name
string
path
string
copies
string
size
string
content
string
license
string
sebalander/sebaPhD
dev/intrinsicCalibMHnoFull.py
1
31103
#!/usr/bin/env python3 # -*- coding: utf-8 -*- """ Created on Thu Jun 22 23:38:35 2017 para UNLP calibracion con incerteza: 1- calibracion intrinseca chessboard con ocv 2- tomo como condicion inicial y optimizo una funcion error custom 3- saco el hessiano en el optimo 4- sacar asi la covarianza de los parametros opti...
bsd-3-clause
ndingwall/scikit-learn
sklearn/cluster/tests/test_k_means.py
1
44177
"""Testing for K-means""" import re import sys import numpy as np from scipy import sparse as sp from threadpoolctl import threadpool_limits import pytest from sklearn.utils._testing import assert_array_equal from sklearn.utils._testing import assert_array_almost_equal from sklearn.utils._testing import assert_allcl...
bsd-3-clause
ghislainp/iris
lib/iris/tests/test_plot.py
2
32069
# (C) British Crown Copyright 2010 - 2015, 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
quantrocket-llc/quantrocket-client
tests/test_fundamental.py
1
141914
# Copyright 2018 QuantRocket LLC - 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 applicable law...
apache-2.0
stanfordnqp/spins-b
spins/gridlock/grid.py
1
47797
from typing import List, Tuple, Callable import gdspy import numpy as np from numpy import diff, floor, ceil, zeros, hstack, newaxis import pickle import warnings import copy from spins.gridlock.float_raster import raster_1D, raster_2D from spins.gridlock import GridError, Direction, GridType from spins.gridlock._he...
gpl-3.0
supertree-toolkit/stk
stk/supertree_toolkit.py
1
173469
#!/usr/bin/env python # # Supertree Toolkit. Software for managing and manipulating sources # trees ready for supretree construction. # Copyright (C) 2013, Jon Hill, Katie Davis # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License...
gpl-3.0
blaze/dask
dask/bag/tests/test_bag.py
1
46093
import gc import math import multiprocessing import os import random import weakref from bz2 import BZ2File from collections.abc import Iterator from gzip import GzipFile from itertools import repeat import partd import pytest from tlz import merge, join, identity, valmap, groupby, pluck, unique import dask import da...
bsd-3-clause
dominicelse/scipy
scipy/signal/signaltools.py
8
116301
# Author: Travis Oliphant # 1999 -- 2002 from __future__ import division, print_function, absolute_import import warnings import threading import sys import timeit from . import sigtools, dlti from ._upfirdn import upfirdn, _output_len from scipy._lib.six import callable from scipy._lib._version import NumpyVersion ...
bsd-3-clause
adrn/gala
gala/dynamics/core.py
2
31376
# Standard library from collections import namedtuple, OrderedDict import warnings import inspect import re # Third-party import astropy.coordinates as coord from astropy.coordinates import representation as r import astropy.units as u from astropy.utils.compat.misc import override__dir__ import numpy as np # Project...
mit
Shaswat27/scipy
scipy/stats/stats.py
3
168299
# 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
cython-testbed/pandas
pandas/tests/io/test_sql.py
3
96428
"""SQL io tests The SQL tests are broken down in different classes: - `PandasSQLTest`: base class with common methods for all test classes - Tests for the public API (only tests with sqlite3) - `_TestSQLApi` base class - `TestSQLApi`: test the public API with sqlalchemy engine - `TestSQLiteFallbackApi`: t...
bsd-3-clause
AlexRobson/nilmtk
nilmtk/metergroup.py
4
70748
from __future__ import print_function, division import networkx as nx import pandas as pd import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import FuncFormatter from datetime import timedelta from warnings import warn from sys import stdout from collections import Counter from copy import copy, ...
apache-2.0
jor-/scipy
scipy/stats/_distn_infrastructure.py
2
125438
# # 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_, PY2 from scipy._lib._util import getargspec_no_self as _getargspec import sys import keyword import r...
bsd-3-clause
advancedplotting/aplot
python/plotserv/api_plotting.py
1
32873
# Copyright (c) 2014-2015, Heliosphere Research LLC # All rights reserved. # # 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 list of c...
bsd-3-clause
pratapvardhan/pandas
pandas/tests/series/test_missing.py
3
51275
# coding=utf-8 # pylint: disable-msg=E1101,W0612 import pytz import pytest from datetime import timedelta, datetime from distutils.version import LooseVersion from numpy import nan import numpy as np import pandas as pd from pandas import (Series, DataFrame, isna, date_range, MultiIndex, Index, ...
bsd-3-clause
haeusser/tensorflow
tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined_test.py
11
60346
# 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
mgaitan/scipy
scipy/stats/_distn_infrastructure.py
10
112933
# # 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
ElDeveloper/scikit-learn
sklearn/neighbors/base.py
30
30586
"""Base and mixin classes for nearest neighbors""" # Authors: Jake Vanderplas <vanderplas@astro.washington.edu> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Sparseness support by Lars Buitinck <L.J.Buitinck@uva.nl> # Multi-output...
bsd-3-clause
hrjn/scikit-learn
sklearn/model_selection/tests/test_split.py
8
49851
"""Test the split module""" from __future__ import division import warnings import numpy as np from scipy.sparse import coo_matrix, csc_matrix, csr_matrix from scipy import stats from scipy.misc import comb from itertools import combinations from itertools import combinations_with_replacement from sklearn.utils.testi...
bsd-3-clause
ishank08/scikit-learn
sklearn/mixture/gmm.py
19
32365
""" Gaussian Mixture Models. This implementation corresponds to frequentist (non-Bayesian) formulation of Gaussian Mixture Models. """ # Author: Ron Weiss <ronweiss@gmail.com> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Bertrand Thirion <bertrand.thirion@inria.fr> # Important note for the deprec...
bsd-3-clause
Akshay0724/scikit-learn
sklearn/model_selection/tests/test_validation.py
17
42257
"""Test the validation module""" from __future__ import division import sys import warnings import tempfile import os from time import sleep import numpy as np from scipy.sparse import coo_matrix, csr_matrix from sklearn.utils.testing import assert_true from sklearn.utils.testing import assert_false from sklearn.uti...
bsd-3-clause
xccui/flink
flink-python/pyflink/table/tests/test_pandas_udaf.py
1
31818
################################################################################ # 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...
apache-2.0
yl565/statsmodels
statsmodels/sandbox/stats/multicomp.py
4
70718
''' from pystatsmodels mailinglist 20100524 Notes: - unfinished, unverified, but most parts seem to work in MonteCarlo - one example taken from lecture notes looks ok - needs cases with non-monotonic inequality for test to see difference between one-step, step-up and step-down procedures - FDR doesn't look rea...
bsd-3-clause
kashif/scikit-learn
sklearn/neighbors/tests/test_neighbors.py
23
45330
from itertools import product import pickle import numpy as np from scipy.sparse import (bsr_matrix, coo_matrix, csc_matrix, csr_matrix, dok_matrix, lil_matrix) from sklearn import metrics from sklearn.model_selection import train_test_split from sklearn.model_selection import cross_val_scor...
bsd-3-clause
kmather73/ggplot
ggplot/utils/color.py
13
72058
""" Python module for color functions. """ from __future__ import division from __future__ import print_function from __future__ import with_statement import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as colors import types from functools import partial from collections import Iterable fro...
bsd-2-clause
nmercier/linux-cross-gcc
linux/lib/python2.7/dist-packages/numpy/lib/polynomial.py
30
38012
""" Functions to operate on polynomials. """ from __future__ import division, absolute_import, print_function __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] import re import warnings import numpy.core....
bsd-3-clause
vortex-ape/scikit-learn
sklearn/utils/estimator_checks.py
4
92964
from __future__ import print_function import types import warnings import sys import traceback import pickle from copy import deepcopy from functools import partial import numpy as np from scipy import sparse from scipy.stats import rankdata from sklearn.externals.six.moves import zip from sklearn.utils import IS_PY...
bsd-3-clause
kernc/scikit-learn
sklearn/manifold/t_sne.py
22
34890
# Author: Alexander Fabisch -- <afabisch@informatik.uni-bremen.de> # Author: Christopher Moody <chrisemoody@gmail.com> # Author: Nick Travers <nickt@squareup.com> # License: BSD 3 clause (C) 2014 # This is the exact and Barnes-Hut t-SNE implementation. There are other # modifications of the algorithm: # * Fast Optimi...
bsd-3-clause
uglyboxer/linear_neuron
net-p3/lib/python3.5/site-packages/matplotlib/animation.py
10
44129
# TODO: # * Loop Delay is broken on GTKAgg. This is because source_remove() is not # working as we want. PyGTK bug? # * Documentation -- this will need a new section of the User's Guide. # Both for Animations and just timers. # - Also need to update http://www.scipy.org/Cookbook/Matplotlib/Animations # * Blit ...
mit
winklerand/pandas
pandas/tests/tseries/test_timezones.py
1
69501
# pylint: disable-msg=E1101,W0612 import pytest import pytz import dateutil import numpy as np from dateutil.parser import parse from pytz import NonExistentTimeError from distutils.version import LooseVersion from dateutil.tz import tzlocal, tzoffset from datetime import datetime, timedelta, tzinfo, date import pan...
bsd-3-clause
bnaul/scikit-learn
sklearn/tests/test_pipeline.py
3
42401
""" Test the pipeline module. """ from tempfile import mkdtemp import shutil import time import re import itertools import pytest import numpy as np from scipy import sparse import joblib from sklearn.utils._testing import assert_raises from sklearn.utils._testing import assert_raises_regex from sklearn.utils._testin...
bsd-3-clause
MLnick/spark
python/pyspark/sql/dataframe.py
7
69591
# # 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
ningchi/scikit-learn
sklearn/linear_model/coordinate_descent.py
13
73434
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Olivier Grisel <olivier.grisel@ensta.org> # Gael Varoquaux <gael.varoquaux@inria.fr> # # License: BSD 3 clause import sys import warnings from abc import ABCMeta, abstractmethod import n...
bsd-3-clause
daodaoliang/neural-network-animation
matplotlib/backends/backend_svg.py
10
45804
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import xrange from six import unichr import os, base64, tempfile, gzip, io, sys, codecs, re import numpy as np from hashlib import md5 from matplotlib import verbose, __version__, ...
mit
IssamLaradji/scikit-learn
sklearn/metrics/tests/test_classification.py
8
46538
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.datasets import make_multilabel_classification from sklearn.preprocessing import LabelBinarizer, MultiLabelB...
bsd-3-clause
larsoner/mne-python
mne/label.py
2
98231
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Martin Luessi <mluessi@nmr.mgh.harvard.edu> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) from collections import defaultdict from colorsys import hsv_to_rgb, rgb_to_hsv import os import os.path as op import copy ...
bsd-3-clause
dismalpy/dismalpy
dismalpy/ssm/compat/mlemodel.py
1
88825
""" State Space Model Author: Chad Fulton License: Simplified-BSD """ from __future__ import division, absolute_import, print_function import numpy as np import pandas as pd from scipy.stats import norm from dismalpy.ssm.kalman_filter import INVERT_UNIVARIATE, SOLVE_LU import statsmodels.tsa.base.tsa_model as tsbase...
bsd-2-clause
fabioticconi/scikit-learn
doc/sphinxext/gen_rst.py
27
40192
""" 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
ryfeus/lambda-packs
Pandas_numpy/source/pandas/core/groupby.py
1
158184
import types from functools import wraps import numpy as np import datetime import collections import warnings import copy from textwrap import dedent from pandas.compat import ( zip, range, lzip, callable, map ) from pandas import compat from pandas.compat.numpy import function as nv from pandas.compat impor...
mit
Rbeaty88/ginga
ginga/cmap.py
1
507514
# # cmap.py -- color maps for fits viewing # # Eric Jeschke (eric@naoj.org) # # Copyright (c) Eric R. Jeschke. All rights reserved. # This is open-source software licensed under a BSD license. # Please see the file LICENSE.txt for details. # import numpy # Some built in colormaps cmap_soss = ( (0.000000, 0.0000...
bsd-3-clause
cbertinato/pandas
pandas/core/window.py
1
83076
""" Provide a generic structure to support window functions, similar to how we have a Groupby object. """ from collections import defaultdict from datetime import timedelta from textwrap import dedent from typing import Set import warnings import numpy as np import pandas._libs.window as libwindow from pandas.compat....
bsd-3-clause
ksif/KSIF
KSIF/core/base.py
1
43176
from __future__ import division import math from copy import deepcopy import pandas as pd import numpy as np import cython as cy __author__ = 'Seung Hyeon Yu' __email__ = 'rambor12@business.kaist.ac.kr' class Node(object): """ The Node is the main building block in bt's tree structure design...
mit
Rinoahu/fastclust
bin/deprecate/mcl_sparse.py
1
280461
#!usr/bin/env python import scipy as np from scipy import sparse from scipy.sparse import csgraph from scipy import stats import sys from time import time import os import gc from struct import pack, unpack from math import sqrt import mimetypes import gzip import bz2 as bzip2 import bz2 #import numpy as np from scipy...
gpl-3.0
bakkou-badri/dataminingproject
env/lib/python2.7/site-packages/numpy/fft/fftpack.py
10
39529
""" 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...
gpl-2.0
Joshuaalbert/IonoTomo
src/ionotomo/data/heteroscedastic_model.py
1
52858
# coding: utf-8 # # This notebook shows how to performa heteroscedastic lengthscale, variance, and noise solve # In[1]: from ionotomo import * import numpy as np import pylab as plt plt.style.use('ggplot') import astropy.units as au import os import gpflow as gp from doubly_stochastic_dgp.dgp import DGP from scipy...
apache-2.0
xuewei4d/scikit-learn
sklearn/manifold/_t_sne.py
6
39083
# Author: Alexander Fabisch -- <afabisch@informatik.uni-bremen.de> # Author: Christopher Moody <chrisemoody@gmail.com> # Author: Nick Travers <nickt@squareup.com> # License: BSD 3 clause (C) 2014 # This is the exact and Barnes-Hut t-SNE implementation. There are other # modifications of the algorithm: # * Fast Optimi...
bsd-3-clause
datapythonista/pandas
pandas/tests/io/test_html.py
3
40117
from functools import partial from importlib import reload from io import ( BytesIO, StringIO, ) import os from pathlib import Path import re import threading from urllib.error import URLError import numpy as np import pytest from pandas.compat import is_platform_windows from pandas.errors import ParserError ...
bsd-3-clause
gpetretto/pymatgen
pymatgen/analysis/chemenv/coordination_environments/structure_environments.py
3
89796
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals """ This module contains objects that are used to describe the environments in a structure. The most detailed object (StructureEnvironments) contains a very th...
mit
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/io/excel.py
1
54831
""" Module parse to/from Excel """ # --------------------------------------------------------------------- # ExcelFile class from datetime import datetime, date, time, MINYEAR import os import abc import numpy as np from pandas.core.frame import DataFrame from pandas.io.parsers import TextParser from pandas.io.commo...
gpl-2.0
chrissly31415/amimanera
competition_scripts/caterpillar/cater.py
1
78257
#!/usr/bin/python # coding: utf-8 from qsprLib import * from lasagne_tools import * from keras_tools import * from interact_analysis import * import matplotlib.pyplot as plt import math import os # pd.options.display.mpl_style = 'default' from scipy.optimize import curve_fit from scipy.sparse import csr_matrix from...
lgpl-3.0
anderspitman/scikit-bio
skbio/alignment/tests/test_tabular_msa.py
1
147503
# ---------------------------------------------------------------------------- # 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
rfabila/Pyscholar
scopus2.py
1
61582
import configparser, os, time import queue as Queue import threading class Quota_Exceeded(Exception): def __str__(self): return "You have exceeded the quotas on all your keys." class Key_Exception(Exception): def __str__(self): return "Scopus key not set." class Alias_Exception(Exception): ...
gpl-2.0
jmmease/pandas
pandas/tests/test_multilevel.py
1
107015
# -*- coding: utf-8 -*- # pylint: disable-msg=W0612,E1101,W0141 from warnings import catch_warnings import datetime import itertools import pytest import pytz from numpy.random import randn import numpy as np from pandas.core.index import Index, MultiIndex from pandas import Panel, DataFrame, Series, notna, isna, Tim...
bsd-3-clause
DrXyzzy/cocalc
src/smc_sagews/smc_sagews/sage_server.py
4
88115
#!/usr/bin/env python """ sage_server.py -- unencrypted forking TCP server. Note: I wrote functionality so this can run as root, create accounts on the fly, and serve sage as those accounts. Doing this is horrendous from a security point of view, and I'm definitely not doing this. None of that functionality is actua...
agpl-3.0
rikima/spark
python/pyspark/sql/types.py
2
65691
# # 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
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/core/strings.py
1
56713
import numpy as np from pandas.compat import zip from pandas.core.common import (isnull, notnull, _values_from_object, is_bool_dtype, is_list_like, is_categorical_dtype, is_object_dtype, take_1d) import pandas.compat as com...
gpl-2.0
DGrady/pandas
pandas/tests/frame/test_operators.py
3
43520
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime import operator import pytest from numpy import nan, random import numpy as np from pandas.compat import lrange from pandas import compat from pandas import (DataFrame, Series, MultiIndex, Timestamp, dat...
bsd-3-clause
wzbozon/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
11
39569
""" 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
mojoboss/scikit-learn
sklearn/svm/tests/test_svm.py
11
31158
""" 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
kernc/scikit-learn
sklearn/linear_model/logistic.py
2
67966
""" Logistic Regression """ # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Fabian Pedregosa <f@bianp.net> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Manoj Kumar <manojkumarsivaraj334@gmail.com> # Lars Buitinck # Simon Wu <s8wu@uwaterloo.ca> im...
bsd-3-clause
jfemiani/srp-boxes
srp/model/arch.py
1
35262
""" Build the network architecture. >>> arch = Architecture( ... rgb_shape=(3, 64, 64), ... lidar_shape=(6, 64, 64), ... fusion='early', ... obb_parametrization='vector_and_width', ... synthetic='no_pretrain', ... channel_dropout='cdrop', ....
mit
HiSPARC/sapphire
scripts/simulations/direction_reconstruction.py
1
36339
from __future__ import division import os.path from itertools import izip import tables from scipy import integrate from scipy.interpolate import spline from scipy.special import erf from scipy.stats import scoreatpercentile import artist.utils from artist import GraphArtist from pylab import * import utils fro...
gpl-3.0
ComparativeGenomicsToolkit/Comparative-Annotation-Toolkit
cat/__init__.py
1
158260
""" Comparative Annotation Toolkit. """ import string import random import datetime import collections import logging import os import shutil import json import subprocess from collections import OrderedDict from frozendict import frozendict from configobj import ConfigObj import luigi import luigi.contrib.sqla from l...
apache-2.0
pizzathief/scipy
scipy/fft/_basic.py
4
62007
from scipy._lib.uarray import generate_multimethod, Dispatchable import numpy as np def _x_replacer(args, kwargs, dispatchables): """ uarray argument replacer to replace the transform input array (``x``) """ if len(args) > 0: return (dispatchables[0],) + args[1:], kwargs kw = kwargs.copy()...
bsd-3-clause
ozsolarwind/siren
sirenm.py
1
159376
#!/usr/bin/python3 # # Copyright (C) 2015-2021 Sustainable Energy Now Inc., Angus King # # siren.py - This file is part of SIREN. # # SIREN is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either ve...
agpl-3.0
IssamLaradji/scikit-learn
sklearn/linear_model/least_angle.py
8
48477
""" Least Angle Regression algorithm. See the documentation on the Generalized Linear Model for a complete discussion. """ from __future__ import print_function # Author: Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Gael Varoquaux # # License: BSD 3 ...
bsd-3-clause
rabrahm/ceres
mike/mikepipe.py
1
38531
import sys import matplotlib matplotlib.use("Agg") from pylab import * base = '../' sys.path.append(base+"utils/GLOBALutils") sys.path.append(base+"utils/Continuum") sys.path.append(base+"utils/Correlation") sys.path.append(base+"utils/OptExtract") baryc_dir= base+'utils/SSEphem/' sys.path.append(baryc_dir) ephemeri...
mit
kevin-intel/scikit-learn
sklearn/datasets/tests/test_openml.py
2
53059
"""Test the openml loader. """ import gzip import warnings import json import os import re from io import BytesIO import numpy as np import scipy.sparse import sklearn import pytest from sklearn import config_context from sklearn.datasets import fetch_openml from sklearn.datasets._openml import (_open_openml_url, ...
bsd-3-clause
jtwhite79/pyemu
pyemu/pst/pst_handler.py
1
140620
from __future__ import print_function, division import os import glob import re import copy import warnings import numpy as np from numpy.lib.type_check import real_if_close import pandas as pd pd.options.display.max_colwidth = 100 import pyemu from ..pyemu_warnings import PyemuWarning from pyemu.pst.pst_controldata i...
bsd-3-clause
linebp/pandas
pandas/core/resample.py
1
44844
from datetime import timedelta import numpy as np import warnings import copy from textwrap import dedent import pandas as pd from pandas.core.base import AbstractMethodError, GroupByMixin from pandas.core.groupby import (BinGrouper, Grouper, _GroupBy, GroupBy, SeriesGroupBy, groupby,...
bsd-3-clause
andyraib/data-storage
python_scripts/env/lib/python3.6/site-packages/pandas/stats/tests/test_ols.py
7
37033
""" Unit test suite for OLS and PanelOLS classes """ # pylint: disable-msg=W0212 # flake8: noqa from __future__ import division from datetime import datetime from pandas import compat from distutils.version import LooseVersion import nose import numpy as np from pandas import date_range, bdate_range from pandas.co...
apache-2.0
freedomtan/tensorflow
tensorflow/python/keras/engine/data_adapter.py
1
53402
# Copyright 2019 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
maryklayne/Funcao
sympy/utilities/runtests.py
12
80104
""" 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
PhloxAR/phloxar
PhloxAR/features/feature.py
1
49413
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from __future__ import division, print_function from PhloxAR.base import * from PhloxAR.core.color import Color __all__ = [ 'Feature', 'FeatureSet' ] class Feature(object): """ Abstract class which real features descend fr...
apache-2.0
kmuehlbauer/wradlib
wradlib/vis.py
1
41466
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (c) 2011-2018, wradlib developers. # Distributed under the MIT License. See LICENSE.txt for more info. """ Visualisation ^^^^^^^^^^^^^ Standard plotting and mapping procedures. .. autosummary:: :nosignatures: :toctree: generated/ plot_ppi plot_...
mit
andyraib/data-storage
python_scripts/env/lib/python3.6/site-packages/pandas/tests/indexes/common.py
7
32823
# -*- coding: utf-8 -*- from pandas import compat from pandas.compat import PY3 import numpy as np from pandas import (Series, Index, Float64Index, Int64Index, RangeIndex, MultiIndex, CategoricalIndex, DatetimeIndex, TimedeltaIndex, PeriodIndex, notnull) from pandas.types.comm...
apache-2.0
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Lib/site-packages/pandas/tseries/tests/test_resample.py
7
121702
# pylint: disable=E1101 from datetime import datetime, timedelta from functools import partial import nose import numpy as np import pandas as pd import pandas.tseries.offsets as offsets import pandas.util.testing as tm from pandas import (Series, DataFrame, Panel, Index, isnull, notnull, Timesta...
gpl-3.0
wholmgren/pvlib-python
pvlib/irradiance.py
1
108916
""" The ``irradiance`` module contains functions for modeling global horizontal irradiance, direct normal irradiance, diffuse horizontal irradiance, and total irradiance under various conditions. """ from __future__ import division import datetime from collections import OrderedDict from functools import partial imp...
bsd-3-clause
aleksandr-bakanov/astropy
astropy/visualization/wcsaxes/coordinate_helpers.py
5
43834
# Licensed under a 3-clause BSD style license - see LICENSE.rst """ This file defines the classes used to represent a 'coordinate', which includes axes, ticks, tick labels, and grid lines. """ import warnings import numpy as np from matplotlib.ticker import Formatter from matplotlib.transforms import Affine2D, Scal...
bsd-3-clause
jaidevd/scikit-learn
sklearn/neighbors/base.py
28
30649
"""Base and mixin classes for nearest neighbors""" # Authors: Jake Vanderplas <vanderplas@astro.washington.edu> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Sparseness support by Lars Buitinck # Multi-output support by Arnaud Jol...
bsd-3-clause
victor-prado/broker-manager
environment/lib/python3.5/site-packages/pandas/tests/test_strings.py
7
106434
# -*- coding: utf-8 -*- # pylint: disable-msg=E1101,W0612 from datetime import datetime, timedelta import re import nose from numpy import nan as NA import numpy as np from numpy.random import randint from pandas.compat import range, u import pandas.compat as compat from pandas import (Index, Series, DataFrame, isn...
mit
seaotterman/tensorflow
tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined_test.py
9
67662
# 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
dmigo/incubator-superset
superset/connectors/sqla/models.py
2
31773
# -*- coding: utf-8 -*- # pylint: disable=C,R,W from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from datetime import datetime import logging from flask import escape, Markup from flask_appbuilder import Model from fla...
apache-2.0
mattilyra/scikit-learn
sklearn/model_selection/_split.py
21
57608
""" The :mod:`sklearn.model_selection._split` module includes classes and functions to split the data based on a preset strategy. """ # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org>, # Olivier Girsel <olivier.grisel@ensta.org> # Ragha...
bsd-3-clause
mjafin/bcbio-nextgen
bcbio/install.py
1
32468
"""Handle installation and updates of bcbio-nextgen, third party software and data. Enables automated installation tool and in-place updates to install additional data and software. """ import argparse import collections import contextlib import datetime import dateutil from distutils.version import LooseVersion impor...
mit
rs2/pandas
pandas/tests/internals/test_internals.py
1
44901
from collections import OrderedDict from datetime import date, datetime import itertools import operator import re import numpy as np import pytest from pandas._libs.internals import BlockPlacement import pandas as pd from pandas import Categorical, DataFrame, DatetimeIndex, Index, MultiIndex, Series import pandas._...
bsd-3-clause
google-research/google-research
many_constraints/ranking_fairness.py
1
50876
# coding=utf-8 # Copyright 2021 The Google Research Authors. # # 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 applicab...
apache-2.0
dr-guangtou/hs_galphot
galfit/galfitSimple.py
1
51596
#!/usr/bin/env python # encoding: utf-8 """Fit simple 2-D models using GALFIT.""" from __future__ import division import os import copy import shutil import argparse import warnings import subprocess import numpy as np from distutils import spawn # Matplotlib related import matplotlib as mpl mpl.use('Agg') mpl.rcPar...
bsd-3-clause
bikong2/scikit-learn
sklearn/tests/test_cross_validation.py
31
46699
"""Test the cross_validation module""" from __future__ import division import warnings import numpy as np from scipy.sparse import coo_matrix from scipy.sparse import csr_matrix from scipy import stats from sklearn.utils.testing import assert_true from sklearn.utils.testing import assert_false from sklearn.utils.test...
bsd-3-clause
tammoippen/nest-simulator
topology/pynest/hl_api.py
8
71159
# -*- 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
abhishekkrthakur/scikit-learn
sklearn/datasets/samples_generator.py
10
55091
""" Generate samples of synthetic data sets. """ # Authors: B. Thirion, G. Varoquaux, A. Gramfort, V. Michel, O. Grisel, # G. Louppe, J. Nothman # License: BSD 3 clause import numbers import warnings import array import numpy as np from scipy import linalg import scipy.sparse as sp from ..preprocessing impo...
bsd-3-clause
Junji110/elephant
elephant/asset.py
1
69275
""" ASSET is a statistical method [1] for the detection of repeating sequences of synchronous spiking events in parallel spike trains. Given a list `sts` of spike trains, the analysis comprises the following steps: 1) Build the intersection matrix `imat` (optional) and the associated probability matrix `pmat` with ...
bsd-3-clause
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Lib/site-packages/pandas/tests/frame/test_replace.py
7
42787
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime import re from pandas.compat import (zip, range, lrange, StringIO) from pandas import (DataFrame, Series, Index, date_range, compat, Timestamp) import pandas as pd from numpy import nan import numpy as np...
gpl-3.0
architecture-building-systems/CityEnergyAnalyst
cea/technologies/thermal_network/thermal_network_costs.py
2
35090
import numpy as np import pandas as pd import cea.config import cea.inputlocator from cea.optimization.prices import Prices as Prices from cea.optimization.distribution.network_optimization_features import NetworkOptimizationFeatures import cea.technologies.pumps as pumps import cea.technologies.cogeneration as ch...
mit
anorfleet/turntable
test/lib/python2.7/site-packages/scipy/interpolate/fitpack2.py
7
57978
""" fitpack --- curve and surface fitting with splines fitpack is based on a collection of Fortran routines DIERCKX by P. Dierckx (see http://www.netlib.org/dierckx/) transformed to double routines by Pearu Peterson. """ # Created by Pearu Peterson, June,August 2003 from __future__ import division, print_function, abs...
mit
piyush0609/scipy
scipy/stats/stats.py
1
161773
# 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
grigorisg9gr/menpowidgets
menpowidgets/menpofit/base.py
1
106403
from menpo.base import MenpoMissingDependencyError try: import menpofit except ImportError: raise MenpoMissingDependencyError('menpofit') # Continue with imports if we have menpofit from collections import OrderedDict import numpy as np import ipywidgets import IPython.display as ipydisplay import matplot...
bsd-3-clause
ettm2012/MissionPlanner
Lib/site-packages/scipy/cluster/hierarchy.py
53
94069
""" Function Reference ------------------ These functions cut hierarchical clusterings into flat clusterings or find the roots of the forest formed by a cut by providing the flat cluster ids of each observation. .. autosummary:: :toctree: generated/ fcluster fclusterdata leaders These are routines for a...
gpl-3.0
uwnlp/verbphysics
src/attrgraph.py
1
55351
""" Handles building / running / evaluating one attribute's (size, weight, etc.) factor graph. author: mbforbes """ # IMPORTS # ----------------------------------------------------------------------------- # builtins from collections import Counter import json import logging import os # 3rd party import factorgraph...
mit
dhuang/incubator-airflow
airflow/contrib/hooks/bigquery_hook.py
1
62003
# -*- 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