repo_name
string
path
string
copies
string
size
string
content
string
license
string
rvraghav93/scikit-learn
sklearn/manifold/t_sne.py
8
35910
# Author: Alexander Fabisch -- <afabisch@informatik.uni-bremen.de> # Author: Christopher Moody <chrisemoody@gmail.com> # Author: Nick Travers <nickt@squareup.com> # License: BSD 3 clause (C) 2014 # This is the exact and Barnes-Hut t-SNE implementation. There are other # modifications of the algorithm: # * Fast Optimi...
bsd-3-clause
andyfaff/scipy
scipy/stats/stats.py
3
310601
# Copyright 2002 Gary Strangman. All rights reserved # Copyright 2002-2016 The SciPy Developers # # The original code from Gary Strangman was heavily adapted for # use in SciPy by Travis Oliphant. The original code came with the # following disclaimer: # # This software is provided "as-is". There are no expressed or...
bsd-3-clause
waqasbhatti/astrobase
astrobase/lcproc/varthreshold.py
2
31916
#!/usr/bin/env python3 # -*- coding: utf-8 -*- # varthreshold.py - Waqas Bhatti (wbhatti@astro.princeton.edu) - Feb 2019 ''' This contains functions to investigate where to set a threshold for several variability indices to distinguish between variable and non-variable stars. ''' ############# ## LOGGING ## #########...
mit
ky822/scikit-learn
sklearn/ensemble/tests/test_forest.py
6
35370
""" 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 product import numpy as np from scipy.sparse import csr_...
bsd-3-clause
rohit21122012/DCASE2013
runs/2013/dnn_layerwise/bs1024/dnn_4layer/src/evaluation.py
38
42838
#!/usr/bin/env python # -*- coding: utf-8 -*- import sys import numpy import math from sklearn import metrics class DCASE2016_SceneClassification_Metrics(): """DCASE 2016 scene classification metrics Examples -------- >>> dcase2016_scene_metric = DCASE2016_SceneClassification_Metrics(class_list=...
mit
pravsripad/mne-python
mne/tests/test_cov.py
4
34692
# 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
UT-CWE/Hyospy
Hyospy_ensemble/lib/SUNTANS/DataIO/romsio_old.py
1
61855
""" Tools for dealing with ROMS model output See Octant project as well Created on Fri Mar 08 15:09:46 2013 @author: mrayson """ import numpy as np from netCDF4 import Dataset, MFDataset, num2date from datetime import datetime, timedelta import matplotlib.pyplot as plt from scipy import interpolate #...
mit
mitdbg/modeldb
client/verta/verta/_internal_utils/_utils.py
1
30525
# -*- coding: utf-8 -*- import datetime import glob import inspect import json import numbers import os import re import string import subprocess import sys import threading import time import requests from requests.adapters import HTTPAdapter from urllib3.util.retry import Retry from google.protobuf import json_for...
mit
ruohoruotsi/librosa
librosa/core/spectrum.py
1
36276
#!/usr/bin/env python # -*- coding: utf-8 -*- '''Utilities for spectral processing''' import numpy as np import scipy.fftpack as fft import scipy import scipy.signal import scipy.interpolate import six from . import time_frequency from .. import cache from .. import util from ..util.decorators import moved from ..uti...
isc
kdebrab/pandas
pandas/tests/io/test_excel.py
2
96935
# 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
tobiasgehring/qudi
logic/odmr_logic.py
1
39134
# -*- coding: utf-8 -*- """ This file contains the Qudi Logic module base class. Qudi is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Qudi...
gpl-3.0
USCLiquidPropulsionLaboratory/Engine-sizing-snake
GOX_kero.py
1
36017
## GOX-kerosene sim #@ Author Juha Nieminen #import sys #sys.path.insert(0, '/Users/juhanieminen/Documents/adamrocket') import RocketComponents as rc from physical_constants import poise, inches, Runiv, gallons, lbm, \ gearth, atm, psi, lbf from numpy import pi, linspace, cos, radians, sqrt, exp, log, array, full...
mit
xuewei4d/scikit-learn
sklearn/model_selection/tests/test_split.py
6
63286
"""Test the split module""" import warnings import pytest import numpy as np from scipy.sparse import coo_matrix, csc_matrix, csr_matrix from scipy import stats from scipy.special import comb from itertools import combinations from itertools import combinations_with_replacement from itertools import permutations from ...
bsd-3-clause
tylerjereddy/scipy
scipy/special/orthogonal.py
7
63520
""" A collection of functions to find the weights and abscissas for Gaussian Quadrature. These calculations are done by finding the eigenvalues of a tridiagonal matrix whose entries are dependent on the coefficients in the recursion formula for the orthogonal polynomials with the corresponding weighting function over ...
bsd-3-clause
nmartensen/pandas
pandas/core/strings.py
2
59878
import numpy as np from pandas.compat import zip from pandas.core.dtypes.generic import ABCSeries, ABCIndex from pandas.core.dtypes.missing import isna, notna from pandas.core.dtypes.common import ( is_bool_dtype, is_categorical_dtype, is_object_dtype, is_string_like, is_list_like, is_scalar, ...
bsd-3-clause
xodus7/tensorflow
tensorflow/python/estimator/canned/linear_testing_utils.py
2
86121
# 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
rohit21122012/DCASE2013
runs/2016/dnn2016med_nomel/dnn6.py
2
32057
#!/usr/bin/env python # -*- coding: utf-8 -*- # # DCASE 2016::Acoustic Scene Classification / Baseline System #import sys #sys.path.insert(0, '../') from src.ui import * from src.general import * from src.files import * from src.features import * from src.dataset import * from src.evaluation import * import numpy im...
mit
ViennaRNA/forgi
forgi/projection/projection2d.py
1
46522
from __future__ import absolute_import, division, print_function, unicode_literals # int is not imported from builtins here for performance reasons. # See: https://github.com/PythonCharmers/python-future/issues/136 from builtins import (ascii, bytes, chr, dict, filter, hex, input, map, next, oct, ...
gpl-3.0
uglyboxer/linear_neuron
net-p3/lib/python3.5/site-packages/matplotlib/__init__.py
10
48253
""" This is an object-oriented plotting library. A procedural interface is provided by the companion pyplot module, which may be imported directly, e.g.:: import matplotlib.pyplot as plt or using ipython:: ipython at your terminal, followed by:: In [1]: %matplotlib In [2]: import matplotlib.pyplot...
mit
nakul02/incubator-systemml
src/main/python/systemml/mllearn/estimators.py
4
41695
#------------------------------------------------------------- # # 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...
apache-2.0
TinyOS-Camp/DDEA-DEV
Archive/[14_10_11] Dr_Jung_Update/df_data_analysis_ver3_old.py
3
111874
# coding: utf-8 """ ============================================== Visualizing the enegy-sensor-weather structure ============================================== This example employs several unsupervised learning techniques to extract the energy data structure from variations in Building Automation System (BAS) and ...
gpl-2.0
saiwing-yeung/scikit-learn
sklearn/metrics/tests/test_ranking.py
32
41905
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
louisLouL/pair_trading
capstone_env/lib/python3.6/site-packages/pandas/core/groupby.py
4
148451
import types from functools import wraps import numpy as np import datetime import collections import warnings import copy from textwrap import dedent from pandas.compat import ( zip, range, lzip, callable, map ) from pandas import compat from pandas.compat.numpy import function as nv, _np_version_under1p8 fr...
mit
guschmue/tensorflow
tensorflow/python/keras/_impl/keras/engine/training.py
5
98431
# 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
keflavich/spectral-cube
spectral_cube/spectral_cube.py
2
165227
""" A class to represent a 3-d position-position-velocity spectral cube. """ from __future__ import print_function, absolute_import, division import warnings from functools import wraps import operator import re import itertools import copy import tempfile import textwrap from pathlib import PosixPath import six from...
bsd-3-clause
czhengsci/pymatgen
pymatgen/io/abinit/flows.py
3
116124
# coding: utf-8 # Copyright (c) Pymatgen Development Team. # Distributed under the terms of the MIT License. """ A Flow is a container for Works, and works consist of tasks. Flows are the final objects that can be dumped directly to a pickle file on disk Flows are executed using abirun (abipy). """ from __future__ impo...
mit
Titan-C/scikit-learn
sklearn/cluster/tests/test_k_means.py
10
32655
"""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
yanlend/scikit-learn
sklearn/metrics/tests/test_classification.py
53
49781
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
Fireblend/scikit-learn
sklearn/metrics/pairwise.py
5
43701
# -*- 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
hrichstein/Stellar_mass_env_Density
Codes/Scripts/clean_copy.py
1
75233
from __future__ import division, absolute_import import astropy.stats import glob import math import matplotlib.pyplot as plt from matplotlib import ticker from matplotlib.ticker import FormatStrFormatter import numpy as np import os import pandas as pd from scipy import optimize,spatial ###########################...
mit
ngoix/OCRF
sklearn/ensemble/weight_boosting.py
28
40740
"""Weight Boosting This module contains weight boosting estimators for both classification and regression. The module structure is the following: - The ``BaseWeightBoosting`` base class implements a common ``fit`` method for all the estimators in the module. Regression and classification only differ from each ot...
bsd-3-clause
tomlof/scikit-learn
sklearn/naive_bayes.py
20
30830
# -*- coding: utf-8 -*- """ The :mod:`sklearn.naive_bayes` module implements Naive Bayes algorithms. These are supervised learning methods based on applying Bayes' theorem with strong (naive) feature independence assumptions. """ # Author: Vincent Michel <vincent.michel@inria.fr> # Minor fixes by Fabian Pedre...
bsd-3-clause
chrisburr/scikit-learn
sklearn/decomposition/nmf.py
8
46556
""" 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
ip-tools/ip-navigator
patzilla/navigator/export.py
1
34177
# -*- coding: utf-8 -*- # (c) 2016-2018 Andreas Motl <andreas.motl@ip-tools.org> import os import json import types import string import logging import pandas import numpy import html2text import where import envoy import shutil import tempfile from io import BytesIO from textwrap import dedent from lxml import etree a...
agpl-3.0
zihua/scikit-learn
sklearn/grid_search.py
6
38777
""" 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
sahilshekhawat/sympy
sympy/utilities/runtests.py
3
79087
""" This is our testing framework. Goals: * it should be compatible with py.test and operate very similarly (or identically) * doesn't require any external dependencies * preferably all the functionality should be in this file only * no magic, just import the test file and execute the test functions, that's it * po...
bsd-3-clause
rrohan/scikit-learn
sklearn/tree/tests/test_tree.py
11
48140
""" Testing for the tree module (sklearn.tree). """ import pickle from functools import partial from itertools import product import platform import numpy as np from scipy.sparse import csc_matrix from scipy.sparse import csr_matrix from scipy.sparse import coo_matrix from sklearn.random_projection import sparse_rand...
bsd-3-clause
zCFD/zutil
zutil/post/post.py
1
38113
""" Helper functions for accessing Paraview functionality .. moduleauthor:: Zenotech Ltd """ from tqdm import tqdm from IPython.display import HTML, Javascript, display import uuid import csv from zutil import analysis import time import math from zutil import mag import json from zutil import rotate_vector from para...
mit
zhenwendai/RGP
svi_experiments/rgp_experiments.py
1
42403
#!/usr/bin/env python2 # -*- coding: utf-8 -*- """ Created on Mon Aug 21 11:51:21 2017 @author: grigoral """ from __future__ import print_function import autoreg import GPy import numpy as np from matplotlib import pyplot as plt import scipy.io as io from autoreg.benchmark import tasks # Define class for normalizati...
bsd-3-clause
emilroz/openmicroscopy
components/tools/OmeroPy/src/flim-omero.py
5
31427
#!/usr/bin/env python # -*- coding: utf-8 -*- """ components/tools/OmeroPy/scripts/omero/analysis_scripts/FLIM.py ----------------------------------------------------------------------------- Copyright (C) 2006-2010 University of Dundee. All rights reserved. This program is free software; you can redistribute i...
gpl-2.0
pastas/pastas
pastas/stressmodels.py
1
49209
"""This module contains all the stress models available in Pastas. Stress models are used to translate an input time series into a contribution that explains (part of) the output series. Examples -------- >>> sm = ps.StressModel(stress, rfunc=ps.Gamma, name="sm1") >>> ml.add_stressmodel(stressmodel=sm) See Also ---...
mit
agiovann/Constrained_NMF
use_cases/granule_cells/prepare_nice_image.py
2
39221
#!/usr/bin/env python # -*- coding: utf-8 -*- """ Created on Sun Jul 24 17:06:17 2016 @author: agiovann """ from __future__ import division from __future__ import print_function #%% from builtins import str from builtins import range from past.utils import old_div try: get_ipython().magic('load_ext autoreload')...
gpl-2.0
WMD-Bath/sulfur-model
scripts/plots.py
2
45105
#! /usr/bin/env python import argparse import os.path import numpy as np import matplotlib.pyplot as plt from matplotlib.ticker import MultipleLocator from matplotlib import gridspec from scipy.special import erf, erfc import ase.thermochemistry import ase.db import shelve from itertools import cycle from matplotli...
gpl-3.0
CASIANICA/brainDecodingToolbox
braincode/prf/tfprf.py
1
57805
# emacs: -*- mode: python; py-indent-offset: 4; indent-tabs-mode: nil -*- # vi: set ft=python sts=4 ts=4 sw=4 et: import os os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID" os.environ['CUDA_VISIBLE_DEVICES']='0' import numpy as np from math import log from scipy.misc import imresize import tables import tensorflow as...
bsd-3-clause
DailyActie/Surrogate-Model
01-codes/scikit-learn-master/sklearn/linear_model/logistic.py
1
67834
""" Logistic Regression """ # Author: Gael Varoquaux <gael.varoquaux@normalesup.org> # Fabian Pedregosa <f@bianp.net> # Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr> # Manoj Kumar <manojkumarsivaraj334@gmail.com> # Lars Buitinck # Simon Wu <s8wu@uwaterloo.ca> imp...
mit
henryroe/PyNOMAD
nomad/nomad.py
1
39768
import os.path import os from pandas import DataFrame from pandas.io.parsers import read_csv import numpy as np import datetime import gzip import sys import pickle import glob base_dir = os.path.abspath(os.path.dirname(__file__)) about = {} with open(os.path.join(base_dir, "__about__.py")) as f: exec(f.read(), a...
mit
thunderhoser/GewitterGefahr
gewittergefahr/gg_utils/linkage.py
1
114840
"""Links hazardous events to storm cells. Currently the only "hazardous events" handled by this code are damaging straight-line wind and tornadoes. --- DEFINITIONS --- "Storm cell" = a single thunderstorm (standard meteorological definition). I will use S to denote a storm cell. "Storm object" = one thunderstorm a...
mit
faroit/mir_eval
mir_eval/segment.py
1
43678
# CREATED:2013-08-13 12:02:42 by Brian McFee <brm2132@columbia.edu> ''' Evaluation criteria for structural segmentation fall into two categories: boundary annotation and structural annotation. Boundary annotation is the task of predicting the times at which structural changes occur, such as when a verse transitions to...
mit
anurag03/integration_tests
cfme/utils/smem_memory_monitor.py
2
67384
"""Monitor Memory on a CFME/Miq appliance and builds report&graphs displaying usage per process.""" import json import time import traceback from collections import OrderedDict from datetime import datetime from threading import Thread import os import six import yaml from yaycl import AttrDict from cfme.utils.conf i...
gpl-2.0
mrtommyb/GP_model_Kepler_data
code/transitemcee.py
3
44176
import sys import numpy as np #import matplotlib.pyplot as plt import emcee import tmodtom as tmod import time as thetime from scipy.stats import truncnorm from claretquadpy import claretquad from claret4ppy import claretlimb4p from copy import deepcopy from numpy import random #from bilin_interp import ld_quad clas...
mit
WindCanDie/spark
python/pyspark/sql/types.py
2
67075
# # 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
ygenc/onlineLDA
onlineldavb_new/build/scipy/scipy/stats/distributions.py
2
213950
# Functions to implement several important functions for # various Continous and Discrete Probability Distributions # # Author: Travis Oliphant 2002-2011 with contributions from # SciPy Developers 2004-2011 # import math import warnings from copy import copy from scipy.misc import comb, derivative from s...
gpl-3.0
BiaDarkia/scikit-learn
sklearn/decomposition/nmf.py
3
45741
""" Non-negative matrix factorization """ # Author: Vlad Niculae # Lars Buitinck # Mathieu Blondel <mathieu@mblondel.org> # Tom Dupre la Tour # License: BSD 3 clause from __future__ import division, print_function from math import sqrt import warnings import numbers import time import numpy ...
bsd-3-clause
Lawrence-Liu/scikit-learn
sklearn/ensemble/tests/test_forest.py
57
35265
""" 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 product import numpy as np from scipy.sparse import csr_...
bsd-3-clause
BigDataforYou/movie_recommendation_workshop_1
big_data_4_you_demo_1/venv/lib/python2.7/site-packages/pandas/tseries/tests/test_timedeltas.py
1
73366
# pylint: disable-msg=E1101,W0612 from __future__ import division from datetime import timedelta, time import nose from distutils.version import LooseVersion import numpy as np import pandas as pd from pandas import (Index, Series, DataFrame, Timestamp, Timedelta, TimedeltaIndex, isnull, date_ran...
mit
xubenben/scikit-learn
sklearn/neighbors/base.py
22
31143
"""Base and mixin classes for nearest neighbors""" # Authors: Jake Vanderplas <vanderplas@astro.washington.edu> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Sparseness support by Lars Buitinck <L.J.Buitinck@uva.nl> # Multi-output...
bsd-3-clause
Ziqi-Li/bknqgis
pandas/pandas/tests/reshape/test_merge_asof.py
7
37720
import os import pytest import pytz import numpy as np import pandas as pd from pandas import (merge_asof, read_csv, to_datetime, Timedelta) from pandas.core.reshape.merge import MergeError from pandas.util import testing as tm from pandas.util.testing import assert_frame_equal class TestAsOfMerg...
gpl-2.0
linebp/pandas
pandas/io/formats/format.py
1
86559
# -*- coding: utf-8 -*- """ Internal module for formatting output data in csv, html, and latex files. This module also applies to display formatting. """ from __future__ import print_function from distutils.version import LooseVersion # pylint: disable=W0141 from textwrap import dedent from pandas.core.dtypes.missin...
bsd-3-clause
agrimaldi/metaseq
metaseq/plotutils.py
3
34743
""" Module with handy utilities for plotting genomic signal """ import itertools import matplotlib from matplotlib import pyplot as plt from matplotlib import mlab import numpy as np from matplotlib.ticker import MaxNLocator from mpl_toolkits.axes_grid1 import make_axes_locatable from matplotlib import gridspec import ...
mit
jdparkins/MasiPlot
hapi.py
1
628709
# -*- coding: utf-8 -*- ''' This module provides an access to the HITRAN data. Data is downloaded and cached. This module serves as a simple database manager frontend. API is aimed to be RESTful, which means that interaction between local API and remote data-server will be held via sending RESTful queries...
gpl-3.0
nelson-liu/scikit-learn
sklearn/linear_model/coordinate_descent.py
4
81531
# 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
zhenv5/scikit-learn
sklearn/externals/joblib/parallel.py
79
35628
""" Helpers for embarrassingly parallel code. """ # Author: Gael Varoquaux < gael dot varoquaux at normalesup dot org > # Copyright: 2010, Gael Varoquaux # License: BSD 3 clause from __future__ import division import os import sys import gc import warnings from math import sqrt import functools import time import thr...
bsd-3-clause
kenshay/ImageScript
ProgramData/SystemFiles/Python/Lib/site-packages/pandas/tests/formats/test_format.py
7
165663
# -*- coding: utf-8 -*- # TODO(wesm): lots of issues making flake8 hard # flake8: noqa from __future__ import print_function from distutils.version import LooseVersion import re from pandas.compat import (range, zip, lrange, StringIO, PY3, u, lzip, is_platform_windows, ...
gpl-3.0
lthurlow/Network-Grapher
proj/external/matplotlib-1.2.1/lib/matplotlib/animation.py
2
37256
# 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
jonyroda97/redbot-amigosprovaveis
lib/matplotlib/tri/triinterpolate.py
2
65840
""" Interpolation inside triangular grids. """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import xrange from matplotlib.tri import Triangulation from matplotlib.tri.trifinder import TriFinder from matplotlib.tri.tritools impor...
gpl-3.0
perryjohnson/biplaneblade
biplane_blade_lib/prep_stn23_mesh.py
1
31016
"""Write initial TrueGrid files for one biplane blade station. Usage ----- start an IPython (qt)console with the pylab flag: $ ipython qtconsole --pylab or $ ipython --pylab Then, from the prompt, run this script: |> %run biplane_blade_lib/prep_stnXX_mesh.py or |> import biplane_blade_lib/prep_stnXX_mesh ...
gpl-3.0
kenshay/ImageScripter
ProgramData/SystemFiles/Python/Lib/site-packages/pandas/core/frame.py
7
214523
""" DataFrame --------- An efficient 2D container for potentially mixed-type time series or other labeled data series. Similar to its R counterpart, data.frame, except providing automatic data alignment and a host of useful data manipulation methods having to do with the labeling information """ from __future__ import...
gpl-3.0
meren/anvio
anvio/db.py
1
36410
# -*- coding: utf-8 # pylint: disable=line-too-long """ Low-level db operations. """ import os import time import math import numpy import pandas as pd import sqlite3 import warnings import anvio import anvio.tables as tables import anvio.terminal as terminal import anvio.filesnpaths as filesnpaths from anvio.er...
gpl-3.0
wlamond/scikit-learn
sklearn/preprocessing/data.py
8
68191
# 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
shoyer/xray
xarray/core/indexing.py
1
47782
import functools import operator from collections import defaultdict from contextlib import suppress from datetime import timedelta from typing import Sequence import numpy as np import pandas as pd from . import duck_array_ops, nputils, utils from .pycompat import dask_array_type, integer_types from .utils import is...
apache-2.0
kernc/scikit-learn
sklearn/neighbors/base.py
30
30564
"""Base and mixin classes for nearest neighbors""" # Authors: Jake Vanderplas <vanderplas@astro.washington.edu> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Sparseness support by Lars Buitinck # Multi-output support by Arnaud Jol...
bsd-3-clause
gengliangwang/spark
python/pyspark/pandas/internal.py
1
57972
# # 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
potash/scikit-learn
sklearn/model_selection/_split.py
7
61646
""" 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
videlec/sage-flatsurf
flatsurf/geometry/similarity_surface.py
1
105268
r""" Similarity surfaces. """ from __future__ import absolute_import, print_function, division from six.moves import range, map, filter, zip from six import iteritems import itertools from sage.misc.cachefunc import cached_method from sage.misc.sage_unittest import TestSuite from sage.structure.sage_object import S...
gpl-2.0
alexandrebarachant/mne-python
mne/decoding/time_gen.py
1
64983
# 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 .base import _set_cv f...
bsd-3-clause
davidyezsetz/kuma
vendor/packages/ipython/IPython/usage.py
7
31160
# -*- coding: utf-8 -*- #***************************************************************************** # Copyright (C) 2001-2004 Fernando Perez. <fperez@colorado.edu> # # Distributed under the terms of the BSD License. The full license is in # the file COPYING, distributed as part of this software. #**********...
mpl-2.0
Cryptoverse/cryptoverse-probe
main.py
1
58080
from json import dumps as json_dump from os import getenv, environ from sys import stdout, platform from traceback import print_exc as print_exception from datetime import datetime from time import sleep from ete3 import Tree from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives.a...
mit
jpautom/scikit-learn
sklearn/gaussian_process/gaussian_process.py
17
34896
# -*- coding: utf-8 -*- # Author: Vincent Dubourg <vincent.dubourg@gmail.com> # (mostly translation, see implementation details) # Licence: BSD 3 clause from __future__ import print_function import numpy as np from scipy import linalg, optimize from ..base import BaseEstimator, RegressorMixin from ..metrics...
bsd-3-clause
jblackburne/scikit-learn
sklearn/grid_search.py
4
38651
""" 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
markslwong/tensorflow
tensorflow/contrib/learn/python/learn/estimators/estimator.py
1
55289
# 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
ericd/redeem
redeem/Autotune_2.py
2
135061
""" Autotune for Redeem Author: Elias Bakken email: elias(dot)bakken(at)gmail(dot)com Website: http://www.thing-printer.com License: GNU GPL v3: http://www.gnu.org/copyleft/gpl.html Redeem is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by t...
gpl-3.0
petercable/xray
xray/test/test_dataset.py
1
87064
from copy import copy, deepcopy from textwrap import dedent try: import cPickle as pickle except ImportError: import pickle try: import dask.array as da except ImportError: pass import numpy as np import pandas as pd from xray import (align, concat, conventions, backends, Dataset, DataArray, ...
apache-2.0
anlambert/tulip
doc/python/tabulate.py
1
60926
# -*- coding: utf-8 -*- # Copyright (c) 2011-2019 Sergey Astanin # https://bitbucket.org/astanin/python-tabulate # 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, includ...
lgpl-3.0
FCH808/FCH808.github.io
Intro to Data Science/Project1_Part1.py
2
34015
# -*- coding: utf-8 -*- """ Created on Fri Dec 19 13:46:12 2014 @author: fch """ import pandas as pd import pandasql import csv filename="..\\data\\turnstile_data_master_with_weather.csv" ## Question 2.1 def num_rainy_days(filename): ''' This function should run a SQL query on a dataframe of weather da...
mit
rpp0/lora-phy-fingerprinting
tf_train.py
1
73515
#!/usr/bin/python2 # tf_train.py # # Collection of ML algorithms to fingerprint radio devices using Tensorflow. # A high level overview of the functionality provided by this code is given in # the paper entitled "Physical-Layer Fingerprinting of LoRa devices using # Supervised and Zero-Shot Learning", which was present...
bsd-3-clause
brclark-usgs/flopy
flopy/plot/map.py
1
30643
import copy import numpy as np try: import matplotlib.pyplot as plt import matplotlib.colors except: plt = None from . import plotutil from .plotutil import bc_color_dict from ..utils import SpatialReference class ModelMap(object): """ Class to create a map of the model. Paramet...
bsd-3-clause
ryfeus/lambda-packs
LightGBM_sklearn_scipy_numpy/source/sklearn/neighbors/base.py
19
30908
"""Base and mixin classes for nearest neighbors""" # Authors: Jake Vanderplas <vanderplas@astro.washington.edu> # Fabian Pedregosa <fabian.pedregosa@inria.fr> # Alexandre Gramfort <alexandre.gramfort@inria.fr> # Sparseness support by Lars Buitinck # Multi-output support by Arnaud Jol...
mit
jeffery-do/Vizdoombot
doom/lib/python3.5/site-packages/matplotlib/__init__.py
4
63770
""" This is an object-oriented plotting library. A procedural interface is provided by the companion pyplot module, which may be imported directly, e.g.:: import matplotlib.pyplot as plt or using ipython:: ipython at your terminal, followed by:: In [1]: %matplotlib In [2]: import matplotlib.pyplot...
mit
yavalvas/yav_com
build/matplotlib/lib/matplotlib/axes/_base.py
1
114520
from __future__ import (absolute_import, division, print_function, unicode_literals) import six from six.moves import xrange import itertools import warnings import math from operator import itemgetter import numpy as np from numpy import ma import matplotlib rcParams = matplotlib.rcParams ...
mit
aleksandr-bakanov/astropy
astropy/table/tests/test_table.py
3
93707
# -*- coding: utf-8 -*- # Licensed under a 3-clause BSD style license - see LICENSE.rst import gc import sys import copy from io import StringIO from collections import OrderedDict import pytest import numpy as np from numpy.testing import assert_allclose, assert_array_equal from astropy.io import fits from astropy....
bsd-3-clause
person142/scipy
scipy/interpolate/fitpack2.py
1
66715
""" fitpack --- curve and surface fitting with splines fitpack is based on a collection of Fortran routines DIERCKX by P. Dierckx (see http://www.netlib.org/dierckx/) transformed to double routines by Pearu Peterson. """ # Created by Pearu Peterson, June,August 2003 __all__ = [ 'UnivariateSpline', 'Interpolate...
bsd-3-clause
oscarlazoarjona/fast
examples/doctest_08___Three_level_atom_V_symbolic.py
1
72342
# -*- coding: utf-8 -*- # Copyright (C) 2017 Oscar Gerardo Lazo Arjona # mailto: oscar.lazo@correo.nucleares.unam.mx __doc__ = r""" >>> from fast import * >>> from matplotlib import pyplot >>> from sympy import sin,cos,exp,sqrt,pi,zeros,I >>> from numpy import array >>> init_printing() >>> print_ascii = True >>> # p...
gpl-3.0
beiko-lab/gengis
bin/Lib/site-packages/matplotlib/colors.py
3
53183
""" A module for converting numbers or color arguments to *RGB* or *RGBA* *RGB* and *RGBA* are sequences of, respectively, 3 or 4 floats in the range 0-1. This module includes functions and classes for color specification conversions, and for mapping numbers to colors in a 1-D array of colors called a colormap. Color...
gpl-3.0
herilalaina/scikit-learn
sklearn/cluster/k_means_.py
5
60896
"""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
pgrinaway/yank
Yank/utils.py
1
61480
import os import re import sys import copy import glob import json import shutil import signal import pandas import inspect import logging import itertools import subprocess import collections from contextlib import contextmanager from pkg_resources import resource_filename import mdtraj import parmed import numpy as...
lgpl-3.0
louisLouL/pair_trading
capstone_env/lib/python3.6/site-packages/matplotlib/backends/backend_pdf.py
2
98412
# -*- coding: utf-8 -*- """ A PDF matplotlib backend Author: Jouni K Seppänen <jks@iki.fi> """ from __future__ import (absolute_import, division, print_function, unicode_literals) import six import codecs import os import re import struct import sys import time import warnings import zlib imp...
mit
kevin-intel/scikit-learn
sklearn/utils/tests/test_extmath.py
3
35962
# Authors: Olivier Grisel <olivier.grisel@ensta.org> # Mathieu Blondel <mathieu@mblondel.org> # Denis Engemann <denis-alexander.engemann@inria.fr> # # License: BSD 3 clause import numpy as np from scipy import sparse from scipy import linalg from scipy import stats from scipy.sparse.linalg import eig...
bsd-3-clause
harisbal/pandas
pandas/tests/indexes/interval/test_interval.py
1
47407
from __future__ import division import re from itertools import permutations import numpy as np import pytest import pandas as pd import pandas.core.common as com import pandas.util.testing as tm from pandas import ( Index, Interval, IntervalIndex, Timedelta, Timestamp, date_range, interval_range, isna, notn...
bsd-3-clause
josephcslater/scipy
scipy/special/basic.py
3
70421
# # Author: Travis Oliphant, 2002 # from __future__ import division, print_function, absolute_import import warnings import numpy as np import math from scipy._lib.six import xrange from numpy import (pi, asarray, floor, isscalar, iscomplex, real, imag, sqrt, where, mgrid, sin, place, issubdtype,...
bsd-3-clause
jreback/pandas
pandas/tests/io/test_sql.py
1
106269
"""SQL io tests The SQL tests are broken down in different classes: - `PandasSQLTest`: base class with common methods for all test classes - Tests for the public API (only tests with sqlite3) - `_TestSQLApi` base class - `TestSQLApi`: test the public API with sqlalchemy engine - `TestSQLiteFallbackApi`: t...
bsd-3-clause