repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
aeklant/scipy | scipy/signal/windows/windows.py | 5 | 74101 | """The suite of window functions."""
import operator
import warnings
import numpy as np
from scipy import linalg, special, fft as sp_fft
__all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
'blackmanharris', 'flattop', 'bartlett', 'hanning', 'barthann',
'hamming', 'kaiser',... | bsd-3-clause |
grg2rsr/line_scan_traces_extractor | tifffile.py | 2 | 98853 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
# tifffile.py
# Copyright (c) 2008-2012, Christoph Gohlke
# Copyright (c) 2008-2012, 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-2.0 |
huongttlan/statsmodels | statsmodels/base/tests/test_data.py | 17 | 35047 | import numpy as np
from numpy.testing import assert_equal, assert_, assert_raises
import pandas
import pandas.util.testing as ptesting
from statsmodels.base import data as sm_data
from statsmodels.formula import handle_formula_data
#class TestDates(object):
# @classmethod
# def setupClass(cls):
# nrows =... | bsd-3-clause |
sjperkins/tensorflow | tensorflow/contrib/learn/python/learn/estimators/linear_test.py | 58 | 71789 | # 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 |
magne-max/zipline-ja | zipline/data/data_portal.py | 1 | 43044 | #
# 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 wr... | apache-2.0 |
xyguo/scikit-learn | sklearn/model_selection/_validation.py | 5 | 36985 | """
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 |
jefftc/changlab | genomicode/filelib.py | 1 | 31555 | """
Functions:
lwrite Write to a handle, locking it to prevent concurrent writing.
tswrite Write to a handle with a timestamp.
openfh Open a file name or handle.
safe_unlink Unlink file only if it exists.
safe_mkdir Make a directory only if it does not exist.
which Find full path of e... | mit |
rahuldhote/scikit-learn | sklearn/tree/tests/test_tree.py | 57 | 47417 | """
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 |
camisatx/pySecMaster | pySecMaster/download.py | 1 | 67312 | from datetime import datetime, timedelta
from functools import wraps
import numpy as np
import pandas as pd
import time
from urllib.request import urlopen
from urllib.error import HTTPError, URLError
from utilities.date_conversions import date_to_iso
__author__ = 'Josh Schertz'
__copyright__ = 'Copyright (C) 2018 Jo... | agpl-3.0 |
alvarofierroclavero/scikit-learn | sklearn/svm/classes.py | 13 | 40017 | 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 |
blaze/distributed | distributed/tests/test_client.py | 1 | 165917 | import asyncio
from collections import deque
from contextlib import suppress
from functools import partial
import gc
import logging
from operator import add
import os
import pickle
import psutil
import random
import subprocess
import sys
import threading
from threading import Semaphore
from time import sleep
import tra... | bsd-3-clause |
tensorflow/models | research/object_detection/utils/visualization_utils.py | 1 | 64213 | # 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 |
terkkila/scikit-learn | sklearn/utils/estimator_checks.py | 11 | 46945 | from __future__ import print_function
import types
import warnings
import sys
import traceback
import inspect
import pickle
from copy import deepcopy
import numpy as np
from scipy import sparse
import struct
from sklearn.externals.six.moves import zip
from sklearn.externals.joblib import hash, Memory
from sklearn.ut... | bsd-3-clause |
nelson-liu/scikit-learn | sklearn/utils/estimator_checks.py | 3 | 60988 | from __future__ import print_function
import types
import warnings
import sys
import traceback
import pickle
from copy import deepcopy
import numpy as np
from scipy import sparse
import struct
from sklearn.externals.six.moves import zip
from sklearn.externals.joblib import hash, Memory
from sklearn.utils.testing imp... | bsd-3-clause |
ammarkhann/FinalSeniorCode | lib/python2.7/site-packages/matplotlib/finance.py | 10 | 42914 | """
A collection of functions for collecting, analyzing and plotting
financial data.
This module is deprecated in 2.0 and has been moved to a module called
`mpl_finance`.
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import x... | mit |
rishikksh20/scikit-learn | sklearn/ensemble/tests/test_gradient_boosting.py | 19 | 40613 | """
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 |
dpinney/omf | omf/scratch/GRIP/grip.py | 1 | 37464 | ''' Web server exposing HTTP API for GRIP. '''
import os, traceback, tempfile, platform, zipfile, subprocess, time, shutil, sys, datetime, numbers
from functools import wraps
from multiprocessing import Process
import matplotlib.pyplot as plt
from flask import Flask, request, send_from_directory, make_response, json, a... | gpl-2.0 |
saullocastro/pyNastran | pyNastran/op2/tables/oes_stressStrain/oes_nonlinear.py | 1 | 37310 | from __future__ import (nested_scopes, generators, division, absolute_import,
print_function, unicode_literals)
from six import iteritems
from six.moves import range
from itertools import cycle
from math import isnan
import numpy as np
from numpy import zeros, array_equal
from pyNastran.op2.tab... | lgpl-3.0 |
acq4/acq4 | acq4/analysis/modules/IVCurve/IVCurve.py | 3 | 89452 | # -*- coding: utf-8 -*-
from __future__ import print_function
"""
IVCurve: Analysis module that analyzes current-voltage and firing
relationships from current clamp data.
This is part of Acq4
Paul B. Manis, Ph.D.
2011-2013.
Pep8 compliant (via pep8.py) 10/25/2013
Refactoring begun 3/21/2015
"""
from collections imp... | mit |
henry-ngo/VIP | vip_hci/negfc/mcmc_sampling.py | 1 | 39691 | #! /usr/bin/env python
"""
Module with the MCMC (``emcee``) sampling for NEGFC parameter estimation.
"""
from __future__ import print_function
__author__ = 'O. Wertz, C. Gomez @ ULg'
__all__ = ['lnprior',
'lnlike',
'mcmc_negfc_sampling',
'chain_zero_truncated',
'show_corner... | mit |
jpinedaf/pyspeckit | pyspeckit/spectrum/models/ammonia.py | 4 | 54171 | """
========================================
Ammonia inversion transition TROT fitter
========================================
Ammonia inversion transition TROT fitter translated from Erik Rosolowsky's
https://github.com/low-sky/nh3fit
.. moduleauthor:: Adam Ginsburg <adam.g.ginsburg@gmail.com>
Module API
^^^^^^^^^^... | mit |
BiaDarkia/scikit-learn | sklearn/metrics/pairwise.py | 1 | 47372 | # -*- 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 |
rs2/pandas | pandas/core/arrays/timedeltas.py | 1 | 35326 | from datetime import timedelta
from typing import List, Union
import numpy as np
from pandas._libs import lib, tslibs
from pandas._libs.tslibs import (
NaT,
NaTType,
Period,
Tick,
Timedelta,
Timestamp,
iNaT,
to_offset,
)
from pandas._libs.tslibs.conversion import precision_from_unit
fr... | bsd-3-clause |
jshiv/turntable | test/lib/python2.7/site-packages/scipy/signal/windows.py | 7 | 48626 | """The suite of window functions."""
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from scipy import special, linalg
from scipy.fftpack import fft
from scipy.lib.six import string_types
__all__ = ['boxcar', 'triang', 'parzen', 'bohman', 'blackman', 'nuttall',
... | mit |
mikebenfield/scipy | scipy/cluster/hierarchy.py | 5 | 98379 | """
========================================================
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 |
BBN-Q/QGL | QGL/drivers/APS3Pattern.py | 1 | 67288 | '''
Module for writing hdf5 APS2 files from sequences and patterns
Copyright 2014 Raytheon BBN Technologies
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/LICEN... | apache-2.0 |
musically-ut/numpy | numpy/core/tests/test_multiarray.py | 5 | 220057 | from __future__ import division, absolute_import, print_function
import collections
import tempfile
import sys
import os
import shutil
import warnings
import operator
import io
import itertools
if sys.version_info[0] >= 3:
import builtins
else:
import __builtin__ as builtins
from decimal import Decimal
impor... | bsd-3-clause |
sounay/flaminggo-test | onadata/libs/utils/export_tools.py | 3 | 40050 | import csv
from datetime import datetime, date
import json
import os
import re
import six
from urlparse import urlparse
from zipfile import ZipFile
from bson import json_util
from django.conf import settings
from django.core.files.base import File
from django.core.files.temp import NamedTemporaryFile
from django.core.... | bsd-2-clause |
ryfeus/lambda-packs | Skimage_numpy/source/scipy/ndimage/filters.py | 24 | 42327 | # Copyright (C) 2003-2005 Peter J. Verveer
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following d... | mit |
rajat1994/scikit-learn | sklearn/gaussian_process/gaussian_process.py | 83 | 34544 | # -*- 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 |
phoebe-project/phoebe2 | phoebe/dependencies/autofig/call.py | 1 | 114666 | import numpy as np
import astropy.units as u
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.collections import LineCollection, PolyCollection
from mpl_toolkits.mplot3d.art3d import Line3DCollection, Poly3DCollection
from . import common
from . import callbacks
def _map_none(v... | gpl-3.0 |
LACMTA/folium | folium/folium.py | 1 | 49682 | # -*- coding: utf-8 -*-
"""
Folium
-------
Make beautiful, interactive maps with Python and Leaflet.js
"""
from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import codecs
import functools
import json
from uuid import uuid4
from jinja2 import Environment, P... | mit |
gertingold/scipy | scipy/integrate/_bvp.py | 4 | 41187 | """Boundary value problem solver."""
from __future__ import division, print_function, absolute_import
from warnings import warn
import numpy as np
from numpy.linalg import norm, pinv
from scipy.sparse import coo_matrix, csc_matrix
from scipy.sparse.linalg import splu
from scipy.optimize import OptimizeResult
EPS =... | bsd-3-clause |
arahuja/scikit-learn | sklearn/tree/tree.py | 5 | 34304 | """
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 |
nakul02/incubator-systemml | src/main/python/systemml/defmatrix.py | 7 | 47077 | #-------------------------------------------------------------
#
# 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 |
TomAugspurger/pandas | pandas/tests/scalar/timedelta/test_arithmetic.py | 1 | 33663 | """
Tests for scalar Timedelta arithmetic ops
"""
from datetime import datetime, timedelta
import operator
import numpy as np
import pytest
import pandas as pd
from pandas import NaT, Timedelta, Timestamp, _is_numpy_dev, compat, offsets
import pandas._testing as tm
from pandas.core import ops
class TestTimedeltaAdd... | bsd-3-clause |
bjackman/lisa | libs/utils/wa_results_collector.py | 1 | 47802 | # Copyright 2017 ARM Limited
#
# 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 writin... | apache-2.0 |
DTOcean/dtocean-core | dtocean_core/data/definitions.py | 1 | 129810 |
# Copyright (C) 2016 Mathew Topper, David Bould, Rui Duarte, Francesco Ferri
# Copyright (C) 2017-2018 Mathew Topper
#
# 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 vers... | gpl-3.0 |
JungeAlexander/cocoscore | src/cocoscore/tagger/co_occurrence_score.py | 1 | 46412 | import collections
import copy
import gzip
import itertools
import os
import tempfile
import warnings
from statistics import mean
from statistics import stdev
import numpy as np
import pandas as pd
from sklearn import metrics
from ..ml import cv
from ..ml.distance_scores import constant_distance
from ..ml.distance_sc... | mit |
LumPenPacK/NetworkExtractionFromImages | osx_build/nefi2_osx_amd64_xcode_2015/site-packages/networkx/convert_matrix.py | 10 | 33329 | """Functions to convert NetworkX graphs to and from numpy/scipy matrices.
The preferred way of converting data to a NetworkX graph is through the
graph constuctor. The constructor calls the to_networkx_graph() function
which attempts to guess the input type and convert it automatically.
Examples
--------
Create a 10... | bsd-2-clause |
strint/tensorflow | tensorflow/contrib/learn/python/learn/estimators/estimator_test.py | 2 | 36442 | # 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 |
jtrussell/think-bayes-workspace | src/vendor/AllenDowney/species.py | 1 | 52910 | """This file contains code used in "Think Bayes",
by Allen B. Downey, available from greenteapress.com
Copyright 2012 Allen B. Downey
License: GNU GPLv3 http://www.gnu.org/licenses/gpl.html
"""
import matplotlib.pyplot as pyplot
import thinkplot
import numpy
import csv
import random
import shelve
import sys
import t... | mit |
joachimwolff/minHashNearestNeighbors | sparse_neighbors_search/neighbors/wtaHash.py | 1 | 30894 | # Copyright 2016, 2017, 2018, 2019, 2020 Joachim Wolff
# PhD Thesis
#
# Copyright 2015, 2016 Joachim Wolff
# Master Thesis
# Tutor: Fabrizio Costa
# Winter semester 2015/2016
#
# Chair of Bioinformatics
# Department of Computer Science
# Faculty of Engineering
# Albert-Ludwigs-University Freiburg im Breisgau
__author_... | mit |
anorfleet/turntable | test/lib/python2.7/site-packages/numpy/lib/recfunctions.py | 41 | 35014 | """
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 |
harisbal/pandas | pandas/core/resample.py | 2 | 53145 | from datetime import timedelta
import numpy as np
import warnings
import copy
from textwrap import dedent
import pandas as pd
from pandas.core.groupby.base import GroupByMixin
from pandas.core.groupby.ops import BinGrouper
from pandas.core.groupby.groupby import (
_GroupBy, GroupBy, groupby, _pipe_template
)
from ... | bsd-3-clause |
maartenbreddels/vaex | packages/vaex-core/vaex/legacy.py | 1 | 60957 | # -*- coding: utf-8 -*-
from __future__ import division, print_function
import numpy as np
import vaex
from .tasks import Task, TaskMapReduce
from .utils import _parse_f
import six
def _asfloat(a):
if a.dtype.type == np.float64 and a.strides[0] == 8:
return a
else:
return a.astype(np.float64, ... | mit |
bsipocz/seaborn | seaborn/categorical.py | 19 | 102299 | from __future__ import division
from textwrap import dedent
import colorsys
import numpy as np
from scipy import stats
import pandas as pd
from pandas.core.series import remove_na
import matplotlib as mpl
import matplotlib.pyplot as plt
import warnings
from .external.six import string_types
from .external.six.moves im... | bsd-3-clause |
EPAENERGYSTAR/epathermostat | thermostat/core.py | 1 | 75403 | from datetime import datetime, timedelta
from collections import namedtuple
from itertools import repeat
import inspect
from warnings import warn
import logging
import pandas as pd
import numpy as np
from scipy.optimize import leastsq
from pkg_resources import resource_stream
from thermostat.regression import runtime... | mit |
ronnyandersson/zignal | zignal/audio.py | 1 | 46119 | '''
Created on Dec 31, 2013
@author: Ronny Andersson (ronny@andersson.tk)
@copyright: (c) 2013 Ronny Andersson
@license: MIT
'''
# Standard library
import logging
import os
# Third party
import matplotlib.pyplot as plt
import numpy as np
import samplerate
import scipy.io.wavfile
import scipy.signal
# =============... | mit |
liyu1990/sklearn | sklearn/mixture/gmm.py | 7 | 30564 | """
Gaussian Mixture Models.
This implementation corresponds to frequentist (non-Bayesian) formulation
of Gaussian Mixture Models.
"""
# Author: Ron Weiss <ronweiss@gmail.com>
# Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Bertrand Thirion <bertrand.thirion@inria.fr>
import warnings
import numpy as... | bsd-3-clause |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/matplotlib/sankey.py | 1 | 40142 | #!/usr/bin/env python
"""
Module for creating Sankey diagrams using matplotlib
"""
__author__ = "Kevin L. Davies"
__credits__ = ["Yannick Copin"]
__license__ = "BSD"
__version__ = "2011/09/16"
# Original version by Yannick Copin (ycopin@ipnl.in2p3.fr) 10/2/2010, available
# at:
# http://matplotlib.org/examples/ap... | gpl-3.0 |
OGGM/oggm | oggm/core/flowline.py | 1 | 126363 | """Flowline modelling: bed shapes and model numerics.
"""
# Builtins
import logging
import copy
from collections import OrderedDict
from functools import partial
from time import gmtime, strftime
import os
import shutil
import warnings
# External libs
import numpy as np
import shapely.geometry as shpg
import xarray ... | bsd-3-clause |
ogrisel/scipy | scipy/signal/ltisys.py | 5 | 30979 | """
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.
# Aug 2013: Juan Luis Cano
# Rewrote abcd_normaliz... | bsd-3-clause |
Intel-Corporation/tensorflow | tensorflow/tools/compatibility/renames_v2.py | 1 | 55971 | # Copyright 2018 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 |
wxgeo/geophar | wxgeometrie/sympy/utilities/runtests.py | 1 | 85989 | """
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... | gpl-2.0 |
nespinoza/exonailer | utilities/data_utils.py | 1 | 88290 | # -*- coding: utf-8 -*-
from math import floor,ceil
import matplotlib.pyplot as plt
plt.style.use('ggplot')
import matplotlib.gridspec as gridspec
try:
import george
from george import kernels
except:
print 'Warning! The george package is not installed. Some GP functionalities will not work.'
try:
impo... | mit |
ryfeus/lambda-packs | Pandas_numpy/source/pandas/core/frame.py | 1 | 238227 | """
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... | mit |
glemaitre/fdasrsf | fdasrsf/time_warping.py | 1 | 34102 | """
Group-wise function alignment using SRSF framework and Dynamic Programming
moduleauthor:: Derek Tucker <dtucker@stat.fsu.edu>
"""
import numpy as np
import matplotlib.pyplot as plt
import fdasrsf.utility_functions as uf
from scipy.integrate import trapz, cumtrapz
from scipy.linalg import svd
from numpy.linalg imp... | gpl-3.0 |
HullUni-bioinformatics/ReproPhyloDockerfile | reprophylo.py | 2 | 281415 | reprophyloversion=1.0
############################################################################################
if False:
"""
ReproPhylo version 1
General purpose phylogenetics package for reproducible and experimental analysis
Amir Szitenebrg
A.Szitenberg@Hull.ac.uk
Szitenberg@gma... | bsd-2-clause |
frank-tancf/scikit-learn | sklearn/linear_model/tests/test_sgd.py | 14 | 44270 | import pickle
import unittest
import numpy as np
import scipy.sparse as sp
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import assert_greater
from sklearn.utils.testing ... | bsd-3-clause |
thatchristoph/RTLSDR-Scanner | src/panels.py | 1 | 32280 | #
# rtlsdr_scan
#
# http://eartoearoak.com/software/rtlsdr-scanner
#
# Copyright 2012 - 2014 Al Brown
#
# A frequency scanning GUI for the OsmoSDR rtl-sdr library at
# http://sdr.osmocom.org/trac/wiki/rtl-sdr
#
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Gene... | gpl-3.0 |
wangmiao1981/spark | python/pyspark/pandas/indexes/multi.py | 2 | 41734 | #
# 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 |
dsokoler/StockAnalytics | Stock.py | 1 | 37881 | import sys, configparser, json
from datetime import datetime
importError = False;
try:
import requests
except ImportError:
print("Please install requests: 'pip3 install requests'");
importError = True;
#MatPlotLib for visualizations
try:
import matplotlib.pyplot as plt;
import matplotlib.ticker as mticker
fro... | mit |
krbeverx/Firmware | Tools/process_sensor_caldata.py | 2 | 48768 | #! /usr/bin/env python
from __future__ import print_function
import argparse
import os
import math
import matplotlib.pyplot as plt
import numpy as np
from pyulog import *
"""
Reads in IMU data from a static thermal calibration test and performs a curve fit of gyro, accel and baro bias vs temperature
Data can be gat... | bsd-3-clause |
BlueBrain/deap | deap/gp.py | 9 | 46662 | # This file is part of DEAP.
#
# DEAP is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# DEAP is distributed ... | lgpl-3.0 |
RJT1990/pyflux | pyflux/gas/gasreg.py | 1 | 32794 | import sys
if sys.version_info < (3,):
range = xrange
import numpy as np
import pandas as pd
import scipy.stats as ss
import scipy.special as sp
from patsy import dmatrices, dmatrix, demo_data
from .. import families as fam
from .. import tsm as tsm
from .. import data_check as dc
from .gas_core_recursions impor... | bsd-3-clause |
dyoung418/tensorflow | tensorflow/contrib/learn/python/learn/learn_io/data_feeder.py | 15 | 31142 | # 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 |
pulinagrawal/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/text.py | 69 | 55366 | """
Classes for including text in a figure.
"""
from __future__ import division
import math
import numpy as np
from matplotlib import cbook
from matplotlib import rcParams
import artist
from artist import Artist
from cbook import is_string_like, maxdict
from font_manager import FontProperties
from patches import bbox... | agpl-3.0 |
bmazin/SDR | Setup/PSFit_ml_diffAttens.py | 1 | 40224 | '''
Author Rupert Dodkins
A script to automate the identification of resonator attenuations normally performed by PSFit.py. This is accomplished
using Google's Tensor Flow machine learning package which implements a pattern recognition algorithm on the IQ velocity
spectrum. The code implements a 2D image classificat... | gpl-2.0 |
sauliusl/seaborn | seaborn/tests/test_axisgrid.py | 3 | 51598 | import warnings
import numpy as np
import pandas as pd
from scipy import stats
import matplotlib as mpl
import matplotlib.pyplot as plt
from distutils.version import LooseVersion
import pytest
import nose.tools as nt
import numpy.testing as npt
from numpy.testing.decorators import skipif
try:
import pandas.testin... | bsd-3-clause |
nhejazi/scikit-learn | sklearn/metrics/tests/test_common.py | 8 | 43668 | from __future__ import division, print_function
from functools import partial
from itertools import product
import numpy as np
import scipy.sparse as sp
from sklearn.datasets import make_multilabel_classification
from sklearn.preprocessing import LabelBinarizer
from sklearn.utils.multiclass import type_of_target
fro... | bsd-3-clause |
jseabold/statsmodels | statsmodels/genmod/generalized_estimating_equations.py | 4 | 115703 | """
Procedures for fitting marginal regression models to dependent data
using Generalized Estimating Equations.
References
----------
KY Liang and S Zeger. "Longitudinal data analysis using
generalized linear models". Biometrika (1986) 73 (1): 13-22.
S Zeger and KY Liang. "Longitudinal Data Analysis for Discrete and
... | bsd-3-clause |
cloudera/ibis | ibis/expr/datatypes.py | 1 | 51710 | import builtins
import collections
import datetime
import functools
import itertools
import numbers
import re
import typing
from typing import Any as GenericAny
from typing import (
Callable,
Iterator,
List,
Mapping,
NamedTuple,
Optional,
Sequence,
)
from typing import Set as GenericSet
from... | apache-2.0 |
matk86/pymatgen | pymatgen/io/abinit/flows.py | 2 | 105937 | # 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 |
AdaptiveApplications/carnegie | tarc_bus_locator_client/numpy-1.8.1/numpy/lib/function_base.py | 9 | 113795 | from __future__ import division, absolute_import, print_function
__docformat__ = "restructuredtext en"
__all__ = [
'select', 'piecewise', 'trim_zeros', 'copy', 'iterable', 'percentile',
'diff', 'gradient', 'angle', 'unwrap', 'sort_complex', 'disp',
'extract', 'place', 'vectorize', 'asarray_chkfinite', 'ave... | mit |
legacysurvey/legacypipe | py/legacyanalysis/compare-to-ps1.py | 2 | 30435 | from __future__ import print_function
import matplotlib
matplotlib.use('Agg')
import pylab as plt
import numpy as np
import os
import sys
from astrometry.util.fits import fits_table
from astrometry.libkd.spherematch import match_radec
from astrometry.util.plotutils import PlotSequence
from legacyanalysis.ps1cat impor... | bsd-3-clause |
drpngx/tensorflow | tensorflow/contrib/metrics/python/ops/metric_ops.py | 6 | 176288 | # 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 |
Batch21/pywr | tests/test_parameters.py | 1 | 38337 | """
Test for individual Parameter classes
"""
from __future__ import division
from pywr.core import Model, Timestep, Scenario, ScenarioIndex, Storage, Link, Input, Output
from pywr.parameters import (Parameter, ArrayIndexedParameter, ConstantScenarioParameter,
ArrayIndexedScenarioMonthlyFactorsParameter, MonthlyPro... | gpl-3.0 |
NDManh/numbbo | code-postprocessing/bbob_pproc/pprldistr.py | 3 | 35794 | #! /usr/bin/env python
# -*- coding: utf-8 -*-
"""For generating empirical cumulative distribution function figures.
The outputs show empirical cumulative distribution functions (ECDFs) of
the running times of trials. These ECDFs show on the y-axis the fraction
of cases for which the running time (left subplots) or t... | bsd-3-clause |
guoxiaolongzte/spark | python/pyspark/sql/session.py | 4 | 37209 | #
# 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 |
annoviko/pyclustering | pyclustering/cluster/bang.py | 1 | 44713 | """!
@brief Cluster analysis algorithm: BANG.
@details Implementation based on paper @cite inproceedings::bang::1.
@authors Andrei Novikov (pyclustering@yandex.ru)
@date 2014-2020
@copyright BSD-3-Clause
"""
import itertools
import matplotlib
import matplotlib.gridspec as gridspec
import matplotlib.... | gpl-3.0 |
Erotemic/ibeis | ibeis/unstable/demobayes.py | 1 | 36463 | from __future__ import absolute_import, division, print_function, unicode_literals
import six # NOQA
import utool as ut
import numpy as np
from ibeis.algo.hots.bayes import make_name_model, temp_model, draw_tree_model
print, rrr, profile = ut.inject2(__name__)
def trytestdata_demo_cfgs():
alias_keys = {'nA': 'nu... | apache-2.0 |
ajylee/gpaw-rtxs | gpaw/transport/jstm.py | 1 | 66345 | from ase.units import Bohr, Hartree
from gpaw import GPAW
from gpaw.fd_operators import Laplace
from gpaw.utilities.tools import tri2full
from gpaw.lcao.projected_wannier import dots
from gpaw.grid_descriptor import GridDescriptor
from gpaw.lfc import NewLocalizedFunctionsCollection as LFC
from gpaw.lcao.tools import r... | gpl-3.0 |
ChinaQuants/zipline | tests/test_perf_tracking.py | 2 | 80474 | #
# Copyright 2013 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 |
deisi/SFG2D | sfg2d/models.py | 1 | 53293 | """Fitting Models to Fit data with."""
import numpy as np
from scipy.integrate import odeint
from scipy.special import erf, erfc
from scipy.stats import norm, skewnorm
from iminuit import Minuit, describe
import sys
import yaml
import logging
from .utils.static import sfgn
thismodule = sys.modules[__name__]
logger = ... | mit |
richardtran415/pymatgen | pymatgen/io/abinit/pseudos.py | 5 | 65306 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides objects describing the basic parameters of the
pseudopotentials used in Abinit, and a parser to instantiate pseudopotential objects..
"""
import abc
import collections
import logging
im... | mit |
lamastex/scalable-data-science | dbcArchives/2021/000_0-sds-3-x-projects/student-project-08_group-DistributedEnsemble/00_project.py | 1 | 34478 | # Databricks notebook source
# MAGIC %md
# MAGIC ScaDaMaLe Course [site](https://lamastex.github.io/scalable-data-science/sds/3/x/) and [book](https://lamastex.github.io/ScaDaMaLe/index.html)
# COMMAND ----------
# MAGIC %md
# MAGIC # Distributed ensembles
# MAGIC
# MAGIC _Amanda Olmin, Amirhossein Ahmadian and Jako... | unlicense |
ericmckean/syzygy | third_party/numpy/files/numpy/fft/fftpack.py | 22 | 39261 | """
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... | apache-2.0 |
DuCorey/bokeh | bokeh/palettes.py | 6 | 80076 | ###########################################################################
# License regarding the Viridis, Magma, Plasma and Inferno colormaps:
# New matplotlib colormaps by Nathaniel J. Smith, Stefan van der Walt,
# and (in the case of viridis) Eric Firing.
#
# The Viridis, Magma, Plasma, and Inferno colormaps are r... | bsd-3-clause |
mfalesni/cfme_tests | cfme/utils/smem_memory_monitor.py | 1 | 67077 | """Monitor Memory on a CFME/Miq appliance and builds report&graphs displaying usage per process."""
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import os
import time
import traceback
import yaml
import six
from cfme.utils.conf import cfme_performance
from cfme.utils.log import logger
from cfme.ut... | gpl-2.0 |
Guokr1991/seaborn | seaborn/categorical.py | 4 | 101804 | from __future__ import division
from textwrap import dedent
import colorsys
import numpy as np
from scipy import stats
import pandas as pd
from pandas.core.series import remove_na
import matplotlib as mpl
import matplotlib.pyplot as plt
import warnings
from .external.six import string_types
from .external.six.moves im... | bsd-3-clause |
bbcdli/xuexi | fenlei_tf/script_Jan26/src/version1/tools.py | 2 | 45004 | #hy:Changes by Haiyan, change logs are in tensorflow_train.py
#####################################################################################################
import ImageDraw
import ImageFilter
import ImageOps
import time
import random
import glob
from functools import wraps
from random import randint
i... | apache-2.0 |
thunderhoser/GewitterGefahr | gewittergefahr/gg_utils/interp.py | 1 | 55573 | """Interpolation methods."""
import copy
import os.path
import numpy
import pandas
import scipy.interpolate
from gewittergefahr.gg_io import grib_io
from gewittergefahr.gg_io import nwp_model_io
from gewittergefahr.gg_utils import general_utils
from gewittergefahr.gg_utils import nwp_model_utils
from gewittergefahr.gg... | mit |
jcurbelo/networkx | networkx/convert_matrix.py | 9 | 33216 | """Functions to convert NetworkX graphs to and from numpy/scipy matrices.
The preferred way of converting data to a NetworkX graph is through the
graph constuctor. The constructor calls the to_networkx_graph() function
which attempts to guess the input type and convert it automatically.
Examples
--------
Create a 10... | bsd-3-clause |
dajohnso/cfme_tests | utils/smem_memory_monitor.py | 1 | 67180 | """Monitor Memory on a CFME/Miq appliance and builds report&graphs displaying usage per process."""
import matplotlib.dates as mdates
import matplotlib.pyplot as plt
import os
import time
import traceback
import yaml
from utils.conf import cfme_performance
from utils.log import logger
from utils.path import results_pa... | gpl-2.0 |
pieleric/odemis | src/odemis/gui/conf/data.py | 2 | 35268 | # -*- coding: utf-8 -*-
"""
:author: Rinze de Laat <laat@delmic.com>
:copyright: © 2013-2017 Rinze de Laat, Éric Piel, Delmic
This file is part of Odemis.
.. license::
Odemis is free software: you can redistribute it and/or modify it under the terms of the GNU
General Public License version 2 as published b... | gpl-2.0 |
spbguru/repo1 | external/linux32/lib/python2.6/site-packages/matplotlib/axes.py | 69 | 259904 | from __future__ import division, generators
import math, sys, warnings, datetime, new
import numpy as np
from numpy import ma
import matplotlib
rcParams = matplotlib.rcParams
import matplotlib.artist as martist
import matplotlib.axis as maxis
import matplotlib.cbook as cbook
import matplotlib.collections as mcoll
im... | gpl-3.0 |
mbayon/TFG-MachineLearning | vbig/lib/python2.7/site-packages/pandas/io/stata.py | 6 | 83955 | """
Module contains tools for processing Stata files into DataFrames
The StataReader below was originally written by Joe Presbrey as part of PyDTA.
It has been extended and improved by Skipper Seabold from the Statsmodels
project who also developed the StataWriter and was finally added to pandas in
a once again improv... | mit |
JosmanPS/scikit-learn | sklearn/cross_validation.py | 8 | 58526 | """
The :mod:`sklearn.cross_validation` module includes utilities for cross-
validation and performance evaluation.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>,
# Gael Varoquaux <gael.varoquaux@normalesup.org>,
# Olivier Grisel <olivier.grisel@ensta.org>
# License: BSD 3 clause
from... | bsd-3-clause |
boomsbloom/dtm-fmri | DTM/for_gensim/lib/python2.7/site-packages/matplotlib/colors.py | 1 | 71098 | """
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... | mit |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.