repo_name
string
path
string
copies
string
size
string
content
string
license
string
jakobworldpeace/scikit-learn
sklearn/metrics/classification.py
2
72558
"""Metrics to assess performance on classification task given class prediction Functions named as ``*_score`` return a scalar value to maximize: the higher the better Function named as ``*_error`` or ``*_loss`` return a scalar value to minimize: the lower the better """ # Authors: Alexandre Gramfort <alexandre.gramf...
bsd-3-clause
k1643/StratagusAI
projects/player-1/gamelogs.py
1
87828
import os.path import csv import datetime import glob import math import matplotlib.pyplot as plt import numpy as np import os import pickle import random import scipy import scipy.stats # confidence intervals import sqlite3 import sys import yaml # statistics CSV column names and indexes. cols = { ...
apache-2.0
xuewei4d/scikit-learn
sklearn/utils/tests/test_sparsefuncs.py
8
31943
import pytest import numpy as np import scipy.sparse as sp from scipy import linalg from numpy.testing import assert_array_almost_equal, assert_array_equal from numpy.random import RandomState from sklearn.datasets import make_classification from sklearn.utils.sparsefuncs import (mean_variance_axis, ...
bsd-3-clause
tmthydvnprt/compfipy
compfipy/asset.py
1
74951
# pylint: disable=too-many-public-methods """ asset.py Define the an asset class to contain price data and various calculations, measures, and processed versions of data. """ import datetime import collections import tabulate import scipy.stats import pandas as pd import numpy as np import matplotlib.pyplot as plt ...
mit
cbertinato/pandas
pandas/tests/io/formats/test_style.py
1
54948
import copy import re import textwrap import numpy as np import pytest import pandas.util._test_decorators as td import pandas as pd from pandas import DataFrame import pandas.util.testing as tm jinja2 = pytest.importorskip('jinja2') from pandas.io.formats.style import Styler, _get_level_lengths # noqa # isort:sk...
bsd-3-clause
fujicoin/electrum-fjc
electrum/gui/qt/history_list.py
2
31462
#!/usr/bin/env python # # Electrum - lightweight Bitcoin client # Copyright (C) 2015 Thomas Voegtlin # # Permission is hereby granted, free of charge, to any person # obtaining a copy of this software and associated documentation files # (the "Software"), to deal in the Software without restriction, # including without...
mit
mugizico/scikit-learn
sklearn/linear_model/stochastic_gradient.py
130
50966
# Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author) # Mathieu Blondel (partial_fit support) # # License: BSD 3 clause """Classification and regression using Stochastic Gradient Descent (SGD).""" import numpy as np import scipy.sparse as sp from abc import ABCMeta, abstractmethod from ...
bsd-3-clause
pjryan126/solid-start-careers
store/api/zillow/venv/lib/python2.7/site-packages/pandas/computation/tests/test_eval.py
1
70497
#!/usr/bin/env python # flake8: noqa import warnings import operator from itertools import product from distutils.version import LooseVersion import nose from nose.tools import assert_raises from numpy.random import randn, rand, randint import numpy as np from numpy.testing import assert_allclose from numpy.testing...
gpl-2.0
ioam/lancet
lancet/core.py
1
39453
# # Lancet core # import os, itertools, copy import re, glob, string import json import param try: import numpy as np np_ftypes = np.sctypes['float'] except: np, np_ftypes = None, [] try: from pandas import DataFrame except: DataFrame = None # pyflakes:ignore (try/except import) try: from holoviews ...
bsd-3-clause
kashif/scikit-learn
sklearn/feature_extraction/tests/test_text.py
59
35604
from __future__ import unicode_literals import warnings from sklearn.feature_extraction.text import strip_tags from sklearn.feature_extraction.text import strip_accents_unicode from sklearn.feature_extraction.text import strip_accents_ascii from sklearn.feature_extraction.text import HashingVectorizer from sklearn.fe...
bsd-3-clause
dominicelse/scipy
scipy/stats/_continuous_distns.py
6
146462
# # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy.misc.doccer import inherit_docstring_from from scipy import optimize from scipy import integrate impor...
bsd-3-clause
ndingwall/scikit-learn
sklearn/cluster/_optics.py
6
37726
# -*- coding: utf-8 -*- """Ordering Points To Identify the Clustering Structure (OPTICS) These routines execute the OPTICS algorithm, and implement various cluster extraction methods of the ordered list. Authors: Shane Grigsby <refuge@rocktalus.com> Adrin Jalali <adrinjalali@gmail.com> Erich Schuber...
bsd-3-clause
kalvdans/scipy
scipy/stats/_distn_infrastructure.py
3
119483
# # 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_, PY3 from scipy._lib._util import getargspec_no_self as _getargspec import sys import keyword import r...
bsd-3-clause
Ziqi-Li/bknqgis
pandas/pandas/tests/test_nanops.py
2
42408
# -*- coding: utf-8 -*- from __future__ import division, print_function from functools import partial import pytest import warnings import numpy as np import pandas as pd from pandas import Series, isna, _np_version_under1p9 from pandas.core.dtypes.common import is_integer_dtype import pandas.core.nanops as nanops i...
gpl-2.0
MattDerry/pendulum_3d
src/pendulum_3d_simulator_corr_inv.py
1
30386
#!/usr/bin/env python """ Matt Derry Summer 2014 Simulate spherical inverted pendulum and publish results so that ROS can be visualization. """ ## define all imports: import roslib roslib.load_manifest('pendulum_3d') import rospy import tf from sensor_msgs.msg import JointState as JS from pendulum_3d.msg import * im...
gpl-2.0
dimroc/tensorflow-mnist-tutorial
lib/python3.6/site-packages/matplotlib/text.py
10
82852
""" Classes for including text in a figure. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import zip import math import warnings import contextlib import numpy as np from matplotlib import cbook from matplotlib import rcPa...
apache-2.0
ZwickyTransientFacility/ztf_sim
ztf_sim/QueueManager.py
1
55792
"""Queue classes.""" import os from collections import defaultdict from datetime import datetime import logging import numpy as np import pandas as pd import astropy.coordinates as coord import astropy.units as u from astropy.time import Time, TimeDelta import astroplan from .Fields import Fields from .optimize import...
bsd-3-clause
ubenu/Blits
src/blitspak/blits.py
1
50733
""" Blits: Created on 23 May 2017 Original Blivion: Created on Tue Oct 25 13:11:32 2016 @author: Maria Schilstra """ #from PyQt5.uic import loadUiType from PyQt5 import QtCore as qt from PyQt5 import QtWidgets as widgets from PyQt5 import QtGui as gui import pandas as pd, numpy as np, copy as cp from blitspak.bli...
gpl-3.0
Spinmob/spinmob
_plotting_mess.py
1
40481
import os as _os import pylab as _pylab import numpy as _n import itertools as _itertools import time as _time import spinmob as _s try: from . import _functions as _fun except: import _functions as _fun try: from . import _pylab_tweaks as _pt except: impor...
gpl-3.0
pap/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/backends/backend_gtk.py
69
43991
from __future__ import division import os, sys def fn_name(): return sys._getframe(1).f_code.co_name try: import gobject import gtk; gdk = gtk.gdk import pango except ImportError: raise ImportError("Gtk* backend requires pygtk to be installed.") pygtk_version_required = (2,2,0) if gtk.pygtk_version <...
agpl-3.0
simsynser/SimSyn
SimSyn.py
1
38537
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'SimSyn_v02.ui' # # Created by: PyQt4 UI code generator 4.11.4 # # WARNING! All changes made in this file will be lost! from PyQt4 import QtCore, QtGui import psycopg2 from psycopg2.extensions import AsIs import time import pysd ...
agpl-3.0
NixaSoftware/CVis
venv/lib/python2.7/site-packages/pandas/tests/indexes/test_category.py
3
41440
# -*- coding: utf-8 -*- import pytest import pandas.util.testing as tm from pandas.core.indexes.api import Index, CategoricalIndex from .common import Base from pandas.compat import range, PY3 import numpy as np from pandas import Categorical, IntervalIndex, compat, notna from pandas.util.testing import assert_alm...
apache-2.0
victor-prado/broker-manager
environment/lib/python3.5/site-packages/pandas/tools/tests/test_merge.py
7
56114
# pylint: disable=E1103 import nose from datetime import datetime from numpy.random import randn from numpy import nan import numpy as np import random import pandas as pd from pandas.compat import lrange, lzip from pandas.tools.merge import merge, concat, MergeError from pandas.util.testing import (assert_frame_equ...
mit
great-expectations/great_expectations
great_expectations/dataset/dataset.py
1
198226
import inspect import logging from datetime import datetime from functools import lru_cache, wraps from itertools import zip_longest from numbers import Number from typing import Any, List, Optional, Set, Union import numpy as np import pandas as pd from dateutil.parser import parse from scipy import stats from great...
apache-2.0
zzcclp/spark
python/pyspark/sql/tests/test_dataframe.py
9
42005
# # 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
leriomaggio/code-coherence-evaluation-tool
code_comments_coherence/source_code_analysis/admin.py
1
40106
from __future__ import division, absolute_import #------------------------- # Django framework imports #------------------------- from django.contrib import admin from django.core import urlresolvers from django.conf import settings from django.contrib.messages import ERROR from django.utils.translation import gettex...
bsd-3-clause
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Lib/site-packages/dask/dataframe/io/tests/test_csv.py
2
39060
from __future__ import print_function, division, absolute_import from io import BytesIO import os import gzip from time import sleep import pytest pd = pytest.importorskip('pandas') dd = pytest.importorskip('dask.dataframe') from toolz import partition_all, valmap import pandas.util.testing as tm import dask impor...
gpl-3.0
lvwang2002/python-data-mining-platform
pymining/classifier/smo_csvc.py
8
33742
import math import matplotlib import matplotlib.pyplot as plt import numpy import os import pickle import psyco psyco.full() import sys import time from ..common.global_info import GlobalInfo from ..common.configuration import Configuration from ..math.matrix import Matrix from ..math.text2matrix import Text2Matrix fr...
bsd-3-clause
makinacorpus/formhub
odk_viewer/tests/test_exports.py
1
87463
from sys import stdout import os import datetime import json import StringIO import csv import tempfile import zipfile import shutil from openpyxl import load_workbook from time import sleep from pyxform.builder import create_survey_from_xls from django.conf import settings from main.tests.test_base import MainTestCase...
bsd-2-clause
IndraVikas/scikit-learn
sklearn/linear_model/least_angle.py
57
49338
""" 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
arhik/nupic
external/linux32/lib/python2.6/site-packages/matplotlib/contour.py
69
42063
""" These are classes to support contour plotting and labelling for the axes class """ from __future__ import division import warnings import matplotlib as mpl import numpy as np from numpy import ma import matplotlib._cntr as _cntr import matplotlib.path as path import matplotlib.ticker as ticker import matplotlib.cm...
agpl-3.0
Aegeaner/spark
python/pyspark/sql/functions.py
1
134163
# # 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
pbrod/numpy
numpy/core/fromnumeric.py
2
122368
"""Module containing non-deprecated functions borrowed from Numeric. """ import functools import types import warnings import numpy as np from . import multiarray as mu from . import overrides from . import umath as um from . import numerictypes as nt from .multiarray import asarray, array, asanyarray, concatenate fr...
bsd-3-clause
apbard/scipy
scipy/signal/spectral.py
1
66503
"""Tools for spectral analysis. """ from __future__ import division, print_function, absolute_import import numpy as np from scipy import fftpack from . import signaltools from .windows import get_window from ._spectral import _lombscargle from ._arraytools import const_ext, even_ext, odd_ext, zero_ext import warning...
bsd-3-clause
TNT-Samuel/Coding-Projects
DNS Server/Source - Copy/Lib/site-packages/dask/bag/tests/test_bag.py
2
40727
# coding=utf-8 from __future__ import absolute_import, division, print_function import pytest import math import os import random import sys from collections import Iterator from itertools import repeat import partd from toolz import merge, join, filter, identity, valmap, groupby, pluck import dask import dask.bag a...
gpl-3.0
chugunovyar/factoryForBuild
env/lib/python2.7/site-packages/numpy/lib/npyio.py
23
73862
from __future__ import division, absolute_import, print_function import sys import os import re import itertools import warnings import weakref from operator import itemgetter, index as opindex import numpy as np from . import format from ._datasource import DataSource from numpy.core.multiarray import packbits, unpa...
gpl-3.0
dnjohnstone/hyperspy
hyperspy/_signals/signal2d.py
1
35008
# -*- coding: utf-8 -*- # Copyright 2007-2020 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
CallaJun/hackprince
indico/matplotlib/axes/_axes.py
10
260820
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import reduce, xrange, zip, zip_longest import math import warnings import numpy as np from numpy import ma import matplotlib rcParams = matplotlib.rcParams import matplotlib.cbook...
lgpl-3.0
bzero/statsmodels
statsmodels/regression/tests/test_regression.py
18
38246
""" Test functions for models.regression """ # TODO: Test for LM from statsmodels.compat.python import long, lrange import warnings import pandas import numpy as np from numpy.testing import (assert_almost_equal, assert_approx_equal, assert_, assert_raises, assert_equal, assert_allclose) fro...
bsd-3-clause
jforbess/pvlib-python
pvlib/pvsystem.py
1
42489
""" The ``pvsystem`` module contains functions for modeling the output and performance of PV modules and inverters. """ from __future__ import division import logging pvl_logger = logging.getLogger('pvlib') import io try: from urllib2 import urlopen except ImportError: from urllib.request import urlopen imp...
bsd-3-clause
Winand/pandas
pandas/tests/indexes/timedeltas/test_ops.py
6
48590
import pytest import numpy as np from datetime import timedelta from distutils.version import LooseVersion import pandas as pd import pandas.util.testing as tm from pandas import to_timedelta from pandas.util.testing import assert_series_equal, assert_frame_equal from pandas import (Series, Timedelta, DataFrame, Time...
bsd-3-clause
GuessWhoSamFoo/pandas
pandas/tests/frame/test_axis_select_reindex.py
1
44950
# -*- coding: utf-8 -*- from __future__ import print_function from datetime import datetime import numpy as np import pytest from pandas.compat import lrange, lzip, u from pandas.errors import PerformanceWarning import pandas as pd from pandas import ( Categorical, DataFrame, Index, MultiIndex, Series, compat,...
bsd-3-clause
HaebinShin/tensorflow
tensorflow/contrib/learn/python/learn/estimators/estimator.py
1
33804
# 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
abhisg/scikit-learn
sklearn/tree/tree.py
2
37683
""" 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
jbloom/mutpath
src/trajectory.py
1
39654
"""Module for representing mutational trajectories as directed graphs. Represents mutational trajectories through sequence space, which is the space in which each node is a unique sequence and edges are directional connections between nodes corresponding to mutations. These digraphs can be used to visualize mutationa...
gpl-3.0
HarllanAndrye/nilmtk
nilmtk/elecmeter.py
5
30305
from __future__ import print_function, division from warnings import warn from collections import namedtuple from copy import deepcopy from itertools import izip import numpy as np import pandas as pd import matplotlib.pyplot as plt import random from .preprocessing import Clip from .stats import TotalEnergy, GoodSecti...
apache-2.0
allisony/pyspeckit
ah_bootstrap.py
16
35044
""" This bootstrap module contains code for ensuring that the astropy_helpers package will be importable by the time the setup.py script runs. It also includes some workarounds to ensure that a recent-enough version of setuptools is being used for the installation. This module should be the first thing imported in th...
mit
Transkribus/TranskribusDU
TranskribusDU/tasks/DU_Table/rowDetection.py
1
90019
# -*- coding: utf-8 -*- """ Build Rows for a BIESO model H. Déjean copyright Xerox 2017, Naver 2017, 2018 READ project Developed for the EU project READ. The READ project has received funding from the European Union's Horizon 2020 research and innovation programme u...
bsd-3-clause
fabiopetroni/Dato-Core
src/unity/python/graphlab/data_structures/sarray.py
13
91593
""" This module defines the SArray class which provides the ability to create, access and manipulate a remote scalable array object. SArray acts similarly to pandas.Series but without indexing. The data is immutable, homogeneous, and is stored on the GraphLab Server side. """ ''' Copyright (C) 2015 Dato, Inc. All rig...
agpl-3.0
raghavrv/scikit-learn
sklearn/ensemble/tests/test_forest.py
6
42990
""" Testing for the forest module (sklearn.ensemble.forest). """ # Authors: Gilles Louppe, # Brian Holt, # Andreas Mueller, # Arnaud Joly # License: BSD 3 clause import pickle from collections import defaultdict from itertools import combinations from itertools import product import numpy ...
bsd-3-clause
fzalkow/scikit-learn
sklearn/metrics/pairwise.py
104
42995
# -*- 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
mikegraham/dask
dask/dataframe/tests/test_io.py
1
34901
import gzip import pandas as pd import numpy as np import pandas.util.testing as tm import os import dask import pytest from threading import Lock import shutil from time import sleep import threading import dask.array as da import dask.dataframe as dd from dask.dataframe.io import (from_array, from_bcolz, from_dask_a...
bsd-3-clause
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/matplotlib/backends/backend_tkagg.py
10
40267
# Todd Miller jmiller@stsci.edu from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import tkinter as Tk from six.moves import tkinter_filedialog as FileDialog import os, sys, math import os.path # Paint image to Tk photo blitter ex...
gpl-3.0
demiangomez/Parallel.GAMIT
classes/pyETM.py
1
109441
# -*- coding: utf-8 -*- """ Project: Parallel.Archive Date: 3/3/17 11:27 AM Author: Demian D. Gomez """ import numpy as np import pyStationInfo import pyDate from numpy import sin from numpy import cos from numpy import pi from scipy.stats import chi2 import pyEvents from zlib import crc32 from Utils import ct2lg from...
gpl-3.0
ryfeus/lambda-packs
Keras_tensorflow_nightly/source2.7/tensorflow/contrib/learn/python/learn/estimators/estimator.py
14
62939
# 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...
mit
joergdietrich/astropy
astropy/table/table.py
2
101482
# Licensed under a 3-clause BSD style license - see LICENSE.rst from __future__ import (absolute_import, division, print_function, unicode_literals) from ..extern import six from ..extern.six.moves import zip, range from .index import TableIndices, TableLoc, TableILoc import re import sys from ...
bsd-3-clause
MyRookie/SentimentAnalyse
venv/lib/python2.7/site-packages/numpy/linalg/linalg.py
11
75845
"""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
liam2/larray
larray/tests/test_array.py
2
174871
# -*- coding: utf8 -*- from __future__ import absolute_import, division, print_function import os import re import sys import pytest import numpy as np import pandas as pd from collections import OrderedDict from larray.tests.common import (inputpath, tmp_path, meta, assert_array_equ...
gpl-3.0
omerwe/PCGCs
deprecated/pcgcs_direct.py
1
39643
from __future__ import division import numpy as np import scipy.stats as stats import scipy.linalg as la import sys import random import time import os import os.path import pandas as pd import itertools np.set_printoptions(precision=4, linewidth=200) from sklearn.linear_model import LinearRegression, LogisticRegressio...
mit
Azeret/galIMF
plot_stellar_yield_table.py
1
38495
import time import math import matplotlib.pyplot as plt import numpy as np from scipy import interpolate import element_abundances_solar reference_name = 'Anders1989' H_abundances_solar = element_abundances_solar.function_solar_element_abundances(reference_name, 'H') # He_abundances_solar = element_abundances_solar.fu...
gpl-3.0
rohit21122012/DCASE2013
runs/2016/baseline2016_mfcc_21/src/evaluation.py
56
43426
#!/usr/bin/env python # -*- coding: utf-8 -*- import math import numpy import sys from sklearn import metrics class DCASE2016_SceneClassification_Metrics(): """DCASE 2016 scene classification metrics Examples -------- >>> dcase2016_scene_metric = DCASE2016_SceneClassification_Metrics(class_lis...
mit
bhargav/scikit-learn
sklearn/ensemble/tests/test_forest.py
26
41675
""" Testing for the forest module (sklearn.ensemble.forest). """ # Authors: Gilles Louppe, # Brian Holt, # Andreas Mueller, # Arnaud Joly # License: BSD 3 clause import pickle from collections import defaultdict from itertools import combinations from itertools import product import numpy ...
bsd-3-clause
LFPy/LFPy
LFPy/cell.py
1
106760
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Copyright (C) 2012 Computational Neuroscience Group, NMBU. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at you...
gpl-3.0
vrtsystems/pyhaystack
pyhaystack/client/ops/his.py
1
31373
#!/usr/bin/env python # -*- coding: utf-8 -*- """ High-level history functions. These wrap the basic his_read function to allow some alternate representations of the historical data. """ import hszinc import fysom import pytz from copy import deepcopy from datetime import tzinfo from six import string_types from .....
apache-2.0
anielsen001/scipy
scipy/cluster/hierarchy.py
2
96514
""" ======================================================== 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
bryangraham/ipt
ipt/att.py
1
39159
# Load library dependencies import numpy as np import numpy.linalg import scipy as sp import scipy.optimize import scipy.stats import pandas as pd # Import logit() command in ipt module since att() calls it from .logit import logit # Define att() function #-----------------------------------------------------------...
mit
mbayon/TFG-MachineLearning
venv/lib/python3.6/site-packages/scipy/signal/ltisys.py
7
116413
""" ltisys -- a collection of classes and functions for modeling linear time invariant systems. """ from __future__ import division, print_function, absolute_import # # Author: Travis Oliphant 2001 # # Feb 2010: Warren Weckesser # Rewrote lsim2 and added impulse2. # Apr 2011: Jeffrey Armstrong <jeff@approximatrix.co...
mit
trachelr/mne-python
mne/decoding/time_gen.py
2
49656
# Authors: Jean-Remi King <jeanremi.king@gmail.com> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Denis Engemann <denis.engemann@gmail.com> # Clement Moutard <clement.moutard@gmail.com> # # License: BSD (3-clause) import numpy as np import copy from ..io.pick import pick_...
bsd-3-clause
hainm/scipy
scipy/special/basic.py
26
64332
# # Author: Travis Oliphant, 2002 # from __future__ import division, print_function, absolute_import import warnings import numpy as np from scipy._lib.six import xrange from numpy import (pi, asarray, floor, isscalar, iscomplex, real, imag, sqrt, where, mgrid, sin, place, issubdtype, extract, ...
bsd-3-clause
xwolf12/scikit-learn
sklearn/decomposition/dict_learning.py
104
44632
""" Dictionary learning """ from __future__ import print_function # Author: Vlad Niculae, Gael Varoquaux, Alexandre Gramfort # License: BSD 3 clause import time import sys import itertools from math import sqrt, ceil import numpy as np from scipy import linalg from numpy.lib.stride_tricks import as_strided from ..b...
bsd-3-clause
blorgon9000/pyopus
pyopus/evaluator/measure.py
1
36720
# Measurements module """ .. inheritance-diagram:: pyopus.evaluator.measure :parts: 1 **Performance measure extraction module** All functions in this module do one of the following things: * return an object of a Python numeric type (int, float, or complex) * return an n-dimensional array (where n ca...
gpl-3.0
Statoil/libecl
python/ecl/grid/ecl_grid.py
1
58619
# Copyright (C) 2011 Equinor ASA, Norway. # # The file 'ecl_grid.py' is part of ERT - Ensemble based Reservoir Tool. # # ERT 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 Licens...
gpl-3.0
DGrady/pandas
pandas/tests/test_multilevel.py
2
106590
# -*- 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
MicrosoftGenomics/FaST-LMM
fastlmm/util/runner/Hadoop.py
1
31716
''' Runs a distributable job on an Hadoop cluster. Its run method return 'None' See SamplePi.py for examples. ''' import logging from fastlmm.util.runner import * import os import cPickle as pickle import subprocess, sys, os.path import multiprocessing import fastlmm.util.util as util import pdb from collections impo...
apache-2.0
dneuman/Weather
Weather.py
1
93251
#!/usr/bin/env python """ Weather Module ************** Routines to deal with bulk weather data from Environment Canada WxDF Class ---------- * Update - Add years to data * Save - Save consolidated data * GetFirstDay - returns index to first day of data * GetLastDay - Returns index to last day of data ...
bsd-3-clause
nburn42/tensorflow
tensorflow/contrib/learn/python/learn/estimators/dnn_linear_combined_test.py
30
70017
# 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
muLAn-project/muLAn
muLAn/models/grid_dmcmc.py
1
59319
# -*-coding:Utf-8 -* # ---------------------------------------------------------------------- # ---------------------------------------------------------------------- # External libraries # ---------------------------------------------------------------------- import sys import os # ---------------------------------...
mit
DucQuang1/py-earth
pyearth/earth.py
1
31698
from ._forward import ForwardPasser from ._pruning import PruningPasser from ._util import ascii_table, apply_weights_2d, apply_weights_1d, gcv from sklearn.base import RegressorMixin, BaseEstimator, TransformerMixin from sklearn.utils.validation import (assert_all_finite, check_is_fitted, ...
bsd-3-clause
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/tests/indexes/test_multi.py
1
88291
# -*- coding: utf-8 -*- from datetime import timedelta from itertools import product import nose import re import warnings from pandas import (date_range, MultiIndex, Index, CategoricalIndex, compat) from pandas.core.common import PerformanceWarning from pandas.indexes.base import InvalidIndexErro...
mit
flowmatters/veneer-py
veneer/general.py
1
36068
try: from urllib2 import quote import httplib as hc except: from urllib.request import quote import http.client as hc import json import re from .server_side import VeneerIronPython from .utils import SearchableList, _stringToList, read_veneer_csv, objdict#, deprecate_async import pandas as pd # Source...
isc
lhilt/scipy
scipy/optimize/zeros.py
3
50128
from __future__ import division, print_function, absolute_import import warnings from collections import namedtuple 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'] # M...
bsd-3-clause
dsm054/pandas
pandas/tests/io/test_excel.py
1
99752
# pylint: disable=E1101 import os import warnings from datetime import datetime, date, time, timedelta from distutils.version import LooseVersion from functools import partial from warnings import catch_warnings from collections import OrderedDict import numpy as np import pytest from numpy import nan import pandas a...
bsd-3-clause
linebp/pandas
pandas/io/pytables.py
1
161539
""" High level interface to PyTables for reading and writing pandas data structures to disk """ # pylint: disable-msg=E1101,W0613,W0603 from datetime import datetime, date import time import re import copy import itertools import warnings import os from pandas.core.dtypes.common import ( is_list_like, is_cate...
bsd-3-clause
stuartsale/marg_iso
marg_iso/posterior.py
1
36565
# Import stuff from __future__ import print_function, division import emcee import numpy as np from scipy import linalg import sklearn.cluster as sk_c import sklearn.mixture as sk_m # Attempt to import matplotlib try: import matplotlib as mpl import matplotlib.pyplot as plt mpl_present = True except Impor...
bsd-3-clause
mtkwock/Genome-Matching
code/thinkbayes2.py
1
67439
"""This file contains code for use with "Think Stats" and "Think Bayes", both by Allen B. Downey, available from greenteapress.com Copyright 2014 Allen B. Downey License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html """ from __future__ import print_function, division """This file contains class definitions for: H...
mit
treycausey/scikit-learn
sklearn/metrics/pairwise.py
1
42965
# -*- coding: utf-8 -*- """ The :mod:`sklearn.metrics.pairwise` submodule implements utilities to evaluate pairwise distances, paired distances or affinity of sets of samples. This module contains both distance metrics and kernels. A brief summary is given on the two here. Distance metrics are a function d(a, b) such...
bsd-3-clause
nachandr/cfme_tests
cfme/utils/smem_memory_monitor.py
2
67126
"""Monitor Memory on a CFME/Miq appliance and builds report&graphs displaying usage per process.""" import json import os import time import traceback from collections import OrderedDict from datetime import datetime from threading import Thread import yaml from yaycl import AttrDict from cfme.utils.conf import cfme_...
gpl-2.0
huzq/scikit-learn
sklearn/model_selection/_search.py
1
63016
""" 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
geopandas/geopandas
geopandas/base.py
1
112249
from warnings import warn import numpy as np import pandas as pd from pandas import DataFrame, Series from shapely.geometry import box from shapely.geometry.base import BaseGeometry from shapely.ops import cascaded_union from .array import GeometryArray, GeometryDtype def is_geometry_type(data): """ Check ...
bsd-3-clause
jhprinz/openpathsampling
openpathsampling/high_level/move_scheme.py
1
35322
import openpathsampling as paths from openpathsampling.tools import refresh_output from . import move_strategy from .move_strategy import levels as strategy_levels from openpathsampling.netcdfplus import StorableNamedObject try: import pandas as pd has_pandas = True except ImportError: has_pandas = False ...
lgpl-2.1
drammock/mne-python
mne/preprocessing/ica.py
2
118763
# -*- coding: utf-8 -*- # # Authors: Denis A. Engemann <denis.engemann@gmail.com> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Juergen Dammers <j.dammers@fz-juelich.de> # # License: BSD (3-clause) from inspect import isfunction from collections import namedtuple from copy import deepcopy from...
bsd-3-clause
zfrenchee/pandas
pandas/tests/frame/test_to_csv.py
1
45178
# -*- coding: utf-8 -*- from __future__ import print_function import csv import pytest from numpy import nan import numpy as np from pandas.compat import (lmap, range, lrange, StringIO, u) from pandas.core.common import _all_none from pandas.errors import ParserError from pandas import (DataFrame, Index, Series, Mu...
bsd-3-clause
utke1/numpy
numpy/core/tests/test_multiarray.py
3
247597
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 ctypes import os import gc if sys.version_info[0] >= 3: import builtins else: import __builtin__ as builtins from decima...
bsd-3-clause
chngchinboon/intercomstats
scripts/LLdataframe.py
1
43472
# -*- coding: utf-8 -*- """ Created on Wed Nov 16 16:19:36 2016 ######################################################################################################## #Current bugs ######################################################################################################## #Possible errors in overal...
mit
MJuddBooth/pandas
pandas/tests/series/test_analytics.py
1
58296
# 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 PY2, PY35, is_platform_windows, lrange, range import pandas.util._test_decorators as td import pa...
bsd-3-clause
adamrp/qiime
qiime/group.py
15
35019
#!/usr/bin/env python """This module contains functions useful for obtaining groupings.""" __author__ = "Jai Ram Rideout" __copyright__ = "Copyright 2011, The QIIME project" __credits__ = ["Jai Ram Rideout", "Greg Caporaso", "Jeremy Widmann"] __license__ = "GPL" __version__ = "1.9.1-dev"...
gpl-2.0
krez13/scikit-learn
sklearn/svm/classes.py
34
40599
import warnings import numpy as np from .base import _fit_liblinear, BaseSVC, BaseLibSVM from ..base import BaseEstimator, RegressorMixin from ..linear_model.base import LinearClassifierMixin, SparseCoefMixin, \ LinearModel from ..feature_selection.from_model import _LearntSelectorMixin from ..utils import check_X...
bsd-3-clause
waterponey/scikit-learn
sklearn/ensemble/tests/test_gradient_boosting.py
6
40529
""" 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
ishank08/scikit-learn
sklearn/cluster/tests/test_k_means.py
26
32656
"""Testing for K-means""" import sys import numpy as np from scipy import sparse as sp from sklearn.utils.testing import assert_equal from sklearn.utils.testing import assert_array_equal from sklearn.utils.testing import assert_array_almost_equal from sklearn.utils.testing import SkipTest from sklearn.utils.testing i...
bsd-3-clause
tomlof/scikit-learn
sklearn/model_selection/_validation.py
6
38471
""" 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