repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
phageghost/pg_tools | pgtools/motiftools.py | 1 | 45215 | import os
import bs4
import numpy
import scipy
import pandas
import math
import re
import datetime
import collections
import matplotlib.pyplot as plt
import seaborn
import subprocess
import statsmodels.sandbox.stats.multicomp
from Bio.motifs._pwm import calculate as biopython_motif_calculate
from pgtools import toolbo... | mit |
louispotok/pandas | pandas/core/dtypes/common.py | 2 | 53174 | """ common type operations """
import numpy as np
from pandas.compat import (string_types, text_type, binary_type,
PY3, PY36)
from pandas._libs import algos, lib
from pandas._libs.tslibs import conversion
from .dtypes import (CategoricalDtype, CategoricalDtypeType,
Datet... | bsd-3-clause |
evanbiederstedt/RRBSfun | epiphen/cll_tests/annotation_scripts/total_cells_annotate_columns.py | 1 | 34503 | import glob
import pandas as pd
import numpy as np
pd.set_option('display.max_columns', 50) # print all rows
import os
os.chdir("/gpfs/commons/home/biederstedte-934/evan_projects/correct_phylo_files")
normalB = glob.glob("binary_position_RRBS_normal_B_cell*")
mcell = glob.glob("binary_position_RRBS_NormalBCD19pCD27... | mit |
qiime2/qiime2 | qiime2/metadata/tests/test_metadata_column.py | 2 | 36747 | # ----------------------------------------------------------------------------
# Copyright (c) 2016-2021, QIIME 2 development team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file LICENSE, distributed with this software.
# ------------------------------------------------... | bsd-3-clause |
clemkoa/scikit-learn | sklearn/grid_search.py | 24 | 40365 | """
The :mod:`sklearn.grid_search` includes utilities to fine-tune the parameters
of an estimator.
"""
from __future__ import print_function
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>,
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# ... | bsd-3-clause |
snnn/tensorflow | tensorflow/contrib/metrics/python/ops/metric_ops.py | 5 | 178391 | # 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 |
abhishekkrthakur/scikit-learn | sklearn/grid_search.py | 11 | 34418 | """
The :mod:`sklearn.grid_search` includes utilities to fine-tune the parameters
of an estimator.
"""
from __future__ import print_function
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>,
# Gael Varoquaux <gael.varoquaux@normalesup.org>
# Andreas Mueller <amueller@ais.uni-bonn.de>
# ... | bsd-3-clause |
madmax983/h2o-3 | h2o-py/h2o/h2o.py | 1 | 89546 | import warnings
warnings.simplefilter('always', DeprecationWarning)
import os
import os.path
import re
import urllib
import urllib2
import imp
import tabulate
from connection import H2OConnection
from job import H2OJob
from expr import ExprNode
from frame import H2OFrame, _py_tmp_key, _is_list_of_lists, _gen_header
fr... | apache-2.0 |
olologin/scikit-learn | sklearn/linear_model/tests/test_logistic.py | 24 | 39507 | import numpy as np
import scipy.sparse as sp
from scipy import linalg, optimize, sparse
from sklearn.utils.testing import assert_almost_equal
from sklearn.utils.testing import assert_array_equal
from sklearn.utils.testing import assert_array_almost_equal
from sklearn.utils.testing import assert_equal
from sklearn.util... | bsd-3-clause |
nmpowell/mousemorph | mousemorph/mm_functions.py | 1 | 135180 | #!/usr/bin/python
"""MouseMorph, an automatic mouse MR image processor
Simple image processing functions, and tools for working with groups of NIfTI images.
With loop_and_save(), you can apply any compatible function to an entire directory of images.
Most of these were composed to fulfil a specific need. All should... | bsd-3-clause |
arnoldlu/lisa | libs/utils/analysis/latency_analysis.py | 4 | 34059 | # SPDX-License-Identifier: Apache-2.0
#
# Copyright (C) 2015, 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 |
reimandlab/ActiveDriverDB | website/analyses/enrichment.py | 1 | 37878 | import operator
import random
from collections import namedtuple, Counter, defaultdict
from functools import reduce, partial
from statistics import median, mean
from typing import List, NamedTuple, Mapping, Dict
import numpy as np
from numpy import NaN
from sqlalchemy import and_, func, distinct, desc
from sqlalchemy.... | lgpl-2.1 |
massmutual/scikit-learn | sklearn/metrics/tests/test_ranking.py | 3 | 41641 | from __future__ import division, print_function
import numpy as np
from itertools import product
import warnings
from scipy.sparse import csr_matrix
from sklearn import datasets
from sklearn import svm
from sklearn import ensemble
from sklearn.datasets import make_multilabel_classification
from sklearn.random_projec... | bsd-3-clause |
majetideepak/arrow | python/pyarrow/tests/test_plasma.py | 1 | 45217 | # 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 u... | apache-2.0 |
srowen/spark | python/pyspark/ml/feature.py | 15 | 212774 | #
# 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 |
datapythonista/pandas | pandas/tests/io/formats/test_to_latex.py | 2 | 45381 | import codecs
from datetime import datetime
from textwrap import dedent
import pytest
import pandas as pd
from pandas import (
DataFrame,
Series,
)
import pandas._testing as tm
from pandas.io.formats.format import DataFrameFormatter
from pandas.io.formats.latex import (
RegularTableBuilder,
RowBodyIt... | bsd-3-clause |
dhomeier/astropy | astropy/nddata/utils.py | 3 | 32016 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
"""
This module includes helper functions for array operations.
"""
from copy import deepcopy
import sys
import types
import warnings
import numpy as np
from astropy import units as u
from astropy.coordinates import SkyCoord
from astropy.utils import la... | bsd-3-clause |
jmmease/pandas | pandas/tests/test_nanops.py | 5 | 42265 | # -*- coding: utf-8 -*-
from __future__ import division, print_function
from functools import partial
import pytest
import warnings
import numpy as np
import pandas as pd
from pandas import Series, isna
from pandas.core.dtypes.common import is_integer_dtype
import pandas.core.nanops as nanops
import pandas.util.test... | bsd-3-clause |
alexsavio/scikit-learn | sklearn/manifold/t_sne.py | 11 | 35451 | # 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 |
socialsensor/public-figure-image-ranking | python/dynamicCommPersonTask.py | 1 | 54846 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
# Name:
# Purpose: This .py file is the class file that does all the work
# It ranks images of a specific person of interest in a dynamic manner
#
# Required libs: python-... | apache-2.0 |
ocefpaf/iris | lib/iris/tests/test_plot.py | 2 | 31819 | # Copyright Iris contributors
#
# This file is part of Iris and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
# import iris tests first so that some things can be initialised before
# importing anything else
import iris.tests as tests
... | lgpl-3.0 |
jmetzen/scikit-learn | sklearn/cross_decomposition/pls_.py | 34 | 30531 | """
The :mod:`sklearn.pls` module implements Partial Least Squares (PLS).
"""
# Author: Edouard Duchesnay <edouard.duchesnay@cea.fr>
# License: BSD 3 clause
from distutils.version import LooseVersion
from sklearn.utils.extmath import svd_flip
from ..base import BaseEstimator, RegressorMixin, TransformerMixin
from ..u... | bsd-3-clause |
icdishb/scikit-learn | sklearn/svm/classes.py | 6 | 36926 | 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 |
cpbl/cpblUtilities | mathgraph.py | 1 | 255953 | #!/usr/bin/python
"""
"""
from __future__ import division # Python3-style integer division 5/2=2.5, not 3
if 0 and 'not while trying epd': # This was in place 'til May 2012: upgrade to Ubuntu 12.04
from IPython.Debugger import Tracer; debug_here = Tracer()
try:
import rpy2.robjects as robjects
except:
pri... | gpl-3.0 |
ryfeus/lambda-packs | Tensorflow/source/numpy/lib/polynomial.py | 7 | 38749 | """
Functions to operate on polynomials.
"""
from __future__ import division, absolute_import, print_function
__all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd',
'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d',
'polyfit', 'RankWarning']
import re
import warnings
import numpy.core.... | mit |
pymedusa/SickRage | ext/pint/quantity.py | 2 | 66754 | # -*- coding: utf-8 -*-
"""
pint.quantity
~~~~~~~~~~~~~
:copyright: 2016 by Pint Authors, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from __future__ import division, unicode_literals, print_function, absolute_import
import copy
import datetime
import math
import op... | gpl-3.0 |
BhallaLab/moose-examples | squid/squid_demo.py | 1 | 43256 | # -*- coding: utf-8 -*-
# Description: Squid Model
# Author: Subha
# Maintainer: Dilawar Singh <dilawars@ncbs.res.in>
# Created: Mon Jul 9 18:23:55 2012 (+0530)
# Version:
# Last-Updated: Wednesday 12 September 2018 04:23:52 PM IST
# PyQt5 version
import sys
import os
from collections import defaultdict
impo... | gpl-2.0 |
BhallaLab/moose-full | moose-gui/mgui.py | 2 | 55653 | # mgui.py ---
#
# Filename: mgui.py
# Description:
# Author:
# Maintainer:
# Created: Mon Nov 12 09:38:09 2012 (+0530)
# Version:
# Last-Updated: Fri Oct 30 11:54:33 2015 (+0530)
# By: Harsha
# Update #: 1338
# URL:
# Keywords:
# Compatibility:
#
#
# Commentary:
#
# The gui driver
#
#
# Change log:
#
#
... | gpl-2.0 |
CGATOxford/CGATPipelines | CGATPipelines/pipeline_exome_cancer.py | 1 | 53430 |
"""
======================
Exome Cancer pipeline
======================
.. todo::
*Final filtering if SNPs/INDELs is currently done in the
reporting. This should be handled by the pipeline. The SNP output
would also then be passed to the mutational signature task
*Document
*fully make phone home/key ... | mit |
sketchytechky/zipline | zipline/history/history_container.py | 12 | 33513 | #
# 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 |
wmvanvliet/mne-python | mne/annotations.py | 1 | 50352 | # Authors: Jaakko Leppakangas <jaeilepp@student.jyu.fi>
# Robert Luke <mail@robertluke.net>
#
# License: BSD (3-clause)
from collections import OrderedDict
from datetime import datetime, timedelta, timezone
import os.path as op
import re
from copy import deepcopy
from itertools import takewhile
import json
fr... | bsd-3-clause |
huzq/scikit-learn | sklearn/feature_extraction/tests/test_text.py | 2 | 47673 | # -*- coding: utf-8 -*-
from collections.abc import Mapping
import re
import pytest
from scipy import sparse
from sklearn.feature_extraction.text import strip_tags
from sklearn.feature_extraction.text import strip_accents_unicode
from sklearn.feature_extraction.text import strip_accents_ascii
from sklearn.feature_ex... | bsd-3-clause |
yuanagain/seniorthesis | venv/lib/python2.7/site-packages/matplotlib/mathtext.py | 4 | 116795 | r"""
:mod:`~matplotlib.mathtext` is a module for parsing a subset of the
TeX math syntax and drawing them to a matplotlib backend.
For a tutorial of its usage see :ref:`mathtext-tutorial`. This
document is primarily concerned with implementation details.
The module uses pyparsing_ to parse the TeX expression.
.. _p... | mit |
ryandougherty/mwa-capstone | MWA_Tools/build/matplotlib/lib/matplotlib/backend_bases.py | 1 | 94467 |
"""
Abstract base classes define the primitives that renderers and
graphics contexts must implement to serve as a matplotlib backend
:class:`RendererBase`
An abstract base class to handle drawing/rendering operations.
:class:`FigureCanvasBase`
The abstraction layer that separates the
:class:`matplotlib.f... | gpl-2.0 |
Edu-Glez/Bank_sentiment_analysis | env/lib/python3.6/site-packages/pandas/formats/format.py | 7 | 96434 | # -*- coding: utf-8 -*-
"""
Internal module for formatting output data in csv, html,
and latex files. This module also applies to display formatting.
"""
from __future__ import print_function
from distutils.version import LooseVersion
# pylint: disable=W0141
import sys
from pandas.types.missing import isnull, notnul... | apache-2.0 |
rvraghav93/scikit-learn | sklearn/cross_validation.py | 21 | 73625 | """
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 |
pgandhi999/spark | python/pyspark/sql/functions.py | 1 | 143545 | #
# 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 |
r-shekhar/ReanalysisUnifier | assemble.py | 1 | 36323 | #!/usr/bin/env python
import pymongo
MongoClient = pymongo.MongoClient
from pprint import pprint
import itertools
import functools
import multiprocessing
from pprint import pprint
import numpy as np
import pandas as pd
import netCDF4
import sys
import datetime
def year_month_iter(start_year, start_month, end_year, e... | mit |
DGrady/pandas | pandas/core/tools/datetimes.py | 2 | 30882 | from datetime import datetime, timedelta, time
import numpy as np
from collections import MutableMapping
from pandas._libs import lib, tslib
from pandas.core.dtypes.common import (
_ensure_object,
is_datetime64_ns_dtype,
is_datetime64_dtype,
is_datetime64tz_dtype,
is_integer_dtype,
is_integer,... | bsd-3-clause |
surgebiswas/poker | PokerBots_2017/Johnny/scipy/spatial/kdtree.py | 23 | 37991 | # Copyright Anne M. Archibald 2008
# Released under the scipy license
from __future__ import division, print_function, absolute_import
import sys
import numpy as np
from heapq import heappush, heappop
import scipy.sparse
__all__ = ['minkowski_distance_p', 'minkowski_distance',
'distance_matrix',
... | mit |
DTOcean/dtocean-core | dtocean_core/pipeline.py | 1 | 44573 |
# Copyright (C) 2016-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 version 3 of the License, or
# (at your option) any later version.
#
# This pr... | gpl-3.0 |
nelango/ViralityAnalysis | model/lib/pandas/io/stata.py | 9 | 78805 | """
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 |
herilalaina/scikit-learn | sklearn/ensemble/tests/test_gradient_boosting.py | 2 | 49570 | """
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 |
jamesliu/mxnet | python/mxnet/model.py | 5 | 41999 | # 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 u... | apache-2.0 |
tbohn/VIC | tests/test_utils.py | 8 | 38567 | # Builtin libs
import os
import re
import glob
import traceback
import warnings
from collections import OrderedDict, namedtuple
import multiprocessing as mp
# Computation libs
import numpy as np
import pandas as pd
import xarray as xr
# Plotting libs
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as... | gpl-2.0 |
BeiLuoShiMen/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/dates.py | 54 | 33991 | #!/usr/bin/env python
"""
Matplotlib provides sophisticated date plotting capabilities, standing
on the shoulders of python :mod:`datetime`, the add-on modules
:mod:`pytz` and :mod:`dateutils`. :class:`datetime` objects are
converted to floating point numbers which represent the number of days
since 0001-01-01 UTC. T... | agpl-3.0 |
Scapogo/zipline | zipline/algorithm.py | 2 | 92649 | #
# Copyright 2015 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 |
Ziqi-Li/bknqgis | pandas/pandas/tests/computation/test_eval.py | 2 | 70396 | import warnings
from warnings import catch_warnings
import operator
from itertools import product
import pytest
from numpy.random import randn, rand, randint
import numpy as np
from pandas.core.dtypes.common import is_bool, is_list_like, is_scalar
import pandas as pd
from pandas.core import common as com
from pandas... | gpl-2.0 |
ChanderG/scipy | scipy/signal/spectral.py | 25 | 34809 | """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 |
xray/xray | xarray/core/merge.py | 1 | 32277 | from typing import (
TYPE_CHECKING,
AbstractSet,
Any,
Dict,
Hashable,
Iterable,
List,
Mapping,
NamedTuple,
Optional,
Sequence,
Set,
Tuple,
Union,
)
import pandas as pd
from . import dtypes, pdcompat
from .alignment import deep_align
from .duck_array_ops import l... | apache-2.0 |
rs2/pandas | pandas/core/indexes/datetimes.py | 1 | 37374 | from datetime import date, datetime, time, timedelta, tzinfo
import operator
from typing import Optional
import warnings
import numpy as np
from pandas._libs import NaT, Period, Timestamp, index as libindex, lib
from pandas._libs.tslibs import Resolution, ints_to_pydatetime, parsing, to_offset
from pandas._libs.tslib... | bsd-3-clause |
endolith/scipy | scipy/cluster/tests/test_hierarchy.py | 12 | 42543 | #
# Author: Damian Eads
# Date: April 17, 2008
#
# Copyright (C) 2008 Damian Eads
#
# 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... | bsd-3-clause |
zhreshold/mxnet | python/mxnet/numpy/random.py | 2 | 40820 | # 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 u... | apache-2.0 |
MyRookie/SentimentAnalyse | venv/lib/python2.7/site-packages/nltk/probability.py | 3 | 89919 | # -*- coding: utf-8 -*-
# Natural Language Toolkit: Probability and Statistics
#
# Copyright (C) 2001-2015 NLTK Project
# Author: Edward Loper <edloper@gmail.com>
# Steven Bird <stevenbird1@gmail.com> (additions)
# Trevor Cohn <tacohn@cs.mu.oz.au> (additions)
# Peter Ljunglöf <peter.ljung... | mit |
runt18/nupic | external/linux32/lib/python2.6/site-packages/matplotlib/artist.py | 1 | 33210 | from __future__ import division
import re, warnings
import matplotlib
import matplotlib.cbook as cbook
from transforms import Bbox, IdentityTransform, TransformedBbox, TransformedPath
from path import Path
## Note, matplotlib artists use the doc strings for set and get
# methods to enable the introspection methods of ... | agpl-3.0 |
gclenaghan/scikit-learn | sklearn/linear_model/logistic.py | 4 | 65682 |
"""
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 |
1haodian/spark | python/pyspark/sql/dataframe.py | 2 | 79716 | #
# 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 |
vorwerkc/pymatgen | pymatgen/io/abinit/abitimer.py | 1 | 31321 | # coding: utf-8
# Copyright (c) Pymatgen Development Team.
# Distributed under the terms of the MIT License.
"""
This module provides objects for extracting timing data from the ABINIT output files
It also provides tools to analye and to visualize the parallel efficiency.
"""
import collections
import logging
import o... | mit |
K3D-tools/K3D-jupyter | k3d/colormaps/paraview_color_maps.py | 1 | 109965 | Cool_to_Warm = [
0.0000, 0.2314, 0.2980, 0.7529,
0.5000, 0.8650, 0.8650, 0.8650,
1.0000, 0.7059, 0.0157, 0.1490,
]
Cool_to_Warm_Extended = [
0.0000, 0.0000, 0.0000, 0.3490,
0.0312, 0.0392, 0.0627, 0.3804,
0.0625, 0.0627, 0.1176, 0.4118,
0.0938, 0.0902, 0.1843, 0.4510,
0.1250, 0.1255, 0.... | mit |
anielsen001/scipy | scipy/stats/_multivariate.py | 5 | 99074 | #
# Author: Joris Vankerschaver 2013
#
from __future__ import division, print_function, absolute_import
import math
import numpy as np
import scipy.linalg
from scipy.misc import doccer
from scipy.special import gammaln, psi, multigammaln
from scipy._lib._util import check_random_state
from scipy.linalg.blas import dro... | bsd-3-clause |
heli522/scikit-learn | sklearn/utils/estimator_checks.py | 33 | 48331 | 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 |
tmthydvnprt/pfcompute | pf/accounting.py | 1 | 31298 | """
accounting.py
Accounting and Financial functions.
project : pf
version : 0.0.0
status : development
modifydate :
createdate :
website : https://github.com/tmthydvnprt/pf
author : tmthydvnprt
email : tim@tmthydvnprt.com
maintainer : tmthydvnprt
license : MIT
copyright : Copyright 2016, tm... | mit |
teese/pytoxr | pytoxr/parse.py | 1 | 31478 | #!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
pytoxr contains tools for the analysis of data from ToxR experiments
Copyright (C) 2016 Mark George Teese
This software is licensed under the permissive MIT License...
"""
import glob
import matplotlib.pyplot as plt
import numpy as np
import os
import pandas as pd
im... | mit |
dsg-bielefeld/pentoref | code/python/pentoref/IOutils.py | 1 | 39607 | from os import listdir, remove
from os.path import isdir, abspath, join, splitext, exists
from re import match, sub, findall, finditer
import lxml.etree
from io import StringIO, BytesIO
from lxml.etree import parse
from lxml.etree import XMLSyntaxError
# from pandas import DataFrame
import sqlite3 as sqlite
from copy i... | gpl-3.0 |
tgsmith61591/skutil | skutil/h2o/tests/test_h2o.py | 1 | 73457 | from __future__ import print_function, division
import warnings
import numpy as np
import pandas as pd
import shutil
import time
import os
import h2o
from h2o.frame import H2OFrame
from h2o.estimators import (H2ORandomForestEstimator,
H2OGeneralizedLinearEstimator,
... | bsd-3-clause |
akchinSTC/systemml | src/main/python/systemml/defmatrix.py | 3 | 46772 | #-------------------------------------------------------------
#
# 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 |
gilt/incubator-airflow | airflow/www/views.py | 1 | 97519 | # -*- 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 |
geomagpy/magpy | magpy/mpplot.py | 1 | 112906 | '''
Path: magpy.mpplot
Part of package: stream (plot)
Type: Library of matplotlib plotting functions
PURPOSE:
This script provides multiple functions for plotting a stream as well
as analysing various properties of a stream.
All plots are done with pyt... | bsd-3-clause |
alfanugraha/LUMENS-repo | processing/molusce/moluscedialog.py | 2 | 63633 | # -*- coding: utf-8 -*-
#******************************************************************************
#
# MOLUSCE
# ---------------------------------------------------------
# Modules for Land Use Change Simulations
#
# Copyright (C) 2012-2013 NextGIS (info@nextgis.org)
#
# This source is free software; you can redi... | gpl-2.0 |
xuewei4d/scikit-learn | sklearn/neural_network/_multilayer_perceptron.py | 8 | 56999 | """Multi-layer Perceptron
"""
# Authors: Issam H. Laradji <issam.laradji@gmail.com>
# Andreas Mueller
# Jiyuan Qian
# License: BSD 3 clause
import numpy as np
from abc import ABCMeta, abstractmethod
import warnings
import scipy.optimize
from ..base import BaseEstimator, ClassifierMixin, Regressor... | bsd-3-clause |
winklerand/pandas | pandas/core/frame.py | 1 | 239011 | """
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... | bsd-3-clause |
musically-ut/statsmodels | statsmodels/genmod/tests/test_glm.py | 19 | 37824 | """
Test functions for models.GLM
"""
from statsmodels.compat import range
import os
import numpy as np
from numpy.testing import (assert_almost_equal, assert_equal, assert_raises,
assert_allclose, assert_, assert_array_less, dec)
from scipy import stats
import statsmodels.api as sm
from st... | bsd-3-clause |
drewokane/seaborn | seaborn/tests/test_categorical.py | 1 | 82456 | import numpy as np
import pandas as pd
import scipy
from scipy import stats
import matplotlib as mpl
import matplotlib.pyplot as plt
from distutils.version import LooseVersion
pandas_has_categoricals = LooseVersion(pd.__version__) >= "0.15"
import nose.tools as nt
import numpy.testing as npt
from numpy.testing.decora... | bsd-3-clause |
dsm054/pandas | pandas/tseries/offsets.py | 1 | 83757 | # -*- coding: utf-8 -*-
from datetime import date, datetime, timedelta
import functools
import operator
from pandas.compat import range
from pandas import compat
import numpy as np
from pandas.core.dtypes.generic import ABCPeriod
from pandas.core.tools.datetimes import to_datetime
# import after tools, dateutil chec... | bsd-3-clause |
Kirubaharan/hydrology | weather/wind_speed_had_mcmc.py | 1 | 38579 | __author__ = 'kiruba'
import numpy as np
import matplotlib.pyplot as plt
import pandas as pd
import itertools
import pymc as pm
import scipy.stats as stats
from datetime import timedelta
from datetime import datetime
from pymc import TruncatedNormal
from pymc import Normal, Exponential
import matplotlib
# data = np.arr... | gpl-3.0 |
rigdenlab/SIMBAD | simbad/command_line/simbad_database.py | 1 | 33517 | """Script to download or update SIMBAD-related databases"""
__author__ = "Felix Simkovic & Adam Simpkin"
__date__ = "17 May 2017"
__version__ = "1.0"
import argparse
import collections
import datetime
import glob
import json
import numpy as np
import pandas as pd
import morda
import os
import shutil
import ssl
import... | bsd-3-clause |
prisae/empymod | empymod/scripts/fdesign.py | 1 | 42420 | r"""
:mod:`empymod.scripts.fdesign` -- Digital Linear Filter (DLF) design
====================================================================
The add-on fdesign can be used to design digital linear filters for the Hankel
or Fourier transform, or for any linear transform ([Ghos70]_). For this
included or provided theo... | apache-2.0 |
nmayorov/scikit-learn | sklearn/gaussian_process/gaussian_process.py | 16 | 34896 | # -*- coding: utf-8 -*-
# Author: Vincent Dubourg <vincent.dubourg@gmail.com>
# (mostly translation, see implementation details)
# Licence: BSD 3 clause
from __future__ import print_function
import numpy as np
from scipy import linalg, optimize
from ..base import BaseEstimator, RegressorMixin
from ..metrics... | bsd-3-clause |
tequa/ammisoft | ammimain/WinPython-64bit-2.7.13.1Zero/python-2.7.13.amd64/Lib/site-packages/matplotlib/contour.py | 10 | 68919 | """
These are classes to support contour plotting and
labelling for the axes class
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import six
from six.moves import xrange
import warnings
import matplotlib as mpl
import numpy as np
from numpy import ma
... | bsd-3-clause |
peraktong/Cannon-Experiment | 0302_plot_sim_labels_all.py | 1 | 63360 |
import numpy as np
from astropy.table import Table
from astropy.io import fits
import matplotlib.pyplot as plt
import matplotlib
import pickle
from TheCannon_2 import dataset,apogee
from TheCannon_2 import model
pkl_file = open('wl.pkl', 'rb')
wl = pickle.load(pkl_file)
pkl_file.close()
# load path
pkl_file = op... | mit |
krez13/scikit-learn | sklearn/mixture/gmm.py | 19 | 30655 | """
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 |
wackywendell/numpy | numpy/lib/polynomial.py | 32 | 37972 | """
Functions to operate on polynomials.
"""
from __future__ import division, absolute_import, print_function
__all__ = ['poly', 'roots', 'polyint', 'polyder', 'polyadd',
'polysub', 'polymul', 'polydiv', 'polyval', 'poly1d',
'polyfit', 'RankWarning']
import re
import warnings
import numpy.core.... | bsd-3-clause |
nicproulx/mne-python | mne/viz/utils.py | 2 | 75314 | """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 |
datapythonista/pandas | pandas/core/indexes/base.py | 1 | 211798 | from __future__ import annotations
from copy import copy as copy_func
from datetime import datetime
import functools
from itertools import zip_longest
import operator
from typing import (
TYPE_CHECKING,
Any,
Callable,
Hashable,
Sequence,
TypeVar,
cast,
overload,
)
import warnings
impor... | bsd-3-clause |
ales-erjavec/orange | Orange/clustering/hierarchical.py | 6 | 57642 | """
******************************************
Hierarchical clustering (``hierarchical``)
******************************************
.. index::
single: clustering, hierarchical, dendrogram
.. index:: aglomerative clustering
The following example show clustering of the Iris data, with distance matrix
computed wit... | gpl-3.0 |
valexandersaulys/prudential_insurance_kaggle | venv/lib/python2.7/site-packages/scipy/signal/signaltools.py | 3 | 85267 | # Author: Travis Oliphant
# 1999 -- 2002
from __future__ import division, print_function, absolute_import
import warnings
import threading
from . import sigtools
from scipy._lib.six import callable
from scipy._lib._version import NumpyVersion
from scipy import linalg
from scipy.fftpack import (fft, ifft, ifftshift, ... | gpl-2.0 |
maheshakya/scikit-learn | sklearn/ensemble/forest.py | 1 | 61522 | """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 |
NeuroDataDesign/seelviz | Tony/scripts/analysis.py | 1 | 43860 | #!/usr/bin/env python
#-*- coding:utf-8 -*-
import matplotlib
from matplotlib import pyplot as plt
import numpy as np
from numpy import linalg as LA
import cv2
from skimage import exposure
import math
import os
import plotly
from plotly.graph_objs import *
from plotly.offline import download_plotlyjs, init_notebook_m... | apache-2.0 |
joshloyal/scikit-learn | sklearn/model_selection/_validation.py | 10 | 38460 | """
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 |
samuelleblanc/flight_planning | map_interactive.py | 2 | 30098 | # map_interactive software
# to use in combination with moving_lines
# Copyright 2015, Samuel LeBlanc
from mpl_toolkits.basemap import Basemap
import numpy as np
import sys
import re
import copy
import map_interactive as mi
from map_utils import spherical_dist,equi,shoot,bearing
class LineBuilder:
"""
Purpose... | gpl-3.0 |
uglyboxer/linear_neuron | net-p3/lib/python3.5/site-packages/matplotlib/_cm.py | 15 | 94005 | """
Nothing here but dictionaries for generating LinearSegmentedColormaps,
and a dictionary of these dictionaries.
Documentation for each is in pyplot.colormaps()
"""
from __future__ import (absolute_import, division, print_function,
unicode_literals)
import numpy as np
_binary_data = {
... | mit |
lo-co/atm-py | build/lib/atmPy/for_removal/POPS/mie.py | 6 | 51426 | # -*- coding: utf-8 -*-
"""
Spyder Editor
This temporary script file is located here:
/Users/htelg/.spyder2/.temp.py
"""
#ToDo
#- ich denke nicht, dass wir neutral nehen muessen .. unserer laser is polarisiert ...
#- indes of refraction at 405 nm for psl
#- results plotten
# Check using http://omlc.ogi.edu/calc/mie_... | mit |
ndingwall/scikit-learn | sklearn/model_selection/_split.py | 7 | 82092 | """
The :mod:`sklearn.model_selection._split` module includes classes and
functions to split the data based on a preset strategy.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>,
# Gael Varoquaux <gael.varoquaux@normalesup.org>,
# Olivier Grisel <olivier.grisel@ensta.org>
# Ragha... | bsd-3-clause |
kenshay/ImageScript | ProgramData/SystemFiles/Python/Lib/site-packages/matplotlib/collections.py | 6 | 66869 | """
Classes for the efficient drawing of large collections of objects that
share most properties, e.g., a large number of line segments or
polygons.
The classes are not meant to be as flexible as their single element
counterparts (e.g., you may not be able to select all line styles) but
they are meant to be fast for c... | gpl-3.0 |
blab/nextstrain-augur | augur/titer_model.py | 1 | 48017 | import os
import logging
import numpy as np
import time
from collections import defaultdict
import pandas as pd
from pprint import pprint
import sys
from .utils import myopen
TITER_ROUND=4
class InsufficientDataException(Exception):
pass
class TiterCollection(object):
"""
Container for raw titer values ... | agpl-3.0 |
grlee77/numpy | numpy/core/tests/test_multiarray.py | 1 | 318034 | import collections.abc
import tempfile
import sys
import shutil
import warnings
import operator
import io
import itertools
import functools
import ctypes
import os
import gc
import weakref
import pytest
from contextlib import contextmanager
from numpy.compat import pickle
import pathlib
import builtins
from decimal i... | bsd-3-clause |
grlee77/scipy | scipy/signal/fir_filter_design.py | 13 | 47827 | # -*- coding: utf-8 -*-
"""Functions for FIR filter design."""
from math import ceil, log
import operator
import warnings
import numpy as np
from numpy.fft import irfft, fft, ifft
from scipy.special import sinc
from scipy.linalg import (toeplitz, hankel, solve, LinAlgError, LinAlgWarning,
ls... | bsd-3-clause |
CforED/Machine-Learning | sklearn/feature_extraction/text.py | 7 | 50272 | # -*- 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 |
google-research/google-research | many_constraints/robust_fairness.py | 1 | 38282 | # coding=utf-8
# Copyright 2021 The Google Research Authors.
#
# 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 applicab... | apache-2.0 |
numpy/numpy | numpy/lib/npyio.py | 4 | 89490 | import sys
import os
import re
import functools
import itertools
import warnings
import weakref
import contextlib
from operator import itemgetter, index as opindex
from collections.abc import Mapping
import numpy as np
from . import format
from ._datasource import DataSource
from numpy.core import overrides
from numpy... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.