repo_name string | path string | copies string | size string | content string | license string |
|---|---|---|---|---|---|
kwilliams-mo/iris | lib/iris/plot.py | 1 | 35700 | # (C) British Crown Copyright 2010 - 2013, Met Office
#
# This file is part of Iris.
#
# Iris 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 l... | gpl-3.0 |
chungjjang80/FRETBursts | fretbursts/burst_plot.py | 1 | 95828 | # encoding: utf-8
#
# FRETBursts - A single-molecule FRET burst analysis toolkit.
#
# Copyright (C) 2013-2016 The Regents of the University of California,
# Antonino Ingargiola <tritemio@gmail.com>
#
"""
This module defines all the plotting functions for the
:class:`fretbursts.burstlib.Data` object.
The ... | gpl-2.0 |
clemkoa/scikit-learn | sklearn/model_selection/tests/test_split.py | 3 | 54625 | """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 |
chris-chris/tensorflow | tensorflow/contrib/learn/python/learn/estimators/estimator.py | 1 | 55283 | # 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 |
low-sky/colira | bayes/brs.py | 1 | 39608 | from . import logprob as lp
from . import sampler_plot as splt
import scipy.stats
import numpy as np
import astropy.io.fits as fits
import emcee
import matplotlib.pyplot as p
from matplotlib import rc
from astropy.table import Table, Column
import pdb
import sys
#rc('text',usetex=True)
try:
import mpi4py
from e... | gpl-2.0 |
esatel/ADCPy | adcpy/adcpy.py | 1 | 54878 | # -*- coding: utf-8 -*-
""" Data structures and manipulation of ADCP data
ADCPy allows the user to read raw (unprocessed) data from ADCP
instruments, perform a suite of processing functions and data transformations,
and output summary data and related plots. By providing access to the raw ADCP
velocities, ADCPy all... | mit |
jamestwebber/scipy | tools/refguide_check.py | 1 | 31511 | #!/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 |
xray/xray | xarray/backends/api.py | 1 | 50534 | import os.path
import warnings
from glob import glob
from io import BytesIO
from numbers import Number
from pathlib import Path
from typing import (
TYPE_CHECKING,
Callable,
Dict,
Hashable,
Iterable,
Mapping,
Tuple,
Union,
)
import numpy as np
from .. import backends, coding, conventio... | apache-2.0 |
pjryan126/solid-start-careers | store/api/zillow/venv/lib/python2.7/site-packages/pandas/tseries/period.py | 1 | 38149 | # pylint: disable=E1101,E1103,W0232
from datetime import datetime, timedelta
import numpy as np
import pandas.tseries.frequencies as frequencies
from pandas.tseries.frequencies import get_freq_code as _gfc
from pandas.tseries.index import DatetimeIndex, Int64Index, Index
from pandas.tseries.base import DatelikeOps, Dat... | gpl-2.0 |
herilalaina/scikit-learn | sklearn/tree/tests/test_tree.py | 3 | 65278 | """
Testing for the tree module (sklearn.tree).
"""
import copy
import pickle
from functools import partial
from itertools import product
import struct
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 s... | bsd-3-clause |
jepegit/cellpy | cellpy/readers/instruments/backup_arbin.py | 1 | 45128 | """arbin res-type data files"""
import os
import sys
import tempfile
import shutil
import logging
import platform
import warnings
import time
import numpy as np
import pandas as pd
from cellpy.readers.core import (
FileID,
Cell,
check64bit,
humanize_bytes,
xldate_as_datetime,
)
from cellpy.paramet... | mit |
desihub/desispec | py/desispec/trace_shifts.py | 1 | 45318 | """
desispec.trace_shifts
=====================
"""
from __future__ import absolute_import, division
import sys
import argparse
import time
import numpy as np
from numpy.linalg.linalg import LinAlgError
import astropy.io.fits as pyfits
from numpy.polynomial.legendre import legval,legfit
from scipy.signal import fftc... | bsd-3-clause |
google-research/google-research | goemotions/bert_classifier.py | 1 | 37100 | # 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 |
zfrenchee/pandas | pandas/core/internals.py | 1 | 193137 | import warnings
import copy
from warnings import catch_warnings
import inspect
import itertools
import re
import operator
from datetime import datetime, timedelta, date
from collections import defaultdict
from functools import partial
import numpy as np
from pandas.core.base import PandasObject
from pandas.core.dtyp... | bsd-3-clause |
christopherburke/MEPL | microlens.py | 1 | 79623 | """ Module for binary microlens modeling
Author: Christopher J Burke
"""
import numpy as np
import matplotlib.pyplot as plt
import scipy.spatial.distance as dist
import numpy.polynomial.polynomial as ply
import time
from operator import attrgetter
import multiprocessing
from meeple_shape import meeple_outline
cla... | gpl-3.0 |
jhprinz/openpathsampling | openpathsampling/tests/test_tis_analysis.py | 1 | 44662 | from nose.tools import (assert_equal, assert_not_equal, assert_almost_equal,
raises)
from nose.plugins.skip import Skip, SkipTest
from .test_helpers import (
true_func, assert_equal_array_array, make_1d_traj, data_filename,
MoverWithSignature, RandomMDEngine, assert_frame_equal,
asse... | lgpl-2.1 |
Achuth17/scikit-bio | skbio/stats/distance/_base.py | 1 | 30102 | # ----------------------------------------------------------------------------
# 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 |
OpenDataServices/resource-projects-etl | modules/taglifter.py | 2 | 35933 | import pandas
import urllib
import re
from rdflib import Graph, URIRef, Literal
from rdflib.namespace import FOAF, RDF, SKOS, OWL, RDFS, XSD
from rdflib.namespace import Namespace
from collections import OrderedDict, defaultdict
from countrycode.countrycode import countrycode
import random
import locale
PROV = Namespa... | gpl-2.0 |
Frankkkkk/arctic | tests/integration/store/test_version_store.py | 1 | 39483 | import bson
import six
from bson.son import SON
from datetime import datetime as dt, timedelta as dtd
import pandas as pd
from pandas.util.testing import assert_frame_equal
from pymongo.errors import OperationFailure
from pymongo.read_preferences import ReadPreference
from pymongo.server_type import SERVER_TYPE
from da... | lgpl-2.1 |
wateraccounting/SEBAL | PreSEBAL/preSEBAL_new.py | 1 | 105328 | # -*- coding: utf-8 -*-
"""
Created on Thu Sep 08 15:09:49 2016
@author: tih
"""
import numpy as np
import os
import scipy.interpolate
import gdal
from openpyxl import load_workbook
import osr
from datetime import datetime, timedelta
import pandas as pd
import shutil
import glob
from netCDF4 import Dataset
import warn... | apache-2.0 |
tejasapatil/spark | python/pyspark/sql/dataframe.py | 2 | 88718 | #
# 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 |
AleCandido/Lab3 | BobLightyear.py | 1 | 44070 | # ********************** IMPORTS ***************************
# generic
import numpy as np
from numpy import array, asarray, isfinite, sqrt, diag, vectorize, number, isscalar
import math
from math import log10, fsum, floor
import inspect
import time
from matplotlib import gridspec, pyplot
# scipy
from scipy import o... | gpl-3.0 |
jspam/temci | temci/report/report.py | 1 | 105969 | import logging
import math
import re
import shutil
from collections import namedtuple
import multiprocessing
import time
import sys
import itertools
from temci.report.stats import TestedPairsAndSingles, BaseStatObject, TestedPair, TestedPairProperty, StatMessage, \
StatMessageType, Single, SingleProperty, Sin... | gpl-3.0 |
EFerriss/pynams | pynams/blocks.py | 1 | 41986 | """
Code for grouping 3 orthogonal Profiles into a single Block object.
"""
from __future__ import print_function, division, absolute_import
import pynams.styles as styles
from pynams.diffusion import models
from pynams import Spectrum
import numpy as np
import matplotlib.pyplot as plt
import lmfit
class Block():
... | mit |
quimaguirre/diana | scripts/old_scripts/analyze_general_performance.py | 1 | 41461 | import argparse
import copy
import cPickle
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
import pylab
#from pylab import plot, show, savefig, xlim, figure, hold, ylim, legend, boxplot, setp, axes, xlabel, ylabel
import scipy
import time
import sys, os, re
from sklearn.decomposition import PCA
... | mit |
luiscarlosgph/t-Student-Mixture-Models | src/smm.py | 1 | 55095 | """t-Student Mixture Models Module (smm).
- This module allows you to model data by a mixture of t-Student \
distributions, estimating the parameters with \
Expectation-Maximisation. \
It is an implementation of the paper: 'Robust mixture modelling using \
the t distribution', D. Peel and G. J. McLachlan. Published at... | bsd-3-clause |
jmargeta/scikit-learn | sklearn/metrics/tests/test_metrics.py | 2 | 40101 | from __future__ import division
import warnings
import numpy as np
from sklearn import datasets
from sklearn import svm
from sklearn.preprocessing import LabelBinarizer
from sklearn.datasets import make_multilabel_classification
from sklearn.utils import check_random_state, shuffle
from sklearn.utils.multiclass impo... | bsd-3-clause |
harisbal/pandas | pandas/tests/reshape/test_concat.py | 1 | 100464 | from warnings import catch_warnings, simplefilter
from itertools import combinations
from collections import deque
from decimal import Decimal
import datetime as dt
import dateutil
import numpy as np
from numpy.random import randn
from datetime import datetime
from pandas.compat import Iterable, StringIO, iteritems, ... | bsd-3-clause |
hydroffice/hyo_soundspeed | hyo2/soundspeed/soundspeed.py | 1 | 78331 | import time
import os
import re
import copy
import shutil
import traceback
import logging
from typing import Optional, TYPE_CHECKING
from appdirs import user_data_dir
from hyo2.abc.lib.progress.abstract_progress import AbstractProgress
from hyo2.abc.lib.progress.cli_progress import CliProgress
from hyo2.abc.lib.gdal_a... | lgpl-2.1 |
nicjhan/MOM6-examples | tools/analysis/m6plot.py | 1 | 62442 | """
A method for producing a standardized pseudo-color plot of 2D data
"""
import os
try:
if os.environ['DISPLAY'] != None: pass
except:
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.colors import BoundaryNorm, ListedColormap, LogNorm
from matplotlib.ticker import MaxNL... | gpl-3.0 |
francois-durand/svvamp | svvamp/Preferences/Population.py | 1 | 89312 | # -*- coding: utf-8 -*-
"""
Created on Mon Sep 22 15:24:52 2014
Copyright François Durand 2014, 2015
fradurand@gmail.com
This file is part of SVVAMP.
SVVAMP 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 Found... | gpl-3.0 |
CodeMonkeyJan/hyperspy | hyperspy/_signals/lazy.py | 1 | 33595 | # -*- coding: utf-8 -*-
# Copyright 2007-2016 The HyperSpy developers
#
# This file is part of HyperSpy.
#
# HyperSpy 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... | gpl-3.0 |
Transkribus/TranskribusDU | TranskribusDU/tasks/TablePrototypes/DU_ABPTableRCut1.py | 1 | 34342 | # -*- coding: utf-8 -*-
"""
DU task for ABP Table: doing jointly row BIESO and horizontal cuts
block2line edges do not cross another block.
The cut are based on baselines of text blocks.
Copyright Naver Labs Europe(C) 2018 JL Meunier
Developed for the EU project READ. Th... | bsd-3-clause |
kushalbhola/MyStuff | Practice/PythonApplication/env/Lib/site-packages/pandas/io/json/_json.py | 1 | 35619 | from io import StringIO
from itertools import islice
import os
import numpy as np
import pandas._libs.json as json
from pandas._libs.tslibs import iNaT
from pandas.errors import AbstractMethodError
from pandas.core.dtypes.common import ensure_str, is_period_dtype
from pandas import DataFrame, MultiIndex, Series, is... | apache-2.0 |
KeplerGO/kpub | kpub/kpub.py | 1 | 37685 | """Build and maintain a database of Kepler/K2 publications.
"""
from __future__ import print_function, division, unicode_literals
# Standard library
import os
import re
import sys
import json
import datetime
import argparse
import collections
import sqlite3 as sql
import numpy as np
try:
import ads
except Excepti... | mit |
vikhyat/dask | dask/array/core.py | 1 | 98493 | from __future__ import absolute_import, division, print_function
import operator
from operator import add, getitem
import inspect
from numbers import Number
from collections import Iterable, MutableMapping
from bisect import bisect
from itertools import product
from collections import Iterator
from functools import pa... | bsd-3-clause |
herilalaina/scikit-learn | sklearn/linear_model/stochastic_gradient.py | 1 | 56850 | # Authors: Peter Prettenhofer <peter.prettenhofer@gmail.com> (main author)
# Mathieu Blondel (partial_fit support)
#
# License: BSD 3 clause
"""Classification and regression using Stochastic Gradient Descent (SGD)."""
import numpy as np
import warnings
from abc import ABCMeta, abstractmethod
from ..external... | bsd-3-clause |
JonasHarnau/apc | apc/Model.py | 1 | 113614 | """Model Class for age-period-cohort analysis."""
import numpy as np
import pandas as pd
import statsmodels.api as sm
from scipy import stats
import matplotlib.pyplot as plt
import seaborn as sns
plt.style.use('ggplot')
class Model:
"""
Class that is the central object for age-period-cohort modeling.
Th... | gpl-3.0 |
rubikloud/scikit-learn | sklearn/tree/tree.py | 1 | 38197 | """
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 |
jhamman/xarray | xarray/tests/test_cftime_offsets.py | 1 | 35837 | from itertools import product
import numpy as np
import pandas as pd
import pytest
from xarray import CFTimeIndex
from xarray.coding.cftime_offsets import (
_MONTH_ABBREVIATIONS,
BaseCFTimeOffset,
Day,
Hour,
Minute,
MonthBegin,
MonthEnd,
QuarterBegin,
QuarterEnd,
Second,
Ye... | apache-2.0 |
zasdfgbnm/qutip | qutip/visualization.py | 1 | 46431 | # This file is part of QuTiP: Quantum Toolbox in Python.
#
# Copyright (c) 2011 and later, Paul D. Nation and Robert J. Johansson.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
... | bsd-3-clause |
dannyjacobs/PRISim | main/global_EoR_figures_producer.py | 1 | 36344 | import numpy as NP
import astropy.cosmology as CP
import scipy.constants as FCNST
import argparse
import yaml
import astropy
from astropy.io import fits, ascii
import progressbar as PGB
import matplotlib.pyplot as PLT
import matplotlib.colors as PLTC
import matplotlib.cm as CM
from matplotlib.ticker import FuncFormatte... | mit |
DGrady/pandas | pandas/tests/indexes/test_multi.py | 2 | 114953 | # -*- coding: utf-8 -*-
import re
import warnings
from datetime import timedelta
from itertools import product
import pytest
import numpy as np
import pandas as pd
from pandas import (CategoricalIndex, DataFrame, Index, MultiIndex,
compat, date_range, period_range)
from pandas.compat import PY... | bsd-3-clause |
nvenayak/impact | impact/plotting.py | 1 | 73691 | import sqlite3 as sql
import numpy as np
import sys
from warnings import warn
from .core.ReplicateTrial import ReplicateTrial
from .core.settings import plotly_username, plotly_api_key, settings
from .curve_fitting.methods import *
import pandas as pd
# If in the iPython environment, initialize notebook mode
try:
... | gpl-3.0 |
vortex-ape/scikit-learn | sklearn/linear_model/least_angle.py | 2 | 59459 | """
Least Angle Regression algorithm. See the documentation on the
Generalized Linear Model for a complete discussion.
"""
from __future__ import print_function
# Author: Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Gael Varoquaux
#
# License: BSD 3 ... | bsd-3-clause |
herilalaina/scikit-learn | sklearn/linear_model/tests/test_sgd.py | 8 | 51322 | 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 |
aw3s/PT3S | Rm.py | 1 | 452627 | """
"""
"""
>>> # ---
>>> # SETUP
>>> # ---
>>> import os
>>> import logging
>>> logger = logging.getLogger('PT3S.Rm')
>>> # ---
>>> # path
>>> # ---
>>> if __name__ == "__main__":
... try:
... dummy=__file__
... logger.debug("{0:s}{1:s}{2:s}".format('DOCTEST: __main__ Context: ','path = os.p... | mit |
alexandrebarachant/mne-python | mne/coreg.py | 2 | 40793 | """Coregistration between different coordinate frames"""
# Authors: Christian Brodbeck <christianbrodbeck@nyu.edu>
#
# License: BSD (3-clause)
from .externals.six.moves import configparser
import fnmatch
from glob import glob, iglob
import os
import stat
import sys
import re
import shutil
from warnings import warn
fr... | bsd-3-clause |
miklevin/pipulate | pipulate/__init__.py | 1 | 31243 | # _____ _ _ _ ____ _ _ _
# |_ _| |__ (_)___ (_)___ | _ \(_)_ __ _ _| | __ _| |_ ___
# | | | '_ \| / __| | / __| | |_) | | '_ \| | | | |/ _` | __/ _ \
# | | | | | | \__ \ | \__ \ | __/| | |_) | |_| | | (_| | || __/
# |_| |_| |_|_|___/ |_|___/ |_| |_| .__/ \__,_|_|\__... | mit |
jtladner/Scripts | chimeric_reads/chimeric_reads_v3.6.2.py | 1 | 49635 | #!/usr/bin/env python
# By Jason Ladner
#This script looks for single reads that are chimeric, with different portions mapping to different regions
#In v2, I tweaked the way I was making the plot in matplot lib to try to make it easy to create a legend
#In v3, Fixed bug related to reads with doubly aligned bases. On... | gpl-3.0 |
PROSIC/PROSIC | prosic/matplotlib2tikz.py | 1 | 58783 | # -*- coding: utf-8 -*-
#
# Copyright (C) 2010--2014 Nico Schlömer
#
# This file is part of matplotlib2tikz.
#
# matplotlib2tikz 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,... | gpl-3.0 |
dcchivian/kb_assembly_compare | lib/kb_assembly_compare/kb_assembly_compareImpl.py | 1 | 92836 | # -*- coding: utf-8 -*-
#BEGIN_HEADER
import math
import os
import re
import sys
import uuid
from datetime import datetime
from pprint import pprint, pformat
import matplotlib.pyplot as plt
import numpy as np
from installed_clients.AssemblyUtilClient import AssemblyUtil
from installed_clients.DataFileUtilClient impor... | mit |
SU-ECE-17-7/ibeis | ibeis/viz/viz_graph2.py | 1 | 64381 | # -*- coding: utf-8 -*-
"""
CommandLine:
#python -m ibeis.viz.viz_graph2 make_qt_graph_interface --show
python -m ibeis.viz.viz_graph2 make_qt_graph_interface --show --aids=1,2,3,4,5,6,7,8,9
python -m ibeis.viz.viz_graph2 make_qt_graph_interface --show --aids=1,4,5,6,7,8,9
"""
from __future__ import absolut... | apache-2.0 |
xuewei4d/scikit-learn | sklearn/pipeline.py | 4 | 39416 | """
The :mod:`sklearn.pipeline` module implements utilities to build a composite
estimator, as a chain of transforms and estimators.
"""
# Author: Edouard Duchesnay
# Gael Varoquaux
# Virgile Fritsch
# Alexandre Gramfort
# Lars Buitinck
# License: BSD
from collections import defaultdict... | bsd-3-clause |
fabian-paul/PyEMMA | pyemma/plots/networks.py | 1 | 31244 | # This file is part of PyEMMA.
#
# Copyright (c) 2014-2016 Computational Molecular Biology Group, Freie Universitaet Berlin (GER)
#
# PyEMMA 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 versio... | lgpl-3.0 |
dbednarski/pyhdust | pyhdust/interftools.py | 1 | 48126 | #-*- coding:utf-8 -*-
"""
PyHdust *interftools* module: interferometry tools
`colors` keep the *amdlib* standard.
A biblioteca python XDRLIB eh MUITO lenta... Usa muitas listas!!!
>>> import xdrlib
A biblioteca PYDAP estah em desenvolvimento... Eh complicada de usar
>>> from pydap.model import *
>>> from pydap.x... | gpl-3.0 |
fedspendingtransparency/data-act-broker-backend | dataactcore/utils/duns.py | 1 | 33620 | import logging
import os
import time
import json
import zipfile
import datetime
import requests
import numpy as np
import pandas as pd
from collections import OrderedDict
from sqlalchemy import and_, func
from ratelimit import limits, sleep_and_retry
from backoff import on_exception, expo
from dataactcore.config impor... | cc0-1.0 |
renatolm/endometriose | mamdani_kleber.py | 1 | 41221 | from __future__ import division
import numpy as np
import skfuzzy as fuzz
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
def mamdani_defuzz(dism, disp, dor, cans):
dismenorreia = dism
dispareunia = disp
dorNasCostasPernas = dor
cansaco = cans
print "entradas: dismenorreia "+str(dismenorr... | gpl-3.0 |
pvlib/pvlib-python | pvlib/tests/test_irradiance.py | 1 | 41284 | import datetime
from collections import OrderedDict
import warnings
import numpy as np
from numpy import array, nan
import pandas as pd
import pytest
from numpy.testing import assert_almost_equal, assert_allclose
from pvlib import irradiance
from .conftest import (
assert_frame_equal,
assert_series_equal,
... | bsd-3-clause |
dmd/stabilitycalc | stabilitycalc.py | 1 | 35493 | #!/usr/bin/env python
import os
from os.path import join as pjoin
import time
import matplotlib
import seaborn
seaborn.set_style("dark")
matplotlib.use('Agg', warn=False)
import numpy as np
import matplotlib.pyplot as plt
import shutil
import nibabel as nib
from mako.lookup import TemplateLookup
makolookup = Templat... | apache-2.0 |
jtwhite79/pyemu | pyemu/la.py | 1 | 40763 | """LinearAnalysis object, which is the base class for other
pyemu analysis objects (Schur, ErrVar, MonteCarlo, and EnsembleSmoother).
This class is usually not used directly.
"""
from __future__ import print_function, division
import os
import copy
from datetime import datetime
import numpy as np
import pandas as pd
... | bsd-3-clause |
rs2/pandas | pandas/tests/groupby/test_apply.py | 1 | 34301 | from datetime import date, datetime
from io import StringIO
import numpy as np
import pytest
import pandas as pd
from pandas import DataFrame, Index, MultiIndex, Series, bdate_range
import pandas._testing as tm
def test_apply_issues():
# GH 5788
s = """2011.05.16,00:00,1.40893
2011.05.16,01:00,1.40760
2011... | bsd-3-clause |
jamestwebber/scipy | scipy/stats/tests/test_morestats.py | 1 | 76774 | # Author: Travis Oliphant, 2002
#
# Further enhancements and tests added by numerous SciPy developers.
#
from __future__ import division, print_function, absolute_import
import warnings
import numpy as np
from numpy.random import RandomState
from numpy.testing import (assert_array_equal,
assert_almost_equal, ass... | bsd-3-clause |
dereneaton/ipyrad | ipyrad/analysis/bpp.py | 1 | 71054 | #!/usr/bin/env python
"convert loci file to bpp format input files"
# py2/3 compat
from __future__ import print_function
from builtins import range
# standard lib
import os
import sys
import glob
import time
import copy
import tempfile
import requests
import itertools
import subprocess as sps
import numpy as np
imp... | gpl-3.0 |
kevin-intel/scikit-learn | sklearn/linear_model/_base.py | 2 | 30238 | """
Generalized Linear Models.
"""
# Author: Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Fabian Pedregosa <fabian.pedregosa@inria.fr>
# Olivier Grisel <olivier.grisel@ensta.org>
# Vincent Michel <vincent.michel@inria.fr>
# Peter Prettenhofer <peter.prettenhofer@gmail.com>
# Mathieu Blond... | bsd-3-clause |
chrsrds/scikit-learn | sklearn/model_selection/_split.py | 2 | 77239 | """
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 |
ernfrid/skll | skll/learner.py | 1 | 64201 | # License: BSD 3 clause
"""
Provides easy-to-use wrapper around scikit-learn.
:author: Michael Heilman (mheilman@ets.org)
:author: Nitin Madnani (nmadnani@ets.org)
:author: Dan Blanchard (dblanchard@ets.org)
:author: Aoife Cahill (acahill@ets.org)
:organization: ETS
"""
# pylint: disable=F0401,W0622,E1002,E1101
from ... | bsd-3-clause |
bloyl/mne-python | mne/surface.py | 2 | 61761 | # Authors: Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Alexandre Gramfort <alexandre.gramfort@inria.fr>
# Matti Hämäläinen <msh@nmr.mgh.harvard.edu>
# Denis A. Engemann <denis.engemann@gmail.com>
#
# License: BSD (3-clause)
# Many of the computations in this code were derived from Matti Häm... | bsd-3-clause |
ClimbsRocks/scikit-learn | sklearn/linear_model/stochastic_gradient.py | 1 | 50886 | # 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 |
bgris/ODL_bgris | lib/python3.5/site-packages/spyder/widgets/variableexplorer/collectionseditor.py | 1 | 58209 | # -*- coding: utf-8 -*-
#
# Copyright © Spyder Project Contributors
# Licensed under the terms of the MIT License
# (see spyder/__init__.py for details)
"""
Collections (i.e. dictionary, list and tuple) editor widget and dialog
"""
#TODO: Multiple selection: open as many editors (array/dict/...) as necessar... | gpl-3.0 |
TheArnabDey/PokerDataStyle | poker.py | 1 | 284723 | import random
import pandas as pd
import numpy as np
df1 = pd.read_csv('train.csv')
df2 = pd.read_csv('train.csv')
df3 = pd.read_csv('train.csv')
df4 = pd.read_csv('train.csv')
df5 = pd.read_csv('train.csv')
for i in range(0,1000000):
for k in range (1,5):
x = 0
# Create Pre-Flop round
... | apache-2.0 |
istellartech/OpenLaval | openLaval.py | 1 | 32190 | # -*- coding: utf-8 -*-
'''
Copyright (c) 2017 Interstellar Technologies Inc. All Rights Reserved.
Authors : Seiji Arther Murakami, Takahiro Inagawa
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), ... | mit |
toobaz/pandas | pandas/core/base.py | 1 | 50137 | """
Base and utility classes for pandas objects.
"""
import builtins
from collections import OrderedDict
import textwrap
from typing import Optional
import warnings
import numpy as np
import pandas._libs.lib as lib
from pandas.compat import PYPY
from pandas.compat.numpy import function as nv
from pandas.errors import... | bsd-3-clause |
kiliakis/BLonD | beams/distributions.py | 1 | 36748 |
# Copyright 2015 CERN. This software is distributed under the
# terms of the GNU General Public Licence version 3 (GPL Version 3),
# copied verbatim in the file LICENCE.md.
# In applying this licence, CERN does not waive the privileges and immunities
# granted to it by virtue of its status as an Intergovernmental Or... | gpl-3.0 |
MMTObservatory/mmtwfs | mmtwfs/wfs.py | 1 | 72281 | # Licensed under a 3-clause BSD style license - see LICENSE.rst
# coding=utf-8
"""
Classes and utilities for operating the wavefront sensors of the MMTO and analyzing the data they produce
"""
import warnings
import pathlib
import numpy as np
import photutils
import matplotlib.pyplot as plt
import matplotlib.cm as... | bsd-3-clause |
tabhitmy/MLTF | WORKFLOW/code/python_code/controlPanelSubFunc_NFDA_J.py | 1 | 35221 | import os
import numpy as np
import GVal
import copy
from toolkitJ import cell2dmatlab_jsp
from toolkitJ import str2num
# default input value matrix
# For inner-classifier parameter loop. Here contains default loop
# Specific for loop parameter setting in controlPanel()
dVM = {}
# 21 -- Linear SVM
dVM[21... | mit |
hschovanec-usgs/magpy | magpy/opt/stormdet.py | 1 | 56136 | #!/usr/bin/env python
'''
Path: magpy.opt.stormdet
Part of package: stormdet
Type: Library of functions for storm detection
PURPOSE:
Script containing all programs needed for storm detection algorithm.
All functions called by seekStorm().
Require PyWav... | gpl-3.0 |
jmontgom10/pyPol | 08b_photometricCalibration.py | 2 | 52064 | # -*- coding: utf-8 -*-
"""
Created on Sat Nov 28 17:08:13 2015
@author: jordan
"""
import os
import sys
import glob
from datetime import datetime, timedelta
import warnings
import numpy as np
from astropy.table import Table, Column, hstack
from astropy.stats import sigma_clipped_stats, gaussian_fwhm_to_sigma
from ast... | mit |
nmgeek/npTDMS | nptdms/tdms.py | 1 | 42015 | """Python module for reading TDMS files produced by LabView"""
import itertools
import logging
import struct
import sys
from collections import namedtuple
try:
from collections import OrderedDict
except ImportError:
try:
# ordereddict available on pypi for Python < 2.7
from ordereddict import O... | lgpl-3.0 |
datapythonista/pandas | pandas/io/stata.py | 1 | 126589 | """
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... | bsd-3-clause |
alephu5/Soundbyte | environment/lib/python3.3/site-packages/pandas/tests/test_generic.py | 1 | 31481 | # pylint: disable-msg=E1101,W0612
from datetime import datetime, timedelta
import operator
import nose
import numpy as np
from numpy import nan
import pandas as pd
from pandas import (Index, Series, DataFrame, Panel,
isnull, notnull,date_range, _np_version_under1p7)
from pandas.core.index import ... | gpl-3.0 |
dariox2/CADL | session-4/l4b01-deepdreaming.py | 1 | 35882 | #
# Lecture 4 - Visualizing Representations
#
# Deep Convolutional Networks
# Deep Dreaming
#
#
# Introduction
#
# So far, we've seen that a deep convolutional network can get very
# high accuracy in classifying the MNIST dataset, a dataset of
# handwritten digits numbered 0 - 9. What happens when the number
# of ... | apache-2.0 |
gfyoung/numpy | numpy/lib/recfunctions.py | 2 | 42054 | """
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... | bsd-3-clause |
odlgroup/odl | odl/space/pspace.py | 2 | 62925 | # Copyright 2014-2020 The ODL contributors
#
# This file is part of ODL.
#
# This Source Code Form is subject to the terms of the Mozilla Public License,
# v. 2.0. If a copy of the MPL was not distributed with this file, You can
# obtain one at https://mozilla.org/MPL/2.0/.
"""Cartesian products of `LinearSpace` insta... | mpl-2.0 |
cggh/scikit-allel | allel/stats/selection.py | 1 | 39470 | # -*- coding: utf-8 -*-
import multiprocessing
from multiprocessing.pool import ThreadPool
import numpy as np
from allel.compat import memoryview_safe
from allel.util import asarray_ndim, check_dim0_aligned, check_integer_dtype
from allel.model.ndarray import HaplotypeArray, AlleleCountsArray
from allel.stats.windo... | mit |
StructuralNeurobiologyLab/SyConnFS | syconnfs/representations/connectivity.py | 1 | 30201 | import cPickle as pkl
import glob
import matplotlib
matplotlib.use('Agg')
import matplotlib.colors as mcolors
from matplotlib import gridspec
from matplotlib import pyplot as plt
import numpy as np
import os
import pandas
import re
import scipy.ndimage
import pandas as pd
from syconnfs.representations import segment... | gpl-2.0 |
luchy0120/BigDL | pyspark/bigdl/optim/optimizer.py | 1 | 30473 | #
# Copyright 2016 The BigDL 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 applicable law or agreed to in ... | apache-2.0 |
vortex-exoplanet/VIP | vip_hci/pca/pca_fullfr.py | 2 | 42541 | #! /usr/bin/env python
"""
Full-frame PCA algorithm for ADI, ADI+RDI and ADI+mSDI (IFS data) cubes.
"""
__author__ = 'Carlos Alberto Gomez Gonzalez'
__all__ = ['pca']
import numpy as np
from multiprocessing import cpu_count
from .svd import svd_wrapper, SVDecomposer
from .utils_pca import pca_incremental, pca_grid
f... | mit |
influxdata/influxdb-python | influxdb/tests/server_tests/client_test_with_server.py | 1 | 33279 | # -*- coding: utf-8 -*-
"""Unit tests for checking the InfluxDB server.
The good/expected interaction between:
+ the python client.. (obviously)
+ and a *_real_* server instance running.
This basically duplicates what's in client_test.py
but without mocking around every call.
"""
from __future__ import absolute_impo... | mit |
colour-science/colour | colour/plotting/models.py | 1 | 60631 | # -*- coding: utf-8 -*-
"""
Colour Models Plotting
======================
Defines the colour models plotting objects:
- :func:`colour.plotting.\
plot_RGB_colourspaces_in_chromaticity_diagram_CIE1931`
- :func:`colour.plotting.\
plot_RGB_colourspaces_in_chromaticity_diagram_CIE1960UCS`
- :func:`colour.plotting.\
... | bsd-3-clause |
jreback/pandas | pandas/tests/io/test_parquet.py | 1 | 36751 | """ test parquet compat """
import datetime
from distutils.version import LooseVersion
from io import BytesIO
import os
import pathlib
from warnings import catch_warnings
import numpy as np
import pytest
from pandas.compat import PY38, is_platform_windows
import pandas.util._test_decorators as td
import pandas as pd... | bsd-3-clause |
weissercn/learningml | learningml/GoF/classifier_eval.py | 1 | 48275 |
from __future__ import print_function
print(__doc__)
import os
import sys
import numpy as np
#import matplotlib
#matplotlib.use('AGG') # Do this BEFORE importing matplotlib.pyplot
import matplotlib.pyplot as plt
#from matplotlib.colors import Normalize
import matplotlib.colors as colors
import matplotlib.cm as cm
... | mit |
einarhuseby/arctic | tests/integration/store/test_pandas_store.py | 1 | 67391 | from StringIO import StringIO
from datetime import datetime as dt, timedelta as dtd
from dateutil.rrule import rrule, DAILY
from pandas import DataFrame, Series, DatetimeIndex, MultiIndex, read_csv, Panel, date_range, concat
from pandas.util.testing import assert_frame_equal, assert_series_equal
import numpy as np
impo... | lgpl-2.1 |
plotly/plotly.py | packages/python/plotly/plotly/graph_objs/icicle/marker/_colorbar.py | 1 | 73427 | from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType
import copy as _copy
class ColorBar(_BaseTraceHierarchyType):
# class properties
# --------------------
_parent_path_str = "icicle.marker"
_path_str = "icicle.marker.colorbar"
_valid_props = {
"bgcolor",
... | mit |
uglyboxer/linear_neuron | net-p3/lib/python3.5/site-packages/sklearn/ensemble/gradient_boosting.py | 1 | 62164 | """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... | mit |
GGFHF/ddRADseqTools | Package/genlib.py | 1 | 113838 | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------------
'''
This software has been developed by:
GI Genética, Fisiología e Historia Forestal
Dpto. Sistemas y Recursos Naturales
ETSI Montes, Forestal y del Medio Natural
Universida... | gpl-3.0 |
dsavoiu/kafe2 | kafe2/fit/tools/ensemble.py | 1 | 31872 | from __future__ import print_function
import collections
import matplotlib as mpl
import numpy as np
import scipy.stats
import six
from ...core.error import CovMat
__all__ = ['EnsembleVariable', 'EnsembleVariableProbabilityDistribution', 'EnsembleVariablePlotter']
def cycle_axes(array, k):
"""
Cycle the d... | gpl-3.0 |
alexandrebarachant/mne-python | mne/viz/epochs.py | 2 | 65214 | """Functions to plot epochs data
"""
# 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>
# Jaakko Leppakangas <jaeilepp@student.jyu.f... | bsd-3-clause |
TomAugspurger/pandas | pandas/core/series.py | 1 | 149833 | """
Data structure for 1-dimensional cross-sectional and time series data
"""
from io import StringIO
from shutil import get_terminal_size
from textwrap import dedent
from typing import (
IO,
TYPE_CHECKING,
Any,
Callable,
Iterable,
List,
Optional,
Tuple,
Type,
Union,
)
import war... | bsd-3-clause |
louispotok/pandas | pandas/core/groupby/groupby.py | 1 | 172739 | import types
from functools import wraps, partial
import numpy as np
import datetime
import collections
import warnings
import copy
from textwrap import dedent
from contextlib import contextmanager
from pandas.compat import (
zip, range, lzip,
callable, map
)
from pandas import compat
from pandas.compat.numpy... | bsd-3-clause |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.