repo_name
string
path
string
copies
string
size
string
content
string
license
string
unnikrishnankgs/va
venv/lib/python3.5/site-packages/numpy/core/tests/test_multiarray.py
3
259121
from __future__ import division, absolute_import, print_function import collections import tempfile import sys import shutil import warnings import operator import io import itertools import functools import ctypes import os import gc from contextlib import contextmanager if sys.version_info[0] >= 3: import builti...
bsd-2-clause
nhejazi/scikit-learn
sklearn/neighbors/tests/test_neighbors.py
18
48928
from itertools import product import numpy as np from scipy.sparse import (bsr_matrix, coo_matrix, csc_matrix, csr_matrix, dok_matrix, lil_matrix) from sklearn import metrics from sklearn import neighbors, datasets from sklearn.exceptions import DataConversionWarning from sklearn.metrics.pai...
bsd-3-clause
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Lib/site-packages/matplotlib/_cm.py
6
67361
""" Nothing here but dictionaries for generating LinearSegmentedColormaps, and a dictionary of these dictionaries. Documentation for each is in pyplot.colormaps(). Please update this with the purpose and type of your colormap if you add data for one here. """ from __future__ import (absolute_import, division, print_...
gpl-3.0
ben-hopps/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/widgets.py
69
40833
""" GUI Neutral widgets All of these widgets require you to predefine an Axes instance and pass that as the first arg. matplotlib doesn't try to be too smart in layout -- you have to figure out how wide and tall you want your Axes to be to accommodate your widget. """ import numpy as np from mlab import dist from p...
agpl-3.0
jlegendary/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/figure.py
69
38331
""" The figure module provides the top-level :class:`~matplotlib.artist.Artist`, the :class:`Figure`, which contains all the plot elements. The following classes are defined :class:`SubplotParams` control the default spacing of the subplots :class:`Figure` top level container for all plot elements """ impo...
gpl-3.0
Fusion-Data-Platform/fdf
fdf/factory.py
2
39038
# -*- coding: utf-8 -*- """ Root module for the FDF package. **Classes** * Machine - root class for the FDF package * Shot - shot container class * Logbook - logbook connection class * Container - diagnostic container class * Node - mdsplus signal node class """ """ Created on Thu Jun 18 10:38:40 201...
mit
fernandezcuesta/t4Monitor
t4mon/collector.py
2
39746
#!/usr/bin/env python # -*- coding: utf-8 -*- """ :: start() | v get_data_and_logs() / \\ | | v v get_system_data() get_system_logs() |...
mit
harisbal/pandas
pandas/tests/frame/test_dtypes.py
1
41264
# -*- coding: utf-8 -*- from __future__ import print_function import pytest from datetime import timedelta import numpy as np from pandas import (DataFrame, Series, date_range, Timedelta, Timestamp, Categorical, compat, concat, option_context) from pandas.compat import u from pandas import _np_v...
bsd-3-clause
dimroc/tensorflow-mnist-tutorial
lib/python3.6/site-packages/matplotlib/backends/backend_wx.py
6
64967
""" A wxPython backend for matplotlib, based (very heavily) on backend_template.py and backend_gtk.py Author: Jeremy O'Donoghue (jeremy@o-donoghue.com) Derived from original copyright work by John Hunter (jdhunter@ace.bsd.uchicago.edu) Copyright (C) Jeremy O'Donoghue & John Hunter, 2003-4 License: This work ...
apache-2.0
modelon/PyFMI
src/common/plotting/plot_gui.py
1
73748
#!/usr/bin/env python # -*- coding: utf-8 -*- # Copyright (C) 2010 Modelon AB # # 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, version 3 of the License. # # This program is di...
lgpl-3.0
kashif/scikit-learn
sklearn/datasets/samples_generator.py
3
56503
""" 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 array import numpy as np from scipy import linalg import scipy.sparse as sp from ..preprocessing import MultiLabelBin...
bsd-3-clause
Ademan/NumPy-GSoC
numpy/lib/recfunctions.py
58
34495
""" 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. """ import sys import itertools import numpy as np import numpy.ma as ma from numpy import ndarray, recarray from nump...
bsd-3-clause
ojengwa/sympy
sympy/plotting/plot.py
3
62386
"""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
Omkar20895/climate
ocw/plotter.py
5
48622
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
apache-2.0
leiran/aermodpy
aermod.py
1
32889
#!/usr/bin/env python """Python interface to AERMOD modeling system files. design notes: + Bug on POST processing; only processes 996 hours - proposed fix: in-place averaging, discard hourly data developed for python 3.x """ # docstring metadata __author__ = "Leiran Biton" __copyright__ = "Copyright 2015" __cr...
gpl-2.0
rs2/pandas
pandas/tests/frame/test_analytics.py
1
45480
from datetime import timedelta from decimal import Decimal import operator import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import ( Categorical, DataFrame, MultiIndex, Series, Timestamp, date_range, isna, notna, to_datetim...
bsd-3-clause
immerrr/numpy
numpy/lib/polynomial.py
1
37669
""" 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
mattgiguere/scikit-learn
sklearn/utils/estimator_checks.py
3
47556
from __future__ import print_function 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 from sklearn.utils.testing import as...
bsd-3-clause
arokem/nipype
nipype/algorithms/rapidart.py
9
30137
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: """ The rapidart module provides routines for artifact detection and region of interest analysis. These functions include: * ArtifactDetect: performs artifact detection on functional images * Stimulu...
bsd-3-clause
stylianos-kampakis/scikit-learn
sklearn/tests/test_cross_validation.py
29
46740
"""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
yl565/statsmodels
statsmodels/graphics/regressionplots.py
3
39486
'''Partial Regression plot and residual plots to find misspecification Author: Josef Perktold License: BSD-3 Created: 2011-01-23 update 2011-06-05 : start to convert example to usable functions 2011-10-27 : docstrings ''' from statsmodels.compat.python import lrange, string_types, lzip, range import numpy as np imp...
bsd-3-clause
soulmachine/scikit-learn
sklearn/datasets/samples_generator.py
3
53169
""" 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
rs2/pandas
pandas/core/arrays/base.py
1
45568
""" An interface for extending pandas with custom arrays. .. warning:: This is an experimental API and subject to breaking changes without warning. """ import operator from typing import Any, Callable, Dict, Optional, Sequence, Tuple, Union, cast import numpy as np from pandas._libs import lib from pandas._ty...
bsd-3-clause
victor-prado/broker-manager
environment/lib/python3.5/site-packages/pandas/tests/test_categorical.py
7
182005
# -*- coding: utf-8 -*- # pylint: disable=E1101,E1103,W0232 import sys from datetime import datetime from distutils.version import LooseVersion import numpy as np from pandas.types.dtypes import CategoricalDtype from pandas.types.common import (is_categorical_dtype, is_object_dtype, ...
mit
lancezlin/ml_template_py
lib/python2.7/site-packages/matplotlib/animation.py
4
50572
# 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
akhilaananthram/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/mathtext.py
69
101723
r""" :mod:`~matplotlib.mathtext` is a module for parsing a subset of the TeX math syntax and drawing them to a matplotlib backend. For a tutorial of its usage see :ref:`mathtext-tutorial`. This document is primarily concerned with implementation details. The module uses pyparsing_ to parse the TeX expression. .. _p...
agpl-3.0
pvlib/pvlib-python
pvlib/tests/test_clearsky.py
1
30574
from collections import OrderedDict import numpy as np from numpy import nan import pandas as pd import pytz from scipy.linalg import hankel import pytest from numpy.testing import assert_allclose from .conftest import assert_frame_equal, assert_series_equal from pvlib.location import Location from pvlib import clea...
bsd-3-clause
herilalaina/scikit-learn
sklearn/cross_decomposition/pls_.py
7
31256
""" The :mod:`sklearn.pls` module implements Partial Least Squares (PLS). """ # Author: Edouard Duchesnay <edouard.duchesnay@cea.fr> # License: BSD 3 clause import warnings from abc import ABCMeta, abstractmethod import numpy as np from scipy.linalg import pinv2, svd from scipy.sparse.linalg import svds from ..base...
bsd-3-clause
nzavagli/UnrealPy
UnrealPyEmbed/Development/Python/2015.08.07-Python2710-x64-Source-vs2015/Python27/Source/numpy-1.9.2/numpy/lib/npyio.py
21
66671
from __future__ import division, absolute_import, print_function import sys import os import re import itertools import warnings import weakref from operator import itemgetter import numpy as np from . import format from ._datasource import DataSource from ._compiled_base import packbits, unpackbits from ._iotools im...
mit
Winand/pandas
pandas/tests/test_categorical.py
1
189584
# -*- coding: utf-8 -*- # pylint: disable=E1101,E1103,W0232 from warnings import catch_warnings import pytest import sys from datetime import datetime from distutils.version import LooseVersion import numpy as np from pandas.core.dtypes.dtypes import CategoricalDtype from pandas.core.dtypes.common import ( is_ca...
bsd-3-clause
cjayb/mne-python
mne/time_frequency/tfr.py
2
95165
"""A module which implements the time-frequency estimation. Morlet code inspired by Matlab code from Sheraz Khan & Brainstorm & SPM """ # Authors : Alexandre Gramfort <alexandre.gramfort@inria.fr> # Hari Bharadwaj <hari@nmr.mgh.harvard.edu> # Clement Moutard <clement.moutard@polytechnique.org> # ...
bsd-3-clause
wedel/TorHS_SpeedDating
torps_hs/plot/comp_rates_times_plot.py
2
39121
import os import cPickle as pickle import sys import numpy as np from numpy import ma # from ggplot import * # import pandas as pd import matplotlib matplotlib.use('PDF') # alerts matplotlib that display not required import matplotlib.pyplot from matplotlib import scale as mscale from matplotlib import transforms as mt...
gpl-2.0
lakshayg/tensorflow
tensorflow/contrib/learn/python/learn/estimators/debug_test.py
46
32817
# 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
ghchinoy/tensorflow
tensorflow/contrib/learn/python/learn/estimators/dnn_test.py
6
60842
# 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
rexshihaoren/scikit-learn
sklearn/linear_model/least_angle.py
42
49357
""" 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
dimroc/tensorflow-mnist-tutorial
lib/python3.6/site-packages/matplotlib/font_manager.py
6
47238
""" A module for finding, managing, and using fonts across platforms. This module provides a single :class:`FontManager` instance that can be shared across backends and platforms. The :func:`findfont` function returns the best TrueType (TTF) font file in the local or system font path that matches the specified :class...
apache-2.0
bert9bert/statsmodels
statsmodels/tsa/regime_switching/markov_switching.py
2
88234
""" Markov switching models Author: Chad Fulton License: BSD-3 """ from __future__ import division, absolute_import, print_function import warnings import numpy as np import pandas as pd from statsmodels.compat.collections import OrderedDict from scipy.misc import logsumexp from statsmodels.base.data import PandasD...
bsd-3-clause
NMTHydro/Recharge
utils/jornada_plot.py
1
43872
# =============================================================================== # Copyright 2016 gabe-parrish # # 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/licen...
apache-2.0
mnwhite/HARK
ConsumptionSaving/ConsPersistentShockModel.py
1
62424
''' Classes to solve consumption-saving models with idiosyncratic shocks to income in which shocks are not necessarily fully transitory or fully permanent. Extends ConsIndShockModel by explicitly tracking permanent income as a state variable, and allows (log) permanent income to follow an AR1 process rather than rando...
apache-2.0
bbusemeyer/mython
busempyer/process_record.py
2
31828
import numpy as np import json import data_processing as dp import pandas as pd from pymatgen.io.cif import CifParser # TODO generalize! VARTOL = 1e-2 NFE = 8 NORBFE = 10 NORBCH = 4 SMALLSPIN = 1.0 # Spins less than this are considered zero. def fluctdat_array(jsondat,key='value'): ''' Turn the dictionary of fluct...
gpl-2.0
grlee77/scipy
scipy/optimize/zeros.py
12
50109
import warnings from collections import namedtuple import operator from . import _zeros import numpy as np _iter = 100 _xtol = 2e-12 _rtol = 4 * np.finfo(float).eps __all__ = ['newton', 'bisect', 'ridder', 'brentq', 'brenth', 'toms748', 'RootResults'] # Must agree with CONVERGED, SIGNERR, CONVERR, ... i...
bsd-3-clause
MTgeophysics/mtpy
legacy/modem_new.py
1
313405
#!/usr/bin/env python """ ================== ModEM ================== # Generate data file for ModEM # by Paul Soeffky 2013 # revised by LK 2014 # revised by JP 2014 # edited by AK 2016 """ import os import matplotlib.cm as cm import matplotlib.colorbar as mcb import matplotlib.colors as colors import matplotlib.g...
gpl-3.0
rgommers/scipy
scipy/stats/tests/test_morestats.py
4
102952
# Author: Travis Oliphant, 2002 # # Further enhancements and tests added by numerous SciPy developers. # import warnings import numpy as np from numpy.random import RandomState from numpy.testing import (assert_array_equal, assert_almost_equal, assert_array_less, assert_array_almost_equal, assert_, assert_all...
bsd-3-clause
dssg/wikienergy
disaggregator/build/pandas/pandas/io/sql.py
1
58024
# -*- 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 import warnings import traceback import re import numpy as np import pandas.li...
mit
tallakahath/pymatgen
pymatgen/analysis/structure_analyzer.py
1
82945
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. from __future__ import division, unicode_literals import six import yaml import os """ This module provides classes to perform topological analyses of structures. """ __author__ = "Shyue Ping Ong, Geoffroy H...
mit
hugobowne/scikit-learn
sklearn/neighbors/tests/test_neighbors.py
25
45729
from itertools import product import numpy as np from scipy.sparse import (bsr_matrix, coo_matrix, csc_matrix, csr_matrix, dok_matrix, lil_matrix) from sklearn import metrics from sklearn.model_selection import train_test_split from sklearn.model_selection import cross_val_score from sklearn....
bsd-3-clause
yanlend/scikit-learn
sklearn/decomposition/nmf.py
5
39512
""" Non-negative matrix factorization """ # Author: Vlad Niculae # Lars Buitinck <L.J.Buitinck@uva.nl> # Mathieu Blondel <mathieu@mblondel.org> # Tom Dupre la Tour # Author: Chih-Jen Lin, National Taiwan University (original projected gradient # ...
bsd-3-clause
jfsehuanes/thunderfish
thunderfish/tracker.py
1
46236
""" Track wave-type electric fish frequencies over time. fish_tracker(): load data and track fish. """ import sys import os import argparse import numpy as np from .version import __version__ from .configfile import ConfigFile from .dataloader import open_data from .powerspectrum import spectrogram, next_power_of_two ...
gpl-3.0
MDAnalysis/mdanalysis
package/MDAnalysis/analysis/psa.py
1
87765
# -*- Mode: python; tab-width: 4; indent-tabs-mode:nil; coding:utf-8 -*- # vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 # # MDAnalysis --- https://www.mdanalysis.org # Copyright (c) 2006-2017 The MDAnalysis Development Team and contributors # (see the file AUTHORS for the full list of names) # # Released under t...
gpl-2.0
openego/eDisGo
edisgo/data/import_data.py
1
89664
from ..grid.components import Load, Generator, BranchTee, MVStation, Line, \ Transformer, LVStation, GeneratorFluctuating from ..grid.grids import MVGrid, LVGrid from ..grid.connect import connect_mv_generators, connect_lv_generators from ..grid.tools import select_cable, position_switch_disconnectors from ..tools....
agpl-3.0
ooici/coi-services
ion/services/sa/product/data_product_management_service.py
1
77120
#!/usr/bin/env python __author__ = 'Maurice Manning' from pyon.public import log, IonObject from pyon.util.containers import DotDict from pyon.core.object import IonObjectBase from pyon.core.exception import BadRequest, NotFound from pyon.public import RT, OT, PRED, LCS, CFG from pyon.util.ion_time import IonTime fr...
bsd-2-clause
NuGrid/NuGridPy
nugridpy/grain.py
1
61226
''' grain.py is a collection of routines to analyze presolar grain data (and can probably be extended to observational data at a later stage). This class load the current version of the presolar grain database for further processing. A private databse can be given as well as described later. Several routines (see be...
bsd-3-clause
sunzhxjs/JobGIS
lib/python2.7/site-packages/pandas/tseries/tests/test_tslib.py
9
44977
import nose from distutils.version import LooseVersion import numpy as np from pandas import tslib import pandas._period as period import datetime from pandas.core.api import Timestamp, Series, Timedelta, Period, to_datetime from pandas.tslib import get_timezone from pandas._period import period_asfreq, period_ordina...
mit
dagophil/vigra
vigranumpy/lib/__init__.py
2
99542
####################################################################### # # Copyright 2009-2010 by Ullrich Koethe # # This file is part of the VIGRA computer vision library. # The VIGRA Website is # http://hci.iwr.uni-heidelberg.de/vigra/ # Please direct questions, bug reports, and contribution...
mit
lthurlow/Network-Grapher
proj/external/matplotlib-1.2.1/lib/matplotlib/transforms.py
2
88425
""" 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
smharper/openmc
openmc/tallies.py
2
123554
from collections.abc import Iterable, MutableSequence import copy from functools import partial, reduce from itertools import product from numbers import Integral, Real import operator from pathlib import Path from xml.etree import ElementTree as ET import h5py import numpy as np import pandas as pd import scipy.spars...
mit
Nyker510/scikit-learn
sklearn/metrics/tests/test_ranking.py
75
40883
from __future__ import division, print_function import numpy as np from itertools import product import warnings from scipy.sparse import csr_matrix from sklearn import datasets from sklearn import svm from sklearn import ensemble from sklearn.datasets import make_multilabel_classification from sklearn.random_projec...
bsd-3-clause
soar-telescope/goodman
goodman_pipeline/spectroscopy/wavelength.py
2
32546
# -*- coding: utf8 -*- """Contains the tools to produce a wavelength solution This module gets the extracted data to produce a wavelength solution, linearize the spectrum and write the solution to the image's header following the FITS standard. """ from __future__ import (absolute_import, division, print_function, ...
bsd-3-clause
Eric89GXL/mne-python
mne/tests/test_source_space.py
7
43205
# -*- coding: utf-8 -*- # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Eric Larson <larson.eric.d@gmail.com> # # License: BSD (3-clause) import os.path as op from shutil import copytree import pytest import scipy import numpy as np from numpy.testing import (assert_array_equal, assert_allclose...
bsd-3-clause
matthewshoup/airflow
airflow/www/app.py
3
68914
from __future__ import print_function from __future__ import division from builtins import str from past.utils import old_div import copy from datetime import datetime, timedelta import dateutil.parser from functools import wraps import inspect import json import logging import os import socket import sys import time ...
apache-2.0
gVallverdu/pymatgen
pymatgen/analysis/phase_diagram.py
1
84336
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ This module defines tools to generate and analyze phase diagrams. """ import re import collections import itertools import math import logging from monty.json import MSONable, MontyDecoder from functools ...
mit
miic-sw/miic
miic.core/src/miic/core/change_processing.py
1
41161
# -*- coding: utf-8 -*- """ Created on Wed Jun 8 15:11:53 2016 @author: chris """ import numpy as np from copy import deepcopy from datetime import datetime from scipy.optimize import fmin import pdb from miic.core.miic_utils import serial_date_from_datetime, convert_time from miic.core.plot_fun import plot_dv from...
gpl-3.0
rbalda/neural_ocr
env/lib/python2.7/site-packages/matplotlib/font_manager.py
7
47824
""" A module for finding, managing, and using fonts across platforms. This module provides a single :class:`FontManager` instance that can be shared across backends and platforms. The :func:`findfont` function returns the best TrueType (TTF) font file in the local or system font path that matches the specified :class...
mit
Kamp9/scipy
scipy/signal/filter_design.py
14
127885
"""Filter design. """ from __future__ import division, print_function, absolute_import import warnings import numpy from numpy import (atleast_1d, poly, polyval, roots, real, asarray, allclose, resize, pi, absolute, logspace, r_, sqrt, tan, log10, arctan, arcsinh, sin, exp, cosh,...
bsd-3-clause
hyperspy/hyperspy
hyperspy/drawing/widget.py
1
38254
# -*- coding: utf-8 -*- # Copyright 2007-2021 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
CforED/Machine-Learning
sklearn/preprocessing/data.py
9
67092
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Mathieu Blondel <mathieu@mblondel.org> # Olivier Grisel <olivier.grisel@ensta.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # Eric Martin <eric@ericmart.in> # Giorgio Patrini <giorgio.patrini@anu.edu.au> # Lic...
bsd-3-clause
beiko-lab/gengis
bin/Lib/site-packages/matplotlib/animation.py
4
41616
# 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 ...
gpl-3.0
LumPenPacK/NetworkExtractionFromImages
osx_build/nefi2_osx_amd64_xcode_2015/site-packages/networkx/drawing/nx_pylab.py
10
30226
""" ********** Matplotlib ********** Draw networks with matplotlib. See Also -------- matplotlib: http://matplotlib.org/ pygraphviz: http://pygraphviz.github.io/ """ # Author: Aric Hagberg (hagberg@lanl.gov) # Copyright (C) 2004-2016 by # Aric Hagberg <hagberg@lanl.gov> # Dan Schult <dschult@colg...
bsd-2-clause
NixaSoftware/CVis
venv/lib/python2.7/site-packages/pandas/io/json/json.py
2
30286
# pylint: disable-msg=E1101,W0613,W0603 from itertools import islice import os import numpy as np import pandas._libs.json as json from pandas._libs.tslib import iNaT from pandas.compat import StringIO, long, u from pandas import compat, isna from pandas import Series, DataFrame, to_datetime, MultiIndex from pandas.io...
apache-2.0
jmmease/pandas
pandas/core/generic.py
1
261745
# pylint: disable=W0231,E1101 import collections import warnings import operator import weakref import gc import json import numpy as np import pandas as pd from pandas._libs import tslib, lib, properties from pandas.core.dtypes.common import ( _ensure_int64, _ensure_object, is_scalar, is_number, ...
bsd-3-clause
MJuddBooth/pandas
pandas/core/dtypes/cast.py
1
43455
""" routings for casting """ from datetime import datetime, timedelta import numpy as np from pandas._libs import lib, tslib, tslibs from pandas._libs.tslibs import NaT, OutOfBoundsDatetime, Period, iNaT from pandas.compat import PY3, string_types, text_type, to_str from .common import ( _INT64_DTYPE, _NS_DTYPE...
bsd-3-clause
rhetoricked/WrittenCommunication2016
Module3Biber.py
1
30828
''' GenderGenreMod3 Copyright 2016 Brian N. Larson and licensors GENDER/GENRE PROJECT CODE: Module 3 This code is the third segment used to generate and analyze the data for the article Gender/Genre: The Lack of Gendered Register in Texts Requiring Genre Knowledge. _Written Communication_, 33(4), 360–384. https://doi....
gpl-3.0
saketkc/statsmodels
statsmodels/base/model.py
25
76781
from __future__ import print_function from statsmodels.compat.python import iterkeys, lzip, range, reduce import numpy as np from scipy import stats from statsmodels.base.data import handle_data from statsmodels.tools.tools import recipr, nan_dot from statsmodels.stats.contrast import ContrastResults, WaldTestResults f...
bsd-3-clause
jampp/airflow
airflow/www/app.py
3
67267
from __future__ import print_function from __future__ import division from builtins import str from past.utils import old_div import copy from datetime import datetime, timedelta import dateutil.parser from functools import wraps import inspect import json import logging import os import socket import sys from flask._...
apache-2.0
MSHallOpenSoft/plotter
GUI_code.py
1
78812
#!/usr/bin/env python import mayaviPlot from PyQt4 import QtCore from PyQt4 import QtGui from PyQt4.QtGui import * from functions import Ui_DockWidget_2 #from plottingEquation_3d_explicit import MplPlot3dCanvas from imp_plottingEquation import MplPlot2dCanvas from PyQt4.QtCore import Qt, SIGNAL from function_2 import U...
gpl-2.0
Eric89GXL/mne-python
mne/tests/test_cov.py
6
33641
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr> # Denis Engemann <denis.engemann@gmail.com> # # License: BSD (3-clause) import os.path as op import itertools as itt from numpy.testing import (assert_array_almost_equal, assert_array_equal, assert_equal, assert_allclose) im...
bsd-3-clause
timothydmorton/isochrones
isochrones/observation.py
1
39280
from __future__ import print_function, division import os, re, sys from .config import on_rtd from .logger import getLogger if not on_rtd: import numpy as np import pandas as pd from configobj import ConfigObj from asciitree import LeftAligned, Traversal from asciitree.drawing import BoxStyle, BO...
mit
dsquareindia/scikit-learn
sklearn/cross_validation.py
6
72259
""" 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 fro...
bsd-3-clause
sahilTakiar/spark
python/pyspark/sql/dataframe.py
4
90410
# # 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
montoyjh/pymatgen
pymatgen/io/abinit/nodes.py
1
43285
# coding: utf-8 """ This module defines the Node class that is inherited by Task, Work and Flow objects. """ import sys import os import time import collections import abc import numpy as np from pprint import pprint from pymatgen.util.io_utils import AtomicFile from pydispatch import dispatcher from monty.termcolor ...
mit
hetland/xray
xray/test/test_backends.py
1
34197
from io import BytesIO from threading import Lock import contextlib import itertools import os.path import pickle import shutil import tempfile import unittest import sys import numpy as np import pandas as pd import xray from xray import Dataset, open_dataset, open_mfdataset, backends, save_mfdataset from xray.backe...
apache-2.0
fungs/mglex
mglex/common.py
1
34050
# This file is subject to the terms and conditions of the GPLv3 (see file 'LICENSE' as part of this source code package) u""" This file contains helper functions and types. """ __author__ = "code@fungs.de" from . import types import numpy as np import math from numpy.testing import assert_approx_equal from scipy.spe...
gpl-3.0
wesm/arrow
python/pyarrow/pandas_compat.py
4
42243
# Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not u...
apache-2.0
bloyl/mne-python
doc/conf.py
1
51195
# -*- coding: utf-8 -*- # # Configuration file for the Sphinx documentation builder. # # This file only contains a selection of the most common options. For a full # list see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html import gc import os import sys import time import warnings fr...
bsd-3-clause
bbfamily/abu
abupy/TLineBu/ABuTLine.py
1
32261
# -*- encoding:utf-8 -*- """ 技术线对象,对外执行,输出模块 """ from __future__ import absolute_import from __future__ import division from __future__ import print_function import itertools import logging import math from collections import Iterable from enum import Enum import numpy as np import pandas as pd from matplotlib im...
gpl-3.0
nmayorov/scikit-learn
sklearn/ensemble/gradient_boosting.py
18
71095
"""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
fritzo/loom
loom/preql.py
1
31258
# Copyright (c) 2014, Salesforce.com, Inc. All rights reserved. # Copyright (c) 2015, Google, Inc. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # # - Redistributions of source code must retain the above copyright ...
bsd-3-clause
18padx08/PPTex
PPTexEnv_x86_64/lib/python2.7/site-packages/matplotlib/backends/backend_pdf.py
10
94712
# -*- coding: iso-8859-1 -*- """ A PDF matplotlib backend Author: Jouni K Sepp�nen <jks@iki.fi> """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import map import codecs import os import re import sys import time import warning...
mit
valexandersaulys/airbnb_kaggle_contest
venv/lib/python3.4/site-packages/pandas/tools/merge.py
9
44730
""" SQL-style merge routines """ import numpy as np from pandas.compat import range, lrange, lzip, zip, map, filter import pandas.compat as compat from pandas.core.categorical import Categorical from pandas.core.frame import DataFrame, _merge_doc from pandas.core.generic import NDFrame from pandas.core.series import S...
gpl-2.0
GuessWhoSamFoo/pandas
pandas/tests/resample/test_datetime_index.py
1
51241
from datetime import datetime, timedelta from functools import partial from warnings import catch_warnings, simplefilter import numpy as np import pytest import pytz from pandas.compat import StringIO, range from pandas.errors import UnsupportedFunctionCall import pandas as pd from pandas import DataFrame, Panel, Se...
bsd-3-clause
Tarskin/LaCyTools
LaCyTools.py
1
178953
#! /usr/bin/env python # # Copyright 2014-2016 Bas C. Jansen # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an...
apache-2.0
bnaul/scikit-learn
sklearn/model_selection/_split.py
2
81255
""" 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
trankmichael/scipy
scipy/interpolate/interpolate.py
25
80287
""" Classes for interpolating values. """ from __future__ import division, print_function, absolute_import __all__ = ['interp1d', 'interp2d', 'spline', 'spleval', 'splmake', 'spltopp', 'ppform', 'lagrange', 'PPoly', 'BPoly', 'RegularGridInterpolator', 'interpn'] import itertools from numpy impo...
bsd-3-clause
AstroVPK/kali
python/kali/mbhbcarma.py
2
72863
#!/usr/bin/env python """ Module to perform modulated C-ARMA modelling where the presence of a MBHB causes beaming. """ import numpy as np import math as math import scipy.stats as spstats import cmath as cmath import operator as operator import sys as sys import abc as abc import psutil as psutil import types as type...
gpl-2.0
alexeyum/scikit-learn
sklearn/grid_search.py
3
38523
""" The :mod:`sklearn.grid_search` includes utilities to fine-tune the parameters of an estimator. """ from __future__ import print_function # Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>, # Gael Varoquaux <gael.varoquaux@normalesup.org> # Andreas Mueller <amueller@ais.uni-bonn.de> # ...
bsd-3-clause
NirBenTalLab/proorigami-cde-package
cde-root/usr/lib64/python2.4/site-packages/numpy/lib/polynomial.py
2
35562
""" Functions to operate on polynomials. """ __all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd', 'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d', 'polyfit', 'RankWarning'] import re import warnings import numpy.core.numeric as NX from numpy.core import isscalar, abs, finfo, atleas...
mit
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Lib/site-packages/matplotlib/dviread.py
10
33393
""" An experimental module for reading dvi files output by TeX. Several limitations make this not (currently) useful as a general-purpose dvi preprocessor, but it is currently used by the pdf backend for processing usetex text. Interface:: dvi = Dvi(filename, 72) # iterate over pages (but only one page is support...
gpl-3.0
valexandersaulys/airbnb_kaggle_contest
venv/lib/python3.4/site-packages/sklearn/tests/test_cross_validation.py
6
46787
"""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...
gpl-2.0
UIUC-SULLIVAN/ThesisProject_Andrea_Mattera
Coupling with weather/Classes.py
4
51132
# coding: utf-8 # In[6]: import numpy as np from sklearn import preprocessing import pandas as pd import datetime as dt from sklearn.metrics import mean_absolute_error,mean_squared_error,median_absolute_error from sklearn.svm import SVR from sklearn.neighbors import KNeighborsRegressor from sklearn.ensemble import ...
mit
sumspr/scikit-learn
sklearn/linear_model/coordinate_descent.py
12
75078
# 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