repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
llhe/tensorflow | tensorflow/contrib/learn/python/learn/estimators/dnn_test.py | 31 | 60315 | # 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 |
pyramania/scipy | scipy/signal/filter_design.py | 1 | 129497 | """Filter design.
"""
from __future__ import division, print_function, absolute_import
import warnings
import math
import numpy
import numpy as np
from numpy import (atleast_1d, poly, polyval, roots, real, asarray,
resize, pi, absolute, logspace, r_, sqrt, tan, log10,
arctan, arc... | bsd-3-clause |
Caoimhinmg/PmagPy | programs/deprecated/zeq_magic2.py | 1 | 43301 | #!/usr/bin/env python
import sys
import os
import matplotlib
if matplotlib.get_backend() != "TKAgg":
matplotlib.use("TKAgg")
import pmagpy.pmagplotlib as pmagplotlib
import pmagpy.pmag as pmag
def save_redo(SpecRecs,inspec):
print "Saving changes to specimen file"
pmag.magic_write(inspec,SpecRecs,'pmag_s... | bsd-3-clause |
0x0all/scikit-learn | sklearn/ensemble/gradient_boosting.py | 4 | 60082 | """Gradient Boosted Regression Trees
This module contains methods for fitting gradient boosted regression trees for
both classification and regression.
The module structure is the following:
- The ``BaseGradientBoosting`` base class implements a common ``fit`` method
for all the estimators in the module. Regressio... | bsd-3-clause |
q1ang/tushare | tushare/datayes/subject.py | 10 | 32740 | # -*- coding:utf-8 -*-
"""
通联数据
Created on 2015/08/24
@author: Jimmy Liu
@group : waditu
@contact: jimmysoa@sina.cn
"""
from pandas.compat import StringIO
import pandas as pd
from tushare.util import vars as vs
from tushare.util.common import Client
from tushare.util import upass as up
class Subject():
def ... | bsd-3-clause |
caisq/tensorflow | tensorflow/contrib/losses/python/metric_learning/metric_loss_ops.py | 30 | 40476 | # 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 |
astrofrog/numpy | numpy/lib/recfunctions.py | 13 | 34877 | """
Collection of utilities to manipulate structured arrays.
Most of these functions were initially implemented by John Hunter for matplotlib.
They have been rewritten and extended for convenience.
"""
import sys
import itertools
import numpy as np
import numpy.ma as ma
from numpy import ndarray, recarray
from nump... | bsd-3-clause |
anielsen001/scipy | scipy/integrate/_bvp.py | 61 | 39966 | """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 |
bloyl/mne-python | mne/viz/ica.py | 2 | 41059 | """Functions to plot ICA specific data (besides topographies)."""
# Authors: Denis Engemann <denis.engemann@gmail.com>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Teon Brooks <teon.brooks@gmail.com>
# Daniel McCloy <dan.mccloy@gmail.com>
#
# License: Simplified BSD
from functools i... | bsd-3-clause |
kris-singh/pgmpy | pgmpy/inference/ExactInference.py | 3 | 31429 | #!/usr/bin/env python3
import copy
import itertools
import networkx as nx
import numpy as np
from pgmpy.extern.six.moves import filter, range
from pgmpy.extern.six import string_types
from pgmpy.factors.discrete import factor_product
from pgmpy.inference import Inference
from pgmpy.models import JunctionTree
from pgm... | mit |
Event38/MissionPlanner | Lib/site-packages/numpy/core/code_generators/ufunc_docstrings.py | 57 | 85797 | # Docstrings for generated ufuncs
docdict = {}
def get(name):
return docdict.get(name)
def add_newdoc(place, name, doc):
docdict['.'.join((place, name))] = doc
add_newdoc('numpy.core.umath', 'absolute',
"""
Calculate the absolute value element-wise.
Parameters
----------
x : array_like... | gpl-3.0 |
StingraySoftware/stingray | stingray/modeling/tests/test_parameterestimation.py | 1 | 35403 |
import numpy as np
import scipy.stats
import os
import logging
from astropy.tests.helper import pytest, catch_warnings
from astropy.modeling import models
from astropy.modeling.fitting import _fitter_to_model_params
from stingray import Powerspectrum
from stingray.modeling import ParameterEstimation, PSDParEst, \
... | mit |
antepsis/anteplahmacun | sympy/holonomic/holonomic.py | 7 | 93736 | """
This module implements Holonomic Functions and
various operations on them.
"""
from __future__ import print_function, division
from sympy import (Symbol, diff, S, Dummy, Order, rf, meijerint, I,
solve, limit, Float, nsimplify, gamma)
from sympy.printing import sstr
from sympy.core.compatibility import range, ... | bsd-3-clause |
ecell/ecell4 | ecell4/extra/azure_batch.py | 1 | 32998 | # azure_batch.py
# Copyright (c) 2017 Kazunari Kaizu
# Released under the GNU General Public License
# python_tutorial_client.py
# Copyright (c) 2017 Microsoft Corporation
# Released under the MIT license
from __future__ import print_function
import datetime
import os
import sys
import time
import binascii
import pic... | gpl-3.0 |
equialgo/scikit-learn | sklearn/linear_model/stochastic_gradient.py | 3 | 50305 | # 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
from abc import ABCMeta, abstractmethod
from ..externals.joblib import ... | bsd-3-clause |
odejesush/tensorflow | tensorflow/contrib/learn/python/learn/estimators/estimator_test.py | 3 | 42938 | # 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 |
zrhans/pythonanywhere | .virtualenvs/django19/lib/python3.4/site-packages/matplotlib/sankey.py | 8 | 40828 | #!/usr/bin/env python
"""
Module for creating Sankey diagrams using matplotlib
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
from matplotlib.externals import six
from matplotlib.externals.six.moves import zip
# Original version by Yannick Copin (ycopi... | apache-2.0 |
rizac/gfzreport | gfzreport/sphinxbuild/map/__init__.py | 2 | 43603 | '''
This module implements the function `plotmap` which plots scattered points on a map
retrieved using ArgGIS Server REST API. The function is highly customizable and is basically a
wrapper around the `Basemap` library (for the map background)
plus matplotlib utilities (for plotting points, shapes, labels and legend)
... | gpl-3.0 |
sbyrnes321/multilayer_surface_plasmon | multilayer_surface_plasmon.py | 1 | 53001 | # -*- coding: utf-8 -*-
"""
Calculates surface-plasmon-polariton modes in multilayer planar structures.
For more details see: http://pythonhosted.org/multilayer_surface_plasmon/
"""
#Copyright (C) 2013 Steven Byrnes
#
#Permission is hereby granted, free of charge, to any person obtaining a copy of this softwar... | mit |
wlamond/scikit-learn | sklearn/svm/tests/test_svm.py | 33 | 35916 | """
Testing for Support Vector Machine module (sklearn.svm)
TODO: remove hard coded numerical results when possible
"""
import numpy as np
import itertools
from numpy.testing import assert_array_equal, assert_array_almost_equal
from numpy.testing import assert_almost_equal
from numpy.testing import assert_allclose
fro... | bsd-3-clause |
wmvanvliet/mne-python | mne/channels/channels.py | 1 | 73895 | # Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
# Andrew Dykstra <andrew.r.dykstra@gmail.com>
# Teon Brooks <teon.brooks@gmail.c... | bsd-3-clause |
pythonvietnam/scikit-learn | sklearn/neighbors/tests/test_neighbors.py | 76 | 45197 | from itertools import product
import pickle
import numpy as np
from scipy.sparse import (bsr_matrix, coo_matrix, csc_matrix, csr_matrix,
dok_matrix, lil_matrix)
from sklearn import metrics
from sklearn.cross_validation import train_test_split, cross_val_score
from sklearn.utils.testing impor... | bsd-3-clause |
bosmanoglu/adore-doris | lib/python/basic/graphics/graphics.py | 1 | 34676 | import numpy as np
import pylab as P
import basic
import scipy
from IPython.core.debugger import set_trace
def matshowClick(A, value=True, vmin=None, vmax=None):
def onclick(event):
try:
y=np.round(event.xdata);
except:
return
x=np.round(event.ydata);
if valu... | gpl-2.0 |
roshantha9/AbstractManycoreSim | src/analyse_results/AnalyseResults_Exp_HRTVid_strmUtil_vs_sched_INDIN2015.py | 1 | 33885 | import sys, os
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
from collections import OrderedDict
import numpy as np
import traceback
import re
#import pylab
import matplotlib
matplotlib.use('Qt4Agg')
import matplotlib.pyplot as plt
#plt.style.use('bmh_rosh')
#import seaborn as sns
import seaborn.ap... | gpl-3.0 |
MJuddBooth/pandas | pandas/core/tools/datetimes.py | 1 | 32195 | from datetime import datetime, time
from functools import partial
import numpy as np
from pandas._libs import tslib, tslibs
from pandas._libs.tslibs import Timestamp, conversion, parsing
from pandas._libs.tslibs.parsing import ( # noqa
DateParseError, _format_is_iso, _guess_datetime_format, parse_time_string)
fr... | bsd-3-clause |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/tests/frame/test_analytics.py | 1 | 80870 | # -*- coding: utf-8 -*-
from __future__ import print_function
from datetime import timedelta, datetime
from distutils.version import LooseVersion
import sys
import nose
from numpy import nan
from numpy.random import randn
import numpy as np
from pandas.compat import lrange
from pandas import (compat, isnull, notnul... | gpl-2.0 |
Intel-tensorflow/tensorflow | tensorflow/python/keras/preprocessing/image.py | 6 | 49546 | # 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 |
ycaihua/scikit-learn | sklearn/linear_model/logistic.py | 6 | 55848 | """
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... | bsd-3-clause |
rgommers/scipy | scipy/ndimage/filters.py | 12 | 55835 | # 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... | bsd-3-clause |
ryfeus/lambda-packs | Sklearn_scipy_numpy/source/sklearn/linear_model/ridge.py | 6 | 47113 | """
Ridge regression
"""
# Author: Mathieu Blondel <mathieu@mblondel.org>
# Reuben Fletcher-Costin <reuben.fletchercostin@gmail.com>
# Fabian Pedregosa <fabian@fseoane.net>
# Michael Eickenberg <michael.eickenberg@nsup.org>
# License: BSD 3 clause
from abc import ABCMeta, abstractmethod
impor... | mit |
bendalab/thunderfish | thunderfish/pulses.py | 3 | 80646 | """
Extract and cluster EOD waverforms of pulse-type electric fish.
## Main function
- `extract_pulsefish()`: checks for pulse-type fish based on the EOD amplitude and shape.
"""
import os
import numpy as np
from scipy import stats
from scipy.interpolate import interp1d
from sklearn.preprocessing import StandardSca... | gpl-3.0 |
cython-testbed/pandas | pandas/tests/frame/test_operators.py | 1 | 36793 | # -*- coding: utf-8 -*-
from __future__ import print_function
from collections import deque
from datetime import datetime
from decimal import Decimal
import operator
import pytest
from numpy import nan
import numpy as np
from pandas.compat import range
from pandas import compat
from pandas import (DataFrame, Series... | bsd-3-clause |
drogenlied/qudi | logic/jupyterkernel/qzmqkernel.py | 1 | 35425 | # -*- coding: utf-8 -*-
"""
Qt-based IPython/jupyter kernel
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 is distributed in the... | gpl-3.0 |
lucventurini/mikado | Mikado/tests/locus_test.py | 1 | 227708 | # coding: utf-8
"""
Very basic, all too basic test for some functionalities of locus-like classes.
"""
import dataclasses
import operator
import random
import re
import unittest
import os.path
import logging
from collections import namedtuple
from copy import deepcopy
import io
import marshmallow
import pkg_resources... | lgpl-3.0 |
pravsripad/mne-python | mne/epochs.py | 2 | 146518 | # -*- coding: utf-8 -*-
"""Tools for working with epoched data."""
# Authors: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Daniel Strohmeier <daniel.strohmeier@tu-ilmenau.de>
# Denis Engemann <denis.engemann@gmail.com>
# Mainak Jas... | bsd-3-clause |
cmoutard/mne-python | mne/label.py | 4 | 73657 | # Authors: Alexandre Gramfort <alexandre.gramfort@telecom-paristech.fr>
# Martin Luessi <mluessi@nmr.mgh.harvard.edu>
# Denis Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
from collections import defaultdict
from colorsys import hsv_to_rgb, rgb_to_hsv
from os import path as op
impor... | bsd-3-clause |
xyguo/scikit-learn | sklearn/externals/joblib/parallel.py | 31 | 35665 | """
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 |
louisLouL/pair_trading | capstone_env/lib/python3.6/site-packages/matplotlib/backends/backend_ps.py | 2 | 63263 | """
A PostScript backend, which can produce both PostScript .ps and .eps
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import StringIO
import glob, os, shutil, sys, time, datetime
import io
from tempfile import mkstemp
from... | mit |
Edu-Glez/Bank_sentiment_analysis | env/lib/python3.6/site-packages/pandas/tests/test_multilevel.py | 7 | 92692 | # -*- coding: utf-8 -*-
# pylint: disable-msg=W0612,E1101,W0141
import datetime
import itertools
import nose
from numpy.random import randn
import numpy as np
from pandas.core.index import Index, MultiIndex
from pandas import Panel, DataFrame, Series, notnull, isnull, Timestamp
from pandas.types.common import is_flo... | apache-2.0 |
kimlaborg/NGSKit | ngskit/oligolib_generator.py | 1 | 33136 | # -*- coding: utf-8 -*-
"""
Created on Fri Jun 19 11:19:51 2015
Small script and library of functions to help to create the in house
oligochips.
@author: ccorbi
Example
-------
> from oligolib_generator import *
> disrd_CONSTANT_F = 'CAGCCTCTTCATCTGGC'
> disrd_CONSTANT_R = 'GGTGGAGGATCCGGAG'
> pept... | mit |
zihua/scikit-learn | sklearn/linear_model/logistic.py | 2 | 67750 |
"""
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>
im... | bsd-3-clause |
tequa/ammisoft | ammimain/WinPython-64bit-2.7.13.1Zero/python-2.7.13.amd64/Lib/site-packages/matplotlib/path.py | 4 | 38107 | """
A module for dealing with the polylines used throughout matplotlib.
The primary class for polyline handling in matplotlib is :class:`Path`.
Almost all vector drawing makes use of Paths somewhere in the drawing
pipeline.
Whilst a :class:`Path` instance itself cannot be drawn, there exists
:class:`~matplotlib.artis... | bsd-3-clause |
lmallin/coverage_test | python_venv/lib/python2.7/site-packages/pandas/core/indexes/interval.py | 6 | 34971 | """ define the IntervalIndex """
import numpy as np
from pandas.core.dtypes.missing import notnull, isnull
from pandas.core.dtypes.generic import ABCPeriodIndex
from pandas.core.dtypes.dtypes import IntervalDtype
from pandas.core.dtypes.common import (
_ensure_platform_int,
is_list_like,
is_datetime_or_ti... | mit |
correlator/spinmob | _pylab_tweaks.py | 2 | 55292 | import os as _os
import pylab as _pylab
import time as _time
import thread as _thread
import matplotlib as _mpl
import numpy as _n
import _functions as _fun
import _pylab_colormap
import spinmob as _s
image_colormap = _pylab_colorma... | gpl-3.0 |
valexandersaulys/airbnb_kaggle_contest | venv/lib/python3.4/site-packages/sklearn/preprocessing/data.py | 6 | 67066 | # 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... | gpl-2.0 |
davidwaroquiers/pymatgen | pymatgen/analysis/graphs.py | 1 | 110685 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
Module for graph representations of crystals.
"""
import copy
import logging
import os.path
import subprocess
import warnings
from collections import defaultdict, namedtuple
from itertools import combinati... | mit |
Weihonghao/ECM | Vpy34/lib/python3.5/site-packages/tensorflow/contrib/learn/python/learn/estimators/dnn_test.py | 5 | 40857 | # 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... | agpl-3.0 |
ujfjhz/vnpy | docker/dockerTrader/ctaStrategy/ctaBacktesting.py | 5 | 40088 | # encoding: UTF-8
'''
本文件中包含的是CTA模块的回测引擎,回测引擎的API和CTA引擎一致,
可以使用和实盘相同的代码进行回测。
'''
from __future__ import division
from datetime import datetime, timedelta
from collections import OrderedDict
from itertools import product
import multiprocessing
import pymongo
from ctaBase import *
from vtConstant import *
from vtGatew... | mit |
cokelaer/msdas | src/msdas/yeast.py | 1 | 46782 | from __future__ import division
import clustering
import numpy as np
import pylab
import pandas as pd
from msdas import replicates
from readers import MassSpecReader
from easydev import get_share_file as gsf
from cno import CNOGraph
__all__ = ["YEAST", "get_yeast_filenames", "YEAST2MIDAS",
"get_yeast_raw_... | gpl-3.0 |
badlogicmanpreet/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/transforms.py | 69 | 75638 | """
matplotlib includes a framework for arbitrary geometric
transformations that is used determine the final position of all
elements drawn on the canvas.
Transforms are composed into trees of :class:`TransformNode` objects
whose actual value depends on their children. When the contents of
children change, their pare... | agpl-3.0 |
shubhamchopra/spark | python/pyspark/sql/tests.py | 2 | 144199 | # -*- encoding: utf-8 -*-
#
# 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 ... | apache-2.0 |
CallaJun/hackprince | indico/matplotlib/figure.py | 10 | 58719 | """
The figure module provides the top-level
:class:`~matplotlib.artist.Artist`, the :class:`Figure`, which
contains all the plot elements. The following classes are defined
:class:`SubplotParams`
control the default spacing of the subplots
:class:`Figure`
top level container for all plot elements
"""
from... | lgpl-3.0 |
cwu2011/scikit-learn | sklearn/ensemble/tests/test_forest.py | 20 | 35216 | """
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 |
openfisca/openfisca-qt | openfisca_qt/gui/spyder_widgets/dicteditor.py | 1 | 52998 | # -*- coding: utf-8 -*-
#
# Copyright © 2009-2010 Pierre Raybaut
# Licensed under the terms of the MIT License
# (see spyderlib/__init__.py for details)
"""
Dictionary Editor Widget and Dialog based on Qt
"""
#TODO: Multiple selection: open as many editors (array/dict/...) as necessary,
# at the same time
# pyl... | agpl-3.0 |
rohit21122012/DCASE2013 | runs/2016/dnn2016med_gd_5/task1_scene_classification.py | 6 | 38288 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# DCASE 2016::Acoustic Scene Classification / Baseline System
import argparse
import textwrap
import timeit
import skflow
from sklearn import mixture
from sklearn import preprocessing as pp
from sklearn.externals import joblib
from sklearn.metrics import confusion_matri... | mit |
zutshi/S3CAMR | src/core/modelrefine.py | 1 | 54402 | from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
import itertools as it
#from collections import defaultdict
import collections
import numpy as np
from . import simulatesystem as simsys
from pwa import pwa
from pwa import simulator as pwa_sim
from pwa im... | bsd-2-clause |
MohammedWasim/scikit-learn | sklearn/mixture/gmm.py | 68 | 31091 | """
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 |
kaiserroll14/301finalproject | main/pandas/tests/test_series.py | 9 | 288883 | # coding=utf-8
# pylint: disable-msg=E1101,W0612
import re
import sys
from datetime import datetime, timedelta
import operator
import string
from inspect import getargspec
from itertools import product, starmap
from distutils.version import LooseVersion
import warnings
import random
import nose
from numpy import nan... | gpl-3.0 |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/pandas/tests/frame/test_constructors.py | 7 | 73312 | # -*- coding: utf-8 -*-
from __future__ import print_function
from datetime import datetime, timedelta
import functools
import itertools
import nose
from numpy.random import randn
import numpy as np
import numpy.ma as ma
import numpy.ma.mrecords as mrecords
from pandas.types.common import is_integer_dtype
from pa... | gpl-3.0 |
musketeer191/job_analytics | ja_helpers.py | 1 | 35949 | import random
import sklearn.feature_extraction.text as text_manip
import matplotlib.ticker as mtick
from sklearn.decomposition import NMF, LatentDirichletAllocation
from scipy.sparse import *
from scipy.io import *
from collections import Counter
from time import time
# my own modules
import my_util as my_util
from ... | gpl-3.0 |
tylerjereddy/scipy | tools/refguide_check.py | 7 | 31826 | #!/usr/bin/env python
"""
refguide_check.py [OPTIONS] [-- ARGS]
Check for a Scipy submodule whether the objects in its __all__ dict
correspond to the objects included in the reference guide.
Example of usage::
$ python refguide_check.py optimize
Note that this is a helper script to be able to check if things ar... | bsd-3-clause |
endolith/scipy | scipy/stats/_distn_infrastructure.py | 5 | 135895 | #
# Author: Travis Oliphant 2002-2011 with contributions from
# SciPy Developers 2004-2011
#
from scipy._lib._util import getfullargspec_no_self as _getfullargspec
import sys
import keyword
import re
import types
import warnings
import inspect
from itertools import zip_longest
from scipy._lib import doccer... | bsd-3-clause |
sinhrks/numpy | numpy/lib/npyio.py | 42 | 71218 | from __future__ import division, absolute_import, print_function
import sys
import os
import re
import itertools
import warnings
import weakref
from operator import itemgetter
import numpy as np
from . import format
from ._datasource import DataSource
from numpy.core.multiarray import packbits, unpackbits
from ._ioto... | bsd-3-clause |
ddempsey/PyFEHM | ftemp.py | 1 | 34138 | """Various templates for use with PyFEHM."""
"""
Copyright 2013.
Los Alamos National Security, LLC.
This material was produced under U.S. Government contract DE-AC52-06NA25396 for
Los Alamos National Laboratory (LANL), which is operated by Los Alamos National
Security, LLC for the U.S. Department of Energy. ... | lgpl-2.1 |
mcnowinski/various-and-sundry | lightcurve/moc4.py | 1 | 31624 | import pandas as pd
from collections import defaultdict
import math
from scipy import stats
import numpy as np
import matplotlib.pyplot as plt
import os
#SDSS MOC4 data file
path = 'ADR4.dat'
#solar colors (reverse calculated from Carvano)
#reference to g
solar_color_ug = 3.81
solar_color_rg = 2.04
solar_color_ig = 1... | mit |
mrcslws/htmresearch | htmresearch/frameworks/sp_paper/sp_metrics.py | 6 | 32444 | #!/usr/bin/env python
# ----------------------------------------------------------------------
# Numenta Platform for Intelligent Computing (NuPIC)
# Copyright (C) 2016, Numenta, Inc. Unless you have an agreement
# with Numenta, Inc., for a separate license for this software code, the
# following terms and conditions ... | agpl-3.0 |
lucfra/RFHO | rfho/datasets.py | 1 | 47300 | """
This module contains utility functions to process and load various datasets. Most of the datasets are public,
but are not included in the package; MNIST dataset will be automatically downloaded.
There are also some classes to represent datasets. `ExampleVisiting` is an helper class that implements
the stochastic s... | mit |
kleskjr/scipy | scipy/signal/spectral.py | 28 | 34979 | """Tools for spectral analysis.
"""
from __future__ import division, print_function, absolute_import
import numpy as np
from scipy import fftpack
from . import signaltools
from .windows import get_window
from ._spectral import lombscargle
import warnings
from scipy._lib.six import string_types
__all__ = ['periodogr... | bsd-3-clause |
jrversteegh/softsailor | deps/numpy-1.6.1/numpy/linalg/linalg.py | 22 | 61161 | """Lite version of scipy.linalg.
Notes
-----
This module is a lite version of the linalg.py module in SciPy which
contains high-level Python interface to the LAPACK library. The lite
version only accesses the following LAPACK functions: dgesv, zgesv,
dgeev, zgeev, dgesdd, zgesdd, dgelsd, zgelsd, dsyevd, zheevd, dgetr... | gpl-3.0 |
aflaxman/scikit-learn | sklearn/model_selection/tests/test_split.py | 5 | 54563 | """Test the split module"""
from __future__ import division
import warnings
import numpy as np
from scipy.sparse import coo_matrix, csc_matrix, csr_matrix
from scipy import stats
from itertools import combinations
from itertools import combinations_with_replacement
from sklearn.utils.testing import assert_true
from s... | bsd-3-clause |
aleksandr-bakanov/astropy | astropy/visualization/wcsaxes/core.py | 2 | 30823 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
from functools import partial
from collections import defaultdict
import numpy as np
from matplotlib import rcParams
from matplotlib.artist import Artist
from matplotlib.axes import Axes, subplot_class_factory
from matplotlib.transforms import Affine2D,... | bsd-3-clause |
lsst-dm/great3-public | great3sims/galaxies.py | 1 | 52001 | # Copyright (c) 2014, the GREAT3 executive committee (http://www.great3challenge.info/?q=contacts)
# All rights reserved.
#
# 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... | bsd-3-clause |
LeeKamentsky/CellProfiler | cellprofiler/modules/saveimages.py | 1 | 60223 | '''<b>Save Images </b> saves image or movie files.
<hr>
Because CellProfiler usually performs many image analysis steps on many
groups of images, it does <i>not</i> save any of the resulting images to the
hard drive unless you specifically choose to do so with the <b>SaveImages</b>
module. You can save any of the
proc... | gpl-2.0 |
arhik/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/_mathtext_data.py | 69 | 57988 | """
font data tables for truetype and afm computer modern fonts
"""
# this dict maps symbol names to fontnames, glyphindex. To get the
# glyph index from the character code, you have to use get_charmap
"""
from matplotlib.ft2font import FT2Font
font = FT2Font('/usr/local/share/matplotlib/cmr10.ttf')
items = font.get_... | agpl-3.0 |
robin-lai/scikit-learn | doc/sphinxext/gen_rst.py | 106 | 40198 | """
Example generation for the scikit learn
Generate the rst files for the examples by iterating over the python
example files.
Files that generate images should start with 'plot'
"""
from __future__ import division, print_function
from time import time
import ast
import os
import re
import shutil
import traceback
i... | bsd-3-clause |
Edeleon4/PoolShark | flask/wildnature/WebProject1/obj/Release/Package/PackageTmp/libraries/pabuehle_utilities_general_v0.py | 2 | 57822 | # -*- coding: utf-8 -*-
###############################################################################
# Description:
# This is a collection of utility / helper functions.
# Note that most of these functions are not well tested, but are
# prototyping implementations. Also, this is my first time working with... | mit |
GaZ3ll3/numpy | numpy/lib/function_base.py | 5 | 132305 | from __future__ import division, absolute_import, print_function
import warnings
import sys
import collections
import operator
import numpy as np
import numpy.core.numeric as _nx
from numpy.core import linspace, atleast_1d, atleast_2d
from numpy.core.numeric import (
ones, zeros, arange, concatenate, array, asarr... | bsd-3-clause |
bbcdli/xuexi | fenlei_tf/script_2019Nov/src/version1/tensor_train.py | 2 | 92004 | # originally by Hamed, 25Apr.2016
# hy:Changes by Haiyan, 21Dec.2016 v0.45
# sudo apt-get install python-h5py
# Added evaluation function for multiple models, their result file names contain calculated mAP.
# Added functionality to set different dropout rate for each layer for 3conv net
# Moved auxiliary functions... | apache-2.0 |
gVallverdu/pymatgen | pymatgen/io/gaussian.py | 2 | 59683 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module implements input and output processing from Gaussian.
"""
import re
import numpy as np
import warnings
from pymatgen.core.operations import SymmOp
from pymatgen import Element, Molecule, Comp... | mit |
cskyan/gesgnext | bin/gsx_extrc.py | 1 | 83361 | #!/usr/bin/env python
# -*- coding=utf-8 -*-
###########################################################################
# Copyright (C) 2013-2016 by Caspar. All rights reserved.
# File Name: gsx_extrc.py
# Author: Shankai Yan
# E-mail: sk.yan@my.cityu.edu.hk
# Created Time: 2016-03-16 15:56:16
########################... | apache-2.0 |
LCAV/pyroomacoustics | pyroomacoustics/beamforming.py | 1 | 44338 | # Various Beamforming Methods
# Copyright (C) 2019 Robin Scheibler, Sidney Barthe, Ivan Dokmanic
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limi... | mit |
kgullikson88/General | AnalyseBstar.py | 1 | 45673 | """
This class performs the analysis of B stars to determine the following:
- vsini
-rv
-Teff
-logg
-vmacro
-vmicro
-[Fe/H]
Example usage:
--------------
Put usage example here
"""
# import matplotlib
#matplotlib.use("GTKAgg")
import scipy
from scipy.interpolate import InterpolatedUnivariateSpl... | gpl-3.0 |
scikit-hep/uproot | tests/test_tree.py | 1 | 44382 | #!/usr/bin/env python
# BSD 3-Clause License; see https://github.com/scikit-hep/uproot3/blob/master/LICENSE
import os
from collections import namedtuple
import numpy
import pytest
import awkward0
import uproot3
def basest(array):
while getattr(array, "base", None) is not None:
array = array.base
re... | bsd-3-clause |
BryanCutler/spark | python/pyspark/ml/feature.py | 2 | 212807 | #
# 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 |
florian-f/sklearn | sklearn/ensemble/forest.py | 1 | 51881 | """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 |
cgre-aachen/gempy | gempy/utils/geomodeller_integration.py | 1 | 53224 | """Class definition for GeoModeller XML-Files
This version includes drillholes
Specific methods are defined for the uncertainty analysis (in combination
with Uncertainty_Obj module)
(c) J. Florian Wellmann, 2009-2013
"""
# try:
# import elementtree.ElementTree as ET
# except ImportError:
# try:
# impo... | lgpl-3.0 |
ueshin/apache-spark | python/pyspark/sql/dataframe.py | 9 | 102339 | #
# 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 |
deepfield/ibis | ibis/sql/tests/test_compiler.py | 1 | 67764 | # Copyright 2014 Cloudera 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 writing, so... | apache-2.0 |
pradyu1993/scikit-learn | sklearn/feature_extraction/text.py | 1 | 35696 | # -*- 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>
#
# License: BSD Style.
"""
The :mod:`sklearn.feature_extraction.text` submodule gathers utiliti... | bsd-3-clause |
SeonghoBaek/RealtimeCamera | FDN.py | 1 | 42078 | import tensorflow as tf
import numpy as np
import os
import cv2
from sklearn.utils import shuffle
import util
import layers
import openface
import redis
import socket
import array
import struct
import sys
import dlib
import argparse
import csv
import pickle
import shutil
LAMBDA = 1e-3
GAMMA = 1.0
CENTER_LOSS_ALPHA =... | apache-2.0 |
meren/anvio | anvio/parsers/hmmer.py | 3 | 35794 | # -*- coding: utf-8
"""Parser for HMMER's various outputs"""
import anvio
import anvio.utils as utils
import anvio.terminal as terminal
from anvio.errors import ConfigError
from anvio.parsers.base import Parser
import numpy as np
import pandas as pd
__author__ = "Developers of anvi'o (see AUTHORS.txt)"
__copyright... | gpl-3.0 |
saketkc/statsmodels | statsmodels/examples/ex_generic_mle_tdist.py | 29 | 39735 | # -*- coding: utf-8 -*-
"""
Created on Wed Jul 28 08:28:04 2010
Author: josef-pktd
"""
from __future__ import print_function
from statsmodels.compat.python import zip
import numpy as np
from scipy import stats, special, optimize
import statsmodels.api as sm
from statsmodels.base.model import GenericLikelihoodModel
... | bsd-3-clause |
glennq/scikit-learn | sklearn/model_selection/tests/test_validation.py | 3 | 32928 | """Test the validation module"""
from __future__ import division
import sys
import warnings
import tempfile
import os
from time import sleep
import numpy as np
from scipy.sparse import coo_matrix, csr_matrix
from sklearn.utils.testing import assert_true
from sklearn.utils.testing import assert_false
from sklearn.uti... | bsd-3-clause |
walterreade/scikit-learn | sklearn/mixture/gmm.py | 13 | 30702 | """
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 |
louisLouL/pair_trading | capstone_env/lib/python3.6/site-packages/pandas/tests/frame/test_to_csv.py | 7 | 44295 | # -*- coding: utf-8 -*-
from __future__ import print_function
import csv
import pytest
from numpy import nan
import numpy as np
from pandas.compat import (lmap, range, lrange, StringIO, u)
from pandas.errors import ParserError
from pandas import (DataFrame, Index, Series, MultiIndex, Timestamp,
... | mit |
mclevey/seaborn | seaborn/tests/test_axisgrid.py | 11 | 42805 | 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 nose.tools as nt
import numpy.testing as npt
from numpy.testing.decorators import skipif
import pandas.util.testing as tm
from .. i... | bsd-3-clause |
jjhelmus/scipy | scipy/signal/signaltools.py | 2 | 115724 | # Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import warnings
import threading
import sys
import timeit
from . import sigtools, dlti
from ._upfirdn import upfirdn, _output_len
from scipy._lib.six import callable
from scipy._lib._version import NumpyVersion
... | bsd-3-clause |
zycdragonball/tensorflow | tensorflow/contrib/keras/python/keras/callbacks.py | 8 | 36338 | # 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 |
SamStudio8/scikit-bio | skbio/diversity/beta/tests/test_unifrac.py | 6 | 30062 | # ----------------------------------------------------------------------------
# Copyright (c) 2013--, scikit-bio development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
# --------------------------------------------... | bsd-3-clause |
rwgdrummer/maskgen | maskgen/ui/QAExtreme.py | 1 | 40824 | import matplotlib
from maskgen.maskgen_loader import MaskGenLoader
from maskgen.ui.semantic_frame import SemanticFrame
from matplotlib.backends.backend_tkagg import FigureCanvasTkAgg
matplotlib.use("TkAgg")
import logging
from matplotlib.figure import Figure
from Tkinter import *
import matplotlib.patches as mpatches
... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.