repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
mhdella/scikit-learn | sklearn/feature_extraction/text.py | 110 | 50157 | # -*- coding: utf-8 -*-
# Authors: Olivier Grisel <olivier.grisel@ensta.org>
# Mathieu Blondel <mathieu@mblondel.org>
# Lars Buitinck <L.J.Buitinck@uva.nl>
# Robert Layton <robertlayton@gmail.com>
# Jochen Wersdörfer <jochen@wersdoerfer.de>
# Roman Sinayev <roman.sinayev@gma... | bsd-3-clause |
brchiu/tensorflow | tensorflow/contrib/learn/python/learn/estimators/linear_test.py | 1 | 77825 | # 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 |
reichelu/copasul | src/copasul_preproc.py | 1 | 61579 |
# author: Uwe Reichel, Budapest, 2016
import os
import mylib as myl
import pandas as pd
import numpy as np
import scipy as si
import sigFunc as sif
import sys
import re
import copy as cp
### main ######################################
# adds:
# .myFileIdx
# .file_stem
# .ii - input idx (from lists i... | mit |
zhenv5/scikit-learn | sklearn/svm/classes.py | 126 | 40114 | 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 |
pizzathief/scipy | scipy/optimize/minpack.py | 2 | 34796 | import warnings
from . import _minpack
import numpy as np
from numpy import (atleast_1d, dot, take, triu, shape, eye,
transpose, zeros, prod, greater,
asarray, inf,
finfo, inexact, issubdtype, dtype)
from scipy.linalg import svd, cholesky, solve_triangular, LinA... | bsd-3-clause |
3324fr/spinalcordtoolbox | scripts/sct_get_centerline.py | 1 | 49809 | #!/usr/bin/env python
# ==========================================================================================
#
# Copyright (c) 2013 NeuroPoly, Polytechnique Montreal <www.neuro.polymtl.ca>
# Authors: Julien Cohen-Adad, Geoffrey Leveque, Olivier Comtois
#
# License: see the LICENSE.TXT
# ==========================... | mit |
mahak/spark | python/pyspark/pandas/spark/accessors.py | 11 | 42801 | #
# 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 |
Cortexelus/librosa | tests/test_core.py | 1 | 33211 | #!/usr/bin/env python
# CREATED:2013-03-08 15:25:18 by Brian McFee <brm2132@columbia.edu>
# unit tests for librosa core (__init__.py)
#
# Run me as follows:
# cd tests/
# nosetests -v --with-coverage --cover-package=librosa
#
from __future__ import print_function
# Disable cache
import os
try:
os.environ.pop(... | isc |
reichelu/copasul | src/sigFunc.py | 1 | 54145 |
import scipy.io.wavfile as sio
import scipy.signal as sis
from scipy import interpolate
import numpy as np
import math
import matplotlib.pyplot as plt
import mylib as myl
import sys
import copy as cp
import re
import scipy.fftpack as sf
# NOTE: int2float might be removed after scipy update/check
# (check defaul... | mit |
kikocorreoso/scikit-extremes | skextremes/models/engineering.py | 1 | 31949 | """
This module contains algorithms found in the literature and used extensively in
some fields.
The following paragraphs have been adapted from
`Makonnen, 2006 <http://journals.ametsoc.org/doi/pdf/10.1175/JAM2349.1>`_
The return period of an event of a specific large magnitude is of fundamental
interest. All eval... | mit |
vtsuperdarn/davitpy | davitpy/pydarn/sdio/sdDataTypes.py | 1 | 50094 | # Copyright (C) 2012 VT SuperDARN Lab
# Full license can be found in LICENSE.txt
#
# 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 your option) any lat... | gpl-3.0 |
pvlib/pvlib-python | pvlib/tests/test_solarposition.py | 2 | 38305 | import calendar
import datetime
import warnings
import numpy as np
import pandas as pd
from .conftest import assert_frame_equal, assert_series_equal
from numpy.testing import assert_allclose
import pytest
from pvlib.location import Location
from pvlib import solarposition, spa
from .conftest import requires_ephem, ... | bsd-3-clause |
fengzhyuan/scikit-learn | sklearn/ensemble/forest.py | 176 | 62555 | """Forest of trees-based ensemble methods
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls the ... | bsd-3-clause |
pythonvietnam/scikit-learn | sklearn/preprocessing/tests/test_data.py | 71 | 38516 | import warnings
import numpy as np
import numpy.linalg as la
from scipy import sparse
from distutils.version import LooseVersion
from sklearn.utils.testing import assert_almost_equal, clean_warning_registry
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import assert_array_equal... | bsd-3-clause |
wackymaster/QTClock | Libraries/matplotlib/backends/backend_pdf.py | 7 | 95987 | # -*- 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)
from matplotlib.externals import six
import codecs
import os
import re
import struct
import sys
import time
impor... | mit |
rustychris/stomel | src/live_dt2.py | 1 | 82189 | # This version uses the newer trigrid2 class, and doesn't bother with
# orthomaker (relevant parts of orthomaker are moved into trigrid2.)
################################################################################
# Maintain a live constrained delaunay triangulation of the grid.
# designed as a mixin
class Miss... | gpl-2.0 |
marcsans/cnn-physics-perception | phy/lib/python2.7/site-packages/matplotlib/ticker.py | 4 | 63240 | """
Tick locating and formatting
============================
This module contains classes to support completely configurable tick locating
and formatting. Although the locators know nothing about major or minor
ticks, they are used by the Axis class to support major and minor tick
locating and formatting. Generic t... | mit |
credp/lisa | lisa/tests/scheduler/load_tracking.py | 1 | 46840 | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2016, ARM Limited and contributors.
#
# 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
#
# ... | apache-2.0 |
Sorsly/subtle | google-cloud-sdk/lib/googlecloudsdk/third_party/appengine/api/appinfo.py | 1 | 95812 | # Copyright 2007 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ag... | mit |
espenhgn/ViSAPy | examples/ISI_waveforms/ISI_waveforms.py | 1 | 44953 | #!/usr/bin/env python
'''Test how interspike interval affect spike waveforms in terms of
spike amplitude and spike width
The script is set up as the other population scripts, but location
of the single cell is in origo, and we test only along x-axis'''
#import modules
import uuid
import urllib2
import zipfile
import ... | gpl-2.0 |
shuangshuangwang/spark | python/pyspark/sql/dataframe.py | 1 | 99845 | #
# 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 |
huzq/scikit-learn | sklearn/mixture/tests/test_gaussian_mixture.py | 11 | 42047 | # Author: Wei Xue <xuewei4d@gmail.com>
# Thierry Guillemot <thierry.guillemot.work@gmail.com>
# License: BSD 3 clause
import sys
import copy
import warnings
import pytest
import numpy as np
from scipy import stats, linalg
from sklearn.covariance import EmpiricalCovariance
from sklearn.datasets import make_sp... | bsd-3-clause |
vamsirajendra/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/ticker.py | 69 | 37420 | """
Tick locating and formatting
============================
This module contains classes to support completely configurable tick
locating and formatting. Although the locators know nothing about
major or minor ticks, they are used by the Axis class to support major
and minor tick locating and formatting. Generic t... | agpl-3.0 |
jeffery-do/Vizdoombot | doom/lib/python3.5/site-packages/numpy/fft/fftpack.py | 22 | 45592 | """
Discrete Fourier Transforms
Routines in this module:
fft(a, n=None, axis=-1)
ifft(a, n=None, axis=-1)
rfft(a, n=None, axis=-1)
irfft(a, n=None, axis=-1)
hfft(a, n=None, axis=-1)
ihfft(a, n=None, axis=-1)
fftn(a, s=None, axes=None)
ifftn(a, s=None, axes=None)
rfftn(a, s=None, axes=None)
irfftn(a, s=None, axes=None... | mit |
probcomp/bayeslite | src/bql.py | 1 | 47612 | # -*- coding: utf-8 -*-
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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/LICENS... | apache-2.0 |
johnnycakes79/pyops | pyops/draw.py | 1 | 35960 | """
This module makes pretty orbit graphics.
"""
from utils import getclosest, getorbelts, planetmu
from datetime import datetime
from PyAstronomy import pyasl
from PyAstronomy import constants as consts
import matplotlib.pyplot as plt
import numpy as np
import svgfig as svg
import inspect
import spice
import math
imp... | bsd-3-clause |
aktech/sympy | sympy/plotting/plot.py | 7 | 65097 | """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 |
haudren/scipy | scipy/optimize/_lsq/least_squares.py | 22 | 36536 | """Generic interface for least-square minimization."""
from __future__ import division, print_function, absolute_import
from warnings import warn
import numpy as np
from numpy.linalg import norm
from scipy.sparse import issparse, csr_matrix
from scipy.sparse.linalg import LinearOperator
from scipy.optimize import _m... | bsd-3-clause |
aosagie/spark | python/pyspark/ml/clustering.py | 8 | 49816 | #
# 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 |
mantidproject/mantid | qt/applications/workbench/workbench/plotting/test/test_figureinteraction.py | 3 | 31775 | # Mantid Repository : https://github.com/mantidproject/mantid
#
# Copyright © 2019 ISIS Rutherford Appleton Laboratory UKRI,
# NScD Oak Ridge National Laboratory, European Spallation Source,
# Institut Laue - Langevin & CSNS, Institute of High Energy Physics, CAS
# SPDX - License - Identifier: GPL - 3.0 +
# T... | gpl-3.0 |
TomAugspurger/engarde | docs/sphinxext/ipython_directive.py | 3 | 37521 | # -*- coding: utf-8 -*-
"""
Sphinx directive to support embedded IPython code.
This directive allows pasting of entire interactive IPython sessions, prompts
and all, and their code will actually get re-executed at doc build time, with
all prompts renumbered sequentially. It also allows you to input code as a pure
pyth... | mit |
wilsonkichoi/zipline | zipline/data/minute_bars.py | 2 | 33297 | # Copyright 2016 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writ... | apache-2.0 |
Astroua/TurbuStat | turbustat/statistics/delta_variance/delta_variance.py | 2 | 35092 | # Licensed under an MIT open source license - see LICENSE
from __future__ import (print_function, absolute_import, division,
unicode_literals)
import numpy as np
from astropy import units as u
from astropy.wcs import WCS
from copy import copy
import statsmodels.api as sm
from warnings import wa... | mit |
SunilMahendrakar/pagmo | PyGMO/problem/_gtop.py | 3 | 32255 | from PyGMO.problem._problem_space import cassini_1, gtoc_1, gtoc_2, cassini_2, rosetta, messenger_full, tandem, laplace, sagas, mga_1dsm_alpha, mga_1dsm_tof, mga_incipit, mga_incipit_cstrs, mga_part, _gtoc_2_objective
# Redefining the constructors of all problems to obtain good documentation
# and allowing kwargs
de... | gpl-3.0 |
dsullivan7/scikit-learn | sklearn/ensemble/forest.py | 2 | 59479 | """Forest of trees-based ensemble methods
Those methods include random forests and extremely randomized trees.
The module structure is the following:
- The ``BaseForest`` base class implements a common ``fit`` method for all
the estimators in the module. The ``fit`` method of the base ``Forest``
class calls the ... | bsd-3-clause |
bluegod/OSCAAR | oscaar/dataBank.py | 1 | 48054 | '''oscaar v2.0
Module for differential photometry
Developed by Brett Morris, 2011-2013 & minor modifications by Luuk Visser
'''
import numpy as np
import pyfits
from matplotlib import pyplot as plt
from scipy import optimize
from glob import glob
import os
import re
import oscaar
import mathMethods
import ... | mit |
Carmezim/tensorflow | tensorflow/contrib/learn/python/learn/estimators/estimator_test.py | 14 | 46097 | # 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 |
abhitopia/tensorflow | tensorflow/contrib/learn/python/learn/estimators/dnn_test.py | 22 | 57502 | # 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 |
RRCKI/pilot | dataPilot.py | 1 | 34155 | #!/bin/env python
################################################################################
# Trivial version of SimplePilot to be used with pilotWrapper
#
# The purpose of this version is to have a wrapper/pilot set
# as less verbose as possible, just for fast tests.
#
#######################################... | apache-2.0 |
AndrewGYork/tools | pco.py | 1 | 49855 | import time
import ctypes as C
import os
import numpy as np
class Camera:
def __init__(self, verbose=True, very_verbose=False):
self.verbose = verbose
self.very_verbose = very_verbose
self.camera_handle = C.c_void_p(0)
if verbose: print("Opening pco camera...")
try:
... | gpl-2.0 |
dimkal/mne-python | mne/viz/utils.py | 6 | 30185 | """Utility functions for plotting M/EEG data
"""
from __future__ import print_function
# Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Denis Engemann <denis.engemann@gmail.com>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Eric Larson <larson.eric.d@gmail.com>
# ... | bsd-3-clause |
ryfeus/lambda-packs | Tensorflow_LightGBM_Scipy_nightly/source/numpy/lib/recfunctions.py | 10 | 39618 | """
Collection of utilities to manipulate structured arrays.
Most of these functions were initially implemented by John Hunter for
matplotlib. They have been rewritten and extended for convenience.
"""
from __future__ import division, absolute_import, print_function
import sys
import itertools
import numpy as np
im... | mit |
ErillLab/CogsNormalizedPosteriorProbabilityThetas | igc_pipeline.py | 1 | 39929 | # -*- coding: utf-8 -*-
"""
This script automates processing of the IGC dataset.
Created on Tue Mar 17 19:13:08 2015
@author: Talmo
"""
import os
import sys
import time
import ast
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from tqdm import tqdm
from Bio import SeqIO
from PSSMScorer import P... | gpl-3.0 |
dismalpy/dismalpy | dismalpy/ssm/tests/test_varmax.py | 1 | 30495 | """
Tests for VARMAX models
Author: Chad Fulton
License: Simplified-BSD
"""
from __future__ import division, absolute_import, print_function
import numpy as np
import pandas as pd
import os
import re
import warnings
from statsmodels.datasets import webuse
from dismalpy.ssm import varmax
from dismalpy.ssm.tests.resul... | bsd-2-clause |
Kate-Willett/HadISDH_Marine_Build | EUSTACE_SST_MAT/Combined_Uncertainty_Grids.py | 1 | 38857 | # python 3
#
# Author: Kate Willett
# Created: 18 January 2019
# Last update: 19 January 2019
# Location: /data/local/hadkw/HADCRUH2/MARINE/EUSTACEMDS/EUSTACE_SST_MAT/
# GitHub: https://github.com/Kate-Willett/HadISDH_Marine_Build
# -----------------------
# CODE PURPOSE AND OUTPUT
# -----------------------
# Th... | cc0-1.0 |
robin-lai/scikit-learn | sklearn/ensemble/tests/test_forest.py | 48 | 39224 | """
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 |
bob-anderson-ok/py-ote | src/pyoteapp/pyote.py | 1 | 199800 | """
Created on Sat May 20 15:32:13 2017
@author: Bob Anderson
"""
import subprocess
MIN_SIGMA = 0.1
import datetime
import os
import sys
import platform
from openpyxl import load_workbook
from math import trunc, floor
import matplotlib.pyplot as plt
import matplotlib
matplotlib.use('Qt5Agg')
from pyoteapp.showVi... | mit |
smartscheduling/scikit-learn-categorical-tree | sklearn/linear_model/stochastic_gradient.py | 8 | 50342 | # 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 |
AlexRBaker/ScaffoldM | scaffoldm/compare.py | 1 | 45180 | #!/usr/bin/env python
###############################################################################
# #
# compare.py #
# ... | gpl-3.0 |
Microsoft/PTVS | Python/Product/Miniconda/Miniconda3-x64/Lib/site-packages/conda/_vendor/tqdm/_tqdm.py | 6 | 46609 | """
Customisable progressbar decorator for iterators.
Includes a default (x)range iterator printing to stderr.
Usage:
>>> from tqdm import trange[, tqdm]
>>> for i in trange(10): #same as: for i in tqdm(xrange(10))
... ...
"""
from __future__ import absolute_import
# integer division / : float, // : int
from ... | apache-2.0 |
markelg/xray | xray/test/test_dataarray.py | 1 | 59254 | import numpy as np
import pandas as pd
from copy import deepcopy
from textwrap import dedent
from xray import (align, concat, broadcast_arrays, Dataset, DataArray,
Coordinate, Variable)
from xray.core.pycompat import iteritems, OrderedDict
from . import (TestCase, ReturnItem, source_ndarray, unittest... | apache-2.0 |
OSSHealth/ghdata | workers/worker_base.py | 1 | 130034 | #SPDX-License-Identifier: MIT
""" Helper methods constant across all workers """
import requests
import datetime
import time
import traceback
import json
import os
import sys
import math
import logging
import numpy
import copy
import concurrent
import multiprocessing
import psycopg2
import csv
import io
from logging im... | mit |
hgrif/incubator-airflow | airflow/www/views.py | 2 | 97479 | # -*- coding: utf-8 -*-
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
... | apache-2.0 |
kenshay/ImageScripter | ProgramData/SystemFiles/Python/Lib/site-packages/matplotlib/backends/backend_pdf.py | 6 | 95758 | # -*- 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
fro... | gpl-3.0 |
NelisVerhoef/scikit-learn | sklearn/neighbors/base.py | 71 | 31147 | """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 |
mfjb/scikit-learn | sklearn/ensemble/weight_boosting.py | 97 | 40773 | """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 |
nu-xtal-tools/capow | capow.py | 1 | 58268 | ### CAPOW (calculation and plotting of optimal weights) ###
# NOTES: #
# Written using pyqt (4.10.1), matplotlib (2.0.2), numpy (1.12.1), scipy (0.19.0), python (2.7.5)
# requires window_tab.py (gui) and shelx_weighting.py (code to run weighting minimization)
# input: .fcf, SHELX LIST 4 or 8, (with .cif and .ins) or... | gpl-3.0 |
stevenwudi/Kernelized_Correlation_Filter | KCFpy.py | 1 | 58037 | """
This is a python reimplementation of the open source tracker in
High-Speed Tracking with Kernelized Correlation Filters
Joao F. Henriques, Rui Caseiro, Pedro Martins, and Jorge Batista, tPAMI 2015
modified by Di Wu
"""
import numpy as np
import matplotlib.pyplot as plt
from scipy.misc import imresize
class KCFTra... | gpl-3.0 |
miloharper/neural-network-animation | matplotlib/pyplot.py | 10 | 120496 | # Note: The first part of this file can be modified in place, but the latter
# part is autogenerated by the boilerplate.py script.
"""
Provides a MATLAB-like plotting framework.
:mod:`~matplotlib.pylab` combines pyplot with numpy into a single namespace.
This is convenient for interactive work, but for programming it
... | mit |
18padx08/PPTex | PPTexEnv_x86_64/lib/python2.7/site-packages/mpl_toolkits/mplot3d/axes3d.py | 7 | 92718 | #!/usr/bin/python
# axes3d.py, original mplot3d version by John Porter
# Created: 23 Sep 2005
# Parts fixed by Reinier Heeres <reinier@heeres.eu>
# Minor additions by Ben Axelrod <baxelrod@coroware.com>
# Significant updates and revisions by Ben Root <ben.v.root@gmail.com>
"""
Module containing Axes3D, an object which... | mit |
nhejazi/scikit-learn | sklearn/preprocessing/tests/test_data.py | 12 | 75601 | # Authors:
#
# Giorgio Patrini
#
# License: BSD 3 clause
from __future__ import division
import warnings
import numpy as np
import numpy.linalg as la
from scipy import sparse
from distutils.version import LooseVersion
from sklearn.utils import gen_batches
from sklearn.utils.testing import assert_almost_equa... | bsd-3-clause |
ekostat/ekostat_calculator | core/data_handlers.py | 1 | 96099 | # -*- coding: utf-8 -*-
"""
Created on Tue Oct 31 08:10:06 2017
@author: a002028
"""
import os
import sys
current_path = os.path.dirname(os.path.realpath(__file__))[:-4]
if current_path not in sys.path:
sys.path.append(current_path)
import pandas as pd
import numpy as np
import time
import pickle
import utils
i... | mit |
olakiril/pipeline | python/pipeline/stack.py | 1 | 136839 | """ Schemas for structural stacks. """
import datajoint as dj
from datajoint.jobs import key_hash
import matplotlib.pyplot as plt
import numpy as np
import scanreader
from scipy import signal
from scipy import ndimage
from scipy import optimize
import itertools
from . import experiment, notify, shared, reso, meso
anat... | lgpl-3.0 |
yanlend/scikit-learn | sklearn/manifold/t_sne.py | 52 | 34602 | # 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 |
DVegaCapital/zipline | zipline/algorithm.py | 2 | 48191 | #
# Copyright 2014 Quantopian, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in wr... | apache-2.0 |
SpaceKatt/CSPLN | apps/scaffolding/mac/web2py/web2py.app/Contents/Resources/lib/python2.7/matplotlib/backends/backend_svg.py | 2 | 40911 | from __future__ import division
import os, codecs, base64, tempfile, urllib, gzip, cStringIO, re, sys
import numpy as np
try:
from hashlib import md5
except ImportError:
from md5 import md5 #Deprecated in 2.5
from matplotlib import verbose, __version__, rcParams
from matplotlib.backend_bases import Renderer... | gpl-3.0 |
3324fr/spinalcordtoolbox | scripts/sct_viewer.py | 1 | 40399 | #!/usr/bin/env python
#########################################################################################
#
# Visualizer for MRI volumes
#
#
# ---------------------------------------------------------------------------------------
# Copyright (c) 2015 Polytechnique Montreal <www.neuro.polymtl.ca>
# Authors: Benja... | mit |
pprett/scikit-learn | sklearn/cluster/hierarchical.py | 2 | 33540 | """Hierarchical Agglomerative Clustering
These routines perform some hierarchical agglomerative clustering of some
input data.
Authors : Vincent Michel, Bertrand Thirion, Alexandre Gramfort,
Gael Varoquaux
License: BSD 3 clause
"""
from heapq import heapify, heappop, heappush, heappushpop
import warnings
i... | bsd-3-clause |
arlewis/galaxy_cutouts | extract_stamp.py | 1 | 35179 | import numpy as np
import astropy.io.fits
import astropy.wcs
import montage_wrapper as montage
from matplotlib.path import Path
import os
import sys
import shutil
import glob
import time
import scipy.ndimage as sp
from pdb import set_trace
# directories that contain the input data
_TOP_DIR = '/data/tycho/0/leroy.42... | mit |
kyleam/seaborn | seaborn/linearmodels.py | 7 | 57401 | """Plotting functions for linear models (broadly construed)."""
from __future__ import division
import copy
import itertools
from textwrap import dedent
import numpy as np
import pandas as pd
from scipy.spatial import distance
import matplotlib as mpl
import matplotlib.pyplot as plt
import warnings
try:
import st... | bsd-3-clause |
wanghaven/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/lines.py | 69 | 48233 | """
This module contains all the 2D line class which can draw with a
variety of line styles, markers and colors.
"""
# TODO: expose cap and join style attrs
from __future__ import division
import numpy as np
from numpy import ma
from matplotlib import verbose
import artist
from artist import Artist
from cbook import ... | agpl-3.0 |
sugartom/tensorflow-alien | tensorflow/contrib/learn/python/learn/estimators/estimator.py | 8 | 53916 | # 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 |
bdh1011/wau | venv/lib/python2.7/site-packages/pandas/tseries/tests/test_period.py | 1 | 120042 | """Tests suite for Period handling.
Parts derived from scikits.timeseries code, original authors:
- Pierre Gerard-Marchant & Matt Knox
- pierregm_at_uga_dot_edu - mattknow_ca_at_hotmail_dot_com
"""
from datetime import datetime, date, timedelta
from numpy.ma.testutils import assert_equal
from pandas import Timesta... | mit |
Vimos/scikit-learn | sklearn/metrics/classification.py | 4 | 72788 | """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 |
MJuddBooth/pandas | pandas/tests/frame/test_apply.py | 1 | 45389 | # -*- coding: utf-8 -*-
from __future__ import print_function
from collections import OrderedDict
from datetime import datetime
from itertools import chain
import operator
import warnings
import numpy as np
import pytest
from pandas.core.dtypes.dtypes import CategoricalDtype
import pandas as pd
from pandas import ... | bsd-3-clause |
mraspaud/mpop | mpop/imageo/formats/tifffile.py | 2 | 179637 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2014, Christoph Gohlke
# Copyright (c) 2008-2014, The Regents of the University of California
# Produced at the Laboratory for Fluorescence Dynamics
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or wit... | gpl-3.0 |
DouglasLeeTucker/DECam_PGCM | bin/sdss_galex_transform_u.py | 1 | 45529 | #!/usr/bin/env python
"""
sdss_galex_transform_u.py
Example:
sdss_galex_transform_u --help
sdss_galex_transform_u.py --matchFile sdssdr13GUVCat_297.csv --verbose 2
"""
##################################
import numpy as np
import pandas as pd
import math
from scipy import interpolate
from ... | gpl-3.0 |
harisbal/pandas | pandas/tests/io/test_pytables.py | 1 | 215736 | import pytest
import os
import tempfile
from contextlib import contextmanager
from warnings import catch_warnings, simplefilter
from distutils.version import LooseVersion
import datetime
from datetime import timedelta
import numpy as np
import pandas as pd
from pandas import (Series, DataFrame, Panel, MultiIndex, In... | bsd-3-clause |
gautam1168/tardis | tardis/gui.py | 2 | 31607 | import numpy as np
import matplotlib
#matplotlib.use('KtAgg')
import matplotlib.pylab as plt
import matplotlib.gridspec as gridspec
from matplotlib import colors
from matplotlib.patches import Circle
from matplotlib.figure import *
from matplotlib.backends.backend_qt4agg import FigureCanvasQTAgg as FigureCanvas
from ma... | bsd-3-clause |
maciejkula/scipy | scipy/interpolate/interpolate.py | 1 | 75440 | """ 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 |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/pandas/tseries/tests/test_resample.py | 1 | 43272 | # pylint: disable=E1101
from datetime import datetime, timedelta
from pandas.compat import range, lrange, zip, product
import numpy as np
from pandas import Series, TimeSeries, DataFrame, Panel, isnull, notnull, Timestamp
from pandas.tseries.index import date_range
from pandas.tseries.offsets import Minute, BDay
fr... | gpl-3.0 |
xyguo/scikit-learn | sklearn/tests/test_cross_validation.py | 24 | 47465 | """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 |
ZenDevelopmentSystems/scikit-learn | sklearn/ensemble/weight_boosting.py | 71 | 40664 | """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 |
bryndin/tornado-flickr-api | tornado_flickrapi/objects.py | 1 | 70898 | # -*- encoding: utf8 -*-
"""
Object Oriented implementation of Flickr API.
Important notes:
- For consistency, the naming of methods might differ from the name
in the official API. Please check the method "docstring" to know
what is the implemented method.
- For methods which expect an obj... | bsd-3-clause |
ndingwall/scikit-learn | sklearn/naive_bayes.py | 1 | 48947 | # -*- 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 |
zhouqiang00/Particle-Segmentation | CompareDataStars_data.py | 1 | 30346 | #!/home/zhouqiang/softwares/EMAN2/extlib/bin/python
# Author: Qiang Zhou
# School of Medicine, Tsinghua University
#
# 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 2 of the Licen... | gpl-3.0 |
levibostian/myBlanky | googleAppEngine/google/appengine/api/appinfo.py | 1 | 64057 | #!/usr/bin/env python
#
# Copyright 2007 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law o... | mit |
MechCoder/scikit-learn | sklearn/metrics/tests/test_classification.py | 5 | 61465 | 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 |
emd/random_data | random_data/spectra/nonparametric.py | 1 | 40561 | '''This module implements a routines for analyzing spectra.
'''
# Standard library imports
import numpy as np
from matplotlib import mlab
from matplotlib.colors import LogNorm, Colormap
import matplotlib.pyplot as plt
from matplotlib.ticker import LogFormatter
# Related 3rd-party imports
from ..ensemble import Ense... | gpl-2.0 |
andyraib/data-storage | python_scripts/env/lib/python3.6/site-packages/pandas/indexes/base.py | 7 | 129163 | import datetime
import warnings
import operator
import numpy as np
import pandas.tslib as tslib
import pandas.lib as lib
import pandas._join as _join
import pandas.algos as _algos
import pandas.index as _index
from pandas.lib import Timestamp, Timedelta, is_datetime_array
from pandas.compat import range, u
from panda... | apache-2.0 |
richardotis/scipy | scipy/stats/_distn_infrastructure.py | 11 | 112903 | #
# Author: Travis Oliphant 2002-2011 with contributions from
# SciPy Developers 2004-2011
#
from __future__ import division, print_function, absolute_import
from scipy._lib.six import string_types, exec_
import sys
import keyword
import re
import inspect
import types
import warnings
from scipy.misc impor... | bsd-3-clause |
kl0u/flink | flink-python/pyflink/table/table_environment.py | 1 | 88322 | ################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this... | apache-2.0 |
lfairchild/PmagPy | programs/zeq_magic.py | 1 | 32807 | #!/usr/bin/env python
# -*- python-indent-offset: 4; -*-
import pandas as pd
import numpy as np
import sys
import os
import matplotlib
if matplotlib.get_backend() != "TKAgg":
matplotlib.use("TKAgg")
import pmagpy.pmag as pmag
import pmagpy.pmagplotlib as pmagplotlib
import pmagpy.contribution_builder as cb
from ... | bsd-3-clause |
tony810430/flink | flink-python/pyflink/table/tests/test_pandas_udaf.py | 3 | 37046 | ################################################################################
# Licensed to the Apache Software Foundation (ASF) under one
# or more contributor license agreements. See the NOTICE file
# distributed with this work for additional information
# regarding copyright ownership. The ASF licenses this... | apache-2.0 |
rabernat/xray | xarray/tests/test_plot.py | 1 | 47643 | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
# import mpl and change the backend before other mpl imports
try:
import matplotlib as mpl
import matplotlib.pyplot as plt
except ImportError:
pass
import inspect
import numpy as np
import pandas ... | apache-2.0 |
Odingod/mne-python | mne/decoding/time_gen.py | 5 | 36854 | # 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 |
zfrenchee/pandas | pandas/tests/sparse/test_array.py | 4 | 33223 | from pandas.compat import range
import re
import operator
import pytest
import warnings
from numpy import nan
import numpy as np
from pandas.core.sparse.api import SparseArray, SparseSeries
from pandas._libs.sparse import IntIndex
from pandas.util.testing import assert_almost_equal
import pandas.util.testing as tm
... | bsd-3-clause |
cbmoore/statsmodels | statsmodels/sandbox/tsa/garch.py | 25 | 52178 | '''general non-linear MLE for time series analysis
idea for general version
------------------------
subclass defines geterrors(parameters) besides loglike,...
and covariance matrix of parameter estimates (e.g. from hessian
or outerproduct of jacobian)
update: I don't really need geterrors directly, but get_h the con... | bsd-3-clause |
Eric89GXL/scipy | scipy/special/add_newdocs.py | 3 | 185466 | # Docstrings for generated ufuncs
#
# The syntax is designed to look like the function add_newdoc is being
# called from numpy.lib, but in this file add_newdoc puts the
# docstrings in a dictionary. This dictionary is used in
# _generate_pyx.py to generate the docstrings for the ufuncs in
# scipy.special at the C level... | bsd-3-clause |
daodaoliang/neural-network-animation | matplotlib/backends/backend_tkagg.py | 10 | 31659 | # 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... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.