repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
asnorkin/sentiment_analysis | site/lib/python2.7/site-packages/numpy/linalg/linalg.py | 24 | 77839 | """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 |
Winand/pandas | pandas/tests/io/json/test_pandas.py | 11 | 44634 | # -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101
import pytest
from pandas.compat import (range, lrange, StringIO,
OrderedDict, is_platform_32bit)
import os
import numpy as np
from pandas import (Series, DataFrame, DatetimeIndex, Timestamp,
read_json, compat)
fro... | bsd-3-clause |
andim/scipy | scipy/stats/_distn_infrastructure.py | 4 | 113604 | #
# 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_
from scipy._lib._util import getargspec_no_self as _getargspec
import sys
import keyword
import re
imp... | bsd-3-clause |
thientu/scikit-learn | sklearn/linear_model/least_angle.py | 61 | 54324 | """
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 |
harisbal/pandas | pandas/tests/series/test_analytics.py | 1 | 82686 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
from distutils.version import LooseVersion
from itertools import product
import operator
import numpy as np
from numpy import nan
import pytest
from pandas.compat import PY35, lrange, range
import pandas.util._test_decorators as td
import pandas as pd
from pandas imp... | bsd-3-clause |
zihua/scikit-learn | sklearn/metrics/tests/test_classification.py | 22 | 56780 | 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 |
yashsharan/sympy | sympy/plotting/plot.py | 8 | 65066 | """Plotting module for Sympy.
A plot is represented by the ``Plot`` class that contains a reference to the
backend and a list of the data series to be plotted. The data series are
instances of classes meant to simplify getting points and meshes from sympy
expressions. ``plot_backends`` is a dictionary with all the bac... | bsd-3-clause |
mhue/scikit-learn | sklearn/linear_model/coordinate_descent.py | 42 | 73973 | # 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 |
initNirvana/Easyphotos | env/lib/python3.4/site-packages/IPython/core/display.py | 4 | 33202 | # -*- coding: utf-8 -*-
"""Top-level display functions for displaying object in different formats."""
# Copyright (c) IPython Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import json
import mimetypes
import os
import struct
import warnings
from I... | mit |
ryfeus/lambda-packs | Pandas_numpy/source/pandas/io/formats/style.py | 2 | 41460 | """
Module for applying conditional formatting to
DataFrames and Series.
"""
from functools import partial
from itertools import product
from contextlib import contextmanager
from uuid import uuid1
import copy
from collections import defaultdict, MutableMapping
try:
from jinja2 import (
PackageLoader, Envi... | mit |
cbmoore/statsmodels | statsmodels/tsa/tests/test_arima.py | 9 | 89483 | import warnings
from statsmodels.compat.python import lrange, BytesIO
import numpy as np
from nose.tools import nottest
from numpy.testing import (assert_almost_equal, assert_, assert_allclose,
assert_raises, dec, TestCase)
from statsmodels.tools.testing import assert_equal
import statsmodel... | bsd-3-clause |
mbway/Bayesian-Optimisation | old_library/plot.py | 1 | 42108 | #!/usr/bin/env python3
'''
Plotting methods for Optimiser objects (extracted from the main class
definitions because these methods are long and just add noise)
'''
# python 2 compatibility
from __future__ import (absolute_import, division, print_function, unicode_literals)
from .py2 import *
import matplotlib as mpl
i... | gpl-3.0 |
Traecp/MCA_GUI | build/scripts-2.7/McaGUI.py | 2 | 73382 | #!/usr/bin/python
# -*- coding: utf-8 -*-
import numpy as np
import scipy.ndimage
from scipy import stats
from scipy.fftpack import fft, fftfreq, fftshift
import os, sys
import gc
from os import listdir
from os.path import isfile,join
import gtk
import matplotlib as mpl
import matplotlib.pyplot as plt
#mpl.use('GtkAgg'... | gpl-2.0 |
fyffyt/scikit-learn | sklearn/cross_validation.py | 47 | 67782 | """
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 |
vhaasteren/scipy | scipy/stats/_multivariate.py | 17 | 69089 | #
# Author: Joris Vankerschaver 2013
#
from __future__ import division, print_function, absolute_import
import numpy as np
import scipy.linalg
from scipy.misc import doccer
from scipy.special import gammaln, psi, multigammaln
from scipy._lib._util import check_random_state
__all__ = ['multivariate_normal', 'dirichle... | bsd-3-clause |
linebp/pandas | pandas/tests/plotting/test_series.py | 1 | 32501 | # coding: utf-8
""" Test cases for Series.plot """
import itertools
import pytest
from datetime import datetime
import pandas as pd
from pandas import Series, DataFrame, date_range
from pandas.compat import range, lrange
import pandas.util.testing as tm
from pandas.util.testing import slow
import numpy as np
from... | bsd-3-clause |
bthirion/scikit-learn | sklearn/feature_extraction/text.py | 2 | 52194 | # -*- coding: utf-8 -*-
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Lars Buitinck
# Robert Layton <robertlayton@gmail.com>
# Jochen Wersdörfer <jochen@wersdoerfer.de>
# Roman Sinayev <roman.sinayev@gmail.com>
#
# License: B... | bsd-3-clause |
kagayakidan/scikit-learn | sklearn/metrics/pairwise.py | 49 | 44088 | # -*- coding: utf-8 -*-
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Robert Layton <robertlayton@gmail.com>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Philippe Gervais <philippe.gervais@inria.fr>
# Lars Buitinck ... | bsd-3-clause |
joshloyal/scikit-learn | sklearn/linear_model/least_angle.py | 15 | 57631 | """
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 |
google/makani | lib/python/batch_sim/parameter_tables.py | 1 | 62232 | # Copyright 2020 Makani Technologies 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... | apache-2.0 |
rishikksh20/scikit-learn | sklearn/cluster/k_means_.py | 19 | 59631 | """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 |
NicWayand/xray | xarray/test/test_variable.py | 1 | 46316 | from collections import namedtuple
from copy import copy, deepcopy
from datetime import datetime, timedelta
from textwrap import dedent
from distutils.version import LooseVersion
import numpy as np
import pytz
import pandas as pd
from xarray import Variable, Dataset, DataArray
from xarray.core import indexing
from xa... | apache-2.0 |
shanot/imp | modules/pmi/test/test_tools.py | 1 | 32163 | from __future__ import print_function
import IMP
import os
import IMP.test
import IMP.core
import IMP.container
import IMP.pmi
import IMP.pmi.topology
import IMP.pmi.dof
import IMP.pmi.io
import IMP.pmi.io.crosslink
import IMP.pmi.representation
import IMP.pmi.restraints
import IMP.pmi.restraints.em
import IMP.pmi.rest... | gpl-3.0 |
zrhans/pythonanywhere | .virtualenvs/django19/lib/python3.4/site-packages/pandas/tests/test_format.py | 9 | 154444 | # -*- coding: utf-8 -*-
from __future__ import print_function
from distutils.version import LooseVersion
import re
from pandas.compat import range, zip, lrange, StringIO, PY3, lzip, u
import pandas.compat as compat
import itertools
import os
import sys
from textwrap import dedent
import warnings
from numpy import nan... | apache-2.0 |
chrsrds/scikit-learn | sklearn/model_selection/_search.py | 1 | 60959 | """
The :mod:`sklearn.model_selection._search` includes utilities to fine-tune the
parameters of an estimator.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>,
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Olivier Grisel <olivier.... | bsd-3-clause |
wzbozon/statsmodels | statsmodels/tsa/arima_process.py | 26 | 30878 | '''ARMA process and estimation with scipy.signal.lfilter
2009-09-06: copied from try_signal.py
reparameterized same as signal.lfilter (positive coefficients)
Notes
-----
* pretty fast
* checked with Monte Carlo and cross comparison with statsmodels yule_walker
for AR numbers are close but not identical to yule... | bsd-3-clause |
pySTEPS/pysteps | pysteps/io/importers.py | 1 | 54173 | # -*- coding: utf-8 -*-
"""
pysteps.io.importers
====================
Methods for importing files containing two-dimensional radar mosaics.
The methods in this module implement the following interface::
import_xxx(filename, optional arguments)
where **xxx** is the name (or abbreviation) of the file format and f... | bsd-3-clause |
ammarkhann/FinalSeniorCode | lib/python2.7/site-packages/matplotlib/collections.py | 4 | 67426 | """
Classes for the efficient drawing of large collections of objects that
share most properties, e.g., a large number of line segments or
polygons.
The classes are not meant to be as flexible as their single element
counterparts (e.g., you may not be able to select all line styles) but
they are meant to be fast for c... | mit |
jseabold/scikit-learn | sklearn/ensemble/forest.py | 9 | 64795 | """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 |
annarev/tensorflow | tensorflow/python/keras/preprocessing/image.py | 3 | 48694 | # Copyright 2015 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 |
craigcitro/pydatalab | tests/bigquery/table_tests.py | 4 | 34944 | # Copyright 2015 Google Inc. 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 or agreed ... | apache-2.0 |
alexsavio/scikit-learn | sklearn/mixture/dpgmm.py | 4 | 35336 | """Bayesian Gaussian Mixture Models and
Dirichlet Process Gaussian Mixture Models"""
from __future__ import print_function
# Author: Alexandre Passos (alexandre.tp@gmail.com)
# Bertrand Thirion <bertrand.thirion@inria.fr>
#
# Based on mixture.py by:
# Ron Weiss <ronweiss@gmail.com>
# Fabian Ped... | bsd-3-clause |
yabebalFantaye/MCEvidence | MCEvidence.py | 1 | 59455 | #!usr/bin/env python
"""
Authors : Yabebal Fantaye
Email : yabi@aims.ac.za
Affiliation : African Institute for Mathematical Sciences - South Africa
Stellenbosch University - South Africa
License : MIT
Status : Under Development
Description :
Python implementation of the evidence estimation ... | mit |
ChristfriedBalizou/jeamsql | adapters/tabulate/tabulate.py | 1 | 51473 | # -*- coding: utf-8 -*-
"""Pretty-print tabular data."""
from __future__ import print_function
from __future__ import unicode_literals
from collections import namedtuple, Iterable
from platform import python_version_tuple
import re
if python_version_tuple()[0] < "3":
from itertools import izip_longest
from ... | mit |
Solid-Mechanics/matplotlib-4-abaqus | matplotlib/backends/backend_qt4.py | 4 | 31717 | from __future__ import division, print_function
import math
import os
import re
import signal
import sys
import matplotlib
from matplotlib import verbose
from matplotlib.cbook import is_string_like, onetrue
from matplotlib.backend_bases import RendererBase, GraphicsContextBase, \
FigureManagerBase, FigureCanvasBa... | mit |
marcsans/cnn-physics-perception | phy/lib/python2.7/site-packages/scipy/stats/tests/test_morestats.py | 7 | 51601 | # 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,
... | mit |
ClimbsRocks/scikit-learn | sklearn/model_selection/tests/test_validation.py | 3 | 30639 | """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 |
zihua/scikit-learn | sklearn/model_selection/_validation.py | 1 | 36506 | """
The :mod:`sklearn.model_selection._validation` module includes classes and
functions to validate the model.
"""
# 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 |
tethysplatform/tethys | tethys_gizmos/views/gizmo_showcase.py | 2 | 66368 | # coding=utf-8
"""
********************************************************************************
* Name: gizmo_showcase.py
* Author: Nathan Swain
* Created On: 2014
* Copyright: (c) Brigham Young University 2014
* License: BSD 2-Clause
********************************************************************************
... | bsd-2-clause |
jjx02230808/project0223 | sklearn/metrics/pairwise.py | 9 | 45248 | # -*- coding: utf-8 -*-
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Mathieu Blondel <mathieu@mblondel.org>
# Robert Layton <robertlayton@gmail.com>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# Philippe Gervais <philippe.gervais@inria.fr>
# Lars Buitinck ... | bsd-3-clause |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/stats/tests/test_ols.py | 1 | 35506 | """
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 numpy.testing.decorators import slow
from pandas imp... | gpl-2.0 |
zhmz90/hep_ml | hep_ml/losses.py | 3 | 36874 | """
**hep_ml.losses** contains different loss functions to use in gradient boosting.
Apart from standard classification losses, **hep_ml** contains losses for uniform classification
(see :class:`BinFlatnessLossFunction`, :class:`KnnFlatnessLossFunction`, :class:`KnnAdaLossFunction`)
and for ranking (see :class:`RankBo... | apache-2.0 |
flohorovicic/pynoddy | pynoddy/history.py | 1 | 84271 | # coding=utf-8
"""Noddy history file wrapper
Created on 24/03/2014
@author: Florian Wellmann
"""
import time # for header in model generation
import numpy as np
# import numpy as np
# import matplotlib.pyplot as plt
from . import events
class NoddyHistory(object):
"""Class container for Noddy history files"""... | gpl-2.0 |
mgaitan/scipy | scipy/cluster/hierarchy.py | 6 | 91762 | """
========================================================
Hierarchical clustering (:mod:`scipy.cluster.hierarchy`)
========================================================
.. currentmodule:: scipy.cluster.hierarchy
These functions cut hierarchical clusterings into flat clusterings
or find the roots of the forest f... | bsd-3-clause |
rbharath/deepchem | deepchem/molnet/run_benchmark_models.py | 1 | 30665 | #!/usr/bin/env python2
# -*- coding: utf-8 -*-
"""
Created on Mon Mar 6 23:41:26 2017
@author: zqwu
"""
from __future__ import print_function
from __future__ import division
from __future__ import unicode_literals
import numpy as np
import tensorflow as tf
import deepchem
from deepchem.utils.dependencies import xgbo... | mit |
cloudera/ibis | ibis/backends/postgres/tests/test_functions.py | 1 | 47290 | import operator
import os
import string
import warnings
from datetime import date, datetime
import numpy as np
import pandas as pd
import pandas.testing as tm
import pytest
from pytest import param
import ibis
import ibis.config as config
import ibis.expr.datatypes as dt
import ibis.expr.types as ir
from ibis import ... | apache-2.0 |
dboonz/polymode | Polymode/Modes.py | 5 | 53254 | # _*_ coding=utf-8 _*_
#
#---------------------------------------------------------------------------------
#Copyright © 2009 Andrew Docherty
#
#This program is part of Polymode.
#Polymode is free software: you can redistribute it and/or modify
#it under the terms of the GNU General Public License as published by
#the ... | gpl-3.0 |
pschella/scipy | scipy/spatial/kdtree.py | 23 | 38086 | # 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 |
mbayon/TFG-MachineLearning | vbig/lib/python2.7/site-packages/sklearn/linear_model/tests/test_sgd.py | 3 | 50983 | 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 ... | mit |
nmayorov/scipy | scipy/signal/_peak_finding.py | 4 | 48475 | """
Functions for identifying peaks in signals.
"""
import math
import numpy as np
from scipy.signal.wavelets import cwt, ricker
from scipy.stats import scoreatpercentile
from ._peak_finding_utils import (
_local_maxima_1d,
_select_by_peak_distance,
_peak_prominences,
_peak_widths
)
__all__ = ['argr... | bsd-3-clause |
caot/sas7bdat | sas7bdat.py | 1 | 64205 | #!/usr/bin/env python
"""
This module will read sas7bdat files using pure Python (2.7+, 3+).
No SAS software required!
"""
from __future__ import division, absolute_import, print_function,\
unicode_literals
import atexit
import csv
import logging
import math
import os
import platform
import struct
import sys
from d... | mit |
valexandersaulys/prudential_insurance_kaggle | venv/lib/python2.7/site-packages/sklearn/linear_model/stochastic_gradient.py | 31 | 50760 | # 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
from abc import ABCMeta, abstractmethod
from ..externals.joblib import ... | gpl-2.0 |
bbfrederick/stabilitycalc | stabilityfuncs.py | 1 | 38385 | #!/opt/local/bin/python
#
# $Author: frederic $
# $Date: 2011/03/25 15:06:35 $
# $Id: stabilityfuncs.py,v 1.8 2011/03/25 15:06:35 frederic Exp $
#
import sys
import os
import time
import matplotlib
import numpy as np
import scipy as sp
import pylab as P
from nifti import *
from htmltagutils import *
f... | bsd-3-clause |
kdebrab/pandas | pandas/core/reshape/reshape.py | 1 | 35362 | # pylint: disable=E1101,E1103
# pylint: disable=W0703,W0622,W0613,W0201
from pandas.compat import range, text_type, zip
from pandas import compat
from functools import partial
import itertools
import numpy as np
from pandas.core.dtypes.common import (
ensure_platform_int,
is_list_like, is_bool_dtype,
need... | bsd-3-clause |
sinhrks/scikit-learn | sklearn/tree/tree.py | 23 | 40423 | """
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... | bsd-3-clause |
marcsans/cnn-physics-perception | phy/lib/python2.7/site-packages/matplotlib/transforms.py | 7 | 96105 | """
matplotlib includes a framework for arbitrary geometric
transformations that is used determine the final position of all
elements drawn on the canvas.
Transforms are composed into trees of :class:`TransformNode` objects
whose actual value depends on their children. When the contents of
children change, their pare... | mit |
lancezlin/ml_template_py | lib/python2.7/site-packages/pandas/io/sql.py | 7 | 58266 | # -*- 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.lib as lib
fr... | mit |
lorenzo-desantis/mne-python | mne/evoked.py | 2 | 52124 | # 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>
# Mads Jensen <mje.mads@gmail.com>
#
# License: BSD (3-clause)
from copy imp... | bsd-3-clause |
cython-testbed/pandas | pandas/tests/sparse/test_array.py | 1 | 40065 | from pandas.compat import range
import re
import operator
import pytest
import warnings
from numpy import nan
import numpy as np
import pandas as pd
from pandas.core.sparse.api import SparseArray, SparseSeries, SparseDtype
from pandas._libs.sparse import IntIndex
from pandas.util.testing import assert_almost_equal
i... | bsd-3-clause |
stiphyMT/plantcv | tests/tests.py | 1 | 284568 | #!/usr/bin/env python
import pytest
import os
import shutil
import json
import numpy as np
import cv2
import sys
import pandas as pd
from plotnine import ggplot
from plantcv import plantcv as pcv
import plantcv.learn
import plantcv.parallel
import plantcv.utils
# Import matplotlib and use a null Template to block plot... | mit |
rfinn/LCS | python/LCSpaper1.py | 1 | 45395 | #!/usr/bin/env python
'''
GOAL:
- this code contains all of the code to make figures for paper1
REQUIRED MODULES
- LCSbase.py
'''
###########################
###### IMPORT MODULES
###########################
import LCSbase as lb
from matplotlib import pyplot as plt
import numpy as np
import os
from LCScommon_py3... | gpl-3.0 |
peterfpeterson/mantid | Framework/PythonInterface/mantid/plots/datafunctions.py | 3 | 49509 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2017 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
# T... | gpl-3.0 |
Eric89GXL/mne-python | mne/viz/utils.py | 2 | 88337 | # -*- coding: utf-8 -*-
"""Utility functions for plotting M/EEG data."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# Mainak Jas <mainak... | bsd-3-clause |
lthurlow/Network-Grapher | proj/external/matplotlib-1.2.1/build/lib.linux-i686-2.7/matplotlib/_cm.py | 2 | 90051 | """
Nothing here but dictionaries for generating LinearSegmentedColormaps,
and a dictionary of these dictionaries.
"""
from __future__ import print_function, division
import numpy as np
_binary_data = {
'red' : ((0., 1., 1.), (1., 0., 0.)),
'green': ((0., 1., 1.), (1., 0., 0.)),
'blue' : ((0., 1., 1.... | mit |
themrmax/scikit-learn | sklearn/model_selection/_split.py | 2 | 72920 | """
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 Grisel <olivier.grisel@ensta.org>
# Ragha... | bsd-3-clause |
Didou09/tofu | tofu/defaults.py | 2 | 58540 | """
This module stores all the default setting of ToFu
Including in particular computing parameters, dictionnaries and figures
"""
#import matplotlib
#matplotlib.use('WxAgg')
#matplotlib.interactive(True)
import matplotlib.pyplot as plt
from matplotlib.path import Path
from mpl_toolkits.mplot3d import Axes3D
import n... | mit |
victor-prado/broker-manager | environment/lib/python3.5/site-packages/pandas/tseries/tests/test_base.py | 7 | 116023 | from __future__ import print_function
from datetime import datetime, timedelta
import numpy as np
import pandas as pd
from pandas import (Series, Index, Int64Index, Timestamp, Period,
DatetimeIndex, PeriodIndex, TimedeltaIndex,
Timedelta, timedelta_range, date_range, Float64Index... | mit |
sanjayankur31/nest-simulator | pynest/nest/tests/test_spatial/test_spatial_distributions.py | 7 | 30540 | # -*- coding: utf-8 -*-
#
# test_spatial_distributions.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 ... | gpl-2.0 |
umuzungu/zipline | zipline/data/minute_bars.py | 1 | 32165 | # Copyright 2016 Quantopian, Inc.
#
# 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 writ... | apache-2.0 |
mahajrod/MACE | MACE/Routines/DrawingPandas.py | 1 | 49786 | #!/usr/bin/env python
import os
import math
from collections import Iterable, OrderedDict
import numpy as np
import matplotlib
matplotlib.use('Agg')
os.environ['MPLCONFIGDIR'] = '/tmp/'
import matplotlib.pyplot as plt
plt.ioff()
from matplotlib.patches import Rectangle
from matplotlib.colors import LinearSegmentedC... | apache-2.0 |
xuanyuanking/spark | python/pyspark/sql/session.py | 8 | 31156 | #
# 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 |
magic2du/contact_matrix | Contact_maps/DeepLearning/DeepLearningTool/DL_contact_matrix_load_ten_fold.py | 1 | 37824 |
# coding: utf-8
# In[27]:
import sys, os
sys.path.append('../../../libs/')
import os.path
import IO_class
from IO_class import FileOperator
from sklearn import cross_validation
import sklearn
import numpy as np
import csv
from dateutil import parser
from datetime import timedelta
from sklearn import svm
import numpy... | gpl-2.0 |
ssanderson/numpy | numpy/lib/recfunctions.py | 5 | 34779 | """
Collection of utilities to manipulate structured arrays.
Most of these functions were initially implemented by John Hunter for
matplotlib. They have been rewritten and extended for convenience.
"""
from __future__ import division, absolute_import, print_function
import sys
import itertools
import numpy as np
im... | bsd-3-clause |
bigdataelephants/scikit-learn | sklearn/metrics/tests/test_classification.py | 6 | 47245 | 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 |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/tests/test_multilevel.py | 1 | 90585 | # -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101,W0141
import datetime
import itertools
import nose
from numpy.random import randn
import numpy as np
from pandas.core.index import Index, MultiIndex
from pandas import Panel, DataFrame, Series, notnull, isnull, Timestamp
from pandas.util.testing import (asser... | gpl-2.0 |
tohojo/flent | flent/gui.py | 1 | 79016 | # -*- coding: utf-8 -*-
#
# gui.py
#
# Author: Toke Høiland-Jørgensen (toke@toke.dk)
# Date: 22 March 2014
# Copyright (c) 2014-2016, Toke Høiland-Jørgensen
#
# 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 So... | gpl-3.0 |
webmasterraj/FogOrNot | flask/lib/python2.7/site-packages/pandas/core/index.py | 2 | 173979 | # pylint: disable=E1101,E1103,W0232
import datetime
import warnings
import operator
from functools import partial
from pandas.compat import range, zip, lrange, lzip, u, reduce, filter, map
from pandas import compat
import numpy as np
from sys import getsizeof
import pandas.tslib as tslib
import pandas.lib as lib
impor... | gpl-2.0 |
zhangxiaoli73/BigDL | pyspark/bigdl/optim/optimizer.py | 3 | 42493 | #
# Copyright 2016 The BigDL 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 applicable law or agreed to in ... | apache-2.0 |
zuotingbing/spark | python/pyspark/sql/tests/test_pandas_udf_scalar.py | 3 | 52109 | #
# 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 |
kkuunnddaannkk/vispy | vispy/color/colormap.py | 4 | 38235 | # -*- coding: utf-8 -*-
# Copyright (c) 2015, Vispy Development Team.
# Distributed under the (new) BSD License. See LICENSE.txt for more info.
from __future__ import division # just to be safe...
import inspect
import numpy as np
from .color_array import ColorArray
from ..ext.six import string_types
from ..ext.cub... | bsd-3-clause |
mbayon/TFG-MachineLearning | venv/lib/python3.6/site-packages/scipy/linalg/basic.py | 6 | 56557 | #
# Author: Pearu Peterson, March 2002
#
# w/ additions by Travis Oliphant, March 2002
# and Jake Vanderplas, August 2012
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from numpy import atleast_1d, atleast_2d
from .flinalg import get_flinalg_funcs
fro... | mit |
sysadminmatmoz/addons-yelizariev | sugarcrm_migration/import_sugarcrm.py | 16 | 44410 | # -*- coding: utf-8 -*-
import logging
_logger = logging.getLogger(__name__)
try:
import MySQLdb
import MySQLdb.cursors
from pandas import merge, DataFrame
except ImportError:
pass
from openerp.addons.import_framework.import_base import import_base, create_childs
from openerp.addons.import_framework.... | lgpl-3.0 |
cwu2011/scikit-learn | sklearn/metrics/tests/test_classification.py | 42 | 52642 | 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 |
bbcdli/xuexi | fenlei_tf/script_2019Nov/src/version1/tensor_eva_Dec15.py | 2 | 69387 |
#originally by Hamed, 25Apr.2016
#hy:Changes by Haiyan, change logs are in tensor_train.py
#####################################################################################################
import ImageDraw
import ImageFilter
import ImageOps
import time
from functools import wraps
from random import randint
import ... | apache-2.0 |
ChristosChristofidis/h2o-3 | h2o-py/h2o/frame.py | 1 | 47685 | # -*- coding: utf-8 -*-
# import numpy no numpy cuz windoz
import collections, csv, itertools, os, re, tempfile, uuid, urllib2, sys, urllib,imp
from expr import h2o,ExprNode
import gc
class H2OFrame:
# Magical count-of-5: (get 2 more when looking at it in debug mode)
# 2 for _do_it frame, 2 for _do_it loca... | apache-2.0 |
tapomayukh/projects_in_python | classification/Classification_with_HMM/Single_Contact_Classification/Variable_Stiffness_Variable_Velocity/HMM/with 1.2s/hmm_crossvalidation_force_motion_10_states_scaled_wrt_all_data.py | 1 | 39780 | # Hidden Markov Model Implementation
import pylab as pyl
import numpy as np
import matplotlib.pyplot as pp
#from enthought.mayavi import mlab
import scipy as scp
import scipy.ndimage as ni
import roslib; roslib.load_manifest('sandbox_tapo_darpa_m3')
import rospy
#import hrl_lib.mayavi2_util as mu
import hrl_lib.viz ... | mit |
quiltdata/quilt | api/python/tests/integration/test_packages.py | 1 | 85028 | """ Integration tests for Quilt Packages. """
import io
import locale
import os
import pathlib
import shutil
import tempfile
from collections import Counter
from contextlib import redirect_stderr
from datetime import datetime
from io import BytesIO
from pathlib import Path
from unittest import mock
from unittest.mock i... | apache-2.0 |
matthewpklein/battsimpy | tests/dae_genPart.py | 1 | 59229 | import numpy
import numpy.linalg
import scipy.linalg
import scipy.interpolate
from scipy.signal import wiener, filtfilt, butter, gaussian
from scipy.ndimage import filters
from matplotlib import pyplot as plt
plt.style.use('classic')
from assimulo.solvers import IDA
from assimulo.problem import Implicit_Problem
fro... | gpl-3.0 |
numpy/datetime | numpy/fft/fftpack.py | 59 | 39653 | """
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... | bsd-3-clause |
MTgeophysics/mtpy | mtpy/imaging/plotstrike2d.py | 1 | 51163 | # -*- coding: utf-8 -*-
"""
Created on Thu May 30 18:28:24 2013
@author: jpeacock-pr
"""
#==============================================================================
import matplotlib.pyplot as plt
import numpy as np
import os
from matplotlib.ticker import MultipleLocator
import mtpy.imaging.mtplottools as mtpl
i... | gpl-3.0 |
liuwenf/moose | modules/porous_flow/doc/tests/broadbridge_white.py | 11 | 212116 | #!/usr/bin/env python
import os
import sys
import numpy as np
import matplotlib.pyplot as plt
def expected_bw01_05():
# these data were generated by Mathematica
data = [
[0.392105901,-1.85E-16],
[0.385747539,0.018000654],
[0.379396059,0.035898933],
[0.373053935,0.053696124],
... | lgpl-2.1 |
modsy/incubator-airflow | airflow/contrib/hooks/bigquery_hook.py | 3 | 31510 | """
This module contains a BigQuery Hook, as well as a very basic PEP 249
implementation for BigQuery.
"""
import logging
import time
from airflow.contrib.hooks.gc_base_hook import GoogleCloudBaseHook
from airflow.hooks.dbapi_hook import DbApiHook
from apiclient.discovery import build
from pandas.io.gbq import GbqCon... | apache-2.0 |
merenlab/anvio | anvio/trnaseq.py | 1 | 365430 | # -*- coding: utf-8
# pylint: disable=line-too-long
"""Library for tRNA-seq dataset operations
`bin/anvi-trnaseq` and `bin/anvi-convert-trnaseq-database` are the default clients using this
module. `anvi-trnaseq` instantiates a `TRNASeqDataset` object. `anvi-convert-trnaseq-database`
instantiates a `DatabaseConverter` ... | gpl-3.0 |
wangshiphys/HamiltonianPy | HamiltonianPy/quantumoperator/particlesystem.py | 1 | 37709 | """
This module provides classes that describe creation/annihilation operator as
well as term composed of creation and/or annihilation operators.
"""
__all__ = [
"AoC",
"NumberOperator",
"ParticleTerm",
]
import matplotlib.pyplot as plt
from HamiltonianPy.quantumoperator.constant import ANNIHILATION, C... | gpl-3.0 |
cajal/pipeline | python/pipeline/reso.py | 1 | 80743 | """ Schemas for resonant scanners."""
import datajoint as dj
from datajoint.jobs import key_hash
import matplotlib.pyplot as plt
import numpy as np
import scanreader
from . import experiment, injection, notify, shared
from .utils import galvo_corrections, signal, quality, mask_classification, performance
from .excepti... | lgpl-3.0 |
rahul-c1/scikit-learn | sklearn/feature_extraction/text.py | 12 | 48135 | # -*- coding: utf-8 -*-
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Lars Buitinck <L.J.Buitinck@uva.nl>
# Robert Layton <robertlayton@gmail.com>
# Jochen Wersdörfer <jochen@wersdoerfer.de>
# Roman Sinayev <roman.sinayev@gma... | bsd-3-clause |
Basvanstein/OWCK | OWCK/OWCK.py | 1 | 30615 | # -*- coding: utf-8 -*-
# Author: Hao Wang <wangronin@gmail.com>
# Bas van Stein <bas9112@gmail.com>
import numpy as np
from numpy import array, ones, inner, dot, diag, size
from numpy.random import shuffle
from copy import deepcopy, copy
from multiprocessing import Pool
from sklearn.utils.v... | gpl-2.0 |
ccasotto/rmtk | rmtk/vulnerability/common/utils.py | 1 | 76014 | # -*- coding: utf-8 -*-
import os
import csv
import math
import numpy as np
import matplotlib.pyplot as plt
from scipy import integrate, optimize, stats
from shapely.geometry import LineString, MultiPoint, Point
def read_capacity_curves(input_file):
# This function reads one, or a set of capacity curves
with ... | agpl-3.0 |
garbersc/keras-galaxies | predict_convnet_keras_10cat.py | 1 | 49283 | import matplotlib.lines as mlines
import warnings
import theano.sandbox.cuda.basic_ops as sbcuda
import numpy as np
import load_data
import realtime_augmentation as ra
import time
import sys
import json
from datetime import timedelta
import os
import matplotlib.pyplot as plt
import skimage.io
from termcolor import colo... | bsd-3-clause |
rmcgibbo/msmbuilder | msmbuilder/featurizer/featurizer.py | 1 | 36870 | # Author: Kyle A. Beauchamp <kyleabeauchamp@gmail.com>
# Contributors: Robert McGibbon <rmcgibbo@gmail.com>,
# Matthew Harrigan <matthew.p.harrigan@gmail.com>
# Brooke Husic <brookehusic@gmail.com>
# Copyright (c) 2015, Stanford University and the Authors
# All rights reserved.
#-----------... | lgpl-2.1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.